From 8452de0c5a951c859116f30a383793a3fb41c0fe Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 4 Jul 2023 18:26:27 +1000 Subject: [PATCH] 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. --- rslib/i18n/gather.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rslib/i18n/gather.rs b/rslib/i18n/gather.rs index 3064e9691..a25e5813e 100644 --- a/rslib/i18n/gather.rs +++ b/rslib/i18n/gather.rs @@ -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");