libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit dd3da90283e38b1202a50d79e82181aa3eb88447
parent bf56a65a0cda87d8edc8e8926c8ee5e49b0121df
Author: silvioprog <silvioprog@gmail.com>
Date:   Wed,  1 Mar 2017 13:14:27 -0300

i18n example: re-add useful comments as suggested by Karlson2k

Diffstat:
Msrc/examples/msgs_i18n.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/examples/msgs_i18n.c b/src/examples/msgs_i18n.c @@ -25,6 +25,13 @@ /* * suposing you are in Brazil: * + * # generate the PO file + * $ msginit --input=po/libmicrohttpd.pot --locale=pt_BR --output=libmicrohttpd.po + * # open the generated .po in any program like Poedit and translate the MHD messages; once done, let's go to the test: + * mkdir -p src/examples/locale/pt_BR/LC_MESSAGES + * mv libmicrohttpd.mo libmicrohttpd.po src/examples/locale/pt_BR/LC_MESSAGES + * cd src/examples/ + * gcc -o msgs_i18n msgs_i18n.c -lmicrohttpd * export LANGUAGE=pt_BR * ./msgs_i18n * # it may print: Opção inválida 4196490! (Você terminou a lista com MHD_OPTION_END?)