summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-08-19 21:54:23 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-08-24 19:19:38 +0000
commit86c87cd830317fc8df57f428fa6b29abf07155c3 (patch)
tree2fc91700af960285cf97527659077603c90e5297
parent259dd6d60386f58fec9c519724c84db6c7d020cb (diff)
downloadmullvadvpn-86c87cd830317fc8df57f428fa6b29abf07155c3.tar.xz
mullvadvpn-86c87cd830317fc8df57f428fa6b29abf07155c3.zip
Only append to template if needed
-rw-r--r--android/translations-converter/src/main.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/android/translations-converter/src/main.rs b/android/translations-converter/src/main.rs
index 5b1e3f0d66..c413d09cae 100644
--- a/android/translations-converter/src/main.rs
+++ b/android/translations-converter/src/main.rs
@@ -96,19 +96,19 @@ fn main() {
if !missing_translations.is_empty() {
println!("Appending missing translations to template file:");
- }
- gettext::append_to_template(
- locale_dir.join("messages.pot"),
- missing_translations
- .into_iter()
- .inspect(|(missing_translation, id)| println!(" {}: {}", id, missing_translation))
- .map(|(id, _)| gettext::MsgEntry {
- id,
- value: String::new(),
- }),
- )
- .expect("Failed to append missing translations to message template file");
+ gettext::append_to_template(
+ locale_dir.join("messages.pot"),
+ missing_translations
+ .into_iter()
+ .inspect(|(missing_translation, id)| println!(" {}: {}", id, missing_translation))
+ .map(|(id, _)| gettext::MsgEntry {
+ id,
+ value: String::new(),
+ }),
+ )
+ .expect("Failed to append missing translations to message template file");
+ }
}
/// Determines the localized value resources directory name based on a locale specification.