Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Include translation issue

Former Member
0 Likes
405

Hi.

I have an Include that writes LOG. But, it's log messages can't be translated, because Includes does not have text elements.

There's a easy way to translate it without using text elements?

Thanks in advance,

Brian Gonsales.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
368

Your include cannot have text-elements, but it cannot be executed and has to be included in a main program. That program can have text-elements.

In of our projects we have used the below syntax to handle the translations in a include

Write : 'Test Program'(000).

000 is the text element defined in the main program and you can maintain translations for it. If a translation (or rather a value) is maintained for 000 then it will pick that value, else it will display the text 'Test program'.

Hope this is helpful.

Thanks,

Pavan

1 REPLY 1
Read only

Former Member
0 Likes
369

Your include cannot have text-elements, but it cannot be executed and has to be included in a main program. That program can have text-elements.

In of our projects we have used the below syntax to handle the translations in a include

Write : 'Test Program'(000).

000 is the text element defined in the main program and you can maintain translations for it. If a translation (or rather a value) is maintained for 000 then it will pick that value, else it will display the text 'Test program'.

Hope this is helpful.

Thanks,

Pavan