I'd like to be aware of users language.
TC can automatically translate field names in my WDX, but I write execution errors in ContentGetValue to FieldValue - and I have to decide which language to use.
Can you add optional function SetLanguage, to give give plugin writers a possibility of custom language handling?
[Wish][Plugin interface]Parse language as a parameter
Moderators: Hacker, petermad, Stefan2, white
Yes, it does. But AFAIK only internally - there's one COMMANDER_INI environment variable. Are there any other ways to obtain it?
ADD:
And another problem: what if user changed language after plugin load?
Checking it every ContentGetValue call is quite inefficient.
ADD: Sorry, my mistake, I forgot I read program environmet variables. I will always get the correct COMMANDER_INI. But problem with changing languages still holds.
ADD:
And another problem: what if user changed language after plugin load?
Checking it every ContentGetValue call is quite inefficient.
ADD: Sorry, my mistake, I forgot I read program environmet variables. I will always get the correct COMMANDER_INI. But problem with changing languages still holds.