forked from saurabh/orbit4-5
fixed zh-cn conversion and also back page from page not available page.
This commit is contained in:
parent
5acfed083a
commit
251133748d
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue