Quantcast Trasnlation Question - ESOUI
Thread Tools Display Modes
11/01/14, 01:33 PM   #1
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 648
Trasnlation Question

I don't know if I'm doing something wrong or if it is supposed to be like this, but checking against the google translater it doesn't look like those ^f and ^n characters are supposed to be on the end of the strings.
Do you have to zo_strformat it too somehow?


This is what some of the code looks like:
Lua Code:
  1. name = GetString(SI_ITEMTYPE1), -- "[eng] Weapon", -- SI_ITEMTYPE1
  2. name = GetString(SI_ITEMTYPE44),    -- "[eng] Style Material", -- SI_ITEMTYPE44
  3. name = GetString(SI_ITEMTYPE45),    -- "[eng] Armor Trait", -- SI_ITEMTYPE45
  4. name = GetString(SI_ITEMTYPE46),    -- "[eng] Weapon Trait", -- SI_ITEMTYPE46
  Reply With Quote
11/01/14, 02:34 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 853
Originally Posted by circonian View Post
I don't know if I'm doing something wrong or if it is supposed to be like this, but checking against the google translater it doesn't look like those ^f and ^n characters are supposed to be on the end of the strings.
Do you have to zo_strformat it too somehow?


This is what some of the code looks like:
Lua Code:
  1. name = GetString(SI_ITEMTYPE1), -- "[eng] Weapon", -- SI_ITEMTYPE1
  2. name = GetString(SI_ITEMTYPE44),    -- "[eng] Style Material", -- SI_ITEMTYPE44
  3. name = GetString(SI_ITEMTYPE45),    -- "[eng] Armor Trait", -- SI_ITEMTYPE45
  4. name = GetString(SI_ITEMTYPE46),    -- "[eng] Weapon Trait", -- SI_ITEMTYPE46
No, characters ^??? should not be at the end of german words. They are here just to help with localization - they indicates if the word is singular or plural and if it is masculine/femine/neuter gender:
http://www.esoui.com/forums/showthread.php?p=7321

You can use for example:
Lua Code:
  1. name = zo_strformat(SI_ITEMTYPE1)
  2. name = zo_strformat(GetString("SI_ITEMTYPE", itemType))
__________________
@Garkin (retired from ESO)
My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you!, ... (full list)

Last edited by Garkin : 11/01/14 at 02:39 PM.
  Reply With Quote
11/01/14, 03:14 PM   #3
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 648
Originally Posted by Garkin View Post
You can use for example:
Lua Code:
  1. name = zo_strformat(SI_ITEMTYPE1)
  2. name = zo_strformat(GetString("SI_ITEMTYPE", itemType))
I already tried those, unless I am missing something, they didn't work either:
  Reply With Quote
11/01/14, 03:54 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 853
Hm, you are right, it seems that zo_strformat without pattern work just for strings like "<<player{male/female}>>", it doesn't remove control characters from strings. You will have to use some pattern like "<<1>>" (just remove control characters), <<t:1>> (capitalize first letter of each word) or "<<C:1>>" (capitalize first letter of the first word).

Lua Code:
  1. name = zo_strformat(SI_TOOLTIP_ITEM_NAME, GetString(SI_ITEMTYPE1))
  2. name = zo_strformat("<<t:1>>", GetString("SI_ITEMTYPE", itemType))
__________________
@Garkin (retired from ESO)
My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you!, ... (full list)
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Trasnlation Question

Thread Tools
Display Modes

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