Bug 41777 - Translate UCS@school compontents to French
Translate UCS@school compontents to French
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Alexander Kläser
Sönke Schwardt-Krummrich
: interim-4
Depends on: 42260
Blocks: 41773
  Show dependency treegraph
 
Reported: 2016-07-12 11:49 CEST by Alexander Kläser
Modified: 2016-11-10 16:00 CET (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Internationalization
Max CVSS v3 score:


Attachments
Translation files (42.12 KB, application/x-compressed-tar)
2016-07-12 11:50 CEST, Alexander Kläser
Details
UCRV message strings (366 bytes, text/x-gettext-translation)
2016-11-02 17:03 CET, Eduard Mai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kläser univentionstaff 2016-07-12 11:49:36 CEST
For a customer in Switzerland, we will translate all UCS@school components (UMC, UDM etc.) to French.
Comment 1 Alexander Kläser univentionstaff 2016-07-12 11:50:41 CEST
Created attachment 7795 [details]
Translation files

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.
Comment 2 Eduard Mai univentionstaff 2016-09-09 17:57:38 CEST
AFAIS the provided PO files are completely integrated now.

r72468 | initial version of French translation commited

Package: ucs-school-translation-fr
Version: 1.0.1-0.1.201609091753
Comment 3 Alexander Kläser univentionstaff 2016-09-15 16:59:54 CEST
As discussed and described at Bug 42260, please add a custom specialcases.json file to the package in order to minimize the work we will have with updating the translation packages.
Comment 4 Florian Best univentionstaff 2016-09-26 17:19:30 CEST
The helpdesk categories are currently hardcoded in english. They are entries in LDAP and can't be overwritten. The helpdesk module "currently" only uses the first found objectClass=univentionUMCHelpdeskClass object for this.
If they need/should be translated too, we need to adjust e.g. the joinscript of the helpdesk module a little bit.
Comment 5 Eduard Mai univentionstaff 2016-10-19 15:46:48 CEST
r73360: special case definitions
r73361:
  * the package was rebuild to integrate more special cases
  * changes in the current UCS@school 4.1r2 branch were merged into the po file tree attached to this bug. The result now contains fuzzy and empty msgids.
Comment 6 Alexander Kläser univentionstaff 2016-10-24 12:51:28 CEST
I adjusted the fuzzy entries. Please double check. 

Everything seems to be fine. The only thing I noticed are the UMC categories which are not translated...

$ tail -5 fr/ucs-school-umc-common/fr.po
#~ msgid "Education"
#~ msgstr "Enseignement"

#~ msgid "School administration"
#~ msgstr "Administration de l'école"
Comment 7 Florian Best univentionstaff 2016-10-24 14:08:30 CEST
The grid columns "Pages" and "Date" in "Modérer les imprimantes" module are not translated.
Comment 8 Eduard Mai univentionstaff 2016-10-24 18:35:19 CEST
(In reply to Florian Best from comment #7)
> The grid columns "Pages" and "Date" in "Modérer les imprimantes" module are
> not translated.

AFAIS this is correct French vocabulary.
Comment 9 Eduard Mai univentionstaff 2016-10-25 14:23:36 CEST
r73525: fixes translation of category names
Package: ucs-school-l10n-fr
Version: 1.1.0-2.2.201610241950
Comment 10 Eduard Mai univentionstaff 2016-11-02 17:03:52 CET
Created attachment 8181 [details]
UCRV message strings

The attached PO file for UCR variables has to be translated.
Comment 11 Alexander Kläser univentionstaff 2016-11-03 12:26:02 CET
As follows, my suggestions:

#: 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"
Comment 12 Alexander Kläser univentionstaff 2016-11-04 14:37:19 CET
Similar to univention-l10n-fr, we would need a UCR hook script...

We need to add ucs-school-l10n-fr as recommends to the installer + the base UCS@school package in order to ensure that French translations are directly available.
Comment 13 Alexander Kläser univentionstaff 2016-11-04 14:38:12 CET
(In reply to Alexander Kläser from comment #12)
> Similar to univention-l10n-fr, we would need a UCR hook script...

... we might have problems at this point as the UCR hook uses a predefined translation domain.
Comment 14 Eduard Mai univentionstaff 2016-11-08 14:23:08 CET
r74223 adds translation of UCR variables.

Package: ucs-school-l10n-fr
Version: 1.1.1-0.3.201611081420
Branch: ucs_4.1-0
Scope: ucs-school-4.1r2
Comment 15 Eduard Mai univentionstaff 2016-11-08 14:31:00 CET
r74224 fixes a typo in debian/*.postinst

Package: ucs-school-l10n-fr
Version: 1.1.1-1.4.201611081426
Branch: ucs_4.1-0
Scope: ucs-school-4.1r2
Comment 16 Alexander Kläser univentionstaff 2016-11-09 06:34:48 CET
I forgot to mention that we need dependencies for the translation package in order to install it automatically. AFAIS, it would be sufficient that ucs-school-umc-common recommdnes ucs-school-l10n-fr.
Comment 17 Florian Best univentionstaff 2016-11-09 17:56:36 CET
ucs-school-l10n-fr (1.1.1-2):
r74255 | Bug #41777: don't register french language by default

ucs-school-umc-common (6.0.0-2):
r74256 | Bug #41777: add recommended package ucs-school-l10n-fr

ucs-school-umc-common.yaml:
r74257 | YAML Bug #41777

ucs-school-l10n-fr.yaml:
r74257 | YAML Bug #41777
Comment 18 Alexander Kläser univentionstaff 2016-11-09 21:10:31 CET
I needed to remove univention-l10n-fr and univention-management-console form the list of dependencies. Otherwise the complete French translation (i.e., univention-l10n-fr) would have been installed.

I also needed to fix a typo to the script for translating the UCR variables.

ucs-school-l10n-fr (1.1.1-4):
r74260 | Bug #41777: adjust typo in path of UCR script
r74258 | Bug #41777: adjust dependencies

ucs-school-l10n-fr.yaml:
r74261 | Bug #41777: adjust package version
r74259 | Bug #41777: adjust package version
Comment 19 Alexander Kläser univentionstaff 2016-11-09 21:16:26 CET
Now, everything looks fine and behaves as it should:
* French UCS@school translations are installed but not shown unless univention-
  l10n-fr is installed, as well.
* The installer is shown in French.
* Updating UCS@school will install French UCS@school translations.
* UCR variables are translated.
* UMC categories are translated.

Changes: OK
YAML files: OK, fixed a little typo [r74262]

→ VERIFIED
Comment 20 Sönke Schwardt-Krummrich univentionstaff 2016-11-10 12:03:52 CET
univention-l10n-tools is not available in UCS 4.1-3 and therefore not installable.
Comment 21 Alexander Kläser univentionstaff 2016-11-10 13:11:49 CET
(In reply to Sönke Schwardt-Krummrich from comment #20)
> univention-l10n-tools is not available in UCS 4.1-3 and therefore not
> installable.

As discussed, this is OK. ucs-school-umc-common recommends ucs-school-l10n-fr and ucs-school-l10n-fr depends on univention-l10n-tools. On 4.1-3, ucs-school-l10n-fr will simply not be installed.

I added some additional information to the YAML file for manual installation of French translations [r74274].
Comment 22 Sönke Schwardt-Krummrich univentionstaff 2016-11-10 16:00:47 CET
UCS@school 4.1 R2 v7 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.1R2v7-de.html

If this error occurs again, please clone this bug.