Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve pluralization of translated strings #5567

Merged
merged 4 commits into from
Oct 19, 2020
Merged

Improve pluralization of translated strings #5567

merged 4 commits into from
Oct 19, 2020

Commits on Oct 15, 2020

  1. Improve pluralization of translated strings

    Switch a few strings containing numeric variables to ngettext from
    gettext, to ensure they can be properly translated. Use "num" more
    consistently as the placeholder for numeric variables in strings
    marked with ngettext, to make things easier for translators.
    rmol committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    45e9b38 View commit details
    Browse the repository at this point in the history
  2. Update translations for new plurals

    For languages with only one plural form, I've renamed the placeholders
    and removed the "fuzzy" mark from all updated translations in the .po
    files. Translators should not need to do anything for these at the
    next release.
    
    For languages with multiple plural forms:
    
    - For strings with changed placeholders that were already marked with
    ngettext, I've just updated the placeholders in the translations and
    removed the fuzzy marks. Translators should not need to do anything
    for these.
    
    - For strings newly marked with ngettext, I updated the placeholders
    but left the translations marked fuzzy, so Weblate should show them as
    needing editing, and translators will have a chance to correct the new
    plural versions.
    rmol committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    ab7530d View commit details
    Browse the repository at this point in the history
  3. Ensure REPOROOT is set in dev-deps

    In translation-test, unlike run and run-test, REPOROOT isn't used. As
    it is required a couple of times in dev-deps, ensure that it is set
    and available to all the functions there, without overriding any
    existing value in the environment.
    rmol committed Oct 15, 2020
    Configuration menu
    Copy the full SHA
    1da9bf8 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2020

  1. Configuration menu
    Copy the full SHA
    355c747 View commit details
    Browse the repository at this point in the history