2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-14 12:42:11 +00:00
Files
build/example/gettext
2008-10-16 08:42:03 +00:00
..
2004-08-26 11:05:22 +00:00
2003-07-01 12:00:31 +00:00

Copyright 2003 Vladimir Prus
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)


This example shows how it is possible to use GNU gettext utilities with
Boost.Build.

A simple translation file is compiled and installed as message catalog for
russian. The main application explicitly switches to russian locale and outputs
the translation of "hello".

To test:

   bjam
   bin/gcc/debug/main

To test even more:

   - add more localized strings to "main.cpp"
   - run "bjam update-russian"
   - edit "russian.po"
   - run bjam
   - run "main"