View Single Post
11/01/22, 01:58 PM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,000
If you want to have a logic you need to add the traslation strings to an internal table with the language constant fe and en in seperate subtables.
Create yourself a function that returns either fe or en entries then, based on your logic (e.g. use fr for all except some controls that you have defined in another table).
Or something similar.

The entries in those internal tables cannot use ZO_CreateString though as the default string constants are client language dependent -> if you use GetString to read them.
So you'd have to manually translate the string in the internal tables of your addon.
  Reply With Quote