Merge lp://staging/~kalgasnik/light-locker-settings/ngettext into lp://staging/light-locker-settings

Proposed by Andrew P.
Status: Merged
Merged at revision: 48
Proposed branch: lp://staging/~kalgasnik/light-locker-settings/ngettext
Merge into: lp://staging/light-locker-settings
Diff against target: 71 lines (+13/-27)
1 file modified
light-locker-settings/light-locker-settings.py (+13/-27)
To merge this branch: bzr merge lp://staging/~kalgasnik/light-locker-settings/ngettext
Reviewer Review Type Date Requested Status
Light Locker Settings Team Pending
Review via email: mp+209508@code.staging.launchpad.net

Description of the change

Using gettext.ngettext() instead of code like this:

if value == 1:
    print _("%d minute", value) # form 1
else:
    print _("%d minutes", value) # form 2

Most slavic languages have 3 plural forms.

This patch also replace "locale.gettext()" with "gettext.gettext()"

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches