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:
parent
e835922ded
commit
516abf7cfa
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue