From a18e953b646035c8c109070a864e59ac24c9af72 Mon Sep 17 00:00:00 2001
From: Tymoteusz Motylewski <t.motylewski@gmail.com>
Date: Wed, 15 Jan 2020 14:29:09 +0100
Subject: [PATCH] [FEATURE] Add support for Kinyarwanda language

Kinyarwanda is an official language of Rwanda,
which is now supported natively in TYPO3 for any
kind of labels with the ISO-839-1 code "rw".

Resolves: #90115
Releases: master, 9.5
Change-Id: I6958c44de03aa2397e409dc2e3d086bbf2fc46c8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62913
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
---
 .../core/Classes/Localization/Locales.php     |  1 +
 .../Feature-90115-KinyarwandaLanguage.rst     | 25 +++++++++++++++++++
 .../Resources/Private/Language/locallang.xlf  |  3 +++
 3 files changed, 29 insertions(+)
 create mode 100644 typo3/sysext/core/Documentation/Changelog/master/Feature-90115-KinyarwandaLanguage.rst

diff --git a/typo3/sysext/core/Classes/Localization/Locales.php b/typo3/sysext/core/Classes/Localization/Locales.php
index 8a37fa7aa410..2c0e0615ce8c 100644
--- a/typo3/sysext/core/Classes/Localization/Locales.php
+++ b/typo3/sysext/core/Classes/Localization/Locales.php
@@ -76,6 +76,7 @@ class Locales implements SingletonInterface
         'pt_BR' => 'Brazilian Portuguese',
         'ro' => 'Romanian',
         'ru' => 'Russian',
+        'rw' => 'Kinyarwanda',
         'sk' => 'Slovak',
         'sl' => 'Slovenian',
         'sq' => 'Albanian',
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-90115-KinyarwandaLanguage.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-90115-KinyarwandaLanguage.rst
new file mode 100644
index 000000000000..0f8236c40a1b
--- /dev/null
+++ b/typo3/sysext/core/Documentation/Changelog/master/Feature-90115-KinyarwandaLanguage.rst
@@ -0,0 +1,25 @@
+.. include:: ../../Includes.txt
+
+======================================================
+Feature: #90115 - Add support for Kinyarwanda language
+======================================================
+
+See :issue:`90115`
+
+Description
+===========
+
+Kinyarwanda - the Rwanda official language is now available to use in TYPO3 system-wide for
+translation labels, giving full support for having a TYPO3 installation (Frontend and Backend)
+working with Kinyarwanda out-of-the-box.
+
+The ISO-639-1 language code "rw" is now added to TYPO3's default locales.
+
+Impact
+======
+
+Kinyarwanda will be shown on the "Manage Language Packs" modal and also possible to select
+in BE user preferences. It is possible to use the "kw" ISO-639-1 iso code in site languages
+to use the labels in TYPO3 Frontend.
+
+.. index:: Backend, ext:core
diff --git a/typo3/sysext/setup/Resources/Private/Language/locallang.xlf b/typo3/sysext/setup/Resources/Private/Language/locallang.xlf
index c13ab36c79e7..019dea6c9f75 100644
--- a/typo3/sysext/setup/Resources/Private/Language/locallang.xlf
+++ b/typo3/sysext/setup/Resources/Private/Language/locallang.xlf
@@ -168,6 +168,9 @@
 			<trans-unit id="lang_ru" resname="lang_ru">
 				<source>Russian</source>
 			</trans-unit>
+			<trans-unit id="lang_rw" resname="lang_rw">
+				<source>Kinyarwanda</source>
+			</trans-unit>
 			<trans-unit id="lang_sk" resname="lang_sk">
 				<source>Slovak</source>
 			</trans-unit>
-- 
GitLab