Univention Bugzilla – Bug 54394
Add script to add french translation to extended attributes, portal entries (LDAP contents)
Last modified: 2022-02-04 12:52:25 CET
The french extended attributes and portal entry descriptions are currently translated in the package joinscripts. We should remove those translations from the joinscripts and add a script which extracts all to be translated strings from joinscripts and puts them e.g. into a .po file and ship it (the .mo file) via the univention-l10n-fr package. A joinscript of univention-l10n-fr should then modify all existing extended attributes/portal entries/etc and update the corresponding french translation by looking it up in the .mo file. A similar mechanism once existed for UCR variables (ucr-l10n and ucr-l10n-generate-po in packaging/univention-l10n).
Alternative idea from <https://git.knut.univention.de/univention/internal/hackathon/orga/-/issues/16>: Define a declarative style to create EAs and Portal entries instead of having bash code creating those entries. + allows use to improve script to translate declaration into code + simplifies extraction of translation strings
A theoretical problem I see are dynamic texts, e.g.: management/univention-self-service/34univention-self-service.inst --append link='"en_US" "'"https://${hostname}.${domainname}/univention/self-service/?header=try-hide#page=passwordchange"'"' \ Collecting data from the system would cause the UCR expanded values to be inserted. We also can't differentiate where the data comes from: UCS package, UCS@school package, UCS app, etc? And we would need to install all components to collect all data. Maybe we have to wait for a declarative solution as mentioned in comment 1. Or we start with a bash parser of joinscripts which cover the basic cases?