From a631fe29f3950f8db1f7fb4ce1f47261a9b0feff Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Thu, 8 Jan 2009 17:13:06 +0000 Subject: 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. --- core/views/admin_block_platform.html.php | 8 ++-- core/views/admin_block_stats.html.php | 6 +-- core/views/admin_block_welcome.html.php | 11 ++++-- core/views/admin_graphics.html.php | 38 ++++++++++-------- core/views/admin_maintenance.html.php | 62 +++++++++++++++--------------- core/views/admin_maintenance_task.html.php | 4 +- core/views/admin_modules.html.php | 18 ++++----- core/views/admin_themes.html.php | 6 +-- core/views/permissions_form.html.php | 6 +-- core/views/quick_pane.html.php | 6 +-- 10 files changed, 86 insertions(+), 79 deletions(-) (limited to 'core/views') diff --git a/core/views/admin_block_platform.html.php b/core/views/admin_block_platform.html.php index 958097a1..2f13d5d9 100644 --- a/core/views/admin_block_platform.html.php +++ b/core/views/admin_block_platform.html.php @@ -1,15 +1,15 @@ diff --git a/core/views/admin_block_stats.html.php b/core/views/admin_block_stats.html.php index b83add10..c3b9ee98 100644 --- a/core/views/admin_block_stats.html.php +++ b/core/views/admin_block_stats.html.php @@ -1,12 +1,12 @@ diff --git a/core/views/admin_block_welcome.html.php b/core/views/admin_block_welcome.html.php index a221c9bd..35501ffc 100644 --- a/core/views/admin_block_welcome.html.php +++ b/core/views/admin_block_welcome.html.php @@ -1,15 +1,18 @@

- +

diff --git a/core/views/admin_graphics.html.php b/core/views/admin_graphics.html.php index 19f80cba..7d57ec6f 100644 --- a/core/views/admin_graphics.html.php +++ b/core/views/admin_graphics.html.php @@ -1,13 +1,13 @@
-

+

- +

"> -

+

@@ -49,17 +51,18 @@ @@ -75,22 +78,23 @@
@@ -19,21 +19,23 @@ -

+

- ", "") ?> + "", "link_end" => "")) ?>

gd["GD Version"] && function_exists('imagerotate')): ?>

- gd["GD Version"]) ?> + $tk->gd["GD Version"])) ?>

gd["GD Version"]): ?>

- gd["GD Version"]) ?> + $tk->gd["GD Version"])) ?>

- +

-

+

- ", "") ?> + "", "link_end" => "")) ?>

imagemagick): ?>

- imagemagick) ?> + $tk->imagemagick)) ?>

- +

-

+

- ", "") ?> + "", "link_end" => "")) ?>

graphicsmagick): ?>

- graphicsmagick) ?> + $tk->graphicsmagick)) ?>

- +

- "/> + "/>
diff --git a/core/views/admin_maintenance.html.php b/core/views/admin_maintenance.html.php index 1f9809ac..49a2f364 100644 --- a/core/views/admin_maintenance.html.php +++ b/core/views/admin_maintenance.html.php @@ -1,22 +1,22 @@
-

+

- +

-

+

@@ -30,7 +30,7 @@ @@ -38,24 +38,24 @@
-

+

- + - + - +
callback?csrf=$csrf") ?>" class="gDialogLink"> - +
@@ -69,13 +69,13 @@ @@ -97,24 +97,24 @@
-

+

- + - + - + - + - +
done): ?> state == "cancelled"): ?> - + - + state == "stalled"): ?> - + - percent_complete) ?> + $task->percent_complete)) ?> @@ -84,11 +84,11 @@ state == "stalled"): ?> id?csrf=$csrf") ?>" class="gDialogLink"> - + id?csrf=$csrf") ?>"> - +
@@ -127,11 +127,11 @@ diff --git a/core/views/admin_maintenance_task.html.php b/core/views/admin_maintenance_task.html.php index bcbdba0d..52e1f00d 100644 --- a/core/views/admin_maintenance_task.html.php +++ b/core/views/admin_maintenance_task.html.php @@ -26,7 +26,7 @@
percent_complete:
- - + +
diff --git a/core/views/admin_modules.html.php b/core/views/admin_modules.html.php index 4aa36a96..67fdfa32 100644 --- a/core/views/admin_modules.html.php +++ b/core/views/admin_modules.html.php @@ -1,30 +1,30 @@
-

+

- +

">
- + - + - + - + - +
state == "success"): ?> - + state == "error"): ?> - + state == "cancelled"): ?> - + @@ -140,14 +140,14 @@ done): ?> id?csrf=$csrf") ?>"> - + id?csrf=$csrf") ?>"> - + id?csrf=$csrf") ?>"> - +
- - - - + + + + $module_info): ?> $module_name); ?> locked) $data["disabled"] = 1; ?> - + - +
name) ?> name) ?> version ?> description) ?> description) ?>
- "/> + "/>
diff --git a/core/views/admin_themes.html.php b/core/views/admin_themes.html.php index cff6de7d..1064ae5e 100644 --- a/core/views/admin_themes.html.php +++ b/core/views/admin_themes.html.php @@ -1,8 +1,8 @@
-

+

- +

"> @@ -12,6 +12,6 @@ /> - "/> + "/>
diff --git a/core/views/permissions_form.html.php b/core/views/permissions_form.html.php index 94a3bead..ba3191e1 100644 --- a/core/views/permissions_form.html.php +++ b/core/views/permissions_form.html.php @@ -2,7 +2,7 @@
id") ?>">
- + @@ -14,7 +14,7 @@ - +
display_name) ?> display_name) ?> name, $item) ?> @@ -22,7 +22,7 @@ name, $item) ?> - + diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php index 7ae0a856..9a0e56d5 100644 --- a/core/views/quick_pane.html.php +++ b/core/views/quick_pane.html.php @@ -4,7 +4,7 @@
id/ccw?csrf=" . access::csrf_token()) ?>"> - +
@@ -12,7 +12,7 @@ @@ -20,7 +20,7 @@
id/cw?csrf=" . access::csrf_token()) ?>"> - +
-- cgit v1.2.3