View Single Post
08/09/21, 01:51 PM   #3
IsJustaGhost
AddOn Author - Click to view addons
Join Date: May 2020
Posts: 38
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