GNOME Bugzilla – Bug 723623
Changing the order of placeholders causes msgft error
Last modified: 2014-02-04 18:36:06 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.
Thanks, that po file upload service is not under our control, reassigning.
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
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.
Glad to hear it works for you now.