From 2a6e362d7b1bd405b2b2746087c936d009e482f6 Mon Sep 17 00:00:00 2001 From: Ez Aldin Waez Date: Sun, 19 Apr 2026 07:55:19 +0300 Subject: [PATCH 1/3] feat: add built-in Arabic localization --- src/resources/language/README.md | 1 + src/resources/language/_language-ar.yml | 130 ++++++++++++++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 src/resources/language/_language-ar.yml diff --git a/src/resources/language/README.md b/src/resources/language/README.md index c4bfe8094d6..22621becb71 100644 --- a/src/resources/language/README.md +++ b/src/resources/language/README.md @@ -7,6 +7,7 @@ This directory includes a set of built-in translations, including: | File | Language | | --------------------- | ---------------------------- | | `_language.yml` | English (default) | +| `_language-ar.yml` | Arabic | | `_language-eu.yml` | Basque | | `_language-ca.yml` | Catalan | | `_language-zh.yml` | Chinese | diff --git a/src/resources/language/_language-ar.yml b/src/resources/language/_language-ar.yml new file mode 100644 index 00000000000..2fc850243ef --- /dev/null +++ b/src/resources/language/_language-ar.yml @@ -0,0 +1,130 @@ +toc-title-document: "جدول المحتويات" +toc-title-website: "في هذه الصفحة" + +related-formats-title: "تنسيقات أخرى" +related-notebooks-title: "الدفاتر" +source-notebooks-prefix: "المصدر" +other-links-title: "روابط أخرى" +code-links-title: "روابط الكود" +launch-dev-container-title: "تشغيل حاوية التطوير" +launch-binder-title: "تشغيل Binder" + +article-notebook-label: "دفتر المقالة" +notebook-preview-download: "تنزيل الدفتر" +notebook-preview-download-src: "تنزيل المصدر" +notebook-preview-back: "العودة إلى المقالة" +manuscript-meca-bundle: "حزمة MECA" + +section-title-abstract: "الملخص" +section-title-appendices: "الملاحق" +section-title-footnotes: "الهوامش" +section-title-references: "المراجع" +section-title-reuse: "إعادة الاستخدام" +section-title-copyright: "حقوق النشر" +section-title-citation: "الاستشهاد" + +appendix-attribution-cite-as: "يرجى الاستشهاد بهذا العمل كالتالي:" +appendix-attribution-bibtex: "استشهاد BibTeX:" +appendix-view-license: "عرض الترخيص" + +title-block-author-single: "المؤلف" +title-block-author-plural: "المؤلفون" +title-block-affiliation-single: "الانتساب" +title-block-affiliation-plural: "الانتسابات" +title-block-published: "تاريخ النشر" +title-block-modified: "تاريخ التعديل" +title-block-keywords: "الكلمات المفتاحية" + +callout-tip-title: "تلميح" +callout-note-title: "ملاحظة" +callout-warning-title: "تحذير" +callout-important-title: "هام" +callout-caution-title: "تنبيه" + +code-summary: "الكود" + +code-tools-menu-caption: "الكود" +code-tools-show-all-code: "إظهار الكود بالكامل" +code-tools-hide-all-code: "إخفاء الكود بالكامل" +code-tools-view-source: "عرض المصدر" +code-tools-source-code: "الكود المصدري" + +tools-share: "مشاركة" +tools-download: "تنزيل" + +code-line: "السطر" +code-lines: "الأسطر" + +copy-button-tooltip: "نسخ إلى الحافظة" +copy-button-tooltip-success: "تم النسخ!" + +repo-action-links-edit: "تحرير هذه الصفحة" +repo-action-links-source: "عرض المصدر" +repo-action-links-issue: "الإبلاغ عن مشكلة" + +back-to-top: "العودة إلى الأعلى" + +search-no-results-text: "لا توجد نتائج" +search-matching-documents-text: "مستندات مطابقة" +search-copy-link-title: "نسخ رابط البحث" +search-hide-matches-text: "إخفاء المطابقات الإضافية" +search-more-match-text: "مطابقة إضافية في هذا المستند" +search-more-matches-text: "مطابقات إضافية في هذا المستند" +search-clear-button-title: "مسح" +search-text-placeholder: "" +search-detached-cancel-button-title: "إلغاء" +search-submit-button-title: "إرسال" +search-label: "بحث" + +toggle-section: "تبديل القسم" +toggle-sidebar: "تبديل الشريط الجانبي" +toggle-dark-mode: "تبديل الوضع الداكن" +toggle-reader-mode: "تبديل وضع القراءة" +toggle-navigation: "تبديل قائمة التنقل" + +crossref-fig-title: "الشكل" +crossref-tbl-title: "الجدول" +crossref-lst-title: "الكود" +crossref-thm-title: "المبرهنة" +crossref-lem-title: "التوطئة" +crossref-cor-title: "النتيجة" +crossref-prp-title: "القضية" +crossref-cnj-title: "الحدسية" +crossref-def-title: "التعريف" +crossref-exm-title: "المثال" +crossref-exr-title: "التمرين" +crossref-ch-prefix: "الفصل" +crossref-apx-prefix: "الملحق" +crossref-sec-prefix: "القسم" +crossref-eq-prefix: "المعادلة" +crossref-lof-title: "قائمة الأشكال" +crossref-lot-title: "قائمة الجداول" +crossref-lol-title: "قائمة الأكواد" + +environment-proof-title: "الإثبات" +environment-remark-title: "الملاحظة" +environment-solution-title: "الحل" + +listing-page-order-by: "الترتيب حسب" +listing-page-order-by-default: "الافتراضي" +listing-page-order-by-date-asc: "الأقدم" +listing-page-order-by-date-desc: "الأحدث" +listing-page-order-by-number-desc: "تنازلياً" +listing-page-order-by-number-asc: "تصاعدياً" +listing-page-field-date: "التاريخ" +listing-page-field-title: "العنوان" +listing-page-field-description: "الوصف" +listing-page-field-author: "المؤلف" +listing-page-field-filename: "اسم الملف" +listing-page-field-filemodified: "تاريخ التعديل" +listing-page-field-subtitle: "العنوان الفرعي" +listing-page-field-readingtime: "مدة القراءة" +listing-page-field-wordcount: "عدد الكلمات" +listing-page-field-categories: "الفئات" +listing-page-minutes-compact: "{0} د" +listing-page-category-all: "الكل" +listing-page-no-matches: "لا توجد عناصر مطابقة" +listing-page-words: "{0} كلمة" +listing-page-filter: "تصفية" + +draft: "مسودة" \ No newline at end of file From 32d26019e09572b08510c9c603ec8783e9aa4a96 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Thu, 5 Nov 2026 15:58:12 +0100 Subject: [PATCH 2/3] Add the Arabic keys added since this PR was opened The language parity test fails on any key missing from a language file, and 11 keys were added to _language.yml after this file was written. Their values are machine translations made with each key's translator note as context, then checked by two independent AI reviewers that agreed on every value: the same process as the other languages in #14822. Native-speaker review is requested on the PR. Also adds the changelog entry. --- news/changelog-1.12.md | 1 + src/resources/language/_language-ar.yml | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/news/changelog-1.12.md b/news/changelog-1.12.md index 4d7ccdc16ef..2c099415446 100644 --- a/news/changelog-1.12.md +++ b/news/changelog-1.12.md @@ -47,6 +47,7 @@ All changes included in 1.12: ## Other fixes and improvements +- ([#14389](https://github.com/quarto-dev/quarto-cli/pull/14389)): Add `ar` (Arabic) language translation. The `skip-to-content`, `navigation-*-label`, `scrollable-*-label`, `link-external-newwindow-label`, `announcement-dismiss-label` and `revealjs-menu-button-label` keys use reviewed machine translation. (author: @ezAldinWaez) - ([#14822](https://github.com/quarto-dev/quarto-cli/issues/14822)): Translate the `tools-share`, `tools-download`, and `skip-to-content` language keys in Greek. (author: @sogav21) - ([#14822](https://github.com/quarto-dev/quarto-cli/issues/14822)): The Lithuanian search label and the Swedish caution callout title no longer fall back to English. - ([#14822](https://github.com/quarto-dev/quarto-cli/issues/14822)): Translate the `title-block-modified` language key in Korean, and the `code-links-title`, `launch-binder-title`, `launch-dev-container-title`, `listing-page-field-wordcount` and `listing-page-words` language keys in Serbian (Latin), using reviewed machine translation. diff --git a/src/resources/language/_language-ar.yml b/src/resources/language/_language-ar.yml index 2fc850243ef..1170d26be36 100644 --- a/src/resources/language/_language-ar.yml +++ b/src/resources/language/_language-ar.yml @@ -63,6 +63,7 @@ repo-action-links-source: "عرض المصدر" repo-action-links-issue: "الإبلاغ عن مشكلة" back-to-top: "العودة إلى الأعلى" +skip-to-content: "الانتقال إلى المحتوى الرئيسي" search-no-results-text: "لا توجد نتائج" search-matching-documents-text: "مستندات مطابقة" @@ -81,6 +82,16 @@ toggle-sidebar: "تبديل الشريط الجانبي" toggle-dark-mode: "تبديل الوضع الداكن" toggle-reader-mode: "تبديل وضع القراءة" toggle-navigation: "تبديل قائمة التنقل" +navigation-site-label: "الموقع" +navigation-section-label: "القسم" +navigation-toolbar-label: "شريط الأدوات" +navigation-page-label: "الصفحة" +navigation-breadcrumbs-label: "مسار الصفحات" +scrollable-code-label: "كود قابل للتمرير" +scrollable-output-label: "إخراج قابل للتمرير" +link-external-newwindow-label: "(يفتح في علامة تبويب جديدة)" +announcement-dismiss-label: "إغلاق الإعلان" +revealjs-menu-button-label: "قائمة الشرائح" crossref-fig-title: "الشكل" crossref-tbl-title: "الجدول" From 683f6fa14171fe32b4b82d8c5f6ed16e052850f0 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Thu, 5 Nov 2026 16:08:55 +0100 Subject: [PATCH 3/3] =?UTF-8?q?Use=20"=D8=A7=D9=84=D8=AA=D9=86=D9=88=D9=8A?= =?UTF-8?q?=D9=87"=20for=20the=20Arabic=20citation=20section=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested by a native speaker in the review of this PR. The section heads "For attribution, please cite this work as:", which this word (attribution) fits. Co-authored-by: omar-rs <55405342+omar-rs@users.noreply.github.com> --- src/resources/language/_language-ar.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/language/_language-ar.yml b/src/resources/language/_language-ar.yml index 1170d26be36..3d87c69d600 100644 --- a/src/resources/language/_language-ar.yml +++ b/src/resources/language/_language-ar.yml @@ -21,7 +21,7 @@ section-title-footnotes: "الهوامش" section-title-references: "المراجع" section-title-reuse: "إعادة الاستخدام" section-title-copyright: "حقوق النشر" -section-title-citation: "الاستشهاد" +section-title-citation: "التنويه" appendix-attribution-cite-as: "يرجى الاستشهاد بهذا العمل كالتالي:" appendix-attribution-bibtex: "استشهاد BibTeX:"