Commit 3b83d5a2 authored by Claude Paroz's avatar Claude Paroz

Set explicit doc language to itstool

This way, common text like About or See also will be translated.
parent fdc7860c
......@@ -760,6 +760,11 @@ class VertimusTest(TeamsAndRolesTests):
response, '/HTML/%d/index.html' %, fetch_redirect_response=False
self.assertEqual(action.build_url, '/HTML/%d/index.html' %
index_file = Path(
settings.SCRATCHDIR, 'HTML', str(, 'index.html'
with'r') as ifile:
self.assertIn('<h2><span class="title">À propos</span></h2>',
def test_mysql(self):
# Copied from test_action_undo() with minor changes
......@@ -320,7 +320,8 @@ class BuildTranslatedDocsView(PoFileActionBase):
sources = doc_format.source_files()
result =[
'itstool', '-m',, '-o', str(build_dir), '--strict',
'itstool', '-m',, '-l', state.language.locale,
'-o', str(build_dir), '--strict',
*[str(s) for s in sources],
], cwd=str(doc_format.vcs_path), stderr=subprocess.PIPE)
if result.returncode != 0:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment