Page 1 of 1

Try to translate to Traditional Chinese but import failure

Posted: Thu Oct 22, 2009 3:35 am
by nelson
Dears,

I'm going to try to translate to Traditional Chinese but I got an error message while I imported a po file.(even I only modified catalog of en and not modified the other contents). The error message is
Notice: Undefined offset: 1 in C:\Program Files\ProcessMaker\apps\processmaker\htdocs\workflow\engine\classes\class.languages.php on line 86string(31) "The .po file have a bad format!"

And I found a lot of same error in Apache error.log even I only executed imported action one time.
My environment is Win2003 Server & IE 8, POedit v1.4.3
My steps are:
1. export en po file from PM (Admin->Languages->Export)
2. use POedit change the catalog of en po ("Language -> Chinese & Country -> Taiwan)
3. save as "processmaker.zh.po"
4. import zh po file into PM
5. Failed

Please refer the attachment for screen capture. Do I use the wrong steps? Thanks.

Regards
Nelson

Re: Try to translate to Traditional Chinese but import failure

Posted: Tue Oct 27, 2009 6:52 pm
by amosbatto
I figured out what the problem is. There is a bug in PoEdit. In the original PO file you have the PO entry:
Code: Select all
msgid "Field \\\"table\\\" is required"
msgstr "Field \\\"table\\\" is required"
When PoEdit saves, that gets transformed to:
Code: Select all
msgid "Field \\"table\\" is required"
msgstr "Field \\"table\\" is required"
Changing \\\" to \\" terminates the strings and screws everything up. What you need to do is change \\" back to \\\" with a bare text editor. Then you can import the file OK.

I have filed a bug report with PoEdit about this at: http://www.poedit.net/trac/ticket/319
If you use Linux, I suggest using KBabel instead of PoEdit. Otherwise, you will have to manually edit the file before importing into ProcessMaker.

Re: Try to translate to Traditional Chinese but import failure

Posted: Wed Oct 28, 2009 10:16 pm
by nelson
Thanks. I'll try it later.
Actually, I found it's OK (import into PM, no error) while I used the other language PO.
So I already translated using Itlian.po to Traditional Chinese and almost completed 80%.
But you know, Itlian.po is for old version vs. r2838.

Regards
Nelson

Re: Try to translate to Traditional Chinese but import failure

Posted: Thu Oct 29, 2009 9:30 am
by amosbatto
nelson wrote:Actually, I found it's OK (import into PM, no error) while I used the other language PO.

Working with an older PO file works because it doesn't include any phrases with \\\"
nelson wrote:So I already translated using Itlian.po to Traditional Chinese and almost completed 80

Excellent. If you would like other people to be able to use your Chinese translation, please send me your translation at amos AT colosa DOT com and I will post it on the wiki. We would love to see people using ProcessMaker in Chinese.

Right now we are working on a skin to allow people to use ProcessMaker with right-to-left languages like Arabic and Hebrew, so hopefully ProcessMaker can become a better program for non-Western languages.

I have a special interest in software translation, since I cofounded a group to translate software into indigenous languages of the Andes. Right now I'm working on an AJAX program to help translators to collaborate and translate software online. I'm just in the starting phases, but it should be much better than the web-based PO editors which are currently available.

Re: Try to translate to Traditional Chinese but import failure

Posted: Thu Oct 29, 2009 9:33 pm
by nelson
Sure! No problem. After I finish translation and add new records of current version, I'll send it to you to share to everybody.

Re: Try to translate to Traditional Chinese but import failure

Posted: Mon Nov 02, 2009 10:50 pm
by nelson
Dear amosbatto,

The imported failure is not caused by "\\\" problem.
I found POedit will change line 3246 & line 3253 after save the us.po file every time and this will cause importing failure.
(refer the attachment.)
After use bare TEXT editor to fix these two lines, then it can be imported successfully.

Regards
Nelson

Re: Try to translate to Traditional Chinese but import failure

Posted: Thu Nov 05, 2009 4:48 am
by nelson
Dear amos,

I already sent first translative version of Traditional Chinese to you for reference.

Regards
Nelson Fu

Re: Try to translate to Traditional Chinese but import failu

Posted: Thu Aug 18, 2011 7:05 am
by Riana90
oo..heavy thanks)) just what i was looking for :P

Re: Try to translate to Traditional Chinese but import failu

Posted: Fri Sep 23, 2011 9:08 am
by diva123
Thank you very much...
This is really helpful... :) I was just looking for this... :D

Re: Try to translate to Traditional Chinese but import failu

Posted: Tue Dec 06, 2011 11:30 pm
by cuktrshmls
Hi Nelson,

I have found TC and other language packs available here
http://sourceforge.net/projects/process ... tions/2.0/

i wonder if it will work for me when I am on 2.0.34?
Many thanks

Re: Try to translate to Traditional Chinese but import failu

Posted: Wed Dec 07, 2011 1:40 pm
by liliana
Those packs are really helpful and yes It will work on 2.0.34, but since that version have some issues we recommend you to use on version 2.0.33 or the latest version 2.0.35 which is available to download http://www.processmaker.com/download-processmaker

Regards!!

Re: Try to translate to Traditional Chinese but import failu

Posted: Thu Sep 06, 2012 9:49 am
by summer
If you're interested in localizing with .po files, you should try http://poeditor.com/