After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744936 - Strange Unicode characters in po file for "Configures nmcli" parameters
Strange Unicode characters in po file for "Configures nmcli" parameters
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Translations
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-02-22 08:10 UTC by Josef Andersson
Modified: 2015-06-11 08:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Josef Andersson 2015-02-22 08:10:14 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.
Comment 1 André Klapper 2015-02-22 11:50:54 UTC
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
Comment 2 Jiri Klimes 2015-06-11 08:08:32 UTC
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)