diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 3946cba..c325c38 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1,3 +1,5 @@
+# coding: utf-8
+
module ApplicationHelper
def need_restart?
Plugin.gemfile_changed?
@@ -35,6 +37,14 @@ module ApplicationHelper
%Q|
#{icon icon_class} #{text}
|.html_safe
end
+ def language_name(locale)
+ # NOTE: these are fixed terms, not i18n-ed
+ {
+ en: "English",
+ ja: "日本語",
+ }[locale] || locale
+ end
+
def link_to_other(text, path)
if current_page?(path)
# NOTE: sb-admin set style for element name instead of class name, such as ".nav a". So use "a" element even if it isn't a link.
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 9cfd0b8..05b3756 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -37,6 +37,18 @@