From 900ed0a89ca9a0c13edf54e8b6f25944a0f6b049 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Mon, 10 Oct 2022 22:08:23 +0200 Subject: [PATCH] Add Ukrainian as language (#9236) And put the non-English term first Co-authored-by: Christoph Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> Co-authored-by: Houssem Nasri Co-authored-by: ThiloteE <73715071+ThiloteE@users.noreply.github.com> Co-authored-by: Christoph Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com> Co-authored-by: Houssem Nasri Co-authored-by: ThiloteE <73715071+ThiloteE@users.noreply.github.com> --- .../java/org/jabref/logic/l10n/Language.java | 24 +++++++++++-------- src/main/resources/l10n/JabRef_uk.properties | 0 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 src/main/resources/l10n/JabRef_uk.properties diff --git a/src/main/java/org/jabref/logic/l10n/Language.java b/src/main/java/org/jabref/logic/l10n/Language.java index 1841d10f73e..2b48a1d1671 100644 --- a/src/main/java/org/jabref/logic/l10n/Language.java +++ b/src/main/java/org/jabref/logic/l10n/Language.java @@ -12,30 +12,34 @@ public enum Language { BAHASA_INDONESIA("Bahasa Indonesia", "id"), BRAZILIAN_PORTUGUESE("Brazilian Portuguese", "pt_BR"), DANISH("Dansk", "da"), - GERMAN("Deutsch", "de"), + DUTCH("Nederlands", "nl"), ENGLISH("English", "en"), - SPANISH("Español", "es"), FRENCH("Français", "fr"), + GERMAN("Deutsch", "de"), + GREEK("ελληνικά (Greek)", "el"), ITALIAN("Italiano", "it"), JAPANESE("Japanese", "ja"), - DUTCH("Nederlands", "nl"), + KOREAN("한국어 (Korean)", "ko"), NORWEGIAN("Norsk", "no"), - PERSIAN("Persian (فارسی)", "fa"), + PERSIAN("فارسی (Farsi)", "fa"), + POLISH("Polish", "pl"), PORTUGUESE("Português", "pt"), RUSSIAN("Russian", "ru"), SIMPLIFIED_CHINESE("Chinese (Simplified)", "zh_CN"), + SPANISH("Español", "es"), + SWEDISH("Svenska", "sv"), + TAGALOG("Tagalog/Filipino", "tl"), TRADITIONAL_CHINESE("Chinese (Traditional)", "zh_TW"), - SVENSKA("Svenska", "sv"), TURKISH("Turkish", "tr"), - VIETNAMESE("Vietnamese", "vi"), - GREEK("ελληνικά", "el"), - TAGALOG("Tagalog/Filipino", "tl"), - POLISH("Polish", "pl"), - KOREAN("Korean (한국어)", "ko"); + UKRAINIAN("украї́нська (Ukrainian)", "uk"), + VIETNAMESE("Vietnamese", "vi"); private final String displayName; private final String id; + /** + * @param id Typically as 639-1 code + */ Language(String displayName, String id) { this.displayName = displayName; this.id = id; diff --git a/src/main/resources/l10n/JabRef_uk.properties b/src/main/resources/l10n/JabRef_uk.properties new file mode 100644 index 00000000000..e69de29bb2d