[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pelzflorian (Florian Pelz)
Wed, 16 Dec 2020 11:33:53 +0100
On Wed, Dec 16, 2020 at 11:03:16AM +0100, Jérémy Korwin-Zmijowski wrote:
> As I am reading about ways to provide translations of my first webapp.
> What is your workflow ?
This is not for Artanis, but for the Guix website I wrote gettext-like
macros for marking non-string s-expressions. See the usage of G_ on
It gets turned into a gettext POT file:
However I imagine it is difficult to apply in Artanis, because sexps
marked with G_ are replaced by the macro expander with an sexp using
translations for all their strings and possibly reordering the sub
expressions. In a dynamic web server, which replacement is used
should be decided at runtime, not compile time. So each module would
have to be expanded once for each locale and the right expansion would
have to be used somehow. But I am not experienced with Artanis.
- Internationalization, Jérémy Korwin-Zmijowski, 2020/12/16
- Re: Internationalization,
pelzflorian (Florian Pelz) <=