Univention Bugzilla – Attachment 8497 Details for
Bug 43731
Update French translation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Code & file removal after moving overview translation to portal entries in Bug #43579.
43731_remove_ucr_translation.patch (text/plain), 7.31 KB, created by
Daniel Tröder
on 2017-03-07 10:25 CET
(
hide
)
Description:
Code & file removal after moving overview translation to portal entries in Bug #43579.
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2017-03-07 10:25 CET
Size:
7.31 KB
patch
obsolete
>Index: ucs-school-l10n-fr/Makefile >=================================================================== >--- ucs-school-l10n-fr/Makefile (Revision 77276) >+++ ucs-school-l10n-fr/Makefile (Arbeitskopie) >@@ -36,10 +36,9 @@ > build: > > include all_targets.mk >-ADDITIONAL = $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES/ucs-school-ucr-l10n.mo > $(DESTDIR)/usr/share/locale/fr/LC_MESSAGES/ucs-school-ucr-l10n.mo: fr/ucs-school-ucr-l10n.po > >-install: $(ALL_TARGETS) $(ADDITIONAL) >+install: $(ALL_TARGETS) > > %.mo: > mkdir -p $(@D) >Index: ucs-school-l10n-fr/conffiles/ucs-school-ucr-l10n-fr >=================================================================== >--- ucs-school-l10n-fr/conffiles/ucs-school-ucr-l10n-fr (Revision 77276) >+++ ucs-school-l10n-fr/conffiles/ucs-school-ucr-l10n-fr (Arbeitskopie) >@@ -1,28 +0,0 @@ >-#!/bin/sh >-# Copyright 2016-2017 Univention GmbH >-# >-# http://www.univention.de/ >-# >-# All rights reserved. >-# >-# The source code of this program is made available >-# under the terms of the GNU Affero General Public License version 3 >-# (GNU AGPL V3) as published by the Free Software Foundation. >-# >-# Binary versions of this program provided by Univention to you as >-# well as other copyrighted, protected or trademarked materials like >-# Logos, graphics, fonts, specific documentations and configurations, >-# cryptographic keys etc. are subject to a license agreement between >-# you and Univention and not subject to the GNU AGPL V3. >-# >-# In the case you use this program under the terms of the GNU AGPL V3, >-# the program is provided in the hope that it will be useful, >-# but WITHOUT ANY WARRANTY; without even the implied warranty of >-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >-# GNU Affero General Public License for more details. >-# >-# You should have received a copy of the GNU Affero General Public >-# License with the Debian GNU/Linux or Univention distribution in file >-# /usr/share/common-licenses/AGPL-3; if not, see >-# <http://www.gnu.org/licenses/>. >-/usr/share/ucs-school-l10n-fr/ucs-school-ucr-l10n fr >Index: ucs-school-l10n-fr/debian/rules >=================================================================== >--- ucs-school-l10n-fr/debian/rules (Revision 77276) >+++ ucs-school-l10n-fr/debian/rules (Arbeitskopie) >@@ -28,7 +28,6 @@ > # <http://www.gnu.org/licenses/>. > > override_dh_auto_install: >- univention-install-config-registry > dh_auto_install > > override_dh_auto_test: >Index: ucs-school-l10n-fr/debian/ucs-school-l10n-fr.dirs >=================================================================== >--- ucs-school-l10n-fr/debian/ucs-school-l10n-fr.dirs (Revision 77276) >+++ ucs-school-l10n-fr/debian/ucs-school-l10n-fr.dirs (Arbeitskopie) >@@ -3,4 +3,3 @@ > usr/share/univention-management-console-frontend/js/umc/help > usr/share/univention-management-console/i18n/fr > usr/share/locale/fr/LC_MESSAGES >-usr/share/ucs-school-l10-fr >Index: ucs-school-l10n-fr/debian/ucs-school-l10n-fr.install >=================================================================== >--- ucs-school-l10n-fr/debian/ucs-school-l10n-fr.install (Revision 77276) >+++ ucs-school-l10n-fr/debian/ucs-school-l10n-fr.install (Arbeitskopie) >@@ -1 +0,0 @@ >-ucs-school-ucr-l10n /usr/share/ucs-school-l10n-fr/ >Index: ucs-school-l10n-fr/debian/ucs-school-l10n-fr.postinst >=================================================================== >--- ucs-school-l10n-fr/debian/ucs-school-l10n-fr.postinst (Revision 77276) >+++ ucs-school-l10n-fr/debian/ucs-school-l10n-fr.postinst (Arbeitskopie) >@@ -1,6 +0,0 @@ >-#!/bin/sh >-#DEBHELPER# >- >-/usr/share/ucs-school-l10n-fr/ucs-school-ucr-l10n fr >- >-exit 0 >Index: ucs-school-l10n-fr/debian/ucs-school-l10n-fr.univention-config-registry >=================================================================== >--- ucs-school-l10n-fr/debian/ucs-school-l10n-fr.univention-config-registry (Revision 77276) >+++ ucs-school-l10n-fr/debian/ucs-school-l10n-fr.univention-config-registry (Arbeitskopie) >@@ -1,3 +0,0 @@ >-Type: script >-Script: ucs-school-ucr-l10n-fr >-Variables: ucs/web/overview/entries/.*/(link|description|label)$ >Index: ucs-school-l10n-fr/fr/ucs-school-ucr-l10n.po >=================================================================== >--- ucs-school-l10n-fr/fr/ucs-school-ucr-l10n.po (Revision 77276) >+++ ucs-school-l10n-fr/fr/ucs-school-ucr-l10n.po (Arbeitskopie) >@@ -1,25 +0,0 @@ >-msgid "" >-msgstr "" >-"Project-Id-Version: ucr\n" >-"POT-Creation-Date: 2016-10-28 14:41+0000\n" >-"Last-Translator: Alexander Kläser <klaeser@univention.de>\n" >-"Language-Team: French <fr@bureau-cornavin.com>\n" >-"Language: fr\n" >-"PO-Revision-Date: 2016-10-28 16:52+0100\n" >-"MIME-Version: 1.0\n" >-"Content-Type: text/plain; charset=UTF-8\n" >-"Content-Transfer-Encoding: 8bit\n" >-"Plural-Forms: nplurals=2; plural=(n > 1);\n" >-"X-Generator: Lokalize 2.0\n" >- >-#: ucs/web/overview/entries/service/teacherconsole/label >-msgid "UCS@school" >-msgstr "UCS@school" >- >-#: ucs/web/overview/entries/service/teacherconsole/description >-msgid "Access to the UCS@school modules in the Univention Management Console" >-msgstr "Accès aux modules UCS@school dans Univention Management Console" >- >-#: ucs/web/overview/entries/service/teacherconsole/link >-msgid "/univention-management-console" >-msgstr "/univention-management-console?lang=fr-FR" >Index: ucs-school-l10n-fr/ucs-school-ucr-l10n >=================================================================== >--- ucs-school-l10n-fr/ucs-school-ucr-l10n (Revision 77276) >+++ ucs-school-l10n-fr/ucs-school-ucr-l10n (Arbeitskopie) >@@ -1,52 +0,0 @@ >-#!/usr/bin/env python >-# -*- coding: utf-8 -*- >-# >-# Copyright 2016-2017 Univention GmbH >-# >-# http://www.univention.de/ >-# >-# All rights reserved. >-# >-# The source code of this program is made available >-# under the terms of the GNU Affero General Public License version 3 >-# (GNU AGPL V3) as published by the Free Software Foundation. >-# >-# Binary versions of this program provided by Univention to you as >-# well as other copyrighted, protected or trademarked materials like >-# Logos, graphics, fonts, specific documentations and configurations, >-# cryptographic keys etc. are subject to a license agreement between >-# you and Univention and not subject to the GNU AGPL V3. >-# >-# In the case you use this program under the terms of the GNU AGPL V3, >-# the program is provided in the hope that it will be useful, >-# but WITHOUT ANY WARRANTY; without even the implied warranty of >-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >-# GNU Affero General Public License for more details. >-# >-# You should have received a copy of the GNU Affero General Public >-# License with the Debian GNU/Linux or Univention distribution in file >-# /usr/share/common-licenses/AGPL-3; if not, see >-# <http://www.gnu.org/licenses/>. >- >-import argparse >-import gettext >- >-from univention.config_registry import ConfigRegistry >- >-if __name__ == '__main__': >- parser = argparse.ArgumentParser() >- parser.add_argument('language_code', >- type=str, >- help="two char language code, e.g. 'fr'") >- args = parser.parse_args() >- gettext.translation('ucs-school-ucr-l10n', languages=[args.language_code]).install() >- ucr = ConfigRegistry() >- ucr.load() >- overview_ucrvs = {k: v for k, v in ucr.items() if 'ucs/web/overview/entries' in k} >- ucrvs_translated = {} >- for ucrv, value in overview_ucrvs.items(): >- translation = _(value) >- if not translation == value: >- ucrvs_translated['{}/{}'.format(ucrv, args.language_code)] = translation >- ucr.update(ucrvs_translated) >- ucr.save()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 43731
: 8497