KCMS CMM Developer's Guide

Application Module

The application, or library module must include the following code:

#include

<locale.h> #include <libintl.h>

setlocale("LC_MESSAGES",

"<language>");

bindtestdomain("string_file_name","directory");

dgettext("string_file_name",

"message");

where

language is one of the language locale directories in /usr/lib/locale

directory is the location of the installed translated message file, string_file_name

message is the message string to translate