mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
i18n refactoring: Rename all _() (reserved by gettext) calls to t().
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<ul>
|
||||
<li>
|
||||
<? printf(_("Operating System: %s"), PHP_OS) ?>
|
||||
<?= t("Operating System: {{operating_system}}", array("operating_system" => PHP_OS)) ?>
|
||||
</li>
|
||||
<li>
|
||||
<? printf(_("Apache: %s"), function_exists("apache_get_version") ? apache_get_version() : _("Unknown")) ?>
|
||||
<?= t("Apache: {{apache_version}}", array("apache_version" => function_exists("apache_get_version") ? apache_get_version() : t("Unknown"))) ?>
|
||||
</li>
|
||||
<li>
|
||||
<? printf(_("PHP: %s"), phpversion()) ?>
|
||||
<?= t("PHP: {{php_version}}", array("php_version" => phpversion())) ?>
|
||||
</li>
|
||||
<li>
|
||||
<? printf(_("MySQL: %s"), mysql_get_server_info()) ?>
|
||||
<?= t("MySQL: {{mysql_version}}", array("mysql_version" => mysql_get_server_info())) ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user