const šstd::string šstrLanguagesPath( "g:\\source\\boost_locale\\languages\\" );
const šstd::string šstrLanguageFilename( "messages" );
const šstd::string šstrEnLanguage( "en_US.UTF-8" );
const šstd::string šstrRuLanguage( "ru_RU.UTF-8" );
int main( int argc, char * argv[] )
{
š š using namespace std;
š š using namespace boost::locale;
š š int exitCode = EXIT_SUCCESS;
š š try
š š {
š š š š generator gen;
š š š š gen.add_messages_path( strLanguagesPath );
š š š š gen.add_messages_domain( strLanguageFilename );
š š š š cout << "Start Boost.Locale proba" << endl;
š š š š std::locale en_loc = gen( strEnLanguage );
š š š š wcout << TREX( L"hello world", en_loc ) << endl;
š š š š std::locale ru_loc = gen( strRuLanguage );
š š š š wcout << TREX( L"hello world", ru_loc ) << endl;
š š š š cout << "Stop Boost.Locale proba" << endl;
There no any russian strings in STDOUT. Why?