fix: restrict inno setup base language files to official translations
This commit is contained in:
1 parent
8ff33f1bbb
commit
8eb77d6348
1 file changed
+14
-9
Vendored
+14
-9
@@ -62,17 +62,22 @@ WizardStyle=modern
|
|||||||
YYC MARK:
|
YYC MARK:
|
||||||
The base messages file pairing (the official full translation that provides
|
The base messages file pairing (the official full translation that provides
|
||||||
the language identity) is derived from MetaGlot's best-effort conversion of
|
the language identity) is derived from MetaGlot's best-effort conversion of
|
||||||
the PO language tag to the conventional Inno Setup language name (lang.lang).
|
the PO language tag to the conventional Inno Setup language name (lang.lang)
|
||||||
The English source language maps to "Default" and languages unknown to
|
and its officiality (lang.is_official). Only the official translations come
|
||||||
MetaGlot convert to nothing; both fall back to "compiler:Default.isl" and
|
with an Inno Setup installation; the community provided conventional names,
|
||||||
inherit the English language identity, so pair such a language with its base
|
as well as the languages unknown to MetaGlot (which convert to nothing), are
|
||||||
file explicitly (e.g. via a "case" on "lang.name") when adding one. The
|
deliberately not used and fall back to "compiler:Default.isl", so the script
|
||||||
incremental custom messages file is named after the conventional name (or
|
compiles and the installer works with a bare Inno Setup installation. Pair
|
||||||
the PO language tag when no conventional name exists); keep it in sync with
|
such a language with its base file explicitly (e.g. via a "case" on
|
||||||
the "--isl-path" argument in CMakeLists.txt.
|
"lang.name") when adding one. The incremental custom messages file is named
|
||||||
|
after the conventional name (or the PO language tag when no conventional
|
||||||
|
name exists); keep it in sync with the "--isl-path" argument in
|
||||||
|
CMakeLists.txt.
|
||||||
{% endcomment -%}
|
{% endcomment -%}
|
||||||
{% for lang in langs -%}
|
{% for lang in langs -%}
|
||||||
{%- if lang.lang and lang.lang != 'Default' -%}
|
{%- if lang.lang == 'Default' -%}
|
||||||
|
{% assign base = 'compiler:Default.isl' -%}
|
||||||
|
{%- elsif lang.is_official -%}
|
||||||
{% assign base = 'compiler:Languages\' | append: lang.lang | append: '.isl' -%}
|
{% assign base = 'compiler:Languages\' | append: lang.lang | append: '.isl' -%}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{% assign base = 'compiler:Default.isl' -%}
|
{% assign base = 'compiler:Default.isl' -%}
|
||||||
|
|||||||
Reference in new issue
Block a user