mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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
1 changed files with 0 additions and 5 deletions
|
@ -26,11 +26,6 @@ pub fn get_ftl_data() -> TranslationsByLang {
|
||||||
if let Some(path) = extra_ftl_root() {
|
if let Some(path) = extra_ftl_root() {
|
||||||
// Mobile client has requested its own extra translations
|
// Mobile client has requested its own extra translations
|
||||||
add_translation_root(&mut map, &path, false);
|
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 {
|
} else {
|
||||||
// Qt core templates from this repo
|
// Qt core templates from this repo
|
||||||
add_folder(&mut map, &ftl_base.join("qt"), "templates");
|
add_folder(&mut map, &ftl_base.join("qt"), "templates");
|
||||||
|
|
Loading…
Reference in a new issue