GNOME Bugzilla – Bug 744936
Strange Unicode characters in po file for "Configures nmcli" parameters
Last modified: 2015-06-11 08:08:32 UTC
I'm doing an update of the Swedish translation for NetworkManager, and I noticed that the original looks like really strange in the part that goes: " 0 = normal\n" " 1 = [30mblack[0m\n" " 2 = [31mred[0m\n" " 3 = [32mgreen[0m\n" " 4 = [33myellow[0m\n" " 5 = [34mblue[0m\n" " 6 = [35mmagenta[0m\n" " 7 = [36mcyan[0m\n" " 8 = [37mwhite[0m\n" "\n" There's some Unicode? characters surrounding the clammer [ - which seems at bit strange. I didn't use these characters in the translation, please have a look if it's correct that they should be there in the original.
Confirming, this is in clients/cli/connections.c:6598 If that is intended there should be at least https://wiki.gnome.org/TranslationProject/DevGuidelines/Use%20comments
The characters are terminal color sequences to make text colorful. I have removed the text out of the translation strings, because we now except the color names as arguments (and thus they are not translated). 631f5b1 cli: use color names when TAB-completing "nmcli prompt-color" 3641ddb cli: take color name arguments for "nmcli prompt-color" in editor (bgo #744936)