mirror of
https://github.com/php/web-php.git
synced 2026-03-24 07:12:16 +01:00
The include/languages.inc file was not removed as it's used in other repositories. It should be removed after migration. Tests were added to ensure that the global variables and the constants are in sync with each other. Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
29 lines
670 B
PHP
29 lines
670 B
PHP
<?php
|
|
/**
|
|
* This file is deprecated, and it exists for backward compatibility purposes only.
|
|
* It must be kept in sync with {@see \phpweb\I18n\Languages}.
|
|
*/
|
|
|
|
$LANGUAGES = [
|
|
'en' => 'English',
|
|
'de' => 'German',
|
|
'es' => 'Spanish',
|
|
'fr' => 'French',
|
|
'it' => 'Italian',
|
|
'ja' => 'Japanese',
|
|
'pl' => 'Polish',
|
|
'pt_BR' => 'Brazilian Portuguese',
|
|
'ro' => 'Romanian',
|
|
'ru' => 'Russian',
|
|
'tr' => 'Turkish',
|
|
'uk' => 'Ukrainian',
|
|
'zh' => 'Chinese (Simplified)',
|
|
];
|
|
|
|
$INACTIVE_ONLINE_LANGUAGES = [
|
|
'pl' => 'Polish',
|
|
'ro' => 'Romanian',
|
|
];
|
|
|
|
$ACTIVE_ONLINE_LANGUAGES = array_diff($LANGUAGES, $INACTIVE_ONLINE_LANGUAGES);
|