Internationalization through GNU gettext
Dejan Lekic
dejan.lekic at gmail.com
Mon Oct 6 11:22:30 UTC 2025
On Friday, 3 October 2025 at 22:56:44 UTC, Bruno Haible wrote:
> GNU gettext version 0.25 and newer supports the D language.
>
> This was announced in
> https://lists.gnu.org/archive/html/info-gnu/2025-05/msg00000.html.
>
> In detail:
> - It ships with a library libintl_d.a, that contains the
> runtime code for using GNU gettext message catalogs in the D
> programming language.
> - The 'xgettext' program supports extracting localizable
> messages from D code into a POT file.
> - When doing so, 'xgettext' adds 'd-format' markers for D
> format strings.
> - The msgfmt program, when invoked as 'msgfmt -c', verifies
> the syntax of translations of D format strings.
> - A new example 'hello-d' has been added, that can be used as
> a starting point for internationalized packages.
>
> This support of the D language follows all the good usage
> patterns from the other programming languages.
Amazing! Thanks Bruno! Do you mind writing an article or two
about it that could serve as a guide? Or even better demonstrate
it at the next beerconf that is happening monthly!?
More information about the Digitalmars-d
mailing list