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.
|