on 07-18-2007 8:23 PM
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 ??
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.