atom feed2 messages in net.sourceforge.lists.translate-devel[Translate-devel] csv2po
FromSent OnAttachments
Mario ŠargačJun 28, 2016 5:27 am 
Dwayne BaileyJun 28, 2016 7:43 am 
Subject:[Translate-devel] csv2po
From:Mario Šargač (sar@gmail.com)
Date:Jun 28, 2016 5:27:05 am
List:net.sourceforge.lists.translate-devel

Hi List!

I am facing an issue, maybe someone can help me with. I convert PO file to CSV following the tutorial at http://docs.translatehouse.org/projects/translate-toolkit/en/latest/guides/using_csv2po.html

Converting "po2csv" goes well, but at the "csv2po" I got .po file with originally separated locations merged into one line and with url-encoded forward slashes. It seems to occur only at multiple locations, and not at single location paths, as you can see from example below.

========================== Part from output (.po) file, generated from CSV

------------------------------------- #: path/to/File.php:55 msgid "Enter string." msgstr "Vpišite znak."

#: path%2Fto%2FFile.php%3A59+path%2Fto%2FFile2.php%3A22+path%2Fto%2FFile2.php%3A188+path%2Fto%2FFile3.php%3A301 msgid "Invalid string." msgstr "" "Nepravilen znak. Preverite da v znaku ni presledkov in ostalih " "nedovoljenih znakov in poskusite ponovno."

-------------------------------------

========================== Same part from original (.po) file

------------------------------------- #: acc/controllers/Auth.php:55 msgid "Enter string." msgstr "Vpišite string."

#: path/to/File.php:59 path/to/File2.php:22 #: path/to/File2.php:188 path/to/File3.php:301 msgid "Invalid email." msgstr "" "Nepravilen znak. Preverite da v znaku ni presledkov in ostalih " "nedovoljenih znakov in poskusite ponovno."

-------------------------------------

I am using Poedit to manage .po files. I would like to know how to preserve forward slashes and newlines at the csv2po conversion. Any help would be appreciated.

Best regards, Mario

------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape