Quantcast
Need any/all translations - ESOUI
Thread Tools Display Modes
08/09/21, 12:44 AM   #1
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 23
Need any/all translations

Lua Code:
  1. SI_IJAEA_EASYALCHEMY                = "Easy Alchemy",
  2.     SI_IJAEA_SAVEDRECIPES               = "Saved Recipes",
  3.     SI_IJAEA_SAVEDALCHEMY_SAVED         = "Recipe Saved.",
  4.    
  5.     SI_IJAEA_DELETE_OPTION              = "Delete Recipe",
  6.     SI_IJAEA_DELETE_MOUSEOVER           = "Right-click to delete",
  7.    
  8.     SI_IJAEA_EASYALCHEMY_HEADER1        = "type",
  9.     SI_IJAEA_EASYALCHEMY_HEADER2        = "solvent",
  10.     SI_IJAEA_EASYALCHEMY_HEADER2        = "solvent",
  11.     SI_IJAEA_EASYALCHEMY_HEADER3        = "trait 1",
  12.     SI_IJAEA_EASYALCHEMY_HEADER4        = "trait 2",
  13.     SI_IJAEA_EASYALCHEMY_HEADER5        = "trait 3",
  14.    
  15.     SI_IJAEA_EASYALCHEMY_HEADER_SOLVENT1        = "Potions",
  16.     SI_IJAEA_EASYALCHEMY_HEADER_SOLVENT2    = "Poisons",
  17.    
  18.     SI_IJAEA_NOSAVES_POISONS            = "No saved poisons",
  19.     SI_IJAEA_NOSAVES_POTIONS            = "No saved potions",
  20.     SI_IJAEA_NOSAVES_ALL                = "No saved potions or poisons",
  21. ------------------------------------------------
  22. -- Settings
  23. ------------------------------------------------
  24.     SI_IJAEA_SETTING_SAVEPERCHARACTER = "Save settings as Character",
  25.     SI_IJAEA_SETTING_SAVEPERCHARACTER_TOOLTIP = "Disabled: settings are saved for the account.\nEnabled: settings will be saved separately for each character.",
  26.  
  27.     SI_IJAEA_HEADER_ALCHEMYSAVES = "Saved Alchemy Recipes",
  28.    
  29.     SI_IJAEA_SETTING_CLEARSAVES = "Clear Saved Recipes",
  30.     SI_IJAEA_SETTING_CLEARSAVES_TOOLTIP = "Deletes all saved recipes.",
  31.    
  32. ------------------------------------------------
  33. -- Dialogues
  34. ------------------------------------------------
  35.     SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TITLE = "Delete selected Recipe",
  36.     SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TEXT = "Do you want to delete <<1>> from the saved recipes?",
  37.     SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TRAIT1 = "|cffffffWith the following trait:|r\n\t\t<<1>>",
  38.     SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TRAIT2 = "|cffffffWith the following traits:|r\n\t\t<<1>>\n\t\t<<2>>\n\t\t<<3>>",
  39.     SI_IJAEA_INVALIDRECIPE = "Invalid recipe",
  40.    
  41. }
  Reply With Quote
08/09/21, 04:40 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,713
You should reuse the given translation constants SI_* instead of re-defining them again. So that your languages de, en, fr, jp, ru are set without any big effort.
They can be found here:
https://raw.githubusercontent.com/es...tedstrings.lua

Would bring you this as EN:

You could even improve this and just define some words liker ecipe, recipes, solvent, poison, potion as a local variable, add it to a table like myAddon.translationConstants.recipe = GetString(SI_ITEMTYPE29) and re-use it in your translation files then wth a local pointer e.g.
local local translationConstants = myAddon.translationConstants
local recipe = translationConstants .recipe

