Pārlūkot izejas kodu

Translate to Arabic (PART1)

Fruit-Punch-Samurai 3 gadi atpakaļ
vecāks
revīzija
6fb9192852

+ 17 - 16
materialfx/src/main/java/io/github/palexdev/materialfx/i18n/Language.java

@@ -28,24 +28,25 @@ import java.util.Locale;
  * The enumerator also specifies the project's default language, {@link #defaultLanguage()}.
  */
 public enum Language {
-	ENGLISH(Locale.ENGLISH),
-	ITALIANO(Locale.ITALIAN),
-	FRANCAIS(Locale.FRENCH);
+    ENGLISH(Locale.ENGLISH),
+    ITALIANO(Locale.ITALIAN),
+    FRANCAIS(Locale.FRENCH),
+    ARABIC(Locale.forLanguageTag("ar"));
 
-	private final Locale locale;
+    private final Locale locale;
 
-	Language(Locale locale) {
-		this.locale = locale;
-	}
+    Language(Locale locale) {
+        this.locale = locale;
+    }
 
-	/**
-	 * @return the project's default language, {@link Language#ENGLISH}
-	 */
-	public static Language defaultLanguage() {
-		return ENGLISH;
-	}
+    /**
+     * @return the project's default language, {@link Language#ENGLISH}
+     */
+    public static Language defaultLanguage() {
+        return ENGLISH;
+    }
 
-	public Locale getLocale() {
-		return locale;
-	}
+    public Locale getLocale() {
+        return locale;
+    }
 }

+ 95 - 0
materialfx/src/main/resources/io/github/palexdev/materialfx/i18n/mfxlang_ar.properties

@@ -0,0 +1,95 @@
+#
+# Copyright (C) 2022 Parisi Alessandro
+# This file is part of MaterialFX (https://github.com/palexdev/MaterialFX).
+#
+# MaterialFX is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# MaterialFX is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with MaterialFX.  If not, see <http://www.gnu.org/licenses/>.
+#
+##################################################
+# Controls
+##################################################
+# Combo Box
+comboBox.contextMenu.selectFirst=العنصر الأول
+comboBox.contextMenu.selectNext=العنصر التالي
+comboBox.contextMenu.selectPrevious=العنصر السابق
+comboBox.contextMenu.selectLast=العنصر الأخير
+comboBox.contextMenu.clearSelection=إلغاء الاختيار
+# Filter Combo Box
+filterCombo.search=بحث...
+# Filter Pane
+filterPane.headerText=مصفيات البحث
+filterPane.activeFilters=مصفيات البحث المفعلة
+filterPane.searchField=قيمة التصفية
+filterPane.addFilter=تطبيق التصفية
+# Notification Center
+notificationCenter.contextMenu.selectAll=اختر الكل
+notificationCenter.contextMenu.selectRead=اختر الإشعارات المقروءة
+notificationCenter.contextMenu.selectUnread=اختر الإشعارات الغير مقروءة
+notificationCenter.contextMenu.clearSelection=إلغاء الاختيار
+notificationCenter.contextMenu.sortState=فرز حسب الحالة
+notificationCenter.contextMenu.sortTime=فرز حسب الوقت
+notificationCenter.contextMenu.reverseSort=فرز عكسي
+notificationCenter.contextMenu.filterRead=تصفية الإشعارات المقروءة
+notificationCenter.contextMenu.filterUnread=تصفية الإشعارات الغير مقروءة
+notificationCenter.contextMenu.clearFilter=إلغاء التصفية
+notificationCenter.contextMenu.clearSort=إلغاء الفرز
+notificationCenter.contextMenu.selectionSeparator=الاختيار
+notificationCenter.contextMenu.sortingSeparator=الفرز
+notificationCenter.contextMenu.filterSeparator=التصفية
+notificationCenter.dnd=الوضع الصامت
+notificationCenter.header=الإشعارات
+# Stepper
+stepper.next=Next
+stepper.previous=Previous
+# Stepper Toggle
+stepperToggle.invalidFields=Invalid Fields...
+# Text Fields
+textField.contextMenu.copy=Copy
+textField.contextMenu.cut=Cut
+textField.contextMenu.paste=Paste
+textField.contextMenu.delete=Delete
+textField.contextMenu.selectAll=Select all
+textField.contextMenu.redo=Redo
+textField.contextMenu.undo=Undo
+##################################################
+# Enums
+##################################################
+chainMode.alternativeAnd=and
+chainMode.or=or
+##################################################
+# Filters
+##################################################
+filter.is=is
+filter.isNot=is not
+filter.greater=greater than
+filter.greaterEqual=greater or equal to
+filter.lesser=lesser than
+filter.lesserEqual=lesser or equal to
+filter.contains=contains
+filter.containsIgnCase=contains ignore case
+filter.containsAny=contains any
+filter.containsAll=contains all
+filter.endsWith=ends with
+filter.endsWithIgnCase=ends with ignore case
+filter.equals=equals
+filter.equalsIgnCase=equals ignore case
+filter.notEqual=is not equal to
+filter.startsWith=starts with
+filter.startsWithIgnCase=starts with ignore case
+##################################################
+# Utils
+##################################################
+stringUtil.now=Just now
+stringUtil.minutes={0} mins ago
+stringUtils.hours={0} hours ago
+stringUtils.days={0} days ago