Skip to content

Commit

Permalink
add transifex url
Browse files Browse the repository at this point in the history
  • Loading branch information
shevernitskiy committed Mar 11, 2024
1 parent 73e7c26 commit 502b356
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Binary file added assets/transifex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"Unable to update dictionary": "Unable to update dictionary",
"Delete localization files": "Delete localization files",
"Delete all localization files?": "Delete all localization files?",
"Localization files successfully deleted": "Localization files successfully deleted"
"Localization files successfully deleted": "Localization files successfully deleted",
"Help with translation": "Help with translation"
}
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ impl eframe::App for App {
ui.horizontal_centered(|ui| {
ui.add(egui::Image::new(GITHUB_ICON.to_owned()).max_height(15.).max_width(15.));
ui.hyperlink_to(t!("Report bug"), URL_BUGS);
ui.add(egui::Image::new(TRANSIFEX_ICON.to_owned()).max_height(15.).max_width(15.));
ui.hyperlink_to(t!("Help with translation"), URL_TRANSIFEX);
ui.label(format!("v{VERSION}"));
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
egui::ComboBox::from_id_source("locale").selected_text(&self.ui_locale).width(50.).show_ui(ui, |ui| {
Expand Down
4 changes: 4 additions & 0 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");

pub const GITHUB_ICON: eframe::egui::widgets::ImageSource<'static> =
eframe::egui::include_image!("../assets/github.png");
pub const TRANSIFEX_ICON: eframe::egui::widgets::ImageSource<'static> =
eframe::egui::include_image!("../assets/transifex.png");
pub const APP_ICON: &'static [u8; 1980] = include_bytes!("../assets/df.png");
pub const ORIGINAL_FONT: &'static [u8; 1568] = include_bytes!("../assets/original_font.png");

Expand All @@ -10,6 +12,8 @@ pub const PATH_CACHE_FILE: &'static str = "./dfint-installer.cache";
pub const URL_HOOK_MANIFEST: &'static str = "https://dfint.github.io/update-data/metadata/hook.json";
pub const URL_DICT_MANIFEST: &'static str = "https://dfint.github.io/update-data/metadata/dict.json";
pub const URL_BUGS: &'static str = "https://github.com/dfint/installer/issues";
pub const URL_TRANSIFEX: &'static str =
"https://explore.transifex.com/dwarf-fortress-translation/dwarf-fortress-steam/";

pub const PATH_DATA: &'static str = "dfint-data";
pub const PATH_CONFIG: &'static str = "dfint-data/config.toml";
Expand Down

0 comments on commit 502b356

Please sign in to comment.