Difference between revisions of "Apertium-html-tools/Localisation"
Jump to navigation
Jump to search
(Created page with "How l10n happens during make: The file localise-html.py in https://svn.code.sf.net/p/apertium/svn/trunk/apertium-tools/apertium-html-tools does compile-time localisation. I...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
How l10n happens during make: |
How l10n happens during make: |
||
The file localise-html.py in https:// |
The file localise-html.py in https://github.com/apertium/apertium-html-tools/tree/master/tools |
||
does compile-time localisation. |
does compile-time localisation. |
||
If index.html.in has |
If index.html.in has |
||
⚫ | |||
⚫ | |||
and assets/strings/nno.json has |
and assets/strings/nno.json has |
||
Line 15: | Line 14: | ||
then build/index.nno.html will have |
then build/index.nno.html will have |
||
<pre><div data-text="Contact_Para">Ta kontakt på a+b@c.com</div></pre> |
Latest revision as of 01:40, 8 March 2018
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>