Stop including Qt translations when EXTRA_FTL_ROOT provided

This was causing index mismatches when switching between release and
non-release builds, presumably as the build script wasn't being rerun
in that case. We could add a rerun-if-changed=RELEASE, but easier to
strip this out, as it's rare to run the checks from an external repo.
This commit is contained in:
Damien Elmes 2023-07-04 18:26:27 +10:00
parent e835922ded
commit 516abf7cfa
1 changed files with 0 additions and 5 deletions

View File

@ -26,11 +26,6 @@ pub fn get_ftl_data() -> TranslationsByLang {
if let Some(path) = extra_ftl_root() {
// Mobile client has requested its own extra translations
add_translation_root(&mut map, &path, false);
// In a debug build, also include the Qt translations so that our Python unit
// tests pass.
if std::env::var("RELEASE").is_err() {
add_folder(&mut map, &ftl_base.join("qt"), "templates");
}
} else {
// Qt core templates from this repo
add_folder(&mut map, &ftl_base.join("qt"), "templates");