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

Add context for translators #946

Open
pgiraud opened this issue Jan 13, 2017 · 0 comments
Open

Add context for translators #946

pgiraud opened this issue Jan 13, 2017 · 0 comments

Comments

@pgiraud
Copy link
Collaborator

pgiraud commented Jan 13, 2017

Here's a follow up to an issue reported on transifex. A user asked for more context on a translation string source.
Some strings to translate are really short and don't really mean anything out of context.
Using babel, it's already possible to add some comments along with translations string. They should then show up on the transifex interface.

Here's an example of how to use it:
https://github.com/pgiraud/osm-tasking-manager2/blob/8b6741340fca838e450211e6106f5d88f1d83225/osmtm/templates/task.history.mako#L77-L78

By the way, the translation mechanism should be documented somewhere for the code contributors.
See the good doc from CKan as an example.
http://docs.ckan.org/en/latest/contributing/string-i18n.html

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