mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-11 09:43:51 -04:00
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.
This commit is contained in:
@@ -27,7 +27,7 @@ class comment_block_Core {
|
||||
public static function photo_bottom($theme) {
|
||||
$block = new Block;
|
||||
$block->id = "gComments";
|
||||
$block->title = _("Comments");
|
||||
$block->title = t("Comments");
|
||||
|
||||
$view = new View("comments.html");
|
||||
$view->comments = ORM::factory("comment")
|
||||
@@ -44,7 +44,7 @@ class comment_block_Core {
|
||||
public static function admin_dashboard_blocks($theme) {
|
||||
$block = new Block();
|
||||
$block->id = "gRecentComments";
|
||||
$block->title = _("Recent Comments");
|
||||
$block->title = t("Recent Comments");
|
||||
$block->content = new View("admin_block_recent_comments.html");
|
||||
$block->content->comments =
|
||||
ORM::factory("comment")->orderby("created", "DESC")->limit(5)->find_all();
|
||||
|
||||
Reference in New Issue
Block a user