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.

How to localise apertium-apy and apertium-html-tools

From Apertium
(Difference between revisions)
Jump to: navigation, search
(Created page with "Here are some tips on how to localise apertium-apy and apertium-html-tools. ==apertium-html-tools== Copy one of the existing <code>.json</code> files in <code>trunk/...")
 
m
 
Line 24: Line 24:
   
 
[[Category:Documentation]]
 
[[Category:Documentation]]
  +
[[Category:Documentation in English]]

Latest revision as of 13:57, 26 September 2016

Here are some tips on how to localise apertium-apy and apertium-html-tools.

[edit] apertium-html-tools

Copy one of the existing .json files in trunk/apertium-tools/apertium-html-tools/assets/strings/, and make a new file with the three letter code of your language.

Then edit the file trunk/apertium-tools/apertium-html-tools/assets/strings/locales.json to add your language code and the native name of the language.

[edit] apertium-apy

Edit the file trunk/apertium-tools/apertium-apy/tools/apertiumlangs.sql

Scroll down to the bottom and add lines like:

INSERT INTO "fixes" VALUES(NULL,'en','os','Ossetian');

Where there are three non-null values: (x, y, z).

  • x is the language code you are localising in.
  • y is the language code you want to give the name for.
  • z is the language name.
Personal tools