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 /core/helpers/album.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 'core/helpers/album.php')
-rw-r--r-- | core/helpers/album.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php index 82697254..8998c8d0 100644 --- a/core/helpers/album.php +++ b/core/helpers/album.php @@ -65,12 +65,12 @@ class album_Core { static function get_add_form($parent) { $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gAddAlbumForm")); - $group = $form->group("add_album")->label(sprintf(_("Add Album to %s"), $parent->title)); - $group->input("name")->label(_("Name")); - $group->input("title")->label(_("Title")); - $group->textarea("description")->label(_("Description")); + $group = $form->group("add_album")->label(t("Add Album to {{album_title}}", array("album_title" => $parent->title))); + $group->input("name")->label(t("Name")); + $group->input("title")->label(t("Title")); + $group->textarea("description")->label(t("Description")); $group->hidden("type")->value("album"); - $group->submit(_("Create")); + $group->submit(t("Create")); $form->add_rules_from(ORM::factory("item")); return $form; } @@ -78,14 +78,14 @@ class album_Core { static function get_edit_form($parent) { $form = new Forge("albums/{$parent->id}", "", "post", array("id" => "gEditAlbumForm")); $form->hidden("_method")->value("put"); - $group = $form->group("edit_album")->label(_("Edit Album")); + $group = $form->group("edit_album")->label(t("Edit Album")); if ($parent->id != 1) { - $group->input("name")->label(_("Name"))->value($parent->name); + $group->input("name")->label(t("Name"))->value($parent->name); } - $group->input("title")->label(_("Title"))->value($parent->title); - $group->textarea("description")->label(_("Description"))->value($parent->description); + $group->input("title")->label(t("Title"))->value($parent->title); + $group->textarea("description")->label(t("Description"))->value($parent->description); $group->hidden("type")->value("album"); - $group->submit(_("Modify")); + $group->submit(t("Modify")); $form->add_rules_from(ORM::factory("item")); return $form; } |