Switch to using i18n-js for handling translations in javascript
This commit is contained in:
parent
9638d6ea7f
commit
7ad58d1411
76 changed files with 552 additions and 563 deletions
|
@ -1,6 +1,5 @@
|
|||
<head>
|
||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
|
||||
<%= javascript_strings %>
|
||||
<%= javascript_include_tag "site" %>
|
||||
<%= javascript_include_tag "menu" %>
|
||||
<!--[if lt IE 7]><%= javascript_include_tag "pngfix" %><![endif]--> <!-- thanks, microsoft! -->
|
||||
|
@ -16,5 +15,10 @@
|
|||
<%= style_rules %>
|
||||
<%= yield :head %>
|
||||
<%= csrf_meta_tag %>
|
||||
<script type="text/javascript">
|
||||
I18n.defaultLocale = "<%= I18n.default_locale %>";
|
||||
I18n.locale = "<%= I18n.locale %>";
|
||||
I18n.fallbacks = true;
|
||||
</script>
|
||||
<title><%= t 'layouts.project_name.title' %><%= ' | '+ @title if @title %></title>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue