From 50177ec191014a0d906286232dc8ae047597056c Mon Sep 17 00:00:00 2001 From: Adam Fairholm Date: Sun, 8 Jan 2012 20:20:27 -0500 Subject: [PATCH] Updating to new language module:key syntax. --- details.php | 4 ++-- language/english/sample_lang.php | 26 +++++++++++++------------- views/admin/form.php | 6 +++--- views/admin/items.php | 14 +++++++------- views/index.php | 4 ++-- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/details.php b/details.php index dfb9578..27ee136 100644 --- a/details.php +++ b/details.php @@ -18,11 +18,11 @@ public function info() 'menu' => 'content', // You can also place modules in their top level menu. For example try: 'menu' => 'Sample', 'sections' => array( 'items' => array( - 'name' => 'sample.items', // These are translated from your language file + 'name' => 'sample:items', // These are translated from your language file 'uri' => 'admin/sample', 'shortcuts' => array( 'create' => array( - 'name' => 'sample.create', + 'name' => 'sample:create', 'uri' => 'admin/sample/create', 'class' => 'add' ) diff --git a/language/english/sample_lang.php b/language/english/sample_lang.php index 89d05c1..77caec3 100644 --- a/language/english/sample_lang.php +++ b/language/english/sample_lang.php @@ -1,22 +1,22 @@ \ No newline at end of file diff --git a/views/admin/form.php b/views/admin/form.php index ef06a35..89ef276 100644 --- a/views/admin/form.php +++ b/views/admin/form.php @@ -1,6 +1,6 @@
-

method); ?>

+

method); ?>

@@ -11,12 +11,12 @@ diff --git a/views/admin/items.php b/views/admin/items.php index b07e170..c6f64a4 100644 --- a/views/admin/items.php +++ b/views/admin/items.php @@ -1,5 +1,5 @@
-

+

@@ -11,8 +11,8 @@ 'action_to_all', 'class' => 'check-all'));?> - - + + @@ -32,9 +32,9 @@ id, lang('sample.edit'), 'class="button"').' '. - anchor('admin/sample/delete/'.$item->id, lang('sample.delete'), array('class'=>'button')); ?> + anchor('sample', lang('sample:view'), 'class="button" target="_blank"').' '. + anchor('admin/sample/edit/'.$item->id, lang('sample:edit'), 'class="button"').' '. + anchor('admin/sample/delete/'.$item->id, lang('sample:delete'), array('class'=>'button')); ?> @@ -46,7 +46,7 @@ -
+
diff --git a/views/index.php b/views/index.php index 36ba43e..b6d7f20 100644 --- a/views/index.php +++ b/views/index.php @@ -6,8 +6,8 @@
- - + + {{ items }}
{{ helper:lang line="sample.name" }}{{ helper:lang line="sample.slug" }}{{ helper:lang line="sample:name" }}{{ helper:lang line="sample:slug" }}