Page 1 of 1

Multilanguage WebSite

Posted: Tue Aug 10, 2010 8:25 am
by Fabian
Hi guys,

i'm actually working on a multilanguage website and while i was thinking of it i came to a problem....

it's better create a single xml file containing all the phrase in the website per language or create a xml file for every page and put in there all the language sentences i use?

i obviously need the fastest solution.

thank you in advance for the help.


Fabian

Re: Multilanguage WebSite

Posted: Tue Aug 10, 2010 8:33 am
by MindOverBody
Fastest solution is to write single file, so you need just to include only that file.
Maybe the most practical solution is to write a language file for every tpl file if you are using template engine.

Re: Multilanguage WebSite

Posted: Tue Aug 10, 2010 8:37 am
by Fabian
i'm using actually a self written template engine, so you think it's better single file language for every tpl

Re: Multilanguage WebSite

Posted: Tue Aug 10, 2010 8:55 am
by MindOverBody
you might upgrade your template engine to automatily load language file when processing certain tpl file. This type of solution will take more space, and time, but i think it is more organized. Duno, one way or another, result is the same. Doing language file for every tpl file is maybe little more elegant.

Re: Multilanguage WebSite

Posted: Tue Aug 10, 2010 9:01 am
by Fabian
ok thank you for your help ^^

i'll do this way

Fabian