summaryrefslogtreecommitdiff
path: root/core/helpers/core_installer.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-01-08 17:13:06 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-01-08 17:13:06 +0000
commita631fe29f3950f8db1f7fb4ce1f47261a9b0feff (patch)
treeb5af3ad39362dea97ce01be63d5ec09b7846bb9c /core/helpers/core_installer.php
parentfd081159f1783918d81e355e25e262ccc5249913 (diff)
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.
Diffstat (limited to 'core/helpers/core_installer.php')
-rw-r--r--core/helpers/core_installer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index 15b97809..043af641 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -122,7 +122,7 @@ class core_installer {
$db->query("CREATE TABLE `translations_incomings` (
`id` int(9) NOT NULL auto_increment,
- `key` char(32) NOT NULL,
+ `key` binary(16) NOT NULL,
`locale` char(10) NOT NULL,
`message` text NOT NULL,
`translation` text,
@@ -211,8 +211,8 @@ class core_installer {
}
if (!module::get_var("core", "graphics_toolkit")) {
site_status::warning(
- sprintf(_("Graphics toolkit missing! Please %schoose a toolkit%s."),
- "<a href=\"" . url::site("admin/graphics") . "\">", "</a>"),
+ t("Graphics toolkit missing! Please {{link_start}}choose a toolkit{{link_start}}.",
+ array("link_start" => "<a href=\"" . url::site("admin/graphics") . "\">", "link_end" => "</a>")),
"missing_graphics_toolkit");
}