----- Original Message ----- From: Carl-Erik Sorensen To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:39 AM
Subject: RE: [development-axapta] Translate label by code
Hi Jonathan
See how "element.design().lookupLabel(literalStr("@SYSxxx")" is used in reports. This will return the text in the language on the design.
If you need to translate you could use: sysLabel = new SysLabel(languageId); return sysLabel.extractString(LabelId);
There might be more efficient ways to translate - but I don't know.
Regards
-----Original Message----- From: johnn_16 [mailto:[EMAIL PROTECTED] Sent: 16. september 2003 22:29 To: [EMAIL PROTECTED] Subject: [development-axapta] Translate label by code
Hi, I tried to do report that print each pages based on the representative language. I use element.design().languageid
(EmplTable.LanguageId). It work fine exept for some control. The controls that don't display the translated text are controls that have the property AutoDeclaration to Yes.
I think it's because the translation is done by the global languageID (the one choose in the AxConfig) and not by the report's languageID because the text is setted by code.
If it's because of that, someone know how to get the tranlation by code when we know the label number? Maybe something like Variable = Translate(@USR101 , "en-us");
Thanks!
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Sponsor ADVERTISEMENT
click here
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

