[FEATURE] New core language: Afrikaans
authorJigal van Hemert <jigal@xs4all.nl>
Fri, 27 Jan 2012 20:25:45 +0000 (21:25 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 28 Jan 2012 13:32:47 +0000 (14:32 +0100)
Change-Id: Ica78c546a24913e33d52fa0a7727b6f8539a171a
Resolves: #33479
Releases: 4.7
Reviewed-on: http://review.typo3.org/8736
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_cs.php
t3lib/l10n/class.t3lib_l10n_locales.php
typo3/sysext/setup/mod/locallang.xlf

index 75273e2..8e197aa 100644 (file)
@@ -194,6 +194,7 @@ class t3lib_cs {
                // mapping of iso-639-1 language codes to script names
        var $lang_to_script = array(
                        // iso-639-1 language codes, see http://www.loc.gov/standards/iso639-2/php/code_list.php
+               'af' => 'west_european', //Afrikaans
                'ar' => 'arabic',
                'bg' => 'cyrillic', // Bulgarian
                'bs' => 'east_european', // Bosnian
@@ -244,6 +245,7 @@ class t3lib_cs {
                'zh' => 'chinese',
                        // MS language codes, see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_language_strings.asp
                        // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceinternational5/html/wce50conLanguageIdentifiersandLocales.asp
+               'afk'=> 'west_european', // Afrikaans
                'ara' => 'arabic',
                'bgr' => 'cyrillic', // Bulgarian
                'cat' => 'west_european', // Catalan
@@ -304,6 +306,7 @@ class t3lib_cs {
                'trk' => 'turkish',
                'ukr' => 'cyrillic', // Ukrainian
                        // English language names
+               'afrikaans' => 'west_european',
                'albanian' => 'albanian',
                'arabic' => 'arabic',
                'basque' => 'west_european',
@@ -412,6 +415,7 @@ class t3lib_cs {
                // TYPO3 specific: Array with the system charsets used for each system language in TYPO3:
                // Empty values means "iso-8859-1"
        var $charSetArray = array(
+               'af' => '',
                'ar' => 'iso-8859-6',
                'ba' => 'iso-8859-2',
                'bg' => 'windows-1251',
index 160f0ff..d79f206 100644 (file)
@@ -47,6 +47,7 @@ class t3lib_l10n_Locales implements t3lib_Singleton {
         */
        protected $languages = array(
                'default' => 'English',
+               'af' => 'Afrikaans',
                'ar' => 'Arabic',
                'bs' => 'Bosnian',
                'bg' => 'Bulgarian',
index 40f9517..d63f666 100644 (file)
@@ -12,6 +12,9 @@
                        <trans-unit id="lang_default" xml:space="preserve">
                                <source>English</source>
                        </trans-unit>
+                       <trans-unit id="lang_af" xml:space="preserve">
+                               <source>Afrikaans</source>
+                       </trans-unit>
                        <trans-unit id="lang_ar" xml:space="preserve">
                                <source>Arabic</source>
                        </trans-unit>