Bad string concatenation for l10n

Bug #633503 reported by Milo Casagrande
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Triaged
Low
Unassigned
ubuntuone-client-gnome
Confirmed
Medium
Ubuntu One Client Engineering team
ubuntuone-client-gnome (Ubuntu)
Confirmed
Medium
Ubuntu One Client Engineering team

Bug Description

Binary package hint: ubuntuone-client

While translating ubuntuone-client for Mavercik, I found a strange string:

Published at

Looking at the code, looks like that string is constructed appending different strings together. This is the part of the code:

question = g_string_append (question, "\t- ");
question = g_string_append (question, key);
question = g_string_append (question, _(" (Published at "));
question = g_string_append (question, value);
question = g_string_append (question, ")\n");

I'm not a Glib expert, but isn't it possible to use g_string_append_printf() or g_string_append_vprintf() to construct at least the "Published at" part? There could be languages that need to change the position of "value" to render the string in their own language.

Also, if possible, I would rather remove "padding" white spaces from a translatable string: by mistake somebody could take them out from the translation.

Thanks.

David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Low
Roman Yepishev (rye)
Changed in ubuntuone-client:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
Changed in ubuntuone-client (Ubuntu):
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
importance: Undecided → Medium
status: New → Confirmed
tags: added: desktop+ l10n nautilus
Gabor Kelemen (kelemeng)
affects: ubuntuone-client (Ubuntu) → ubuntuone-client-gnome (Ubuntu)
affects: ubuntuone-client → ubuntuone-client-gnome
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.