Skip to content

[convertpottojson] Handle lines ending with "

David Edmundson requested to merge work/translation_fix into master

the .pot file has lines starting and ending in quotes we used strip(") to get rid of them.

If a string ends in ", it will appear as "" in the file, and both characters get stripped.

Instead chop the first and last characters.


Tested by importing German .po file from SVN and running the script for german. It shows only.

-        "message": "Sie können diese Funktion in den <a id=\"$1\" href=\"$2\\>Plasma-Sucheinstellungen</a> deaktivieren."
+        "message": "Sie können diese Funktion in den <a id=\"$1\" href=\"$2\">Plasma-Sucheinstellungen</a> deaktivieren."

I haven't committed that change, I'll let scripty do it

Merge request reports