cancel
Showing results for 
Search instead for 
Did you mean: 

Internationalization of label text using OTR

former_member283828
Participant
0 Kudos

Hi Gurus,

I want to internationalize the label of the Input field.

I have done following steps for that.

1) from the top menu goto->online text repository browser->create->

provide the i/p for Alias Name: NAME

Length:15

in the text field below of the above two i/p fields I have entered: NAMEE

2)I have clicked the 'context' button and selected country 'DE' and in the text field below entered NAMEG.

3)saved it

4)from the property 'text' of my label UI Element I have opened the OTR browser and selected the above created otr field.

5)Activated my webdynpro component.

when I run my application browser opened with sap-language as 'EN' and the label was shown as NAMEE.

I have changed the sap-language as 'DE' and refreshed the URL but this time it is not showing 'NAMEG' for the label, instead it is showing NAMEE.

error messages from assistance class are changed according to the language.

can any one throw a light on this.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kiran,

it is very simple to do:

You said you already have Alias Name as "NAME"

that is pefect....take this Alias Name....go to transaction SOTR_EDIT

on the screen which shows up, you have following

Language: Pick English here

Text: *

Alias: NAME

Concept: leave it blank

click on display.

Now on this screen go to the "EDIT" menu -top of the screen-where you also see system and help menu. Follow the following path:

Edit->Context->Change

As soon as you will click on Change....you will see a pop up coming up with following fields:

Country:

Industry:

close this pop up box without filling out anything there....just click on red x and close this pop up box.

After you close the pop up box you will find that the "Language" field is open for editing....

In this field choose the language you want your Alias to be translated into: in your case German..

In the text field...type in your German text....

Save your work...

That is all...no need to do anything else.....

you can check if your Alias is being translated...

go back to transaction SOTR_EDIT...and than choose German for language and put in the Alias: NAME

you should see your text in German...

I hope this helps...

Thanks...

AS

former_member283828
Participant
0 Kudos

Thank you J ARE, GOPI.

I could Internationalize label now.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Correct way for intrernationalization is as follows:

- Create a OTR test in a particular language.

- Assign the OTR test to the UI element.

- Go to se63, translate the respective OTR text in whichever language you want to translate.

- Log out of the SAP system and then login again, in a different language in which you have translated the text.

- You will see the chnaged text in the application.

cheers!

Ashish.

former_member283828
Participant
0 Kudos

Hi Ashish,

Thanks for the response.

I have created OTR text with the below procedure:

entered into T-CODE = SOTR_EDIT.

filled the following entries

a) checked the check box of SHORT TEXT.

b) language = English

c) textalis = NAMEE1806

d) alias = NAMEE1806ALIAS

clicked the button 'CREATE'

in the next page entered following things

package = $TMP

object type = WDYV

and saved it.

Then in T-CODE = SE63,

Translation->abap objects->short texts->OT OTR->S OTR OTR SHORT TEXTS

filled the following entries

object name = NAMEE1806ALIAS

translation area = 999999

source language = enUS

target language = deDE

and clicked the button 'EDIT'.

the error I am getting is 'OBJECT DOES NOT EXIST'

How can I solve the above issue.

Thanks,

Kiran

former_member15918
Participant
0 Kudos

Hello Kiran,

Object Id is concatenation of Development class (30 char ) where OTR is created and the Concept.

Suppose dev class is ZABC and letu2019s say concept is 49AA941CE81A2AEDE100000098099128.

Then object id should be ZABC 26 blank space49AA941CE81A2AEDE100000098099128

Regards,

Hema

Edited by: Hemalata Borate on Jun 18, 2009 1:03 PM

former_member283828
Participant
0 Kudos

Hi Hema,

Thanks for response.

what is development class. where can I find it.

I could find concept ID.

In place of development class I have put aliasname and name of the otr text and tried to edit the otr text in se63 T-code but still it gives the same error.

Thanks,

Kiran Kumar

former_member283828
Participant
0 Kudos

Hi Gurus,

Can any one give me the steps to internationalize the label of a UI element.

The steps I have followed are posted in my previous messages.

Thanks in advance.

Regards,

Kiran Kumar

Former Member
0 Kudos

Kiran,

Check out this weblog.

/people/gopi.nidjelli/blog/2008/10/20/internationalization-and-translation-for-wd4a

Thanks,

Gopi