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 usage of placeholder in translations #9546

Closed
4 tasks done
sgiehl opened this issue Jan 18, 2016 · 0 comments
Closed
4 tasks done

Improve usage of placeholder in translations #9546

sgiehl opened this issue Jan 18, 2016 · 0 comments
Assignees
Labels
answered For when a question was asked and we referred to forum or answered it. c: i18n For issues around internationalisation and localisation. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone

Comments

@sgiehl
Copy link
Member

sgiehl commented Jan 18, 2016

We are currently using %s as placeholder in many translations strings.
For all translations that contain more than one placeholder we should use numbered placeholders (%1$s, %2$, ...) instead.
That gives the possibility to change the usage order of the placeholders, which is important for some languages to translate proper.

TODOs to improve usage:

@sgiehl sgiehl added Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change. c: i18n For issues around internationalisation and localisation. labels Jan 18, 2016
@sgiehl sgiehl self-assigned this Jan 18, 2016
sgiehl added a commit to matomo-org/developer-documentation that referenced this issue Jan 19, 2016
@sgiehl sgiehl added this to the 2.16.1 milestone Feb 6, 2016
@sgiehl sgiehl modified the milestones: 2.16.1, 2.16.x Feb 7, 2016
@mattab mattab added answered For when a question was asked and we referred to forum or answered it. and removed answered For when a question was asked and we referred to forum or answered it. labels Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. c: i18n For issues around internationalisation and localisation. Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

2 participants