News in my #guile minimal #gettext run-time for static (expand-time) #i18n!
The API changed: there is now only 1 macro with keyword arguments, which does not update PO files by default.
Your PO files now have scheme-format and range flags, and translator comments!
I now parse PO files directly and not MO files anymore.
The next step is to show how to use this with #Hoot (the license also changed to AGPL).
https://labo.planete-kraus.eu/guile-static-i18n.git/tree/example.scm
=> More informations about this toot | More toots from gugurumbe@mastouille.fr
It’s alive! You can run the #hoot + #i18n demo yourself, by cloning https://labo.planete-kraus.eu/static-i18n-hoot.git/ and then running:
guix shell -f guix.scm -- hello-hoot
Now, if your terminal or browser is not set up to use one of the supported locales (i.e., french), you won’t see any translation… But you can go to http://localhost:8080/hello-hoot.pot and download the PO template for all the strings in the demo, run msginit and start translating!
=> More informations about this toot | More toots from gugurumbe@mastouille.fr
“Oh no! It’s too much work installing a program and running it on my computer!”, I hear you say.
What a coincidence! #Hoot was developed so that you would not have to install any #guile program on your computer, because you can run it in the web browser.
So you just have to click here!
https://hello-hoot.planete-kraus.eu/index.html
=> More informations about this toot | More toots from gugurumbe@mastouille.fr
Oh no! You don’t see any translations!
That’s probably because I don’t speak your language. Would you care to provide a translation?
Wonderful! Now get the PO template file here:
https://hello-hoot.planete-kraus.eu/hello-hoot.pot
Download it somewhere on your computer, run msginit, translate and send it back to me.
=> More informations about this toot | More toots from gugurumbe@mastouille.fr
New: it will now show your browser’s languages. If you get no translations, then maybe it’s because it is configured as English-only.
=> More informations about this toot | More toots from gugurumbe@mastouille.fr This content has been proxied by September (ba2dc).Proxy Information
text/gemini