aboutsummaryrefslogtreecommitdiff
path: root/src/examples/msgs_i18n.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/msgs_i18n.c')
-rwxr-xr-xsrc/examples/msgs_i18n.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/examples/msgs_i18n.c b/src/examples/msgs_i18n.c
index 398a86da..220729af 100755
--- a/src/examples/msgs_i18n.c
+++ b/src/examples/msgs_i18n.c
@@ -25,6 +25,13 @@
25/* 25/*
26 * suposing you are in Brazil: 26 * suposing you are in Brazil:
27 * 27 *
28 * # generate the PO file
29 * $ msginit --input=po/libmicrohttpd.pot --locale=pt_BR --output=libmicrohttpd.po
30 * # open the generated .po in any program like Poedit and translate the MHD messages; once done, let's go to the test:
31 * mkdir -p src/examples/locale/pt_BR/LC_MESSAGES
32 * mv libmicrohttpd.mo libmicrohttpd.po src/examples/locale/pt_BR/LC_MESSAGES
33 * cd src/examples/
34 * gcc -o msgs_i18n msgs_i18n.c -lmicrohttpd
28 * export LANGUAGE=pt_BR 35 * export LANGUAGE=pt_BR
29 * ./msgs_i18n 36 * ./msgs_i18n
30 * # it may print: Opção inválida 4196490! (Você terminou a lista com MHD_OPTION_END?) 37 * # it may print: Opção inválida 4196490! (Você terminou a lista com MHD_OPTION_END?)