diff --git a/app/views/layouts/_menu.php b/app/views/layouts/_menu.php
index cd8a31a..ab8b930 100755
--- a/app/views/layouts/_menu.php
+++ b/app/views/layouts/_menu.php
@@ -5,9 +5,9 @@
* having placeholders for user id and name that will be replaced with current user's
* data right before echoing the menu.
*/
- $key = 'menu.'.current_user()->level;
+ $key = 'menu.' . Rails::application()->I18n()->locale() . '.'.current_user()->level;
$menu = Rails::cache()->read($key);
-
+
if (!$menu) :
ob_start();
?>
@@ -15,10 +15,10 @@
= $this->linkTo($this->t('.account._'), ['user#home'], ['onclick' => 'if(!User.run_login_onclick(event)) return false;', 'class' => 'login-button']) ?>
= $this->linkTo('■', '#', ['class' => 'submenu-button']) ?>
- = $this->linkTo($this->t('.posts._'), ['controller' => 'post', 'action' => 'index']) ?>
- = $this->linkTo('■', '#', ['class' => 'submenu-button']) ?>
+ = $this->linkTo($this->t('.posts._'), ['controller' => 'post', 'action' => 'index']) ?>
+ = $this->linkTo('■', '#', ['class' => 'submenu-button']) ?>
-
- = $this->formTag('post#', ['method' => 'get'], function(){ ?>
+ = $this->formTag('post#', ['method' => 'get'], function(){ ?>
= $this->textFieldTag('tags', '', ['id' => '']) ?>
- = $this->submitTag($this->t('.posts.search')) ?>
-
+ = $this->submitTag($this->t('.posts.search')) ?>
+
@@ -207,10 +207,7 @@
= $this->linkTo($this->t('.help.site'), "help#") ?>
-
-
-
-
+
= $this->linkTo($this->t('.more'), ['controller' => 'static', 'action' => 'more']) ?>