Univention Bugzilla – Bug 41776
Translate UCS compontents to French
Last modified: 2016-11-08 13:26:34 CET
For a customer in Switzerland, we will translate all UCS components (UMC, UDM etc.) to French.
Created attachment 7794 [details]
Attached all necessary translation files. The files are currently named de.po and would need to be changed. Also we need to integrate them into a translation package and eventually integrated some of the translations (e.g., the Debian installer) directly into the source package.
I would name the package "univention-i18n-fr".
r72407 | initial version of the French translation package
TODO: Debian Installer translations
A package for ucs-4.1-3 has been build.
r72421, r72420 | restructure makefile for dh_auto_build
(In reply to Florian Best from comment #2)
> I would name the package "univention-i18n-fr".
I agree on renaming and propose (univention-)ucs-l10n-fr, as this package targets UCS specifically and is mainly localization.
The provided PO files are completely integrated. Maybe QA can take a look at this point?
TODO: * Merge to UCS 4.2
* rename packge once agreed upon a name
r72613 | fix typo in additional_targets.mk
* Please move all possible manual definitions into specialcases.json
* The target /usr/share/univention-self-service/www/js/ucs/fr.json is defined
twice with different dependencies
* See also Bug 42260, comment 2
The translation has been rebuild using updated special case logic. Additionally the provided translated tree of PO files has been merged with the current UCS 4.1-3 SVN repository. The result contains fuzzy tagged and empty msgids, which need to be reviewed. As discussed the package has been renamed to univention-l10n-fr.
r73325: import to UCS 4.2
To build the package for testing or review comment ucslint in debian/rules so it won't fail on fuzzy and empty msgids.
FYI: None of the UCR variables are translated - this currently requires a direct modification of the files /etc/univention/registry.info/variables/*.cfg as UCR does not use the gettext() mechanism, but uses its own (broken) implementation for i18n.
Created attachment 8147 [details]
Screenshot UCS overview site
I resolved the fuzzy entries and commited them to 4.1-3, 4.1-4 and 4.2-0. Please double check. The package in the current version is built.
We need to translate the entries of the UCS overview site, see attached screenshot. This is the first thing a user will see. Otherwise, everything seems to be just fine.
Please have also a look at the following:
$ dpkg -L univention-l10n-fr | grep '/de/'
This leads to problems when installing the package.
(In reply to Alexander Kläser from comment #13)
> Please have also a look at the following:
> $ dpkg -L univention-l10n-fr | grep '/de/'
> This leads to problems when installing the package.
This is due to a faulty special case definition in this module. Fix in with r73524
(In reply to Philipp Hahn from comment #11)
> FYI: None of the UCR variables are translated - this currently requires a
> direct modification of the files
> /etc/univention/registry.info/variables/*.cfg as UCR does not use the
> gettext() mechanism, but uses its own (broken) implementation for i18n.
Tools to do this where added with r73849, r73850, r73851. (UCS 4.1-3, 4.1-4, 4.2-0)
Created attachment 8171 [details]
UCR variable translations
This are the French translations of the UCR variables.
Please remove the deprecated package base/univention-ucs-translation-fr.
We need the following features:
* Trigger the ucr-l10n script for changes in ucs/web/overview/entries.* variables
* Trigger the ucr-l10n script as a setup script in the appliance-hooks.d dir
Tagging to 4.1-4. Please add an entry to the 4.1-4 changelog (i.e., no errata YAML files).
Created attachment 8176 [details]
This is a proposed patch for the lacking functionality. AFAIS, this should be sufficient.
(In reply to Alexander Kläser from comment #18)
> Tagging to 4.1-4. Please add an entry to the 4.1-4 changelog (i.e., no
> errata YAML files).
r74027 adds changelog entry.
r74035, r74036 applies patch with slight changes and establishes UCR variable translation functionality
r74037: merge to UCS 4.2-0
(In reply to Alexander Kläser from comment #17)
> * Trigger the ucr-l10n script as a setup script in the appliance-hooks.d dir
This is still a TODO
(In reply to Eduard Mai from comment #22)
> (In reply to Alexander Kläser from comment #17)
> > * Trigger the ucr-l10n script as a setup script in the appliance-hooks.d dir
> This is still a TODO
AFAIS, we do not need this as the ucr hook should be sufficient to do this job :) .
I needed to add the patch for services/univention-s4-connector/debian/python-univention-connector-s4.univention-l10n [r73524] to 4.1-4:
r74078 | Bug #41776: fix special case definition
... and 4.2-0:
r74079 | Bug #41776: fix special case definition
Changes: OK, look good and work
Merges to 4.2-0: OK
Changelog 4.1-4: OK
We observed that no univention-appcenter package would be installed when choosing French as language in the DVD Installer. Therefore I needed to remove the dependency to univention-management-console from the package.
r74104 | Bug #41776: removed dependency to univention-management-console
UCS 4.1-4 has been released:
If this error occurs again, please use "Clone This Bug".