diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-08-19 21:54:23 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-08-24 19:19:38 +0000 |
| commit | 86c87cd830317fc8df57f428fa6b29abf07155c3 (patch) | |
| tree | 2fc91700af960285cf97527659077603c90e5297 /android | |
| parent | 259dd6d60386f58fec9c519724c84db6c7d020cb (diff) | |
| download | mullvadvpn-86c87cd830317fc8df57f428fa6b29abf07155c3.tar.xz mullvadvpn-86c87cd830317fc8df57f428fa6b29abf07155c3.zip | |
Only append to template if needed
Diffstat (limited to 'android')
| -rw-r--r-- | android/translations-converter/src/main.rs | 24 |
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. |
