Internationalize ShowNoteClientOptions labels
Changelog-Fixed: Internationalize ShowNoteClientOptions labels Signed-off-by: Terry Yiu <git@tyiu.xyz>
This commit is contained in:
@@ -79,6 +79,9 @@ Banner_52ef = Banner
|
|||||||
# Beta version label
|
# Beta version label
|
||||||
BETA_8e5d = BETA
|
BETA_8e5d = BETA
|
||||||
|
|
||||||
|
# Option in settings section to show the source client label at the bottom of the note
|
||||||
|
Bottom_33c8 = Bottom
|
||||||
|
|
||||||
# Broadcast the note to all connected relays
|
# Broadcast the note to all connected relays
|
||||||
Broadcast_fe43 = Broadcast
|
Broadcast_fe43 = Broadcast
|
||||||
|
|
||||||
@@ -241,6 +244,9 @@ Find_User_bd12 = Find User
|
|||||||
# Title for hashtags column
|
# Title for hashtags column
|
||||||
Hashtags_f8e0 = Hashtags
|
Hashtags_f8e0 = Hashtags
|
||||||
|
|
||||||
|
# Option in settings section to hide the source client label in note display
|
||||||
|
Hide_281d = Hide
|
||||||
|
|
||||||
# Title for Home column
|
# Title for Home column
|
||||||
Home_8c19 = Home
|
Home_8c19 = Home
|
||||||
|
|
||||||
@@ -535,6 +541,9 @@ Thread_0f20 = Thread
|
|||||||
# Link text for thread references
|
# Link text for thread references
|
||||||
thread_ad1f = thread
|
thread_ad1f = thread
|
||||||
|
|
||||||
|
# Option in settings section to show the source client label at the top of the note
|
||||||
|
Top_6aeb = Top
|
||||||
|
|
||||||
# Title for universe column
|
# Title for universe column
|
||||||
Universe_e01e = Universe
|
Universe_e01e = Universe
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,9 @@ Banner_52ef = {"["}Bàññér{"]"}
|
|||||||
# Beta version label
|
# Beta version label
|
||||||
BETA_8e5d = {"["}BÉTÀ{"]"}
|
BETA_8e5d = {"["}BÉTÀ{"]"}
|
||||||
|
|
||||||
|
# Option in settings section to show the source client label at the bottom of the note
|
||||||
|
Bottom_33c8 = {"["}Bóttóm{"]"}
|
||||||
|
|
||||||
# Broadcast the note to all connected relays
|
# Broadcast the note to all connected relays
|
||||||
Broadcast_fe43 = {"["}Bróàdçàst{"]"}
|
Broadcast_fe43 = {"["}Bróàdçàst{"]"}
|
||||||
|
|
||||||
@@ -241,6 +244,9 @@ Find_User_bd12 = {"["}Fíñd Úsér{"]"}
|
|||||||
# Title for hashtags column
|
# Title for hashtags column
|
||||||
Hashtags_f8e0 = {"["}Hàshtàgs{"]"}
|
Hashtags_f8e0 = {"["}Hàshtàgs{"]"}
|
||||||
|
|
||||||
|
# Option in settings section to hide the source client label in note display
|
||||||
|
Hide_281d = {"["}Hídé{"]"}
|
||||||
|
|
||||||
# Title for Home column
|
# Title for Home column
|
||||||
Home_8c19 = {"["}Hómé{"]"}
|
Home_8c19 = {"["}Hómé{"]"}
|
||||||
|
|
||||||
@@ -535,6 +541,9 @@ Thread_0f20 = {"["}Thréàd{"]"}
|
|||||||
# Link text for thread references
|
# Link text for thread references
|
||||||
thread_ad1f = {"["}thréàd{"]"}
|
thread_ad1f = {"["}thréàd{"]"}
|
||||||
|
|
||||||
|
# Option in settings section to show the source client label at the top of the note
|
||||||
|
Top_6aeb = {"["}Tóp{"]"}
|
||||||
|
|
||||||
# Title for universe column
|
# Title for universe column
|
||||||
Universe_e01e = {"["}Úñívérsé{"]"}
|
Universe_e01e = {"["}Úñívérsé{"]"}
|
||||||
|
|
||||||
|
|||||||
@@ -115,6 +115,27 @@ impl<'a> SettingsView<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the localized label for ShowNoteClientOptions
|
||||||
|
fn get_show_note_client_label(&mut self, option: ShowNoteClientOptions) -> String {
|
||||||
|
match option {
|
||||||
|
ShowNoteClientOptions::Hide => tr!(
|
||||||
|
self.i18n,
|
||||||
|
"Hide",
|
||||||
|
"Option in settings section to hide the source client label in note display"
|
||||||
|
),
|
||||||
|
ShowNoteClientOptions::Top => tr!(
|
||||||
|
self.i18n,
|
||||||
|
"Top",
|
||||||
|
"Option in settings section to show the source client label at the top of the note"
|
||||||
|
),
|
||||||
|
ShowNoteClientOptions::Bottom => tr!(
|
||||||
|
self.i18n,
|
||||||
|
"Bottom",
|
||||||
|
"Option in settings section to show the source client label at the bottom of the note"
|
||||||
|
),
|
||||||
|
}.to_string()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn ui(&mut self, ui: &mut egui::Ui) -> Option<SettingsAction> {
|
pub fn ui(&mut self, ui: &mut egui::Ui) -> Option<SettingsAction> {
|
||||||
let id = ui.id();
|
let id = ui.id();
|
||||||
let mut action = None;
|
let mut action = None;
|
||||||
@@ -402,7 +423,7 @@ impl<'a> SettingsView<'a> {
|
|||||||
ShowNoteClientOptions::Top,
|
ShowNoteClientOptions::Top,
|
||||||
ShowNoteClientOptions::Bottom,
|
ShowNoteClientOptions::Bottom,
|
||||||
] {
|
] {
|
||||||
let label = option.clone().to_string();
|
let label = self.get_show_note_client_label(option);
|
||||||
|
|
||||||
if ui
|
if ui
|
||||||
.selectable_value(
|
.selectable_value(
|
||||||
|
|||||||
Reference in New Issue
Block a user