Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Aug 6, 2024
1 parent ec142b1 commit 5eb0780
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions android/translations-converter/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ mod android;
mod gettext;
mod normalize;

use crate::gettext::MsgValue;
use crate::normalize::Normalize;
use std::{
collections::HashMap,
fs::{self, File},
io::BufReader,
path::Path,
};
use crate::gettext::MsgValue;

fn main() {
let resources_dir = Path::new("../lib/resource/src/main/res");
Expand Down Expand Up @@ -140,7 +140,7 @@ fn main() {
value: gettext::MsgString::empty().into(),
}),
)
.expect("Failed to append missing translations to message template file");
.expect("Failed to append missing translations to message template file");
}

if !missing_plurals.is_empty() {
Expand Down Expand Up @@ -190,10 +190,9 @@ fn main() {
}
}),
)
.expect("Failed to append missing plural translations to message template file");
.expect("Failed to append missing plural translations to message template file");
}


// Generate all relay locale files

let relay_template_path = locale_dir.join("relay-locations.pot");
Expand Down Expand Up @@ -249,10 +248,7 @@ fn main() {
let translations = gettext::Messages::from_file(&relay_file)
.expect("Failed to load translations for a locale");

generate_relay_translations(
translations,
destination_dir.join("relay_locations.xml"),
);
generate_relay_translations(translations, destination_dir.join("relay_locations.xml"));
}
}

Expand Down

0 comments on commit 5eb0780

Please sign in to comment.