-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with CSV2PO conversion #11
Comments
@norbou2 Hi 🙂 Could you attach a minimal file that causes the error? Ideally as small as possible, only with one or two translations. |
Hi Marek, But let's focus on this record: This record at row 5962 has to be deleted to complete the conversion: #: includes/class-mla-list-table.php:1822 CSV: After deletion line on CSV is conversion completed. And.. woila... when I open original and reparsed po file, both has 1243 strings and all of them are translated :-) Ok, probably I deleted something wrong during first processing, even though I've done it twice. Let's compare PO files in differences. Records containging msgctxt value are converted well: The only difference id merging of multiple string with line breaks into one string, what is nice feature I think! But I had noticed, that also this delcaration has changed: So the only question is about msgid "All" now. When I deleted all other records, the problem is not reproducible and the conversion works without any error... |
@norbou2 I think the problem was that CSV files did not include Depending on how you used
|
Hi Marek, Thank you very much! |
Hi Marek,
at first big thanks for this lifehack! It works nice and it is my first Node.JS app, whch I have ever run :-)
In most cases recoding PO works well, I had some problem with conversion translated CSV of the MLA plugin back to PO.
https://translate.wordpress.org/projects/wp-plugins/media-library-assistant/
Probably there is an error on the PO, but Poedit validate it as without problems.
77 IDs translation was not decoded from CSV to PO, for example [list_table_column] Slug.
They all had in common that they had a named component before the string itself, or plural and singular was defined. The problem also occurred if I did not delete the MSGID "All".
https://ibb.co/drJ0BbG
With best regards,
Jiri
The text was updated successfully, but these errors were encountered: