Translate OpenPNE3 with OLT XLIFF Editor

12 views
Skip to first unread message

kiang

unread,
Oct 14, 2009, 10:31:40 PM10/14/09
to OpenPNE3 Internationalization
OLT XLIFF Editor could help editing XLIFF files. But you must change
the extension of language files from 'xml' to 'xlf' which found in
OpenPNE3/apps/pc_frontend/i18n.

I don't know why I can't open it with Qt Linguist. And why symfony
don't follow the standard extension name which others do?

OLT XLIFF Editor: https://open-language-tools.dev.java.net/
Qt Linguist: http://doc.trolltech.com/4.4/linguist-manual.html

---
kiang

Kousuke Ebihara

unread,
Oct 14, 2009, 11:19:32 PM10/14/09
to op3...@googlegroups.com
> OLT XLIFF Editor could help editing XLIFF files. But you must change
> the extension of language files from 'xml' to 'xlf' which found in


I've just read code of lib/vendor/symfony/lib/i18n/
sfMessageSource_XLIFF.class.php for changing file extension.
It seems like that came from PRADO, so it is not configurable as pure
symfony classes are.

Indeed, the extension of language files are changable.
We need to create lib/i18n/sfMessageSource_OpenPNE_XLIFF.class.php and
override value of $dataExt property to ".xlf".
And change i18n.param.source to "OpenPNE_XLIFF" in apps/*/config/
factories.yml.

But it is not good idea because it'll break BC in plugin.
Give me a little longer to think about it.

--
Kousuke Ebihara
ebi...@tejimaya.com
http://sns.openpne.jp/?a=page_f_home&target_c_member_id=807
OpenPNE Project http://www.openpne.jp
Tejimaya.inc http://tejimaya.com

Reply all
Reply to author
Forward
0 new messages