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

Change string concatenation and plurals to facilitate localization #366

Open
pervoj opened this issue Sep 1, 2021 · 0 comments
Open

Change string concatenation and plurals to facilitate localization #366

pervoj opened this issue Sep 1, 2021 · 0 comments

Comments

@pervoj
Copy link
Contributor

pervoj commented Sep 1, 2021

Strings of the type:

  • %d Pages
  • %d of %d Pages
  • %d Entries
  • %d Total Results

and similar should rather be written using the ngettext method. This removes the hassle of figuring out whether to use singular or plural.

Strings of the type:

  • Unable to Import Library
  • Fields
  • Constraints

and similar strings containing a space should be constructed using wildcards like %s (Unable to Import Library %s). Many languages have a different word order than English. In addition, this last two strings should be written again using ngettext.

The error message in the src/Partials/TreeBuilder.vala file on line 132 should be constructed in the same way.

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant