From e8aa2643d66500ca9b6cce9ebcd0d5f8d955c3bf Mon Sep 17 00:00:00 2001 From: Mustafa Albazy Date: Sun, 13 Feb 2022 20:36:53 +0000 Subject: [PATCH 1/2] Create ar.toml Adding Arabic Language translation. --- i18n/ar.toml | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 i18n/ar.toml diff --git a/i18n/ar.toml b/i18n/ar.toml new file mode 100644 index 0000000..ca9d22f --- /dev/null +++ b/i18n/ar.toml @@ -0,0 +1,195 @@ +# Translations for Arabic +# https://gohugo.io/content-management/multilingual/#translation-of-strings + +# === baseof == +[backToTop] +other = "الرجوع للأعلى" + +[viewComments] +other = "عرض التعليقات" +# === baseof == + +# === Post === +[posts] +other = "التدوينات" +# === Post === + +# === Taxonomy === +[allSome] +other = "كُل {{ .Some }}" + +[tag] +other = "وسم" + +[tags] +other = "وسوم" + +[category] +other = "تصنيف" + +[categories] +other = "التصانيف" +# === Taxonomy === + +# === Pagination === +[more] +other = "المزيد" +# === Pagination === + +# === partials/header.html === +[selectLanguage] +other = "إختيار اللغة" + +[switchTheme] +other = "تغيير القالب" +# === partials/header.html === + +# === partials/footer.html === +[poweredBySome] +other = "يعمل الموقع بنظام {{ .Hugo }} | التصميم مقدم من {{ .Theme }}" +# === partials/footer.html === + +# === partials/comment.html === +[valineLang] +other = "ar" + +[valinePlaceholder] +other = "تعليقك..." + +[facebookLanguageCode] +other = "ar_AR" +# === partials/comment.html === + +# === partials/assets.html === +[search] +other = "بحث" + +[searchPlaceholder] +other = "ابحث في العناوين او المحتوى..." + +[clear] +other = "مسح" + +[cancel] +other = "إلغاء" + +[noResultsFound] +other = "لا يوجد نتائج" + +[lunrLanguageCode] +other = "ar" + +[copyToClipboard] +other = "نسخ" + +[cookieconsentMessage] +other = "هذا الموقع يستخدم الكوكيز لتجربة تصفح افضل." + +[cookieconsentDismiss] +other = "حسنًا" + +[cookieconsentLink] +other = "معرفة المزيد" +# === partials/assets.html === + +# === partials/plugin/share.html === +[shareOn] +other = "مشاركة الرابط" +# === partials/plugin/share.html === + +# === posts/single.html === +[contents] +other = "المحتويات" + +[publishedOnDate] +other = "نُشرت في {{ .Date }}" + +[includedInCategories] +other = "في تصنيف {{ .Categories }}" + +[wordCount] +one = "كلمة واحدة" +other = "{{ .Count }} كلمة" + +[readingTime] +one = "دقيقة واحدة" +other = "{{ .Count }} دقيقة" + +[views] +other = "مشاهدات" + +[author] +other = "الكاتب" + +[updatedOnDate] +other = "تم التحديث في {{ .Date }}" + +[readMarkdown] +other = "قراءة نص المارك داون" + +[back] +other = "الرجوع" + +[home] +other = "الرئيسية" + +[readMore] +other = "قراءة المزيد" +# === posts/single.html === + +# === 404.html === +[pageNotFound] +other = "لم يتم العثور على الصفحة" + +[pageNotFoundText] +other = "الصفحة التي تحاول الوصول اليها لم يتم العثور عليها." +# === 404.html === + +# === shortcodes/admonition.html === +[note] +other = "ملاحظة" + +[abstract] +other = "مقدمة" + +[info] +other = "معلومات" + +[tip] +other = "نصيحة" + +[success] +other = "نجح" + +[question] +other = "سؤال" + +[warning] +other = "تحذير" + +[failure] +other = "فشل" + +[danger] +other = "خطر" + +[bug] +other = "خطئ برمجي" + +[example] +other = "مثال" + +[quote] +other = "إقتباس" +# === shortcodes/admonition.html === + +# === shortcodes/version.html === +[new] +other = "جديد" + +[changed] +other = "تم تعديله" + +[deleted] +other = "حُذف" +# === shortcodes/version.html === From ae52d790dac9ea1d8c3a55e66b49e06553b2cb53 Mon Sep 17 00:00:00 2001 From: Dillon Date: Tue, 17 May 2022 23:01:48 +0800 Subject: [PATCH 2/2] chore: Arabic language translation in docs --- README.md | 1 + README.zh-cn.md | 1 + exampleSite/content/posts/theme-documentation-basics/index.en.md | 1 + .../content/posts/theme-documentation-basics/index.zh-cn.md | 1 + 4 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 3f58c80..ee14812 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ LoveIt supports the following languages: * Russian * Romanian * Vietnamese +* Arabic * [Contribute with a new language](https://github.com/dillonzq/LoveIt/pulls) [Languages Compatibility](https://hugoloveit.com/theme-documentation-basics/#language-compatibility) diff --git a/README.zh-cn.md b/README.zh-cn.md index 524ea1a..5f4ce06 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -136,6 +136,7 @@ LoveIt 支持下列语言: * 俄语 * 罗马尼亚语 * 越南语 +* 阿拉伯语 * [贡献一种新的语言](https://github.com/dillonzq/LoveIt/pulls) [语言兼容性](https://hugoloveit.com/zh-cn/theme-documentation-basics/#language-compatibility) diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 6ee1910..e48f078 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -843,6 +843,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s | Russian | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | Romanian | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | Vietnamese | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| Arabic | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | ### 4.2 Basic Configuration diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index f33215d..cfb0065 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -845,6 +845,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac | 俄语 | `ru` | `ru` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | 罗马尼亚语 | `ro` | `ro` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | | 越南语 | `vi` | `vi` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | +| 阿拉伯语 | `ar` | `ar` | :(far fa-square fa-fw): | :(far fa-check-square fa-fw): | ### 4.2 基本配置