cancel
Showing results for 
Search instead for 
Did you mean: 

Text Translation based on login language

Former Member
0 Kudos

Hi ,

1) I created a buttons on FPM ...I want to change button text based on login language . What is the process?

2) Where we will use SE63 and Where we will use SOTR_EDIT ? What is the difference s/n both tcodes ?


3) In WD ABAP Where  we write documentation for WDComponent ?

Thanks..!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,


1) I created a buttons on FPM ...I want to change button text based on login language . What is the process?

Internationalization, often abbreviated as I18N, provides the ability to translate application labels, captions, messages and other texts into multiple languages so that users of a WDA application will see these application texts presented automatically in their particular logon language




2) Where we will use SE63 and Where we will use SOTR_EDIT ? What is the difference s/n both tcodes ?


Translating WDA texts using SE63 is awful. Avoid SE63 and just call function SOTR_API_WB_TRANSLATE directly via SE37.

Enter your source & target language and..

PGMID = LIMU

OBJECT = WDYV

OBJNAME = <name of WDA component> (you can use % here as a wildcard)

CALL FUNCTION 'SOTR_API_WB_TRANSLATE'

  EXPORTING

   SOURCE_LANGU                     = sy-LANGU

    TARGET_LANGU                     = 'DE'

    PGMID                            =  'LIMU'

    OBJECT                           = 'WDYV'

    OBJ_NAME                         = 'ZPAS_XN_01001'

  FLAG_STRING                      =

  EDIT_MODE                        = 'T'

EXCEPTIONS

  NO_ENTRY_FOUND                   = 1

  INTERNAL_ERROR                   = 2

  NO_AUTHORIZATION                 = 3

  ERROR_IN_CONTEXT                 = 4

  USER_CANCELLED                   = 5

  ERROR_IN_TRANSPORT_REQUEST       = 6

  OTHERS                           = 7

          .

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.



3) In WD ABAP Where  we write documentation for WDComponent ?

Help Texts for Web Dynpro Applications

Thanks

KH