diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2009-01-08 17:13:06 +0000 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2009-01-08 17:13:06 +0000 |
| commit | a631fe29f3950f8db1f7fb4ce1f47261a9b0feff (patch) | |
| tree | b5af3ad39362dea97ce01be63d5ec09b7846bb9c /themes/default/views/photo.html.php | |
| parent | fd081159f1783918d81e355e25e262ccc5249913 (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 'themes/default/views/photo.html.php')
| -rw-r--r-- | themes/default/views/photo.html.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/themes/default/views/photo.html.php b/themes/default/views/photo.html.php index 887b451c..d374d4f8 100644 --- a/themes/default/views/photo.html.php +++ b/themes/default/views/photo.html.php @@ -1,20 +1,20 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <div id="gItem"> <?= $theme->photo_top() ?> - + <ul id="gPager"> - <li><?= sprintf(_("%d of %d"), $position, $sibling_count) ?></li> + <li><?= t("{{position}} of {{total}}", array("position" => $position, "total" => $sibling_count)) ?></li> <? if ($previous_item): ?> - <li class="previous"><a href="<?= $previous_item->url() ?>"><?= _("previous") ?></a></li> + <li class="previous"><a href="<?= $previous_item->url() ?>"><?= t("previous") ?></a></li> <? endif ?> <? if ($next_item): ?> - <li class="next"><a href="<?= $next_item->url() ?>"><?= _("next") ?></a></li> + <li class="next"><a href="<?= $next_item->url() ?>"><?= t("next") ?></a></li> <? endif ?> </ul> - <img id="gPhotoId-<?= $item->id ?>" + <img id="gPhotoId-<?= $item->id ?>" src="<?= $item->resize_url() ?>" - alt="<?= $item->title ?>" + alt="<?= $item->title ?>" width="<?= $item->resize_width ?>" height="<?= $item->resize_height ?>" /> |
