commit fa13884908dc99fa80840cc694d85b63a3dea2db
parent f8ae0825c49e58f9d94f710c4776805e7637c789
Author: Terry Yiu <git@tyiu.xyz>
Date: Fri, 1 Aug 2025 13:38:09 -0400
Fix localization issues and export strings for translation
Changelog-Fixed: Fixed localization issues
Signed-off-by: Terry Yiu <git@tyiu.xyz>
Diffstat:
10 files changed, 55 insertions(+), 24 deletions(-)
diff --git a/assets/translations/en-US/main.ftl b/assets/translations/en-US/main.ftl
@@ -241,6 +241,9 @@ Enter_your_public_key__npub___nostr_address__e_g___address____or_private_key__ns
# Label for find user button
Find_User_bd12 = Find User
+# Label for font size, Appearance settings section
+Font_size_dd73 = Font size:
+
# Title for hashtags column
Hashtags_f8e0 = Hashtags
@@ -352,6 +355,9 @@ Notifications_ef56 = Notifications
# Relative time for very recent events (less than 3 seconds)
now_2181 = now
+# Setting to turn on sorting replies so that the newest are shown first
+On_f412 = On
+
# Button label to open email client
Open_Email_25e9 = Open Email
@@ -430,6 +436,9 @@ Repost_this_note_8e56 = Repost this note
# Label for reposted notes
Reposted_61c8 = Reposted
+# Label for reset note body font size, Appearance settings section
+Reset_4e60 = Reset
+
# Label for reset zoom level, Appearance settings section
Reset_62d4 = Reset
@@ -469,9 +478,6 @@ Send_1ea4 = Send
# Column title for app settings
Settings_7a4f = Settings
-# Label for Show source client, others settings section
-Show_source_client_9e31 = Show source client
-
# Description for last note per user column
Show_the_last_note_for_each_user_from_a_list_50e7 = Show the last note for each user from a list
@@ -484,6 +490,12 @@ Someone_else_s_Notes_7e5f = Someone else's Notes
# Title for someone else's notifications column
Someone_else_s_Notifications_82e6 = Someone else's Notifications
+# Label for Sort replies newest first, others settings section
+Sort_replies_newest_first_b6c3 = Sort replies newest first:
+
+# Label for Source client, others settings section
+Source_client_fb2b = Source client:
+
# Description for contact list column
Source_the_last_note_for_each_user_in_your_contact_list_e157 = Source the last note for each user in your contact list
@@ -520,6 +532,9 @@ Subscribe_to_someone_else_s_notes_d1e9 = Subscribe to someone else's notes
# Column title for subscribing to individual user
Subscribe_to_someone_s_notes_b3c8 = Subscribe to someone's notes
+# Support email address
+Support_email_44d9 = Support email:
+
# Hover text for dark mode toggle button
Switch_to_dark_mode_4dec = Switch to dark mode
@@ -560,7 +575,7 @@ username___at___domain___will_be_used_for_identification_a4fd = "{$username}" at
Username_daa7 = Username
# Label for view folder button, Storage settings section
-View_folder_9742 = View folder:
+View_folder_9742 = View folder
# Column title for wallet management
Wallet_5e50 = Wallet
diff --git a/assets/translations/en-XA/main.ftl b/assets/translations/en-XA/main.ftl
@@ -241,6 +241,9 @@ Enter_your_public_key__npub___nostr_address__e_g___address____or_private_key__ns
# Label for find user button
Find_User_bd12 = {"["}Fíñd Úsér{"]"}
+# Label for font size, Appearance settings section
+Font_size_dd73 = {"["}Fóñt sízé:{"]"}
+
# Title for hashtags column
Hashtags_f8e0 = {"["}Hàshtàgs{"]"}
@@ -352,6 +355,9 @@ Notifications_ef56 = {"["}Ñótífíçàtíóñs{"]"}
# Relative time for very recent events (less than 3 seconds)
now_2181 = {"["}ñów{"]"}
+# Setting to turn on sorting replies so that the newest are shown first
+On_f412 = {"["}Óñ{"]"}
+
# Button label to open email client
Open_Email_25e9 = {"["}Ópéñ Émàíl{"]"}
@@ -430,6 +436,9 @@ Repost_this_note_8e56 = {"["}Répóst thís ñóté{"]"}
# Label for reposted notes
Reposted_61c8 = {"["}Répóstéd{"]"}
+# Label for reset note body font size, Appearance settings section
+Reset_4e60 = {"["}Rését{"]"}
+
# Label for reset zoom level, Appearance settings section
Reset_62d4 = {"["}Rését{"]"}
@@ -469,9 +478,6 @@ Send_1ea4 = {"["}Séñd{"]"}
# Column title for app settings
Settings_7a4f = {"["}Séttíñgs{"]"}
-# Label for Show source client, others settings section
-Show_source_client_9e31 = {"["}Shów sóúrçé çlíéñt{"]"}
-
# Description for last note per user column
Show_the_last_note_for_each_user_from_a_list_50e7 = {"["}Shów thé làst ñóté fór éàçh úsér fróm à líst{"]"}
@@ -484,6 +490,12 @@ Someone_else_s_Notes_7e5f = {"["}Sóméóñé élsé's Ñótés{"]"}
# Title for someone else's notifications column
Someone_else_s_Notifications_82e6 = {"["}Sóméóñé élsé's Ñótífíçàtíóñs{"]"}
+# Label for Sort replies newest first, others settings section
+Sort_replies_newest_first_b6c3 = {"["}Sórt réplíés ñéwést fírst:{"]"}
+
+# Label for Source client, others settings section
+Source_client_fb2b = {"["}Sóúrçé çlíéñt:{"]"}
+
# Description for contact list column
Source_the_last_note_for_each_user_in_your_contact_list_e157 = {"["}Sóúrçé thé làst ñóté fór éàçh úsér íñ yóúr çóñtàçt líst{"]"}
@@ -520,6 +532,9 @@ Subscribe_to_someone_else_s_notes_d1e9 = {"["}Súbsçríbé tó sóméóñé él
# Column title for subscribing to individual user
Subscribe_to_someone_s_notes_b3c8 = {"["}Súbsçríbé tó sóméóñé's ñótés{"]"}
+# Support email address
+Support_email_44d9 = {"["}Súppórt émàíl:{"]"}
+
# Hover text for dark mode toggle button
Switch_to_dark_mode_4dec = {"["}Swítçh tó dàrk módé{"]"}
@@ -560,7 +575,7 @@ username___at___domain___will_be_used_for_identification_a4fd = {"["}"{$username
Username_daa7 = {"["}Úsérñàmé{"]"}
# Label for view folder button, Storage settings section
-View_folder_9742 = {"["}Víéw fóldér:{"]"}
+View_folder_9742 = {"["}Víéw fóldér{"]"}
# Column title for wallet management
Wallet_5e50 = {"["}Wàllét{"]"}
diff --git a/assets/translations/es-419/main.ftl b/assets/translations/es-419/main.ftl
@@ -376,7 +376,7 @@ username___at___domain___will_be_used_for_identification_a4fd = Se utilizará "{
# Profile username field label
Username_daa7 = Nombre de usuario
# Label for view folder button, Storage settings section
-View_folder_9742 = Ver carpeta:
+View_folder_9742 = Ver carpeta
# Column title for wallet management
Wallet_5e50 = Billetera
# Hint for deck name input field
diff --git a/assets/translations/es-ES/main.ftl b/assets/translations/es-ES/main.ftl
@@ -376,7 +376,7 @@ username___at___domain___will_be_used_for_identification_a4fd = Se utilizará "{
# Profile username field label
Username_daa7 = Nombre de usuario
# Label for view folder button, Storage settings section
-View_folder_9742 = Ver carpeta:
+View_folder_9742 = Ver carpeta
# Column title for wallet management
Wallet_5e50 = Monedero
# Hint for deck name input field
diff --git a/assets/translations/fr/main.ftl b/assets/translations/fr/main.ftl
@@ -376,7 +376,7 @@ username___at___domain___will_be_used_for_identification_a4fd = "{ $username }"
# Profile username field label
Username_daa7 = Nom d'utilisateur
# Label for view folder button, Storage settings section
-View_folder_9742 = Voir le dossier :
+View_folder_9742 = Voir le dossier
# Column title for wallet management
Wallet_5e50 = Portefeuille
# Hint for deck name input field
diff --git a/assets/translations/pt-BR/main.ftl b/assets/translations/pt-BR/main.ftl
@@ -376,7 +376,7 @@ username___at___domain___will_be_used_for_identification_a4fd = d = "{ $username
# Profile username field label
Username_daa7 = Usuário
# Label for view folder button, Storage settings section
-View_folder_9742 = Visualizar pasta:
+View_folder_9742 = Visualizar pasta
# Column title for wallet management
Wallet_5e50 = Carteira
# Hint for deck name input field
diff --git a/assets/translations/th/main.ftl b/assets/translations/th/main.ftl
@@ -378,7 +378,7 @@ username___at___domain___will_be_used_for_identification_a4fd = "{ $username }"
# Profile username field label
Username_daa7 = ชื่อผู้ใช้
# Label for view folder button, Storage settings section
-View_folder_9742 = ดูโฟลเดอร์:
+View_folder_9742 = ดูโฟลเดอร์
# Column title for wallet management
Wallet_5e50 = วอลเล็ต
# Hint for deck name input field
diff --git a/assets/translations/zh-CN/main.ftl b/assets/translations/zh-CN/main.ftl
@@ -376,7 +376,7 @@ username___at___domain___will_be_used_for_identification_a4fd = "{ $username }"
# Profile username field label
Username_daa7 = 用户名
# Label for view folder button, Storage settings section
-View_folder_9742 = 查看文件夹:
+View_folder_9742 = 查看文件夹
# Column title for wallet management
Wallet_5e50 = 钱包
# Hint for deck name input field
diff --git a/assets/translations/zh-TW/main.ftl b/assets/translations/zh-TW/main.ftl
@@ -376,7 +376,7 @@ username___at___domain___will_be_used_for_identification_a4fd = "{ $username }"
# Profile username field label
Username_daa7 = 用戶名
# Label for view folder button, Storage settings section
-View_folder_9742 = 查看文件夾:
+View_folder_9742 = 查看文件夾
# Column title for wallet management
Wallet_5e50 = 錢包
# Hint for deck name input field
diff --git a/crates/notedeck_columns/src/ui/settings.rs b/crates/notedeck_columns/src/ui/settings.rs
@@ -16,9 +16,6 @@ use crate::{nav::RouterAction, Damus, Route};
const PREVIEW_NOTE_ID: &str = "note1edjc8ggj07hwv77g2405uh6j2jkk5aud22gktxrvc2wnre4vdwgqzlv2gw";
-const THEME_LIGHT: &str = "Light";
-const THEME_DARK: &str = "Dark";
-
const MIN_ZOOM: f32 = 0.5;
const MAX_ZOOM: f32 = 3.0;
const ZOOM_STEP: f32 = 0.1;
@@ -389,7 +386,7 @@ impl<'a> SettingsView<'a> {
ThemePreference::Light,
richtext_small(tr!(
self.note_context.i18n,
- THEME_LIGHT,
+ "Light",
"Label for Theme Light, Appearance settings section",
)),
)
@@ -404,7 +401,7 @@ impl<'a> SettingsView<'a> {
ThemePreference::Dark,
richtext_small(tr!(
self.note_context.i18n,
- THEME_DARK,
+ "Dark",
"Label for Theme Dark, Appearance settings section",
)),
)
@@ -532,15 +529,19 @@ impl<'a> SettingsView<'a> {
ui.horizontal(|ui| {
ui.label(richtext_small(tr!(
self.note_context.i18n,
- "Sort replies newest first",
+ "Sort replies newest first:",
"Label for Sort replies newest first, others settings section",
)));
if ui
.toggle_value(
&mut self.settings.show_replies_newest_first,
- RichText::new(tr!(self.note_context.i18n, "ON", "ON"))
- .text_style(NotedeckTextStyle::Small.text_style()),
+ RichText::new(tr!(
+ self.note_context.i18n,
+ "On",
+ "Setting to turn on sorting replies so that the newest are shown first"
+ ))
+ .text_style(NotedeckTextStyle::Small.text_style()),
)
.changed()
{
@@ -553,7 +554,7 @@ impl<'a> SettingsView<'a> {
ui.horizontal_wrapped(|ui| {
ui.label(richtext_small(tr!(
self.note_context.i18n,
- "Source client",
+ "Source client:",
"Label for Source client, others settings section",
)));