mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-27 16:59:43 +01:00
i18n: Gujarati translates the ui.colorWheel sliders errors
The `sliders` value error and the OKLCH working-space error get Gujarati @msg rows, as the other catalogs have, with a test that checks every catalog keeps the accepted values.
This commit is contained in:
1 parent
07be8c6496
commit
f55a779aba
2 files changed
+20
No files matched your search
@@ -1954,6 +1954,8 @@
|
||||
Chroma ક્રોમા
|
||||
The largest chroma sRGB holds at this lightness and hue આ લાઇટનેસ અને હ્યૂ પર sRGB સમાવી શકે તે સૌથી વધુ ક્રોમા
|
||||
OKLCH needs sRGB as the working RGB space OKLCH માટે કાર્યકારી RGB સ્પેસ તરીકે sRGB જરૂરી છે
|
||||
@msg `sliders` must be none or oklch `sliders` none અથવા oklch હોવું જોઈએ
|
||||
@msg OKLCH needs sRGB as the working RGB space OKLCH માટે કાર્યકારી RGB સ્પેસ તરીકે sRGB જરૂરી છે
|
||||
Lightness લાઇટનેસ
|
||||
Lab Spot Colors: Lab સ્પોટ રંગો:
|
||||
Landscape લેન્ડસ્કેપ
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 72 and column 5.
|
@@ -861,3 +861,21 @@ fn ui_color_wheel_sets_and_reads_the_sliders() {
|
||||
assert_eq!(e, "`sliders` must be none or oklch");
|
||||
assert_eq!(app.ui.color_wheel.view, crate::panels::color_wheel::View::Box, "an error changes nothing");
|
||||
}
|
||||
|
||||
/// The `sliders` errors are translated in every catalog, and each translation keeps the accepted
|
||||
/// values.
|
||||
#[test]
|
||||
fn ui_color_wheel_sliders_errors_are_translated() {
|
||||
let errors = [("`sliders` must be none or oklch", &["none", "oklch"][..]), ("OKLCH needs sRGB as the working RGB space", &["OKLCH", "sRGB"][..])];
|
||||
for code in [
|
||||
"bg", "bs", "ca", "cs", "da", "de", "el", "es", "fi", "fr", "gu", "hi", "hu", "id", "it", "ja", "ka", "ko", "nl", "pl", "pt-br", "ru", "sv", "tr",
|
||||
"uk", "vi", "zh-hans", "zh-hant",
|
||||
] {
|
||||
let lang = crate::i18n::Lang::from_code(code).expect("registered");
|
||||
for (error, values) in errors {
|
||||
let shown = crate::i18n::message(lang, error);
|
||||
assert_ne!(shown, error, "{code}");
|
||||
assert!(values.iter().all(|v| shown.contains(v)), "{code}: {shown}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user