Plural form needed for "Quiesce %s sequence took %s%d second%s"

Bug #1541784 reported by GunChleoc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart
New
Undecided
Unassigned

Bug Description

Please fetch the following string with ngettext to prevent grammar errors in translations:

    Quiesce %s sequence took %s%d second%s
    init/quiesce.c:313

The hard coded English plural "s" at the end will cause even more grammar errors!

e.g. for my language

1 second = 1 diog
2 seconds = 2 dhiog
3 seconds = 3 diogan
20 seconds = 20 diog

So, these lines:

    nih_info (_("Quiesce %s sequence took %s%d second%s"),
   quiesce_reason,
   ! (int)diff ? "<" : "",
   (int)diff ? (int)diff : 1,
   diff <= 1 ? "" : "s");

Should look something like this:

    nih_info (ngettext("Quiesce '%s' sequence took %d second", "Quiesce '%s' sequence took %d seconds"), diff),
   quiesce_reason, diff);

Tags: i18n
Revision history for this message
Steve Langasek (vorlon) wrote :

Your analysis is entirely correct. However, as Ubuntu has migrated from upstart to systemd in recent versions, it is unlikely that this bug will see any action.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Thanks for your answer!

I started translating this package because it might be relevant for the phone translations.

https://translations.launchpad.net/ubuntu-rtm/15.04/+lang/gd

Does this mean that the package will be removed from Ubuntu Phone as well? If so, I'd prefer concentrating on translating something else - here are only active 2 localizers for my language ;)

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [Bug 1541784] Re: Plural form needed for "Quiesce %s sequence took %s%d second%s"

On Thu, Feb 04, 2016 at 04:55:39PM -0000, GunChleoc wrote:
> Thanks for your answer!

> I started translating this package because it might be relevant for the
> phone translations.

> https://translations.launchpad.net/ubuntu-rtm/15.04/+lang/gd

> Does this mean that the package will be removed from Ubuntu Phone as
> well? If so, I'd prefer concentrating on translating something else -
> here are only active 2 localizers for my language ;)

There are no plans to remove it from the phone in the near future. However,
no upstart messages should ever appear in the user-facing UI on the phone,
so this should be a low priority for translation.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Thanks for the info!

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.