Skip to content

Translation

climu edited this page Jan 16, 2019 · 5 revisions

OSR is an international community and there is a collective effort to translate the website.

There are two areas that needs works:

  1. marking strings to be translated in our templates.
  2. translate the strings.

1. Marking 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.

2. Translate the strings:

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.

Clone this wiki locally