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:
Andy Staudacher
2009-01-08 17:13:06 +00:00
parent fd081159f1
commit a631fe29f3
70 changed files with 479 additions and 414 deletions

View File

@@ -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>