Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Apertium-html-tools/Localisation

From Apertium
Jump to: navigation, search

How l10n happens during make:

The file localise-html.py in https://github.com/apertium/apertium-html-tools/tree/master/tools does compile-time localisation.


If index.html.in has

<div data-text="Contact_Para"></div>

and assets/strings/nno.json has

 "Contact_Para": "Ta kontakt på a+b@c.com"

then build/index.nno.html will have

<div data-text="Contact_Para">Ta kontakt på a+b@c.com</div>
Personal tools