Re: How to get localized string value from C++?
"mark kaplun" <[email protected]> Wed, 28 Aug 2002 09:27:15 +0200
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
"Zdenek Sebl" <[email protected]> wrote in message news:[email protected]... > Hello, > is there any way how to create localized attribute values using C++ DOM > interface. If I create new node and set attribute using > > element->SetAttribute(NS_LITERAL_STRING("value"), > NS_LITERAL_STRING("&localizedString;")); > > value "&localizedString;" is not replaced with correct localized string > from relevant DTD file. > > Is there any method like GetLocalizedString(in stringIdentifier, out > localizedString)? > > Thanks, > Zdenek > The "&...; " sequence works only at XUL files. For using localized strings you should use the string bundle interface ( nsIStringBundle) and property files. Take a look at http://www.xulplanet.com/tutorials/xultu/locprops.html Mark.