Fix wrong Greek and Ukrainian language codes (#5261)

Co-authored-by: Laurenz <laurmaedje@gmail.com>
This commit is contained in:
Kevin K. 2024-10-28 15:42:25 +01:00 committed by GitHub
parent 45377f25ec
commit 33a035ee0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 10 additions and 10 deletions

View File

@ -26,7 +26,7 @@ const TRANSLATIONS: [(&str, &str); 36] = [
translation!("fi"), translation!("fi"),
translation!("fr"), translation!("fr"),
translation!("gl"), translation!("gl"),
translation!("gr"), translation!("el"),
translation!("he"), translation!("he"),
translation!("hu"), translation!("hu"),
translation!("is"), translation!("is"),
@ -47,7 +47,7 @@ const TRANSLATIONS: [(&str, &str); 36] = [
translation!("sv"), translation!("sv"),
translation!("tl"), translation!("tl"),
translation!("tr"), translation!("tr"),
translation!("ua"), translation!("uk"),
translation!("vi"), translation!("vi"),
translation!("zh-TW"), translation!("zh-TW"),
translation!("zh"), translation!("zh"),
@ -74,7 +74,7 @@ impl Lang {
pub const FRENCH: Self = Self(*b"fr ", 2); pub const FRENCH: Self = Self(*b"fr ", 2);
pub const GALICIAN: Self = Self(*b"gl ", 2); pub const GALICIAN: Self = Self(*b"gl ", 2);
pub const GERMAN: Self = Self(*b"de ", 2); pub const GERMAN: Self = Self(*b"de ", 2);
pub const GREEK: Self = Self(*b"gr ", 2); pub const GREEK: Self = Self(*b"el ", 2);
pub const HEBREW: Self = Self(*b"he ", 2); pub const HEBREW: Self = Self(*b"he ", 2);
pub const HUNGARIAN: Self = Self(*b"hu ", 2); pub const HUNGARIAN: Self = Self(*b"hu ", 2);
pub const ICELANDIC: Self = Self(*b"is ", 2); pub const ICELANDIC: Self = Self(*b"is ", 2);
@ -93,7 +93,7 @@ impl Lang {
pub const SPANISH: Self = Self(*b"es ", 2); pub const SPANISH: Self = Self(*b"es ", 2);
pub const SWEDISH: Self = Self(*b"sv ", 2); pub const SWEDISH: Self = Self(*b"sv ", 2);
pub const TURKISH: Self = Self(*b"tr ", 2); pub const TURKISH: Self = Self(*b"tr ", 2);
pub const UKRAINIAN: Self = Self(*b"ua ", 2); pub const UKRAINIAN: Self = Self(*b"uk ", 2);
pub const VIETNAMESE: Self = Self(*b"vi ", 2); pub const VIETNAMESE: Self = Self(*b"vi ", 2);
/// Return the language code as an all lowercase string slice. /// Return the language code as an all lowercase string slice.

View File

@ -247,8 +247,8 @@ impl<'s> SmartQuotes<'s> {
"es" if matches!(region, Some("ES") | None) => ("", "", "«", "»"), "es" if matches!(region, Some("ES") | None) => ("", "", "«", "»"),
"hu" | "pl" | "ro" => ("", "", "", ""), "hu" | "pl" | "ro" => ("", "", "", ""),
"no" | "nb" | "nn" if alternative => low_high, "no" | "nb" | "nn" if alternative => low_high,
"ru" | "no" | "nb" | "nn" | "ua" => ("", "", "«", "»"), "ru" | "no" | "nb" | "nn" | "uk" => ("", "", "«", "»"),
"gr" => ("", "", "«", "»"), "el" => ("", "", "«", "»"),
"he" => ("", "", "", ""), "he" => ("", "", "", ""),
_ if lang.dir() == Dir::RTL => ("", "", "", ""), _ if lang.dir() == Dir::RTL => ("", "", "", ""),
_ => default, _ => default,

View File

Before

Width:  |  Height:  |  Size: 966 B

After

Width:  |  Height:  |  Size: 966 B

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -244,9 +244,9 @@ We can clearly see that @fig-cylinder and
caption: [Пятиугольник], caption: [Пятиугольник],
) )
--- figure-localization-gr --- --- figure-localization-el ---
// Test Greek // Test Greek
#set text(lang: "gr") #set text(lang: "el")
#figure( #figure(
circle(), circle(),
caption: [Ένας κύκλος.], caption: [Ένας κύκλος.],

View File

@ -30,8 +30,8 @@
#set text(lang: "fi") #set text(lang: "fi")
"Hevonen ei syö kurkkusalaattia" oli ensimmäinen koskaan 'puhelimessa' lausuttu lause. "Hevonen ei syö kurkkusalaattia" oli ensimmäinen koskaan 'puhelimessa' lausuttu lause.
--- smartquote-gr --- --- smartquote-el ---
#set text(lang: "gr") #set text(lang: "el")
"Το άλογο δεν τρώει αγγουροσαλάτα" ήταν η πρώτη πρόταση που ειπώθηκε στο 'τηλέφωνο'. "Το άλογο δεν τρώει αγγουροσαλάτα" ήταν η πρώτη πρόταση που ειπώθηκε στο 'τηλέφωνο'.
--- smartquote-he --- --- smartquote-he ---