1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

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>
This commit is contained in:
Maurício Meneghini Fauth
2024-11-14 05:37:00 -03:00
committed by GitHub
parent 817a3e7fd9
commit cdf59074d3
15 changed files with 190 additions and 58 deletions

View File

@@ -1,4 +1,7 @@
<?php
use phpweb\I18n\Languages;
$_SERVER['BASE_PAGE'] = 'mirror.php';
include_once __DIR__ . '/include/prepend.inc';
$SIDEBAR_DATA = '
@@ -84,7 +87,7 @@ site_header("Information About This PHP Mirror Site", ["current" => "community"]
<h2>Mirror Services</h2>
<ul>
<li>Default language is <?php echo $LANGUAGES[default_language()]; ?></li>
<li>Default language is <?php echo Languages::LANGUAGES[default_language()]; ?></li>
</ul>
<h2>Mirror Status</h2>