
Originally Posted by
jasler
No, that's too mutch work xD (kidding :P)
Maybe, I think I'll just make a few folders in the CMS .zip:
NL - Dutch
EN- English
DE - Deutch
IT - Italian
PR - Portuguese
Something like this, and than in eatch folder that language of the CMS. I need to have some translaters, so who wants (first the english version, and then the translators translate it)? :P
Yes, well, I use Swift SWF's, check if your external_variables is right :)
Language system is easy as fuck.
Just include the link in your core/global (or whatever you call it)
And the file from config.
core
PHP Code:
include('/lang/'.$lang.'.php');
config
PHP Code:
$lang = "en"; // en = english / nl = dutch / ger = german
(and just to show it)
nl.php
PHP Code:
$jerk['header'] = "Dit is je header tekst";
en.php
PHP Code:
$jerk['header'] = "This is your header text";
And in your main page where you need to use the language system just echo
PHP Code:
<div id="lalal"><?php echo $jerk['header']; ?></div>
You've configured the language in the config file then.
No folders needed at all !!!!