# Translate Pages

**URL:** <https://www.ruby-forum.com/t/translate-pages/174154>\
**Category:** Rails I18n\
**Created:** [August 21, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/translate-pages/174154 "2009-08-21T12:23:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artchrst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e36b37/32.png) [@artchrst](https://www.ruby-forum.com/u/artchrst)\
**Post date:** [August 21, 2009, 12:23pm UTC](https://www.ruby-forum.com/t/translate-pages/174154/1 "2009-08-21T12:23:47Z")

</div>

Hi Guys,

PROBLEMS:

Our website supports both Chinese and English. We found that there are  
many cases need different ways of translation.

a. For the views, we can translate words easily using the “\_(‘hello  
world’)” functions.

b. For the static pages, we are using the:  
/contact\_us.html (for english)  
/locale/zh\_TW/contact\_us.html (for chinese)

Nevertheless, there are two more cases I don’t know how to translate way  
are better:

c. Error page:  
I don’t know whether the “\_()” function works

d. Server is down page:  
when Rails is down, the lighttd may redirect to another static page.

METHODS:

How should we translate these four cases?

I am thinking whether we should load the English and then translate  
using AJAX (or push the languages content to client and load it using  
Javascript)?

Thanks!  
Arthur
