feat(gui): translate the Photos empty states

The empty timeline and empty favorites texts go through gettext and are
translated in every catalog.
This commit is contained in:
nvrl committed 2026-09-23 10:37:19 +02:00
1 parent 77b8fd65be
commit 9529f2124b
11 files changed
+295 -79

No files matched your search

+6 -6
View File
@@ -2238,20 +2238,20 @@ pub(crate) fn empty_timeline_text(
let when = month.map(|m| format!(" in {m}")).unwrap_or_default();
match (favorites, kind, month) {
(false, None, None) => (
"No photos yet".to_string(),
"Photos you upload to Proton Drive appear here.".to_string(),
gettext("No photos yet"),
gettext("Photos you upload to Proton Drive appear here."),
),
(true, None, None) => (
"No favorites yet".to_string(),
"Star a photo in the viewer or from its menu to find it here.".to_string(),
gettext("No favorites yet"),
gettext("Star a photo in the viewer or from its menu to find it here."),
),
(true, _, _) => (
format!("No favorite {what}{when}"),
"Turn off the favorites filter to see everything.".to_string(),
gettext("Turn off the favorites filter to see everything."),
),
(false, _, _) => (
format!("No {what}{when}"),
"Try another filter or month.".to_string(),
gettext("Try another filter or month."),
),
}
}