build/windows: Clarify meson.build file of Installer lang files

This commit is contained in:
Bruno Lopes 2025-08-17 18:33:46 -03:00
parent 31a267a8f1
commit 42e72b29c1
No known key found for this signature in database
2 changed files with 8 additions and 5 deletions

View file

@ -1,3 +1,5 @@
#Here we generate rules for XML translation extraction by 'i18n.merge_file' on the parent lang/meson.build)
xgettext = find_program('xgettext', version: '>=0.23', required: false)
its_conf = configuration_data()

View file

@ -1,6 +1,6 @@
# 1. First we use the XML file to be able to do gettext translation
# (The 'its' subdir contains rules for XML translation extraction by 'i18n.merge_file')
subdir('its')
# First we use the XML file to be able to do gettext translation
ms_installer_config_xml = i18n.merge_file(
input : 'setup.isl.xml.in',
output: '@BASENAME@',
@ -9,6 +9,8 @@ ms_installer_config_xml = i18n.merge_file(
install: false,
)
# 2. Then, we generate the .isl file for each language using some xsltproc magic
languages = [
{ 'code': 'be', },
{ 'code': 'bg', },
@ -55,13 +57,11 @@ languages = [
{ 'code': 'zh_TW', },
]
# Then, we generate the .isl file for each language using some xsltproc magic
foreach language : languages
lang_code = language.get('code')
# Since gettext 0.23, outputted xml:lang by msgfmt conforms to W3C
# standard. Try both with underscore and hyphens.
web_lang_code = lang_code.replace('_', '-')
if 'default' in language
lang_check = 'value[not(@xml:lang)]'
else
@ -104,7 +104,8 @@ foreach language : languages
endif
endforeach
# Generate lang lists for Inno
# 3. Generate lang lists for Inno
gen_list = find_program('list-installer-langs.py')
custom_target('base_po-msg',