The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback

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-1999 The Mozilla Organization.