-
Notifications
You must be signed in to change notification settings - Fork 33
Translation
OSR is an international community and there is a collective effort to translate the website.
There are two areas that needs works:
- marking strings to be translated in our templates.
- translate the strings.
Our HTML are rendered from django templates located in the /templates/
folders of our apps.
Here are quick links to our templates folders:
You need to mark the strings you want to be translated as follow:
- using trans template tag like that:
{% trans "string" %}
. Those shouldn't contain any template variable. - using blocktrans template tag like that:
{% blocktrans with variable=a_thing %} a long string with a {{variable}} in it {% endblocktrans %}
Be sure that i18n
tags are loaded on this template with {% load other_tags i18n %}
at the beginning of the file.
Please edit or PR such changes in our "localisation" branch. Don't worry we will proof read your edit and they won't be on production automatically.
Note: you can add comments for the translators: {% comment %}Translators: some comments helping translators{% endcomment %}
. Those comments will not appear in the html but will be available for translators.
Translation Poeditor is kindly hosting our translation here to promote free software.
Please reach OSR team on discord if you want to help us translate into any language.