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

Introduce message contexts in l10n service #3

Closed
arm1n opened this issue Jul 8, 2016 · 1 comment
Closed

Introduce message contexts in l10n service #3

arm1n opened this issue Jul 8, 2016 · 1 comment
Assignees

Comments

@arm1n
Copy link
Collaborator

arm1n commented Jul 8, 2016

In order to use same message ids we should introduce context based messages. Short example:

#: some/source/code/file.js
msgctxt "Base units"
msgid "KG"
msgstr "kg"

#: other/source/code/file.js
msgctxt "Countries"
msgid "KG"
msgstr "Kyrgyzstan"

This will not only involve l10n service, but also new template helpers as well as extending the extractor.

@arm1n arm1n self-assigned this Jul 8, 2016
@arm1n
Copy link
Collaborator Author

arm1n commented Jul 20, 2016

This implementation is currently blocked by xgettext-template not supporting necessary keyword argument format for msgctxt. As soon as there's a solution without necessity to make a fork this feature can be implemented.

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

No branches or pull requests

1 participant