Code:
SI_IJAEA_EASYALCHEMY                = "Easy Alchemy",
    SI_IJAEA_SAVEDRECIPES               = "Saved " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21),
    SI_IJAEA_SAVEDALCHEMY_SAVED         = GetString(SI_ITEMTYPE29) .. " Saved.",
    
    SI_IJAEA_DELETE_OPTION              = "Delete " ..GetString(SI_ITEMTYPE29),
    SI_IJAEA_DELETE_MOUSEOVER           = "Right-click to delete",
    
    SI_IJAEA_EASYALCHEMY_HEADER1        = GetString(SI_SMITHING_HEADER_ITEM):lower(),
    SI_IJAEA_EASYALCHEMY_HEADER2        = GetString(SI_ALCHEMY_SOLVENT_HEADER):lower(),
    SI_IJAEA_EASYALCHEMY_HEADER2        = GetString(SI_ALCHEMY_SOLVENT_HEADER):lower(),
    SI_IJAEA_EASYALCHEMY_HEADER3        = GetString(SI_SMITHING_HEADER_TRAIT) .. " 1",
    SI_IJAEA_EASYALCHEMY_HEADER4        = GetString(SI_SMITHING_HEADER_TRAIT) .. " 2",
    SI_IJAEA_EASYALCHEMY_HEADER5        = GetString(SI_SMITHING_HEADER_TRAIT) .. " 3",
    
    SI_IJAEA_EASYALCHEMY_HEADER_SOLVENT1        = GetString(SI_ITEMTYPEDISPLAYCATEGORY22),
    SI_IJAEA_EASYALCHEMY_HEADER_SOLVENT2    = GetString(SI_ITEMTYPEDISPLAYCATEGORY23),
    
    SI_IJAEA_NOSAVES_POISONS            = "No saved " ..GetString(SI_ITEMTYPEDISPLAYCATEGORY23):lower(),
    SI_IJAEA_NOSAVES_POTIONS            = "No saved " ..GetString(SI_ITEMTYPEDISPLAYCATEGORY22):lower(),
    SI_IJAEA_NOSAVES_ALL                = "No saved " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY22):lower() .. " or " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY23):lower(),
------------------------------------------------
-- Settings
------------------------------------------------
    SI_IJAEA_SETTING_SAVEPERCHARACTER = "Save settings as Character",
    SI_IJAEA_SETTING_SAVEPERCHARACTER_TOOLTIP = "Disabled: settings are saved for the account.\nEnabled: settings will be saved separately for each character.",
 
    SI_IJAEA_HEADER_ALCHEMYSAVES = "Saved " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY14) .. " " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21),
    
    SI_IJAEA_SETTING_CLEARSAVES = "Clear Saved " ..GetString(SI_ITEMTYPEDISPLAYCATEGORY21):lower(),
    SI_IJAEA_SETTING_CLEARSAVES_TOOLTIP = "Deletes all saved " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21):lower(),
    
------------------------------------------------
-- Dialogues
------------------------------------------------
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TITLE = "Delete selected " .. GetString(SI_ITEMTYPE29):lower(),
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TEXT = "Do you want to delete <<1>> from the saved " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21):lower()  .."?",
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TRAIT1 = "|cffffffWith the following "..GetString(SI_SMITHING_HEADER_TRAIT)..":|r\n\t\t<<1>>",
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TRAIT2 = "|cffffffWith the following "..GetString(SI_SMITHING_HEADER_TRAIT)..":|r\n\t\t<<1>>\n\t\t<<2>>\n\t\t<<3>>",
    SI_IJAEA_INVALIDRECIPE = "Invalid " .. GetString(SI_ITEMTYPE29),
    
}

