contrib/langconf.php

83 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2023-11-02 19:04:51 +01:00
<?php
/*
Copyright 2023 UUP dump authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
//List of languages supported by the website
$supportedLangs = [
'en-us',
2023-11-10 22:50:35 +01:00
'qps-ploc',
2023-11-02 19:04:51 +01:00
'pl-pl',
'de-de',
'pt-br',
'pt-pt',
'nl-nl',
'fr-fr',
'zh-cn',
'ja-jp',
'es-ar',
'it-it',
'ar-sa',
'ko-kr',
'zh-tw',
'hu-hu',
'tr-tr',
'ro-ro',
'ru-ru',
];
/*
List of languages automatically set from user's browser configuration.
These mappings were made only for somewhat complete translations on purpose as
it's better to not force half translated website down to people's throats.
*/
$autoLangMappings = [
'en-us' => 'en-us',
'en' => 'en-us',
'pl-pl' => 'pl-pl',
'pl' => 'pl-pl',
'de-de' => 'de-de',
'de' => 'de-de',
'ja-jp' => 'ja-jp',
'ja' => 'ja-jp',
'zh-cn' => 'zh-cn',
'zh' => 'zh-cn',
'ar-sa' => 'ar-sa',
'ar' => 'ar-sa',
];
2023-11-24 18:01:23 +01:00
//Language selector configuration
$selectorConf = [
['de-de', 'de', 'Deutsch'],
['en-us', 'us', 'English (United States)'],
['es-ar', 'ar', 'Español (Argentina)'],
['fr-fr', 'fr', 'Français (France)'],
['it-it', 'it', 'Italiano'],
['hu-hu', 'hu', 'Magyar'],
['nl-nl', 'nl', 'Nederlands'],
['pl-pl', 'pl', 'polski'],
['pt-br', 'br', 'Português (Brasil)'],
['pt-pt', 'pt', 'Português (Portugal)'],
['ru-ru', 'ru', 'Русский'],
['ro-ro', 'ro', 'Română (România)'],
['tr-tr', 'tr', 'Türkçe'],
['ar-sa', 'sa', 'العربية'],
['ko-kr', 'kr', '한국어'],
['zh-cn', 'cn', '中文(简体)'],
['zh-tw', 'tw', '中文(繁體)'],
['ja-jp', 'jp', '日本語'],
];