hexagon logo

IF_GOTO/C1.INPUT and multiple languages...

OK, I'm stumped (not really, but I would like a general solution).

If I have an IF_GOTO/C1.INPUT == "YES" in my program, it will break when I change PC-DMIS to Swedish.

So, I can write IF_GOTO/(C1.INPUT == "YES") or (C1.INPUT == "JA") to make it work in English and Swedish (and some more, like German).

But how do I write to have it work in the current language PC-DMIS is set to, whatever language that is?

In the Report Editor there's a function LOADSTR(xyz) which can get the current translation of string #xyz, but that doesn't work in a part program.
Parents
  • NinjaBadger, that's a quite beautiful solution - although more or less the same approach as I took in my 'hackish' solution!

    I can see two problem with yours, though - if a language has a word for NO beginning with the word for YES (as in YES and YESNOT), or if the PC-DMIS translation calls the function ASK_FOR_YES_OR_NO in some language...

    (none of them apply to my hack)


    I understand your first point can you explain the second point a bit more?
Reply
  • NinjaBadger, that's a quite beautiful solution - although more or less the same approach as I took in my 'hackish' solution!

    I can see two problem with yours, though - if a language has a word for NO beginning with the word for YES (as in YES and YESNOT), or if the PC-DMIS translation calls the function ASK_FOR_YES_OR_NO in some language...

    (none of them apply to my hack)


    I understand your first point can you explain the second point a bit more?
Children
No Data