diff --git a/lib/parsers/parser_common.rb b/lib/parsers/parser_common.rb
index 308620238..c02976993 100644
--- a/lib/parsers/parser_common.rb
+++ b/lib/parsers/parser_common.rb
@@ -28,7 +28,7 @@ module ParserCommon
res << " active" if (current_page.id.eql?(page.id) || current_page.descendant_of?(page))
res << "'>"
root = "/"
- res << "#{page.i18n_variable[I18n.locale]}"
+ res << "#{page.title}"
if page.visible_children.size > 0 && current < menu.levels
res << ""
res << menu_level(page, current_page, current + 1, menu, edit)
@@ -68,7 +68,7 @@ module ParserCommon
printable_ad_images.shuffle!
printable_ad_images.each do |ad_image| #TODO Need Reflact
res << " 0
res << "
"
- res << "
#{menu_page.i18n_variable[I18n.locale]}
"
+ res << "
#{menu_page.title}
"
res << "
"
@@ -138,7 +138,7 @@ module ParserCommon
page_footer = body.css('.page_footer').first
if page_footer
res = ""
fragment = Nokogiri::HTML::DocumentFragment.new(body ,res)
page_footer.swap(fragment) rescue nil
@@ -152,7 +152,7 @@ module ParserCommon
page_sub_menu = body.css('.page_sub_menu').first
if page_sub_menu
res = ""
fragment = Nokogiri::HTML::DocumentFragment.new(body ,res)
page_sub_menu.swap(fragment) rescue nil
@@ -175,7 +175,7 @@ module ParserCommon
ret << "'>
"
else
part = page.page_parts.detect{ |p| p.name.to_s == content['name'].to_s } rescue nil
- part_title = part.title[I18n.locale] rescue nil
+ part_title = part.title rescue nil
if edit
ret << "" if part
ret << "
"
@@ -184,7 +184,7 @@ module ParserCommon
end
case part.kind
when 'text'
- ret << part.i18n_variable[I18n.locale] rescue ''
+ ret << part.content rescue ''
when 'module_widget'
url = "/panel/#{part.module_app.key}/widget/#{part.widget_path}?inner=true"
options = "&category_id=#{!part[:category].blank? ? part[:category].blank? : category}&tag_id=#{!part[:tag].blank? ? part[:tag] : tag}&page=#{params[:page]}&part_title=#{Rack::Utils.escape(part_title).gsub("+", "%20") rescue nil}"