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/controllers/albums.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/controllers/albums.php')
| -rw-r--r-- | core/controllers/albums.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php index 20291315..d87bd640 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -93,7 +93,7 @@ class Albums_Controller extends Items_Controller { log::success("content", "Created an album", html::anchor("albums/$new_album->id", "view album")); - message::success(sprintf(_("Created album %s"), $new_album->title)); + message::success(t("Created album {{album_title}}", array("album_title" => $new_album->title))); print json_encode( array("result" => "success", @@ -123,7 +123,7 @@ class Albums_Controller extends Items_Controller { user::active()->id); log::success("content", "Added a photo", html::anchor("photos/$photo->id", "view photo")); - message::success(sprintf(_("Added photo %s"), $photo->title)); + message::success(t("Added photo {{photo_title}}", array("photo_title" => $photo->title))); print json_encode( array("result" => "success", @@ -155,7 +155,7 @@ class Albums_Controller extends Items_Controller { module::event("album_changed", $orig, $album); log::success("content", "Updated album", "<a href=\"albums/$album->id\">view</a>"); - message::success(sprintf(_("Saved album %s"), $album->title)); + message::success(t("Saved album {{album_title}}", array("album_title" => $album->title))); print json_encode( array("result" => "success", |
