|
Hello, i have a big question about how effectively implement translation (at least 5 languages and more) for huge site?
I`m currently working on huge site that already built, but there is no language support in design (architecture) at all. So, i need to implement something with smallest changes in whole system. There are some templating engine used and all pages parsing from that templates.
For example, facebook have very dynamic system, and huge amount language-dependent text pieces inside templates. How they implementing translations ?
I have only 2 ideas how to do that:
1. Keep different language versions of all templates.
- : you need to keep them synchronized all the time
+ : easy to implement, less system changes
2. Use word binginds. For example, in template you set variable $lng_varname, and just keep switching it to specified language value of variable.
- : tons of work, additional modules in control panel, more system changes
+ : flexible user interface
And i dont really know which way to follow.
Any ideas ?
|