Difference between revisions of "Talk:Pootle"
Line 34: | Line 34: | ||
--[[User:PicsOne|Normando Hall]] 11:46, 21 January 2008 (MST) | --[[User:PicsOne|Normando Hall]] 11:46, 21 January 2008 (MST) | ||
+ | |||
+ | ---- | ||
+ | |||
+ | == I need your help == | ||
+ | I want to colaborate with SME comunity with a translation system. With Pootle you can upload directly the PO files, those reside at /usr/share/locale. BUT formmagick panel can't, because these files are XML. | ||
+ | |||
+ | The idea is to convert from XML to PO before import in Pootle. To acomplish this, I tried some solutions. | ||
+ | |||
+ | The first is the converters come with Pootle without success (HTML2PO - TXT2PO). | ||
+ | |||
+ | The second is PO4A ( http://po4a.alioth.debian.org/index.php ), again, without success. | ||
+ | |||
+ | You can install enabling ATRPMS repo and install po4a. | ||
+ | |||
+ | To test, at your panels dir /etc/e-smith/locale/ | ||
+ | |||
+ | po4a-gettextize -f xml -o tagsonly="<trans>" -m backup -p backup.po | ||
+ | |||
+ | po4a-translate -k 0 -f xml -o tagsonly="<trans>" -m backup -p backup.po -l backup_translated | ||
+ | |||
+ | The last is XML2PO ( http://linux.die.net/man/1/xml2po ) | ||
+ | |||
+ | I have packaged for a better installation. You can download from | ||
+ | http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/gnome-doc-utils-0.12.0-1.noarch.rpm |
Revision as of 16:06, 24 January 2008
Thanks Normando, I have my pootle server running, but I'm don't see how to import the language files, have you imported them ?
A lot would come from sourceforge cvs > smeserver > smeserver-locale, but not all
maybe we could trial pootle on contrib translations, say sourceforge cvs > smecontribs > smeserver-vacation
Getting pootle to intergrate to the way SME currently updates files may be difficult I suggest see what the shad and charlie think in your bug 3782
Snoble 05:08, 21 January 2008 (MST)
Hello Snoble
First, I have added a test project, and assign to me and add a few languages. Then, because I am the admin of the project, I can add files to the project to translate.
The only files handle for pottle are PO or POT files. BUT it has a few of converters to make convertions between file.xxx to file.po and revert file.po to file.xxx. One of them converters is txt2po and po2txt (http://translate.sourceforge.net/wiki/toolkit/txt2po) .
Pootle handle directly po files under /usr/share/locale to translate.
I think to make a parser or analizer to convert formmagick panels to txt files, and then to .po, handled with pootle.
See http://translate.sourceforge.net/wiki/toolkit/formats about all converters. I think it is possible to make translations for formmagick panels within pootle.
I have setup a demo pootle. Access at:
http://www.unixlan.com.ar:8888
user: smeserver with same password. You can test, delete, modify, etc.
Thank for the comment snoble
--Normando Hall 11:46, 21 January 2008 (MST)
I need your help
I want to colaborate with SME comunity with a translation system. With Pootle you can upload directly the PO files, those reside at /usr/share/locale. BUT formmagick panel can't, because these files are XML.
The idea is to convert from XML to PO before import in Pootle. To acomplish this, I tried some solutions.
The first is the converters come with Pootle without success (HTML2PO - TXT2PO).
The second is PO4A ( http://po4a.alioth.debian.org/index.php ), again, without success.
You can install enabling ATRPMS repo and install po4a.
To test, at your panels dir /etc/e-smith/locale/
po4a-gettextize -f xml -o tagsonly="<trans>" -m backup -p backup.po
po4a-translate -k 0 -f xml -o tagsonly="<trans>" -m backup -p backup.po -l backup_translated
The last is XML2PO ( http://linux.die.net/man/1/xml2po )
I have packaged for a better installation. You can download from
http://mirror.contribs.org/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/nhall/sme7/contribs/pootle/rpm/gnome-doc-utils-0.12.0-1.noarch.rpm