Quantcast
Help to translate to de and fr - ESOUI
Thread Tools Display Modes
05/20/21, 06:58 AM   #1
Marazota
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 232
Help to translate to de and fr

for mundus map addon
only this tooltips
also if i want to add ru, must be the same way as other translations added, yes?

["filtertooltip1"] = "Physical and Spell Resistance +2774",

["filtertooltip2"] = "Physical and Spell Penetration +2744",

["filtertooltip3"] = "Maximum Health +2225",

["filtertooltip4"] = "Maximum Magicka +2023",

["filtertooltip5"] = "Maximum Stamina +2023",

["filtertooltip6"] = "Magicka Recovery +310",

["filtertooltip7"] = "Stamina Recovery +310",

["filtertooltip8"] = "Critical Damage and Healing +11%",

["filtertooltip9"] = "Healing Done +8%",

["filtertooltip10"] = "Weapon and Spell Critical Strike ratings +1333",

["filtertooltip11"] = "Weapon Damage +238",

["filtertooltip12"] = "Spell Damage +238",

["filtertooltip13"] = "Health Recovery and Movement Speed +238/10%"
  Reply With Quote
05/20/21, 07:49 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,749
The following SI_* "constants" (for the function GetString(SI_*) are given in the game and you might use them instead of re-translating values.
If possible.

Code:
"Attack Power", -- SI_DERIVEDSTATS1
    "Weapon and Spell Damage", -- SI_DERIVEDSTATS2
    "Armor Rating", -- SI_DERIVEDSTATS3
    "Max Magicka", -- SI_DERIVEDSTATS4
    "Magicka Recovery", -- SI_DERIVEDSTATS5
    "Magicka Recovery Idle", -- SI_DERIVEDSTATS6
    "Max Health", -- SI_DERIVEDSTATS7
    "Health Recovery", -- SI_DERIVEDSTATS8
    "Health Recovery Idle", -- SI_DERIVEDSTATS9
    "healing received", -- SI_DERIVEDSTATS10
    "Dodge", -- SI_DERIVEDSTATS11
    "Healing Done", -- SI_DERIVEDSTATS12
    "Spell Resist", -- SI_DERIVEDSTATS13
    "Block", -- SI_DERIVEDSTATS14
    "Bleed Resistance", -- SI_DERIVEDSTATS15
    "Weapon Critical", -- SI_DERIVEDSTATS16
    "Mitigation", -- SI_DERIVEDSTATS20
    "Armor", -- SI_DERIVEDSTATS22
    "Spell Critical", -- SI_DERIVEDSTATS23
    "Critical Resist", -- SI_DERIVEDSTATS24
    "Spell Damage", -- SI_DERIVEDSTATS25
    "Spell Mitigation", -- SI_DERIVEDSTATS26
    "Offensive Penetration", -- SI_DERIVEDSTATS27
    "Critical Chance", -- SI_DERIVEDSTATS28
    "Max Stamina", -- SI_DERIVEDSTATS29
    "Stamina Recovery", -- SI_DERIVEDSTATS30
    "Stamina Recovery Idle", -- SI_DERIVEDSTATS31
    "Miss", -- SI_DERIVEDSTATS32
    "Physical Penetration", -- SI_DERIVEDSTATS33
    "Spell Penetration", -- SI_DERIVEDSTATS34
    "Weapon Damage", -- SI_DERIVEDSTATS35
    "Generic Resistance", -- SI_DERIVEDSTATS37
    "Physical Resistance", -- SI_DERIVEDSTATS38
    "Fire Resistance", -- SI_DERIVEDSTATS39
    "Shock Resistance", -- SI_DERIVEDSTATS40
    "Oblivion Resistance", -- SI_DERIVEDSTATS41
    "Cold Resistance", -- SI_DERIVEDSTATS42
    "Earth Resistance", -- SI_DERIVEDSTATS43
    "Magic Resistance", -- SI_DERIVEDSTATS44
    "Drown Resistance", -- SI_DERIVEDSTATS45
    "Disease Resistance", -- SI_DERIVEDSTATS46
    "Poison Resistance", -- SI_DERIVEDSTATS47
    "Mount Stamina", -- SI_DERIVEDSTATS48
    "Mount Stamina Regen Combat", -- SI_DERIVEDSTATS49
    "Mount Stamina Regen Moving", -- SI_DERIVEDSTATS50
e.g. if you need "Physical Resistance" you can use GetString(SI_DERIVEDSTATS38) and it will return the translated value for the base game languages de, en, fr, ru and jp.

The given constants and texts EN can be found here:
https://raw.githubusercontent.com/es...tedstrings.lua

But if you need other translations, like "Spell resistance" which does not exist yet you need to manually translate them.

If you want to have the text with the numbers you have given you can concatenate the text like this:

Health = SI_ATTRIBUTES1
["filtertooltip3"] = "Maximum " .. GetString(SI_ATTRIBUTES1) .." +2225", --returns "Maximum Health +2225"

I'll provide you DE translations in the next post.
  Reply With Quote
05/20/21, 07:58 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,749
DE (some of them could be used for FR as well, e.g. filtertooltip6 to 12)

Code:
		
		["filtertooltip1"] = "Physische- und Zauber-Resistenz +2774",
		
		["filtertooltip2"] = "Physische- und Zauber-Durchdringung +2744",
		
		["filtertooltip3"] = "Maximales " .. GetString(SI_ATTRIBUTES1) .. " +2225",
		
		["filtertooltip4"] = "Maximale " .. GetString(SI_ATTRIBUTES2) .. " +2023",
		
		["filtertooltip5"] = "Maximale " .. GetString(SI_ATTRIBUTES3) .. " +2023",
		
		["filtertooltip6"] = GetString(SI_DERIVEDSTATS5) .. " +310",
		
		["filtertooltip7"] = GetString(SI_DERIVEDSTATS30) .." +310",
	
		["filtertooltip8"] = GetString(SI_DERIVEDSTATS28) .. " +11%",

		["filtertooltip9"] = GetString(SI_DERIVEDSTATS12) .. " +8%",

		["filtertooltip10"] = GetString(SI_DERIVEDSTATS16) .. " & " .. GetString(SI_DERIVEDSTATS23)  .. " +1333",

		["filtertooltip11"] = GetString(SI_DERIVEDSTATS35) .. " +238",

		["filtertooltip12"] = GetString(SI_DERIVEDSTATS25) .. " +238",

		["filtertooltip13"] = GetString(SI_DERIVEDSTATS8) .. " und Bewegungsgeschwindigkeit +238/10%"
The ones using ONLY the GetString(SI_*) and then the number can be used the same for FR then!
e.g. filtertooltip6 to 12
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Help to translate to de and fr

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