DE:
Code:
SI_IJAEA_EASYALCHEMY                = "Easy Alchemy",
    SI_IJAEA_SAVEDRECIPES               = "Gespeicherte " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21),
    SI_IJAEA_SAVEDALCHEMY_SAVED         = GetString(SI_ITEMTYPE29) .. " gespeichert.",
    
    SI_IJAEA_DELETE_OPTION              = GetString(SI_ITEMTYPE29) .. " löschen,
    SI_IJAEA_DELETE_MOUSEOVER           = "Rechtsklick zum Löschen",
    
    SI_IJAEA_EASYALCHEMY_HEADER1        = GetString(SI_SMITHING_HEADER_ITEM):lower(),
    SI_IJAEA_EASYALCHEMY_HEADER2        = GetString(SI_ALCHEMY_SOLVENT_HEADER):lower(),
    SI_IJAEA_EASYALCHEMY_HEADER2        = GetString(SI_ALCHEMY_SOLVENT_HEADER):lower(),
    SI_IJAEA_EASYALCHEMY_HEADER3        = GetString(SI_SMITHING_HEADER_TRAIT) .. " 1",
    SI_IJAEA_EASYALCHEMY_HEADER4        = GetString(SI_SMITHING_HEADER_TRAIT) .. " 2",
    SI_IJAEA_EASYALCHEMY_HEADER5        = GetString(SI_SMITHING_HEADER_TRAIT) .. " 3",
    
    SI_IJAEA_EASYALCHEMY_HEADER_SOLVENT1        = GetString(SI_ITEMTYPEDISPLAYCATEGORY22),
    SI_IJAEA_EASYALCHEMY_HEADER_SOLVENT2    = GetString(SI_ITEMTYPEDISPLAYCATEGORY23),
    
    SI_IJAEA_NOSAVES_POISONS            = "Nicht gespeicherte " ..GetString(SI_ITEMTYPEDISPLAYCATEGORY23):lower(),
    SI_IJAEA_NOSAVES_POTIONS            = "Nicht gespeicherte " ..GetString(SI_ITEMTYPEDISPLAYCATEGORY22):lower(),
    SI_IJAEA_NOSAVES_ALL                = "Nicht gespeicherte " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY22):lower() .. " oder " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY23):lower(),
------------------------------------------------
-- Settings
------------------------------------------------
    SI_IJAEA_SETTING_SAVEPERCHARACTER = "Sichere Einstellungen je Charakter",
    SI_IJAEA_SETTING_SAVEPERCHARACTER_TOOLTIP = "Deaktiviert: Einstellungen werden für den gesamten Account gespeichert.\nAktiviert: Einstellungen werden je Charakter einzeln gespeichert.",
 
    SI_IJAEA_HEADER_ALCHEMYSAVES = "Gespeicherte " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY14) .. " " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21),
    
    SI_IJAEA_SETTING_CLEARSAVES = "Leere gespeicherte " ..GetString(SI_ITEMTYPEDISPLAYCATEGORY21):lower(),
    SI_IJAEA_SETTING_CLEARSAVES_TOOLTIP = "Löscht alle gespeicherten " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21):lower(),
    
------------------------------------------------
-- Dialogues
------------------------------------------------
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TITLE = "Lösche ausgewählte " .. GetString(SI_ITEMTYPE29):lower(),
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TEXT = "Wirklich <<1>> von den Gespeicherten " .. GetString(SI_ITEMTYPEDISPLAYCATEGORY21):lower()  .."löschen?",
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TRAIT1 = "|cffffffMit diesem "..GetString(SI_SMITHING_HEADER_TRAIT)..":|r\n\t\t<<1>>",
    SI_IJAEA_SAVEDALCHEMY_CONFIRMDELETE_TRAIT2 = "|cffffffMit diesem " ..GetString(SI_SMITHING_HEADER_TRAIT)..":|r\n\t\t<<1>>\n\t\t<<2>>\n\t\t<<3>>",
    SI_IJAEA_INVALIDRECIPE = "Ungültiges " .. GetString(SI_ITEMTYPE29),
    
}
And please be sure to use zo_strformat(SI_UNIT_NAME, recipeName) in your code for the recipe names so that the gender suffix ^mp etc. will be cut off!
Also please make sure that the SavedVariables use the character ID and not the name AND store the settings differently per server, via GetWorldName() as profile e.g. in ZO_SavedVars function.
Thank you very much!

Last edited by Baertram : 08/09/21 at 04:45 AM.
  Reply With Quote
08/09/21, 01:51 PM   #3
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 23
Originally Posted by Baertram View Post
And please be sure to use zo_strformat(SI_UNIT_NAME, recipeName) in your code for the recipe names so that the gender suffix ^mp etc. will be cut off!
Also please make sure that the SavedVariables use the character ID and not the name AND store the settings differently per server, via GetWorldName() as profile e.g. in ZO_SavedVars function.
Thank you very much!
Thank you for the translation. I did not know about the savedVariables profile.

