mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-03 16:41:26 +01:00
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:
1 parent
77b8fd65be
commit
9529f2124b
11 files changed
+295
-79
No files matched your search
@@ -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."),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user