wymeditor uses locales

Oleg committed Jun 25, 2011
commit a0094a858fefbf161afa91abc1573a9cee572a84
Showing 2 changed files with 3 additions and 1 deletions
app/assets/javascripts/comfortable_mexican_sofa/wymeditor/jquery.wymeditor.cms.js +1 -1
@@ @@ -2,7 +2,7 @@
var cms_wym_options = {
initSkin: false,
- lang: 'en',
+ lang: $('meta[name="cms-locale"]').attr('content'),
updateSelector: 'form',
updateEvent: 'submit',
app/views/layouts/cms_admin/_head.html.erb +2 -0
@@ @@ -2,7 +2,9 @@
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title><%= ComfortableMexicanSofa.config.cms_title %></title>
<%= csrf_meta_tag %>
+
<meta name="cms-admin-path" content="<%= ComfortableMexicanSofa.config.admin_route_prefix %>" />
+ <meta name="cms-locale" content="<%= I18n.locale %>" />
<% if ComfortableMexicanSofa.asset_pipeline_enabled? %>