← Back to team overview

ubuntu-translations-coordinators team mailing list archive

[Bug 1756547] Re: LP refuses to import plural strings where e.g. msgstr[0] entries in PO file miss %d

 

Launchpad intentionally imports even obsolete messages, although they're
tagged internally as obsolete and filtered out for various purposes.  I
think this is so that they can be used as suggestions in some cases (for
example, a similar message might still be used in another context).  For
that sort of purpose it can still be useful to know that the messages
don't parse correctly, because they couldn't be used directly as
suggestions without fixing the mistakes.

This is likely part of some work that was never completed, e.g.
https://bugs.launchpad.net/launchpad/+bug/281165 and
https://blueprints.launchpad.net/launchpad/+spec/rosetta-fuzzy-merge.

(Note that I'm reverse-engineering this from the code and from my
general understanding of translations, rather than with direct
information from the people who wrote the code.)

I can see that it might be useful to at least exclude errors about
obsolete messages like this from translation import failure emails.  If
you agree, could you file a separate bug about that?

** Changed in: ubuntu-translations
       Status: Triaged => Fix Released

** Changed in: gettext (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Translations Coordinators, which is subscribed to Ubuntu Translations.
Matching subscriptions: Ubuntu Translations bug mail
https://bugs.launchpad.net/bugs/1756547

Title:
  LP refuses to import plural strings where e.g. msgstr[0] entries in PO
  file miss %d

Status in Launchpad itself:
  Fix Released
Status in Ubuntu Translations:
  Fix Released
Status in gettext package in Ubuntu:
  Fix Released
Status in gnome-shell package in Ubuntu:
  Fix Committed

Bug description:
  Some strings of GNOME Shell are untranslated in the Czech translation
  on Ubuntu 18.04 although they are translated upstream and when I try
  to manually translate them on launchpad, I get this error: "number of
  format specifications in 'msgid_plural' and 'msgstr[0]' does not
  match".

  The bad strings are:
  %d minute ago
  %d minutes ago

  %d hour ago
  %d hours ago

  %d week ago
  %d weeks ago

  %d month ago
  %d months ago

  %d year ago
  %d years ago

  They seem to be correct, but they are not accepted for some reason.

To manage notifications about this bug go to:
https://bugs.launchpad.net/launchpad/+bug/1756547/+subscriptions



References