Using i18n to translate a full page

Hi All,

The only way that I can think of, to translate a full page is to use
locale files as below but it seems impractical and incorrect to
include huge chunks of static content in locale files. Could someone
suggest a better way of translation pages with static content.


config/locale/en.yml

en:
terms_conditions:
paragraph1: “Terms and conditions para1”
paragraph2: “Terms and conditions para 2”

how_to:
paragraph1: “How to para1”
paragraph2: “How to para2”

config/locale/ja.yml

ja:
terms_conditions:
paragraph1: “e$B4A;z2>L>8r$8$jJ8e(B”
paragraph2: “e$B%i%I%/%j%U!”%^%i%=%se(B"

how_to:
paragraph1: “e$B8^NXBeI=$Ke(B1e$BK|e(Bme$B=P>l$K$b4^$_e(B”
paragraph2: “e$B7R$,$C$Fe(B or e$B$D$J$,$C$Fe(B”


Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs