LR-VIEW-FILMSTRIP: the new fi, id, sv and vi catalogs carry the thumbnail overlay and grid badge strings

This commit is contained in:
Nathaniel Ledford
2026-10-22 01:56:08 -04:00
parent ec76c35efc
commit e400dca75e
12 changed files with 45 additions and 42 deletions
+2 -2
View File
@@ -22,7 +22,6 @@
"+{} more": "+{} lisää",
", {failed} file{} not readable": ", ei luettavissa olevia tiedostoja: {failed}{:.0}",
", {} label": ", {} merkintä",
", {} star{}": ", tähtiä {}{:.0}",
"1 task is still running: {names}. Quitting stops it.": "1 tehtävä on yhä käynnissä: {names}. Lopettaminen pysäyttää sen.",
"; {kept} already had a location": "; jo sijaintitiedolliset: {kept}",
"; {n} gained synonyms": "; {n} sai synonyymejä",
@@ -317,5 +316,6 @@
"Panel layout could not be restored: {error}": "Paneelien asettelua ei voitu palauttaa: {error}",
"Panel move was not applied: {error}": "Paneelin siirtoa ei otettu käyttöön: {error}",
"{name} is installed": "{name} on asennettu",
"{name} is installed and in use: face recognition is on": "{name} on asennettu ja käytössä: kasvojentunnistus on päällä"
"{name} is installed and in use: face recognition is on": "{name} on asennettu ja käytössä: kasvojentunnistus on päällä",
", rating {} of 5": ", luokitus: {} / 5"
}
+8 -2
View File
@@ -2176,7 +2176,6 @@
"Wednesday": "keskiviikko",
"What's New": "Mitä uutta",
"When pins show on the photo (Shift+H cycles)": "Milloin nastat näkyvät kuvassa (Shift+H vaihtaa)",
"When rated or hovered": "Luokiteltaessa tai osoitettaessa",
"White Balance": "Valkotasapaino",
"White Balance Selector": "Valkotasapainon valitsin",
"White Balance Selector (W)": "Valkotasapainon valitsin (W)",
@@ -2356,5 +2355,12 @@
"Set up name suggestions…": "Määritä nimiehdotukset…",
"Top bar": "Yläpalkki",
"Tool strip": "Työkalupalkki",
"Bottom bar": "Alapalkki"
"Bottom bar": "Alapalkki",
"Right-click ▸ Locate Missing File… to find it again.": "Napsauta hiiren kakkospainikkeella → Paikanna puuttuva tiedosto… löytääksesi sen uudelleen.",
"Right-click ▸ Reload from Disk to try again.": "Napsauta hiiren kakkospainikkeella → Lataa levyltä uudelleen yrittääksesi uudelleen.",
"Stack — click to collapse (S)": "Pino — napsauta tiivistääksesi (S)",
"Stack — click to expand (S)": "Pino — napsauta laajentaaksesi (S)",
"Stars on hover": "Tähdet osoitettaessa",
"Stars on hover: flags and colour labels always show; the stars and the edited mark appear while a photo is hovered or selected.": "Tähdet osoitettaessa: liput ja värimerkinnät näkyvät aina; tähdet ja muokattu-merkki näkyvät, kun kuvaa osoitetaan tai se on valittuna.",
"Virtual copy": "Virtuaalikopio"
}
+2 -2
View File
@@ -206,7 +206,6 @@
"{n} similar photo{} · View ▸ Clear Filters to see all": "{n} foto serupa{:.0} · Tampilan → Hapus filter untuk melihat semua",
"Moved; {} photo(s) relinked": "Dipindahkan; {} foto ditautkan ulang",
"{} label (click more labels to show any of them)": "Label {} (klik label lain untuk ikut menampilkan foto berlabel tersebut)",
", {} star{}": ", {} bintang{:.0}",
", {} label": ", label {}",
"Downloads from {host}. Once it has arrived and checked out, LightCraft installs it, {after}.": "Diunduh dari {host}. Setelah selesai diunduh dan lolos pemeriksaan, LightCraft akan menginstalnya, {after}.",
"{:.1} MB": "{:.1} MB",
@@ -320,5 +319,6 @@
"{name} is installed and in use: face recognition is on": "{name} sudah terinstal dan digunakan: pengenalan wajah aktif",
"Creates {stacks} stack{} from {photos} of {scope}": "Membuat {stacks} tumpukan dari {photos} foto ({scope}){:.0}",
"{n} selected photo{} · {pages} page{}": "{n} foto dipilih · {pages} halaman{:.0}{:.0}",
"{n} photo{} in view · {slides} slide{} · {time}": "{n} foto di tampilan · {slides} slide · {time}{:.0}{:.0}"
"{n} photo{} in view · {slides} slide{} · {time}": "{n} foto di tampilan · {slides} slide · {time}{:.0}{:.0}",
", rating {} of 5": ", rating: {} dari 5"
}
+8 -2
View File
@@ -2169,7 +2169,6 @@
"We": "Rb",
"Wednesday": "Rabu",
"What's New": "Yang baru",
"When rated or hovered": "Saat diberi rating atau saat kursor di atasnya",
"White Balance": "Keseimbangan putih",
"White Balance Selector": "Pemilih keseimbangan putih",
"White Balance Selector (W)": "Pemilih keseimbangan putih (W)",
@@ -2370,5 +2369,12 @@
"Set up name suggestions…": "Siapkan saran nama…",
"Top bar": "Bilah atas",
"Tool strip": "Bilah alat",
"Bottom bar": "Bilah bawah"
"Bottom bar": "Bilah bawah",
"Right-click ▸ Locate Missing File… to find it again.": "Klik kanan → Temukan file hilang… untuk menemukannya lagi.",
"Right-click ▸ Reload from Disk to try again.": "Klik kanan → Muat ulang dari disk untuk mencoba lagi.",
"Stack — click to collapse (S)": "Tumpukan — klik untuk menciutkan (S)",
"Stack — click to expand (S)": "Tumpukan — klik untuk meluaskan (S)",
"Stars on hover": "Bintang saat kursor di atas",
"Stars on hover: flags and colour labels always show; the stars and the edited mark appear while a photo is hovered or selected.": "Bintang saat kursor di atas: bendera dan label warna selalu tampil; bintang dan tanda telah diedit muncul saat kursor berada di atas foto atau foto dipilih.",
"Virtual copy": "Salinan virtual"
}
+2 -2
View File
@@ -22,7 +22,6 @@
"+{} more": "+{} till",
", {failed} file{} not readable": ", {failed} fil{} kunde inte läsas",
", {} label": ", {} etikett",
", {} star{}": ", {} stjärna{}",
"1 task is still running: {names}. Quitting stops it.": "1 uppgift körs fortfarande: {names}. Om du avslutar stoppas den.",
"; {kept} already had a location": "; {kept} hade redan en plats",
"; {n} gained synonyms": "; {n} fick synonymer",
@@ -320,5 +319,6 @@
"{name} is installed and in use: face recognition is on": "{name} är installerad och används: ansiktsigenkänning är på",
"Creates {stacks} stack{} from {photos} of {scope}": "Skapar staplar: {stacks} · foton: {photos} av {scope}{:.0}",
"{n} selected photo{} · {pages} page{}": "Markerade foton: {n} · sidor: {pages}{:.0}{:.0}",
"{n} photo{} in view · {slides} slide{} · {time}": "Foton i vyn: {n} · bilder: {slides} · {time}{:.0}{:.0}"
"{n} photo{} in view · {slides} slide{} · {time}": "Foton i vyn: {n} · bilder: {slides} · {time}{:.0}{:.0}",
", rating {} of 5": ", betyg: {} av 5"
}
+8 -2
View File
@@ -2363,7 +2363,6 @@
"were missing, without touching anything already set.": "saknades, utan att röra något som redan var angivet.",
"What's New": "Nyheter",
"When pins show on the photo (Shift+H cycles)": "När nålar visas på fotot (Shift+H växlar)",
"When rated or hovered": "När det har betyg eller pekaren är över",
"when the browser may evict the library. Hosting: the sample cache headers no longer mark the (unhashed) files": "när webbläsaren kan rensa bort biblioteket. Webbhotell: exemplets cache-huvuden markerar inte längre de (ohashade) filerna",
"whether originals are there is checked on a worker thread (grid thumbnails, the Info panel, the photo menu, Missing": "om originalen finns kontrolleras i en arbetstråd (rutnätsminiatyrer, panelen Info, fotomenyn, Saknas",
"White Balance": "Vitbalans",
@@ -2459,5 +2458,12 @@
"The Tags button lists placeholders for the template, such as {date} or {seq}. Each file is renamed on disk along with its XMP sidecar; a name that is taken gets -1, -2…": "Knappen Taggar visar platshållare för mallen, till exempel {date} eller {seq}. Varje fil byter namn på disken tillsammans med sin XMP-sidofil; ett namn som redan finns får -1, -2…",
"Top bar": "Övre fältet",
"Tool strip": "Verktygsfält",
"Bottom bar": "Nedre fältet"
"Bottom bar": "Nedre fältet",
"Right-click ▸ Locate Missing File… to find it again.": "Högerklicka → Leta upp saknad fil… för att hitta den igen.",
"Right-click ▸ Reload from Disk to try again.": "Högerklicka → Läs in igen från disk för att försöka igen.",
"Stack — click to collapse (S)": "Stapel — klicka för att komprimera (S)",
"Stack — click to expand (S)": "Stapel — klicka för att expandera (S)",
"Stars on hover": "Stjärnor vid pekaren",
"Stars on hover: flags and colour labels always show; the stars and the edited mark appear while a photo is hovered or selected.": "Stjärnor vid pekaren: flaggor och färgetiketter visas alltid; stjärnorna och märket för redigerad visas när pekaren är över ett foto eller när det är markerat.",
"Virtual copy": "Virtuell kopia"
}
+2 -2
View File
@@ -22,7 +22,6 @@
"+{} more": "+{} nữa",
", {failed} file{} not readable": ", {failed} tệp{:.0} không đọc được",
", {} label": ", nhãn {}",
", {} star{}": ", {} sao{:.0}",
"1 task is still running: {names}. Quitting stops it.": "Còn 1 tác vụ đang chạy: {names}. Thoát sẽ dừng tác vụ.",
"; {kept} already had a location": "; {kept} đã có vị trí",
"; {n} gained synonyms": "; {n} có thêm từ đồng nghĩa",
@@ -317,5 +316,6 @@
"Panel layout could not be restored: {error}": "Không thể khôi phục bố cục bảng: {error}",
"Panel move was not applied: {error}": "Việc di chuyển bảng chưa được áp dụng: {error}",
"{name} is installed": "{name} đã được cài đặt",
"{name} is installed and in use: face recognition is on": "{name} đã được cài đặt và đang dùng: nhận diện khuôn mặt đã bật"
"{name} is installed and in use: face recognition is on": "{name} đã được cài đặt và đang dùng: nhận diện khuôn mặt đã bật",
", rating {} of 5": ", xếp hạng: {} trên 5"
}
+8 -2
View File
@@ -1987,7 +1987,6 @@
"We": "T4",
"Wednesday": "Thứ Tư",
"What's New": "Có gì mới",
"When rated or hovered": "Khi đã xếp hạng hoặc rê chuột",
"White Balance": "Cân bằng trắng",
"White Balance Selector": "Bộ chọn cân bằng trắng",
"White Balance Selector (W)": "Bộ chọn cân bằng trắng (W)",
@@ -2684,5 +2683,12 @@
"Set up name suggestions…": "Thiết lập gợi ý tên…",
"Top bar": "Thanh trên cùng",
"Tool strip": "Thanh công cụ",
"Bottom bar": "Thanh dưới cùng"
"Bottom bar": "Thanh dưới cùng",
"Right-click ▸ Locate Missing File… to find it again.": "Nhấp chuột phải → Định vị tệp bị thiếu… để tìm lại.",
"Right-click ▸ Reload from Disk to try again.": "Nhấp chuột phải → Tải lại từ đĩa để thử lại.",
"Stack — click to collapse (S)": "Chồng — nhấp để thu gọn (S)",
"Stack — click to expand (S)": "Chồng — nhấp để mở rộng (S)",
"Stars on hover": "Sao khi rê chuột",
"Stars on hover: flags and colour labels always show; the stars and the edited mark appear while a photo is hovered or selected.": "Sao khi rê chuột: cờ và nhãn màu luôn hiển thị; sao và dấu đã chỉnh sửa xuất hiện khi ảnh được rê chuột qua hoặc được chọn.",
"Virtual copy": "Bản sao ảo"
}
@@ -202,26 +202,3 @@ pub(crate) fn film_spoken(file_name: &str, failed: bool) -> String {
(false, true) => format!("{file_name}, {}", crate::i18n::tr("This photo can't be opened")),
}
}
/// Rating, flag and edited badges along a filmstrip thumbnail's bottom edge (Settings → Interface).
fn film_badges(p: &egui::Painter, t: &Tokens, fr: Rect, ph: &lightcraft_catalog::Photo) {
use crate::icons::{Icon, paint};
use lightcraft_catalog::Flag;
let edited = ph.is_edited();
if ph.rating == 0 && ph.flag == Flag::None && !edited {
return;
}
let bar = Rect::from_min_max(pos2(fr.left(), fr.bottom() - 15.0), fr.right_bottom());
p.rect_filled(bar, 0.0, Color32::from_black_alpha(130));
let y = bar.center().y;
let mut x = bar.left() + 3.0;
x += crate::rating::paint_rating(p, pos2(x, y), ph.rating, crate::rating::RatingSize::Small, t.star) + 2.0;
match ph.flag {
Flag::Pick => paint(p, Rect::from_min_size(pos2(x, y - 5.0), vec2(10.0, 10.0)), Icon::FlagPickFilled, t.pick),
Flag::Reject => paint(p, Rect::from_min_size(pos2(x, y - 5.0), vec2(10.0, 10.0)), Icon::FlagReject, t.reject),
Flag::None => {}
}
if edited {
paint(p, Rect::from_min_size(pos2(bar.right() - 13.0, y - 5.0), vec2(10.0, 10.0)), Icon::Sliders, t.text_label);
}
}
+2 -1
View File
@@ -99,7 +99,8 @@ fn the_stack_badge_tooltip_is_translated_in_the_grid_and_the_filmstrip() {
}
fn placeholder_in(h: &Headless, cell: Rect) -> bool {
h.view.painted_shapes().iter().any(|s| matches!(s, Shape::Rect(r) if r.fill == Color32::from_gray(38) && cell.expand(1.0).contains_rect(r.rect)))
let skeleton = crate::theme::Tokens::get(&h.view.ctx).skeleton;
h.view.painted_shapes().iter().any(|s| matches!(s, Shape::Rect(r) if r.fill == skeleton && cell.expand(1.0).contains_rect(r.rect)))
}
#[test]
+2 -1
View File
@@ -464,7 +464,8 @@ fn failure_mark(app: &LightcraftApp, ui: &mut egui::Ui, th: &Thumb, t: &Tokens,
let id = th.photo.id;
let side = (th.rect.width().min(th.rect.height()) * 0.4).clamp(12.0, 22.0);
let icon = Rect::from_center_size(th.rect.center(), vec2(side, side));
paint(&clipped(ui, th), icon, Icon::Warning, t.caution);
// (the text colour: it stands 3:1 on every theme's placeholder, which the amber does not on the light ones)
paint(&clipped(ui, th), icon, Icon::Warning, t.text);
let target = icon.expand(4.0).intersect(th.rect);
register(ui, th.surface.widget(Mark::Failed, id), target);
let offline = matches!(&th.photo.source, lightcraft_catalog::Source::File { path } if app.session.media.availability.is_offline(path));
+1 -1
View File
@@ -636,7 +636,7 @@
### The same marks on every thumbnail
- The filmstrip's thumbnails now carry what the grid's do: a virtual copy has its "Copy N" tag, so a copy and its
master tell apart; the stack badge can be clicked to expand or collapse the stack, with the same tooltip (now
translated); the colour label is a dot, and a grey placeholder stands in until the picture is drawn.
translated); the colour label is a dot, and the grid's photo-shaped placeholder stands in until the picture is drawn.
- A thumbnail that can't be drawn shows a warning icon instead of a bare "!". Hover it to read why, and where to go:
right-click ▸ Locate Missing File… when the original is gone, Reload from Disk otherwise.
- In the Photo Grid a colour label is no longer a tinted band over the bottom of the picture; it is the dot in the