cancel
Showing results for 
Search instead for 
Did you mean: 

element Label with multi languages support

tamir_moshe
Participant
0 Kudos

Hello,

I would like to add extension field (element) using the SDK with different labels for each langauge

for example

[Label("Hello")] element hello:ID; // for english UI

[Label("Bonjour")] element hello:ID; // for french UI

Is it possible ?

Accepted Solutions (1)

Accepted Solutions (1)

former_member226
Employee
Employee
0 Kudos

Hello,

There are 2 ways to handle field label translations for C4C.

1. For KUT based changes --> For KUT based changes you can use the Language Adaptation tool as mentioned here: http://go.sap.com/germany/documents/2016/10/e8ec4248-917c-0010-82c7-eda71af511fa.html

2. For PDI based changed --> For PDI based object changes like PDI Code List or Field Label etc etc, you need to choose "Translate" option, from right-click context menu, for the PDI Object like BO or CodeList. From this choose "Export Text" which will download a .xlf file that can easily be opened with a text editor like Notepad++ or Atom. You will see that there is a <source> tag with some text. Now just beneath that add a "<target>" tag and add the target language, as shown.

Now save your changes and right-click on the object in PDI and click "Import Text". Select the file you just updated and new labels should be visible now.

translate.png

language-selector.png

actual-translation.png

For more details, pls check official documentation here: https://help.sap.com/viewer/cbcebe3cfb1647a8b0322c18dbb0b481/latest/en-US/7547ef0873e210149ec2fdb742...

Answers (1)

Answers (1)

nikhilwalsetwar
Contributor
0 Kudos

Hi Tamir,

Please take a look at the below blogpost shared by Horst.

https://blogs.sap.com/2016/04/06/easy-way-of-using-language-dependent-descriptions-for-identifiers/

But personally I would have preferred the Language adaptation tool to achieve these kind of requirements.

Best,

Nikhil