[phpldapadmin] Translating template attribute hints
Cristian Rigamonti <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <20091120170404.GA18809@pegasus> |
Hi, I'd like to have translations for the <hint> element, contained in the <attribute> element of PLA XML templates, but something isn't working as I expected. This is what I did: - /tools/po/Makefile -> "pot" target -> fixed the line invoking po4a-gettextize: adding the <hint> element to the list of tags to be translated, like this: @po4a-gettextize -o tags="<title> <attribute><hint> <display>" ... (I also tried with @po4a-gettextize -o tags="<title> <hint> <display>" ... but got the same result) - /templates/modification/custom_template.xml added some <hint>....</hint> elements into some <attribute> elements - Re-created .po files make pot make all-merge-pot - Translated the new string for the hint in the relevant .po file - Re-created .mo files make all-mo Now if I look into the relevant .mo file I can see the translated message for my new attribute hint, but PLA just seems to ignore it. I tried cleaning the PLA cache, the browser cache, restarting etc, but I always get the same result. Please note that other translated strings from the same template (the <title> and <display> elements) are correctly shown; <hint> is the only one that fails. I suspect that I need to make changes somewhere else in the code, but I haven't got a clue; I tried looking into /lib/Attribute.php, /lib/TemplateRender.php, /lib/PageRender.php, but I can't spot the piece of code that reads the <hint> element to check that the translated string for its content is actually used. (all this is done using a vanilla PLA 1.2.0.4 on GNU/Linux, the only change I've done was to create a custom template). Any help please? Cri -- GPG/PGP Key-Id 0x943A5F0E - http://www.linux.it/~cri/cri.asc ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ______________________________________ phpLDAPadmin development mailing list. To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel http://phpldapadmin.sourceforge.net/
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksGzAQACgkQrSAagZQ6Xw5wsACfY6yu+8Hr2NveADyo76EAHuPa mhkAn1XWuj4codD7EkS9QB+GEfbgbfmJ =Uj/q -----END PGP SIGNATURE-----