forked from saurabh/orbit4-5
Merge branch 'master' of gitlab.tp.rulingcom.com:saurabh/orbit4-5 into gravity
This commit is contained in:
commit
a4e7a396dc
|
|
@ -586,7 +586,7 @@ class PagesController < ApplicationController
|
||||||
|
|
||||||
def change_to_language(final_html)
|
def change_to_language(final_html)
|
||||||
if session[:zh_cn]
|
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.gsub!('/zh_tw/','/zh_cn/')
|
||||||
final_html.sub!('<a href="'+request.path+'">繁体中文</a>','<a href="'+(request.path.sub('/zh_cn/','/zh_tw/'))+'">繁体中文</a>')
|
final_html.sub!('<a href="'+request.path+'">繁体中文</a>','<a href="'+(request.path.sub('/zh_cn/','/zh_tw/'))+'">繁体中文</a>')
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
<section class="message">
|
<section class="message">
|
||||||
<h1>OOPS!</h1>
|
<h1>OOPS!</h1>
|
||||||
<h2>Page not available</h2>
|
<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>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue