aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsilvioprog <silvioprog@gmail.com>2017-03-01 13:14:27 -0300
committersilvioprog <silvioprog@gmail.com>2017-03-01 13:14:27 -0300
commitdd3da90283e38b1202a50d79e82181aa3eb88447 (patch)
tree872e377540a44769f667368f9c6973956df40f64
parentbf56a65a0cda87d8edc8e8926c8ee5e49b0121df (diff)
downloadlibmicrohttpd-dd3da90283e38b1202a50d79e82181aa3eb88447.tar.gz
libmicrohttpd-dd3da90283e38b1202a50d79e82181aa3eb88447.zip
i18n example: re-add useful comments as suggested by Karlson2k
-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?)