Application Development 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: 

Text symbols translation

Former Member
0 Kudos

Hi guys,

what I though was going to be a walk in the park has kept me frustrated for the last 2 hours now.

I added a new text, which is written to a variable. Ofcourse, I could've just chosen the easy way and hard-code it but I decided to put it into a text symbol instead. Anyway, since my system language is default English and the program language is German (in this case) I had some initial issues, but finally got the text exact same text added in both languages. Now, however, it does not display the text in any other language but DE and EN. How can I get it to just display the standard language's text (either DE or EN) for all other languages, for example Dutch? I thought it would take the standard language's text when it's not defined in a local language, but apparantly, that's not the case. I does not have to be actually translated, so I might as well cut the crap and hardcode it, but I want to do it right. So how to get this exact same text displayed in all languages. without having to add it for each possible language on earth?

1 ACCEPTED SOLUTION

matt
Active Contributor
0 Kudos

If you hardcode it, then yes, it will be the same everywhere. If you assign a text element, then you have to translate it to the other languages on the system. Annoying, but that's what you get for flexibility. It would be nice if we could set a default language for when texts don't exist in a logon language.

You can easily write a program to do the translation though. The logic I use is

1. Give source and destination language

2. Use READ TEXTPOOL to get the source and destination texts into itabs

3. If a destination text doesn't exist for one that's in the source, add the source text into the destination itab.

4. Use INSERT TEXTPOOL to update the destination texts.

matt

7 REPLIES 7

Former Member
0 Kudos

hai

just give the text-001 or any number

instead of the text variable

and after typing this on the editor screen

double click on that

and after that click yes

and it will take you to the screen

and after that type the text which you want to display

save and activate and now you can translate that text to any languages automatically

with regards

s.janagar

Former Member
0 Kudos

Hi,

Please open your programe and Goto>Text elements>Text symbols , after display the text symbols again goto>transalation>Sequntial processing, Give convert language.

Regards

Jana

Former Member
0 Kudos

Hi,

open your text element screen.

Click on GOTO-->translations.

Give language in which you want to translate.

click on sequential processing and then give translated text for your text element.

If you dnt have translations then just give english text as when you run program in that language at least english text will appear instead of blank.

Regards,

dhan

matt
Active Contributor
0 Kudos

If you hardcode it, then yes, it will be the same everywhere. If you assign a text element, then you have to translate it to the other languages on the system. Annoying, but that's what you get for flexibility. It would be nice if we could set a default language for when texts don't exist in a logon language.

You can easily write a program to do the translation though. The logic I use is

1. Give source and destination language

2. Use READ TEXTPOOL to get the source and destination texts into itabs

3. If a destination text doesn't exist for one that's in the source, add the source text into the destination itab.

4. Use INSERT TEXTPOOL to update the destination texts.

matt

Former Member
0 Kudos

Thanks for the answers guys. I just decided to stick with the English text, because that is our international default logon language. Bummer though that I can't define a "default" language.

matt
Active Contributor
0 Kudos

It's likely to come back an bite you. Sooner or later someone will ask for translations...

Former Member
0 Kudos

Hi jeroen,

You can use OTR text, instead of text symbols.

-> Create a OTR text in transaction SOTR_EDIT.

-> Maintain translation for it in which ever languages you want.

-> You can read the OTR text from method: CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS which asks for language.

-> If you dont get it in that language, fetch the text in default language.

Regards,

Faisal