atom feed2 messages in net.sourceforge.lists.translate-develRe: [Translate-devel] csv2po
FromSent OnAttachments
Mario ŠargačJun 28, 2016 5:27 am 
Dwayne BaileyJun 28, 2016 7:43 am 
Subject:Re: [Translate-devel] csv2po
From:Dwayne Bailey (dwa@translate.org.za)
Date:Jun 28, 2016 7:43:40 am
List:net.sourceforge.lists.translate-devel

Hi Mario,

So just quickly to understand. The original is in PO format and you convert to CSV to translate?

Using the examples you gave:

1. The backconversion of 'csv2po some.csv some.po' does look like a bug 2. I could work around this by doing the following. I edited the CSV then did 'po2csv -t some.po some.csv some2.po' and it works correctly.

Let me know if that works for you.

Would love it if you could report your original error as a bug on https://github.com/translate/translate/issues/new

On 28 June 2016 at 13:27, Mario Šargač <sar@gmail.com> wrote:

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.

------------------------------------------------------------------------------ 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

-- Dwayne

*Translate* +27 12 460 1095 (work)

------------------------------------------------------------------------------ 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