The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

boost-build/example/gettext/main.cpp File Reference

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

Include dependency graph for boost-build/example/gettext/main.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define i18n(s)   gettext(s)

Functions

int main ()


Define Documentation

#define i18n s   )     gettext(s)
 

Definition at line 4 of file boost-build/example/gettext/main.cpp.

Referenced by main().


Function Documentation

int main  ) 
 

Definition at line 9 of file boost-build/example/gettext/main.cpp.

References i18n.

00010 {    
00011     // Specify that translations are stored in directory
00012     // "messages".
00013     bindtextdomain("main", "messages");
00014     textdomain("main");
00015 
00016     // Switch to russian locale.
00017     setlocale(LC_MESSAGES, "ru_RU.KOI8-R");
00018 
00019     // Output localized message.
00020     std::cout << i18n("hello") << "\n";
00021 
00022     return 0;
00023 }


Generated on Mon Nov 8 17:08:11 2004 for MPT by  doxygen 1.3.9.1