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 723623 - Changing the order of placeholders causes msgft error
Changing the order of placeholders causes msgft error
Status: RESOLVED INVALID
Product: l10n
Classification: Infrastructure
Component: other
unspecified
Other Windows
: Normal normal
: ---
Assigned To: GNOME i18n team
Christian Rose
Depends on:
Blocks:
 
 
Reported: 2014-02-04 17:32 UTC by Michael Bauer
Modified: 2014-02-04 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Bauer 2014-02-04 17:32:55 UTC
I'm working on the Gaelic localization of the GIMP and I've run into the problem of having to re-order the placeholders in strings with multiple placeholders. I cannot find a format the GNOME will accept, I always get an msgft error when uploading via https://l10n.gnome.org/vertimus/gimp/master/po/gd

I queried on the l10 list if I was using the right format, for example for the string

Image '%s' (%d) has precision '%s', but an image of precision '%s' is expected

And was told that the format I am using is correct:
Tha a' phongalachd \"%3$s\" aig an dealbh \"%1$s\" (%2$d) ach tha dùil ris a' phongalachd \"%4$s\"

I cannot commit to git directly so that's not an option.
Comment 1 Michael Natterer 2014-02-04 17:40:40 UTC
Thanks, that po file upload service is not under our control, reassigning.
Comment 2 André Klapper 2014-02-04 18:03:39 UTC
Did you mean msgfmt instead of msgft? 
And what is the full and exact msgfmt error? 
Can you reproduce locally?

I wonder if the number is per-format (as you use %2$d though there is only one %d anyway in that string).

This might welcome documenting in https://wiki.gnome.org/TranslationProject/LocalisationGuide#B._Some_C-format_strings_to_leave_alone_.2BIBQ_or_to_re-order
Comment 3 Michael Bauer 2014-02-04 18:20:37 UTC
Yes, sorry, msgfmt.

I'm sitting here totally perplexed... I re-inserted the string to recreate the error and uploaded it and it went through. I then did 2 more to triple-check and they went through too. 

As regards the %2$d, that's what was suggested to me on the GIMP list.

I guess I can close this now... really sorry. It failed dozens of times before.
Comment 4 André Klapper 2014-02-04 18:36:06 UTC
Glad to hear it works for you now.