| Line | |
|---|
| 1 | |
|---|
| 2 | This example shows how it's possible to used GNU gettext utilities with |
|---|
| 3 | Boost.Build. |
|---|
| 4 | |
|---|
| 5 | A simple translation file is compiled and installed as message catalog for |
|---|
| 6 | russian. The main application explicitly switches to russian locale and |
|---|
| 7 | output the translation of "hello". |
|---|
| 8 | |
|---|
| 9 | To test: |
|---|
| 10 | |
|---|
| 11 | bjam |
|---|
| 12 | bin/gcc/debug/main |
|---|
| 13 | |
|---|
| 14 | To test even more: |
|---|
| 15 | |
|---|
| 16 | - add more localized strings to "main.cpp" |
|---|
| 17 | - run "bjam update-russian" |
|---|
| 18 | - edit "russian.po" |
|---|
| 19 | - run bjam |
|---|
| 20 | - run "main" |
|---|
| 21 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.