Implemented GetWorldName() for savedVariables profile.
Fixed the suffix of the saved recipe names. The issue was not present in en.

Unfortunately, I forgot about these strings being linked to this addon.
I have all trait names listed due to the zos functions only returning data for "known' traits.
Also, your post set me to evolve the way those trait names are added to the list, and the names for reagent and solvents ( which should now also be auto translated)

Lua Code:
  1. SI_THIS_OF_THAT                         = "<<1>> of <<2>>", -- used for recipe count...  1 of 10
  2.  
  3.     SI_ALCHEMYSCAN_START                    = "-- Alchemy Scan Started --",
  4.     SI_ALCHEMYSCAN_COMPLETE                 = "|c00e673-- Alchemy Scan Complete --|r",
  5.     SI_ALCHEMYSCAN_TRAIT_UPDATED            = "Trait, <<1>>, Updated",
  6.    
  7.     SI_REAGENT_PRIORITY_PROCESSING          = "|cffffffProcessing trait <<1>> of <<2>>, <<3>>|r",
  8.    
  9. ------------------------------------------------
  10. --
  11. ------------------------------------------------
  12.     SI_WINDOW_LOCK                          = "Lock Panel",
  13.     SI_WINDOW_LOCK_TOOLTIP                  = "Lock the result panel position.\n> Keyboard mode only <",
  14.    
  15.     SI_ALCHEMYSCAN_MAX_RESULTS              = "Maximum Results",
  16.     SI_ALCHEMYSCAN_MAX_RESULTS_TOOLTIP      = "Sets the maximum results to display in the Result panel.",
  17.    
  18.     SI_ALCHEMYSCAN_MAX_DELAY                = "Scan delay",
  19.     SI_ALCHEMYSCAN_MAX_TOOLTIP              = "Sets the time to delay the scan after a selection is made.",
  20.    
  21.     SI_TTC_INSTALL  = "To sort Reagents by price, install the Tamriel Trade Centre addon and run the TamrielTradeCentre client to update the price list.",
  22.     SI_TTC_UPDATE   = "To sort Reagents by price, run the Tamriel Trade Centre client to update the price list.",
  23.  
  24.     SI_REAGENT_PRIORITY_HEADER              = "Reagent priority",
  25.     SI_REAGENT_PRIORITY_BY                  = "Priority of reagent to be used",
  26.     SI_REAGENT_PRIORITY_BY_STOCK            = "Highest quantity",
  27.     SI_REAGENT_PRIORITY_BY_MANUAL           = "Set manually",
  28.     SI_REAGENT_SHOW_PRICE_MANUAL            = "Show price[<<1>>]",
  29.     SI_REAGENT_PRIORITY_CHANGED             = "The add-on setting [<<1>>] has been changed because the <<2>> is turned off",
  30.  
  31.     SI_REAGENT_PRIORITY_BY_PRICE1           = "Lowest average TTC sell price",
  32.     SI_REAGENT_PRIORITY_BY_VALUE1           = "Lowest overall TTC sell price",
  33.     SI_REAGENT_PRIORITY_BY_PRICE2           = "Lowest average merchant sell price",
  34.     SI_REAGENT_PRIORITY_BY_VALUE2           = "Lowest overall merchant sell price",
  35.    
  36.     -- Potions
  37.     SI_POTIONTRAIT1     = "Restore Health",
  38.     SI_POTIONTRAIT2     = "Ravage Health",
  39.     SI_POTIONTRAIT3     = "Restore Magicka",
  40.     SI_POTIONTRAIT4     = "Ravage Magicka",
  41.     SI_POTIONTRAIT5     = "Restore Stamina",
  42.     SI_POTIONTRAIT6     = "Ravage Stamina",
  43.     SI_POTIONTRAIT7     = "Increase Spell Resist",
  44.     SI_POTIONTRAIT8     = "Breach",
  45.     SI_POTIONTRAIT9     = "Increase Armor",
  46.     SI_POTIONTRAIT10    = "Fracture",
  47.     SI_POTIONTRAIT11    = "Increase Spell Power",
  48.     SI_POTIONTRAIT12    = "Cowardice",
  49.     SI_POTIONTRAIT14    = "Maim",
  50.     SI_POTIONTRAIT15    = "Spell Critical",
  51.     SI_POTIONTRAIT16    = "Uncertainty",
  52.     SI_POTIONTRAIT17    = "Increase Weapon Crit",
  53.     SI_POTIONTRAIT18    = "Enervation",
  54.     SI_POTIONTRAIT19    = "Unstoppable",
  55.     SI_POTIONTRAIT20    = "Entrapment",
  56.     SI_POTIONTRAIT21    = "Detection",
  57.     SI_POTIONTRAIT22    = "Invisible",
  58.     SI_POTIONTRAIT23    = "Speed",
  59.     SI_POTIONTRAIT24    = "Hindrance",
  60.     SI_POTIONTRAIT25    = "Protection",
  61.     SI_POTIONTRAIT26    = "Vulnerability",
  62.     SI_POTIONTRAIT27    = "Lingering Health",
  63.     SI_POTIONTRAIT28    = "Gradual Ravage Health",
  64.     SI_POTIONTRAIT29    = "Vitality",
  65.     SI_POTIONTRAIT30    = "Defile",
  66.     SI_POTIONTRAIT31    = "Heroism",
  67.     SI_POTIONTRAIT31    = "Increase Weapon Power",
  68.     SI_POTIONTRAIT32    = "Timidity",
  69.     -- Poisons
  70.     SI_POISONTRAIT1     = "Drain Health",
  71.     SI_POISONTRAIT2     = "Poison Damage",
  72.     SI_POISONTRAIT3     = "Drain Magicka",
  73.     SI_POISONTRAIT4     = "Increase Magicka Cost",
  74.     SI_POISONTRAIT5     = "Drain Stamina",
  75.     SI_POISONTRAIT6     = "Increase Stamina Cost",
  76.     SI_POISONTRAIT7     = "Minor Breach and Ward",
  77.     SI_POISONTRAIT8     = "Minor Breach",
  78.     SI_POISONTRAIT9     = "Minor Fracture and Resolve",
  79.     SI_POISONTRAIT10    = "Minor Fracture",
  80.     SI_POISONTRAIT11    = "Minor Cowardice and Sorcery",
  81.     SI_POISONTRAIT12    = "Minor Cowardice",
  82.     SI_POISONTRAIT13    = "Minor Maim and Brutality",
  83.     SI_POISONTRAIT14    = "Minor Maim",
  84.     SI_POISONTRAIT15    = "Minor Uncertainty and Prophecy",
  85.     SI_POISONTRAIT16    = "Minor Uncertainty",
  86.     SI_POISONTRAIT17    = "Minor Enervation and Savagery",
  87.     SI_POISONTRAIT18    = "Minor Enervation",
  88.     SI_POISONTRAIT19    = "Immobilize and Unstoppable",
  89.     SI_POISONTRAIT20    = "Immobilize",
  90.     SI_POISONTRAIT21    = "Expose Victim",
  91.     SI_POISONTRAIT22    = "Mark Victim",
  92.     SI_POISONTRAIT23    = "Hindrance and Major Expedition",
  93.     SI_POISONTRAIT24    = "Hindrance",
  94.     SI_POISONTRAIT25    = "Minor Vulnerability and Protection",
  95.     SI_POISONTRAIT26    = "Minor Vulnerability",
  96.     SI_POISONTRAIT27    = "Gradual Drain Health",
  97.     SI_POISONTRAIT28    = "Gradual Ravage Health",
  98.     SI_POISONTRAIT29    = "Minor Defile and Vitality",
  99.     SI_POISONTRAIT30    = "Defile",
  100.     SI_POISONTRAIT31    = "Heal Absorption",
  101.     SI_POISONTRAIT32    = "Timidity",
  Reply With Quote

ESOUI » Developer Discussions » Translation Help » Need any/all translations

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