cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the text in required language

Former Member
0 Kudos

Hi All,

I am storing text in the message pool and i am using the following code to get the text based on the log in language

IWDTextAccessor textAccess = wdComponentAPI.getTextAccessor();

message = textAccess.getText(Key);

Say if use is logged in with language as german .. if i execute the following statement i will get text in german .. but if i want text in english ...for a german user how do i do it.. is there any way to tell in which language we want the text to be ??

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dont think you have anyway to tell the target language for a single text retrieval. You can obviously set the locale of the user but that will change language of other texts also. If you always want to show some predefined text in English then better you dont keep the those texts at all in the translated files. Or you keep the English text in all the files - so that everytime English only gets displayed. But if your case is a selective one - i.e. you want to show English text to only German users but spanish to Spanish and French to French then I dont have any answer how to achieve the same.

Regards,

Shubhadip