PDA

View Full Version : Changing the language.



arpowers
01-25-10, 06:48 AM
What's the best way to change the language in the client side templates?

HerrZ
01-25-10, 08:43 AM
just show the client your language selector. in tpl file (header.tpl or footer.tpl should be fine) edit:

{if $langchange}<div class="contentbox">{$setlanguage}</div>
{/if}

for information you can change the language with GET param, too:
yourpath/afile.php?othergetparam=othergetvalue&language=German

arpowers
01-25-10, 09:13 AM
sorry I phrased that poorly.. (thanks for the response)

what I meant to ask was, how do I change the phrasing and titles of things in the admin?

E.g. how to change "My Services" to "Your Products"

HerrZ
01-25-10, 10:36 AM
phrasing and titles of things in the admin
i think you mean the clientlogin interface.

take a look in your <whmcs-root>/lang folder.

John
01-25-10, 10:37 AM
Edit the files in the /lang folder: http://wiki.whmcs.com/Language_Files

arpowers
01-25-10, 06:57 PM
thanks guys!...
how does that work with translation?

or if I change this, do I want to kill the change language function?

HerrZ
01-26-10, 05:44 AM
or if I change this, do I want to kill the change language function?
you can disable the language change ability in Backend/General Settings/Localisation