Skip to content

Commit f9a51d2

Browse files
committed
fix: Export translation strings
1 parent 19a2cc9 commit f9a51d2

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

locales/en.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ dt_invalid_date: "Invalid date"
5151
dt_this_week: "this week"
5252
dt_last_week: "last week"
5353
dt_next_week: "next week"
54-
dt_weeks_ago: "%[count] weeks ago"
55-
dt_weeks_from_now: "%[count] weeks from now"
54+
dt_weeks_ago: "%{count} weeks ago"
55+
dt_weeks_from_now: "%{count} weeks from now"
5656
dt_duration_hour: "h"
5757
dt_duration_minute: "m"
58-
dt_week_description: "%[week_desc]: %[start_date] to %[end_date]"
58+
dt_week_description: "%{week_desc}: %{start_date} to %{end_date}"
5959

6060
# UI - General
6161
ui_shortcut_week: "week"
@@ -75,7 +75,7 @@ ui_shortcut_select_user: "select user"
7575
ui_shortcut_exit_user_selection: "exit user selection"
7676

7777
# UI - Detail View
78-
ui_detail_no_entries: "No time entries found for this week.\n\n%[week_description]"
78+
ui_detail_no_entries: "No time entries found for this week.\n\n%{week_description}"
7979
ui_detail_no_selection: "No item selected."
8080
ui_detail_invalid_selection: "Invalid selection index."
8181

locales/nl.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ error_fetch_projects: "Waarschuwing: Ophalen van projecten mislukt: %{error}"
1818
# Success messages
1919
success_connection: "Succesvol verbonden met MoneyBird API"
2020
success_colors_initialized: "UI kleuren geïnitialiseerd"
21-
success_fetched_users: "%[count] gebruikers opgehaald."
21+
success_fetched_users: "%{count} gebruikers opgehaald."
2222
success_using_user_id: "Gebruik geconfigureerde gebruiker_id: %{user_id}"
2323

2424
# Notice messages
@@ -51,11 +51,11 @@ dt_invalid_date: "Ongeldige datum"
5151
dt_this_week: "deze week"
5252
dt_last_week: "vorige week"
5353
dt_next_week: "volgende week"
54-
dt_weeks_ago: "%[count] weken geleden"
55-
dt_weeks_from_now: "%[count] weken vanaf nu"
54+
dt_weeks_ago: "%{count} weken geleden"
55+
dt_weeks_from_now: "%{count} weken vanaf nu"
5656
dt_duration_hour: "u"
5757
dt_duration_minute: "m"
58-
dt_week_description: "%[week_desc]: %[start_date] tot %[end_date]"
58+
dt_week_description: "%{week_desc}: %{start_date} tot %{end_date}"
5959

6060
# UI - General
6161
ui_shortcut_week: "week"
@@ -75,7 +75,7 @@ ui_shortcut_select_user: "selecteer gebruiker"
7575
ui_shortcut_exit_user_selection: "sluit gebruikersselectie"
7676

7777
# UI - Detail View
78-
ui_detail_no_entries: "Geen tijdinvoer gevonden voor deze week.\n\n%[week_description]"
78+
ui_detail_no_entries: "Geen tijdinvoer gevonden voor deze week.\n\n%{week_description}"
7979
ui_detail_no_selection: "Geen item geselecteerd."
8080
ui_detail_invalid_selection: "Ongeldige selectie-index."
8181

@@ -217,7 +217,7 @@ file_exporting_for_week: "Tijdinvoeringen exporteren voor week: %{week_arg}"
217217
file_fetching_for_week: "Tijdinvoeringen ophalen voor week %{target_week}..."
218218
file_exporting_to_file: "Exporteren naar bestand: %{filename}"
219219
file_filtering_with_query: "Filteren met query: %{query_arg}"
220-
file_export_success: "Succesvol %[count] tijdinvoeringen geëxporteerd naar %[filename]"
220+
file_export_success: "Succesvol %{count} tijdinvoeringen geëxporteerd naar %{filename}"
221221
file_error_exporting: "Fout bij exporteren tijdinvoeringen: %{error}"
222222
file_export_failed: "Export mislukt: %{error}"
223223
file_error_create_file: "Kon bestand niet aanmaken: %{error}"

src/datetime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub fn get_title_week_description(week_offset: i32) -> String {
179179
let weeks_ago = format!(
180180
"{} {}",
181181
week_offset.abs(),
182-
t!("dt_weeks_ago").replace("%[count]", "").trim()
182+
t!("dt_weeks_ago").replace("%{count}", "").trim()
183183
);
184184
weeks_ago
185185
} else if week_offset == 1 {
@@ -188,7 +188,7 @@ pub fn get_title_week_description(week_offset: i32) -> String {
188188
let weeks_from_now = format!(
189189
"{} {}",
190190
week_offset,
191-
t!("dt_weeks_from_now").replace("%[count]", "").trim()
191+
t!("dt_weeks_from_now").replace("%{count}", "").trim()
192192
);
193193
weeks_from_now
194194
}

0 commit comments

Comments
 (0)