Bug #16523

Translation Server: Clearify languages in weblate-settings

Added by hefee 2019-03-04 13:46:49 . Updated 2019-06-27 17:17:06 .

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Target version:
Start date:
2019-03-04
Due date:
% Done:

0%

Feature Branch:
Type of work:
Discuss
Blueprint:

Starter:
Affected tool:
Translation Platform
Deliverable for:
309

Description

In order be able to enable/disable languages easily, we should have one place to define the supported languages.
As master reference I want to use manifests/weblate/languages.pp (in puppet-tails).

But the languages are not used for the templates/weblate/settings.py.erb (puppet-tails). Even worse the LANGUAGES list differs a lot from the languages in languages.pp. Or is the LANGUAGES list in weblate settings the list of supported translations for the Weblate interface?

https://translate.tails.boum.org/languages/ in contrast output the list that we have in manifests/weblate/languages.pp.


Subtasks


History

#1 Updated by emmapeel 2019-03-05 02:29:34

The list at templates/weblate/settings.py.erb does indeed mark the languages for the translation interface. Translators can choose the interface language on their profile.

This is the procedure for adding a new language to translate in weblate:

https://docs.weblate.org/en/weblate-2.19.1/admin/quick.html#adding-translation

But that will need the .pot files to be present, and our setup does not allow that.

So what I have done previously is:

- change the configuration for ikiwiki, adding a new language at ikiwiki.setup and ikiwiki-cgi.setup

- build the wiki

- commit the new language files
- run load_po in weblate shell

#2 Updated by emmapeel 2019-03-05 02:30:35

  • Status changed from Confirmed to Resolved

#3 Updated by intrigeri 2019-06-27 17:17:06

  • Assignee deleted (emmapeel)