Proof of concept: automatic extraction of gettext-style translation strings

Adam D. Ruppe destructionator at gmail.com
Thu Apr 2 13:04:58 UTC 2020


On Thursday, 2 April 2020 at 13:01:09 UTC, H. S. Teoh wrote:
> This morning a neat idea occurred to me for a gettext-like 
> system in D that allows automatic and reliable extraction of 
> all translation strings from a program, that doesn't need an 
> external parser to run over the program source code.

Indeed, I have played with this before, it is really cool.

I almost wrote it as an example of my string interpolation 
proposal, since with my proposal, it would be possible to run 
this over i"" strings passed to a particular function too.

D rox.


More information about the Digitalmars-d mailing list