Skip to content

Commit

Permalink
Rename labels
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode committed Nov 23, 2024
1 parent 5c6fec8 commit 92c6400
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/multilingual/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ fn get_labels_german() -> FileDialogLabels {
pin_folder: "📌 Ordner anheften".to_string(),
unpin_folder: "✖ Ordner loslösen".to_string(),

picked_directory: "Ausgewählter Ordner:".to_string(),
picked_file: "Ausgewählte Datei:".to_string(),
picked_items: "Ausgewählte Elemente:".to_string(),
selected_directory: "Ausgewählter Ordner:".to_string(),
selected_file: "Ausgewählte Datei:".to_string(),
selected_items: "Ausgewählte Elemente:".to_string(),
file_name: "Dateiname:".to_string(),
file_filter_all_files: "Alle Dateien".to_string(),

Expand Down
4 changes: 2 additions & 2 deletions src/config/labels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ impl Default for FileDialogLabels {
/// Creates a new object with the default english labels.
fn default() -> Self {
Self {
title_select_directory: "📁 Pick Folder".to_string(),
title_select_directory: "📁 Select Folder".to_string(),
title_select_file: "📂 Open File".to_string(),
title_select_multiple: "🗐 Pick Multiple".to_string(),
title_select_multiple: "🗐 Select Multiple".to_string(),
title_save_file: "📥 Save File".to_string(),

cancel: "Cancel".to_string(),
Expand Down
6 changes: 3 additions & 3 deletions src/file_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1938,9 +1938,9 @@ impl FileDialog {

ui.horizontal(|ui| {
match &self.mode {
DialogMode::SelectDirectory => ui.label(&self.config.labels.picked_directory),
DialogMode::SelectFile => ui.label(&self.config.labels.picked_file),
DialogMode::SelectMultiple => ui.label(&self.config.labels.picked_items),
DialogMode::SelectDirectory => ui.label(&self.config.labels.selected_directory),
DialogMode::SelectFile => ui.label(&self.config.labels.selected_file),
DialogMode::SelectMultiple => ui.label(&self.config.labels.selected_items),
DialogMode::SaveFile => ui.label(&self.config.labels.file_name),
};

Expand Down

0 comments on commit 92c6400

Please sign in to comment.