The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

PUBLIC char* XP_GetString (int id)

Get a cross platform string resource by ID

Documentation

Get a cross platform string resource by ID. This function makes localization easier for cross platform strings. The cross platfrom string resources are defined in allxpstr.h. You should use XP_GetString when:
  1. Any human readable string that not in front-end
  2. With the exception of HTML strings (use XP_GetStringForHTML)
  3. The translator/localizer will then translate the string defined in allxpstr.h and show the translated version to user.
The caller should make a copy of the returned string if it needs to use it for a while. The same memory buffer will be used to store another string the next time this function is called. The caller does not need to free the memory of the returned string.
Returns:
Localized (translated) string
Parameters:
id - Specifies the string resource ID
See Also:
XP_GetStringForHTML
INTL_ResourceCharSet

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++

Copyright © 1998-2000 The Mozilla Organization.
Last modified April 17, 1998.