4 translations are unable to be completed

Bug #1101280 reported by Anthony Harrington
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
transmission (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

https://translations.launchpad.net/ubuntu/raring/+source/transmission/+pots/transmission/en_GB/+translate?show=untranslated

4 translations are unable to completed because there appears to be an error in the way they were written.

e.g. Any attempt to translate this:

Downloading metadata from %1$'d %2$s (%3$d%% done)

results in the following error and rejection:

'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 1, the character '&' is not a valid conversion specifier.

Revision history for this message
Anthony Harrington (linuxchemist) wrote :

While this bug still exists in launchpad at the time of writing, i've cross-referenced with how they managed to do it on the german translation from here (e.g.):

https://translations.launchpad.net/ubuntu/raring/+source/transmission/+pots/transmission/de/297/+translate

The string to be translated here is: "Downloading metadata from %1$'d %2$s (%3$d%% done)"

and

"Downloading metadata from %1$d %2$s (%3$d%% done)" is accepted by launchpad.

In light of this, the simplest solution would be for the transmission devs to change the variable code in their original lang files a little.

Revision history for this message
Anthony Harrington (linuxchemist) wrote :

Oh i see now - of course. The "'" part literally comes from an apostrophe needed in the string.

I had a look into the original source translation files, e.g.
msgid "Downloading metadata from %1$'d peer (%2$d%% done)"

so the way around launchpad's complaining is to place an apostrophe when you see "'" and then it will appear as desired.
If you type that code in as it is, launchpad complains and hence the bug.

Should be sorted on transmission in a sec.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in transmission (Ubuntu):
status: New → Confirmed
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.