Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

New FTL migration: General pane (XUL portion)

8 views
Skip to first unread message

Francesco Lodolo [:flod]

unread,
Feb 28, 2018, 1:52:21 PM2/28/18
to Mozilla l10n Mailing List
Hi,
this afternoon we completed our largest migration yet (over 90 strings),
covering most of the XUL part for the General pane in preferences.

As usual, please double check that everything looks good while using
tomorrow's Nightly, and let us know if you spot anything out of the
ordinary in the product or in Pontoon.

This is also the first migration including plural forms, and I'd like to
point one specific string.
https://hg.mozilla.org/l10n/gecko-strings/file/7e49a2585f8a/browser/browser/preferences/preferences.ftl#l104

use-current-pages =
    .label =
        { $tabCount ->
            [1] Use Current Page
           *[other] Use Current Pages
        }
    .accesskey = C

This message has two variants for all languages:
* [1] is used only when there is exactly 1 tab selected. Notice that
it's not equivalent to [one] for CLDR, which is also used for other
numbers, depending on the language.
* [other] is used when there are multiple tabs selected, and it's the
default (indicated by *), meaning that any number other than 1 will use
this form.

Although this looks like a message with regular plural categories, we
only differentiate a variant for a particular number of pages (1),
rather than providing variants for each plural category.

You're free to change your translation, thanks to the flexibility and
asymmetricity introduced by Fluent. Do you need to expose the number in
your message and treat it like a standard plural form? You can[§]:

use-current-pages =
    .label =
        { $tabCount ->
            [one] Use { $tabCount } Page
           *[other] Use { $tabCount } Pages
        }
    .accesskey = C

Do you only need one form? Again, you can simplify it into:

use-current-pages =
    .label = Use { $tabCount } Pages
    .accesskey = C

or

use-current-pages =
    .label = Use Current Pages
    .accesskey = C

Please make sure to familiarize yourself with both Pontoon's UI and
Fluent syntax
https://mozilla-l10n.github.io/localizer-documentation/tools/pontoon/ui.html#fluent---ftl-files
https://mozilla-l10n.github.io/localizer-documentation/tools/fluent/basic_syntax.html#selectors-and-plurals

Francesco

§ Notice the difference between [1] and [one]. [1] means exactly the
number 1. [one] is a plural category named "one", but depending on the
language it may be used for more numbers than just 1, like in case of
Bosnian -
https://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html#bs
- where it will be used also for 21, 31 etc. If in doubt, consult the
link for your language.
0 new messages