gnome/yelp: fix `xml:lang` attributes

itstool detects a language code from the mo file’s basename,
so when 26c1869a14
changed the file name to be prefixed with project name,
values like “my-project-xx” ended up in the `xml:lang` attribute
of the generated page files, instead of the expected
IETF BCP 47 language tag.

Let’s fix it by passing a locale code to itstool explicitly.
This commit is contained in:
Jan Tojnar 2022-09-27 08:47:32 +02:00 committed by Jussi Pakkanen
parent 195aae6a84
commit c8d5f93cb0
1 changed files with 1 additions and 1 deletions

View File

@ -1357,7 +1357,7 @@ class GnomeModule(ExtensionModule):
l_subdir,
state.subproject,
state.environment,
[itstool, '-m', os.path.join(l_subdir, gmo_file), '-o', '@OUTDIR@', '@INPUT@'],
[itstool, '-m', os.path.join(l_subdir, gmo_file), '--lang', l, '-o', '@OUTDIR@', '@INPUT@'],
sources_files,
sources,
extra_depends=[gmotarget],