summaryrefslogtreecommitdiff
path: root/modules/tag/views
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 /modules/tag/views
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 'modules/tag/views')
-rw-r--r--modules/tag/views/admin_tags.html.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/tag/views/admin_tags.html.php b/modules/tag/views/admin_tags.html.php
index 4315917b..12f724b2 100644
--- a/modules/tag/views/admin_tags.html.php
+++ b/modules/tag/views/admin_tags.html.php
@@ -1,21 +1,21 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<h1> <?= _("Tags") ?> </h1>
+<h1> <?= t("Tags") ?> </h1>
<div id="gTagSearch">
<form method="get" action="<?= url::site("admin/tags") ?>">
<fieldset>
- <legend> <?= _("Search Tags") ?> </legend>
+ <legend> <?= t("Search Tags") ?> </legend>
<input name="filter" value="<?= $filter ?>"/>
- <input type="submit" value="<?= _("Search Tags") ?>"/>
+ <input type="submit" value="<?= t("Search Tags") ?>"/>
</fieldset>
</form>
</div>
<table>
<tr>
- <th> <?= _("Tag") ?> </th>
- <th> <?= _("Photos") ?> </th>
- <th> <?= _("Actions") ?> </th>
+ <th> <?= t("Tag") ?> </th>
+ <th> <?= t("Photos") ?> </th>
+ <th> <?= t("Actions") ?> </th>
</tr>
<? foreach ($tags as $tag): ?>
<tr>
@@ -25,14 +25,14 @@
<ul>
<li>
<a href="<?= url::site("admin/tags/form_delete/$tag->id") ?>" class="gDialogLink"
- title="<?= sprintf(_("Delete tag %s"), $tag->name) ?>">
- <?= _("delete") ?>
+ title="<?= t("Delete tag {{tag_name}}", array("tag_name" => $tag->name)) ?>">
+ <?= t("delete") ?>
</a>
</li>
<li>
<a href="<?= url::site("admin/tags/form_rename/$tag->id") ?>" class="gDialogLink"
- title="<?= sprintf(_("Rename tag %s"), $tag->name) ?>">
- <?= _("rename") ?>
+ title="<?= t("Rename tag {{tag_name}}", array("tag_name" => $tag->name)) ?>">
+ <?= t("rename") ?>
</a>
</li>
</ul>