From 9b851d6d7f7bc415f3132d41b8d17d34a4733ae9 Mon Sep 17 00:00:00 2001
From: Frank Naegler <frank.naegler@typo3.org>
Date: Thu, 7 Mar 2024 20:22:01 +0100
Subject: [PATCH] [FEATURE] Add Maltese (mt) as supported language

This change adds support for Maltese to be selected as
TYPO3 Language and to connect to TYPO3 Localizations
(XLF files, Site Configuration) by default.

Maltese language is spoken in Malta.

Also see https://en.wikipedia.org/wiki/Languages_of_Malta

Resolves: #103331
Releases: main
Change-Id: Ib8bb4112f094f9379e8d46c90291b281335ade4d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83319
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Marvin Buchmann <marvin_buchmann@web.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Marvin Buchmann <marvin_buchmann@web.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
---
 .../core/Classes/Localization/Locales.php     |  1 +
 ...1-NativeSupportForLanguageMalteseAdded.rst | 34 +++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 typo3/sysext/core/Documentation/Changelog/13.1/Feature-103331-NativeSupportForLanguageMalteseAdded.rst

diff --git a/typo3/sysext/core/Classes/Localization/Locales.php b/typo3/sysext/core/Classes/Localization/Locales.php
index a697fa8b8fbb..57bcdf97e7aa 100644
--- a/typo3/sysext/core/Classes/Localization/Locales.php
+++ b/typo3/sysext/core/Classes/Localization/Locales.php
@@ -79,6 +79,7 @@ class Locales implements SingletonInterface
         'mi' => 'Maori',
         'mk' => 'Macedonian',
         'ms' => 'Malay',
+        'mt' => 'Maltese',
         'nl' => 'Dutch',
         'no' => 'Norwegian',
         'pl' => 'Polish',
diff --git a/typo3/sysext/core/Documentation/Changelog/13.1/Feature-103331-NativeSupportForLanguageMalteseAdded.rst b/typo3/sysext/core/Documentation/Changelog/13.1/Feature-103331-NativeSupportForLanguageMalteseAdded.rst
new file mode 100644
index 000000000000..a941bf779b3e
--- /dev/null
+++ b/typo3/sysext/core/Documentation/Changelog/13.1/Feature-103331-NativeSupportForLanguageMalteseAdded.rst
@@ -0,0 +1,34 @@
+.. include:: /Includes.rst.txt
+
+.. _feature-103331:
+
+============================================================
+Feature: #103331 - Native support for language Maltese added
+============================================================
+
+See :issue:`103331`
+
+Description
+===========
+
+TYPO3 now supports Maltese. Maltese language is spoken in Malta.
+
+The ISO 639-1 code for Maltese is "mt", which is how TYPO3
+accesses the language internally.
+
+
+Impact
+======
+
+It is now possible to
+
+*  Fetch translated labels from translations.typo3.org / CrowdIn automatically
+   within the TYPO3 Backend
+*  Switch the backend interface to Maltese language
+*  Create a new language in a site configuration using Maltese
+*  Create translation files with the "mt" prefix (such as `mt.locallang.xlf`)
+   to create your own labels
+
+and TYPO3 will pick Maltese as a language just like any other supported language.
+
+.. index:: Backend, Frontend, ext:core
-- 
GitLab