Forum: Rails I18n Translate Pages

Posted by Arthur Chan (arthurccube)
on 2009-08-21 12:23
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.