diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-19 09:13:47 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-24 19:03:12 +0200 |
commit | b42702d738bff79b16d96b102166dd19d27760a9 (patch) | |
tree | 0d0d66d7e098c536bc4e777e472485d486ed7572 /po | |
parent | 401e7c5c36af9b09154c9af8c6e0626923529cbd (diff) | |
download | bison-b42702d738bff79b16d96b102166dd19d27760a9.tar.gz |
examples: bistromathic: demonstrate internationalization
Currently it was only using stubs. Let's actually translate the
strings using gettext.
* examples/c/bistromathic/local.mk: Define LOCALEDIR, BISON_LOCALEDIR
and link with libintl.
* examples/c/bistromathic/parse.y: Use them.
Remove useless includes.
Take ENABLE_NLS into account.
(error_format_string): New.
(yyreport_syntax_error): Rewrite to rely on a format string, which is
more appropriate for internationalization.
* examples/c/bistromathic/Makefile: We no longer use Flex.
We need readline and intl.
* doc/bison.texi: Point to bistromathic for a better option for
internationalization.
* po/POTFILES.in: Add bistromathic.
Diffstat (limited to 'po')
-rw-r--r-- | po/POTFILES.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in index 0961eca3..1eca4cdd 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,3 +1,4 @@ +examples/c/bistromathic/parse.y src/complain.c src/conflicts.c src/files.c |