Cant import my custom .po language file

I tried to add new language in Admin panel. But have a problem. For the first. There is no way to add new language without PO-file. So i decided to export current language from admin panel to my hard drive. Then i translated all this file. checked it for errors with msgfmt util.



After that i click on “Add language” button. Selected my “et.po” - [attachment=7279:et.txt] - installation is successful. My new language appers in the list of languages.

But strings are untranslated. Why?

I did all translation of all the strings, but my new language all strings are copied from site's default language.



In documentation I found no information about translation for developers. So I need help to solve my problem.

How can i import my PO file correctly?

et.txt

What is a .po file? Imports in cs-cart are usually either .sql or .csv format.

[quote name='tbirnseth' timestamp='1381734471' post='169675']

What is a .po file? Imports in cs-cart are usually either .sql or .csv format.

[/quote]



.po is gettext translation text format.

Adminustration / Languages / Manage languages:





click “Add language button”:

Thanks, learn something new every day. So they no longer provide languages in SQL format so you can just “restore” into the language_values table?

In reading your post a bit closer and looking at the code a bit, I would have to assume that you have some kind of incompatibility with your file. I.e. the variable names are not correct (match what exists) or you have some kind of syntactical error within the data itself. Have you checked your php error_log to ensure you're not throwing an error? What happens if you do just one lang var for your language to some name like “xxx”?

[quote name='noneart' timestamp='1381683490' post='169650']

But strings are untranslated. Why?

[/quote]



Hello,



Translation terms must be separated with an empty line, and another empty line must be placed at the end of the file.



For example, here's an excerpt from your translation:


#. Status for orders with failed fraud review
msgctxt "Languages"
msgid "2co_fraud_fail"
msgstr "Staatus tellimusi ei pettuse läbi"
#. Status for orders waiting for fraud review
msgctxt "Languages"
msgid "2co_fraud_wait"
msgstr "Staatus tellimuste ootab pettuse läbi"




Here's how it should be:


#. Status for orders with failed fraud review
msgctxt "Languages"
msgid "2co_fraud_fail"
msgstr "Staatus tellimusi ei pettuse läbi"

#. Status for orders waiting for fraud review
msgctxt "Languages"
msgid "2co_fraud_wait"
msgstr "Staatus tellimuste ootab pettuse läbi"




[quote post='169650']In documentation I found no information about translation for developers. So I need help to solve my problem.[/quote]



We haven't published a doc on PO translations yet, but it's in progress.



Thanks!

Good info to know. Seems like a pretty “sensitive” format. Just curious why the sql format (or CSV like the rest of the store) isn't applicable? I can see the multi-byte issues being problematic in CSV, but SQL should be fine. What advantage did this change bring?

How can I import my old (from 3.5 version)Â Â translated (sql, csv) files to 4.2 ?

I think you can just export/import the cscart_language_values table

There is a new field added from V4.0 for “original value” but I do not believe it is required for anything other than for convenience when translating many languages from the same “base” translation.

I've the same issue, is anybody know how to import custom *.po?

I've the same issue, is anybody know how to import custom *.po?

I've the same issue, is anybody know how to import custom *.po?

It is possible to do it when you create new language

http://prntscr.com/g39pae

or update current one (default .po file should be updated in this case)

http://prntscr.com/g39php