fixed zh-cn conversion and also back page from page not available page.

This commit is contained in:
Harry Bomrah 2015-06-25 17:38:23 +08:00
parent 5acfed083a
commit 251133748d
2 changed files with 2 additions and 2 deletions

View File

@ -586,7 +586,7 @@ class PagesController < ApplicationController
def change_to_language(final_html)
if session[:zh_cn]
final_html = ZhConv.convert("zh-cn", final_html)
final_html = ZhConv.convert("zh-cn", final_html,false)
final_html.gsub!('/zh_tw/','/zh_cn/')
final_html.sub!('<a href="'+request.path+'">繁体中文</a>','<a href="'+(request.path.sub('/zh_cn/','/zh_tw/'))+'">繁体中文</a>')
end

View File

@ -58,7 +58,7 @@
<section class="message">
<h1>OOPS!</h1>
<h2>Page not available</h2>
<p>Sorry, This page is not available for this language<br> You can go back to <a class="home" href="/">home</a> or <a class="prev-page" href="#" onclick="window.history.back();">previous</a> page.</p>
<p>Sorry, This page is not available for this language<br> You can go back to <a class="home" href="/">home</a> or <a class="prev-page" href="#" onclick="window.history.back();return false;">previous</a> page.</p>
</section>
</div>