1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/include/languages.inc
Maurício Meneghini Fauth cdf59074d3 Replace languages.inc globals with I18n\Languages consts (#1121)
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>
2024-11-14 11:37:00 +03:00

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);