Bug 6457

Summary: translate install fr-FR failed in staff processing
Product: Koha Reporter: Sébastien Marie <semarie>
Component: I18N/L10NAssignee: Frédéric Demians <f.demians>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: PATCH-Sent (DO NOT USE)    
Version: 3.4   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Patch for correcting the two blocking syntaxic erros

Description Sébastien Marie 2011-06-04 13:15:45 UTC
Created attachment 4357 [details] [review]
Patch for correcting the two blocking syntaxic erros

The installation of french localization failed due to two syntax errors in misc/translator/po/fr-FR-i-staff-t-prog-v-3002000.po.

The message are "Warning", but the processing stop without finish... leaving a semi-translated system.

- Creating /srv/koha/koha-git-tree/koha-tmpl/intranet-tmpl/prog/fr-FR/modules/help/admin/matching-rules.tt...
tmpl_process3.pl: Warning: matching-rules.tt: <a1>: Anchor 1 not found for msgid "Nécessite des vérifications de concordance <a1>Ajouter  vérification de concordance </a>"
Can't call method "string" on an undefined value at TmplTokenizer.pm line 446.

- Creating /srv/koha/koha-git-tree/koha-tmpl/intranet-tmpl/prog/fr-FR/modules/admin/itemtypes.tt...
 Gestion des types de document : Completely confused parametrizing -- msgid: &rsaquo;Donnée supprimée %s %s Gestion des types d
e document %

Note that the two previous errors are obtained separately: process stop with the first, and after correction, the second arrived...

see attached patch for correction of syntax errors.

does the fact that translate system don't finish, and issue only a warning is also an issue ?
Comment 1 Sébastien Marie 2011-06-04 13:30:09 UTC
I don't known the translation mecanism, and I just realized that "anchor" could be used for word placement. So I don't known if my correction for first error is accurated or not...

Sure: without, I have a partial localization directory installed.
Comment 2 Frédéric Demians 2011-06-04 13:40:36 UTC
Those errors are already corrected on translate.koha-community.org. It has been discussed last week on Koha French discussion list. It will be pushed on HEAD just before 3.4.2 release.