Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/04/14, 03:18 AM   #2
Grischu
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5
/script d(SETTING_TYPE_LANGUAGE)

return values on EU-Megaserver are
german 12
french 12
english 12


For Language is this perhaps a solution

Code:
function GetClientLanguage()
 -- GetErrorString(16) return values
 -- english "Off balance target"
 -- german "Ziel aus dem Gleichgewicht"
-- french "Cible étoudie"

 local language="fr"
 local errorstring == GetErrorString(16)
 if errorstring = "Ziel aus dem Gleichgewicht" then
 language="de"
 elseif errorstring == "Off balance target" then
 language="en"
 end
 return language
 end

Last edited by Grischu : 04/04/14 at 03:24 AM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » GetCVar for game build type?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off