app/helpers/alchemy/admin/pages_helper.rb in alchemy_cms-2.2.rc2 vs app/helpers/alchemy/admin/pages_helper.rb in alchemy_cms-2.2.rc3
- old
+ new
@@ -21,10 +21,10 @@
init : function(callback) {
var init = { #{init} };
init.mode = 'specific_textareas';
init.editor_selector = 'tinymce';
init.plugins = '#{Alchemy::Tinymce.plugins.join(',')}';
- init.language = '#{::I18n.locale}';
+ init.language = '#{::I18n.locale.to_s.split('-')[0].downcase }';
init.init_instance_callback = function(inst) {
jQuery('#' + inst.editorId).prev('.essence_richtext_loader').hide();
}
if (callback)
init.oninit = callback;