Difference between revisions of "Apertium-html-tools/Localisation"

From Apertium
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...")
 
Line 6: Line 6:


If index.html.in has
If index.html.in has
<pre><div data-text="Contact_Para"></div></pre>

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


and assets/strings/nno.json has
and assets/strings/nno.json has

Revision as of 19:02, 16 December 2014

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.


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

Ta kontakt på a+b@c.com