Thread Tools Display Modes
03/11/14, 08:39 AM   #1
Myrroddin
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 28
[implemented] Request for game client locale

In order to localize AddOns, we need to know two things, please and thank you:
  1. What languages are supported by the game?
  2. Could we get a GetClientLocale() API?
If the second is a CVar, what are we looking for, and what kind of returns should we expect?


Thank you!!
 
05/28/14, 03:26 PM   #2
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
I think you we are suppsoed to do localisation with a .lua file containg the strings in table format and use this entry in manifest to switch based on client language:
http://wiki.esoui.com/Addon_manifest_%28.txt%29_format
localization/$(language).lua
 
05/28/14, 03:50 PM   #3
Halja
 
Halja's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 111
Three are supported English, French or German by ZOS.
There is a cVar to detect language. It is "Language.2" and the return is two character string , "en", "fr', or "de".

Using the manifest you can have the game load a different file(s) based on the language the client is playing in. Typically, the lua file is string tables but you could do more.
The variable $(language) become the two character return of the cVar. If the player is launching in German and the manifest entry localization/$(language).lua, the game loads the file de.lua in the subdirectory localization.
-halja
 

ESOUI » Developer Discussions » Wish List » [implemented] Request for game client locale


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