Internationalization and localization tools


Locale-Sensitive C/C++ String Operation Function

int fmtmsg(long int classification, const char *label, int severity, const char *text, const char *action, const char *tag);

Internationalization (I18n) Function Overview

Display a message described by its parameters on the device(s) specified in the classification parameter. The label parameter identifies the source of the message. The string should consist of two colon separated parts where the first part has not more than 10 and the second part not more than 14 characters. The text parameter describes the condition of the error, the action parameter possible steps to recover from the error and the tag parameter is a reference to the online documentation where more information can be found.

I18n Issues

Use the appropriate version of the function as required for internationalization support, noting the following:

This function should not be relied upon to print error messages in any language other than English, and therefore should be avoided in an internationalized application. However, its worth noting that in some limited instances they still may be useful. For example, for debugging, or for writing to log files or consoles that will not be viewed by the end user.

There is no ANSI wide character version of this function. The parameters will have to be converted to multibyte UTF-8 characters and then the fmtmsg function can be used.

Recommended Replacements*

*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.

Locale-Sensitive C/C++ String Operation Functions

 

Lingoport internationalization and localization services and software