Source code for the tox.im website
HTML Python JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
resources
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
buildsite.py
index.af.json
index.ar.json
index.be.json
index.bg.json
index.br.json
index.ca.json
index.cs.json
index.da.json
index.de.json
index.el_GR.json
index.en.json
index.eo.json
index.es.json
index.et.json
index.fa.json
index.fi.json
index.fr.json
index.gl.json
index.he.json
index.hr.json
index.hu.json
index.id.json
index.it.json
index.ja.json
index.ka.json
index.ko.json
index.la.json
index.lt.json
index.mustache
index.nb_NO.json
index.ne.json
index.nl.json
index.nn_NO.json
index.pl.json
index.pr.json
index.pt_BR.json
index.pt_PT.json
index.ro.json
index.ru.json
index.sk.json
index.sl.json
index.sr.json
index.sv.json
index.tr.json
index.uk.json
index.vi.json
index.zh_CN.json
index.zh_HK.json
index.zh_TW.json
quality.py
tox.osiris.py

README.md

NOTICE

Eventually, this website will be deprecated in favor of the new site (preview available at beta.tox.im). If you are wanting to submit translations or other contributions, we strongly recommend that you submit them to the new site instead (please submit translations here, as they will be put to better use.

Current build status: Build Status Tox.im

Source code for the Tox.im website

Building the site

Building the site requires Python 2 or Python 3 and the pystache library.
In the main directory run python buildsite.py

To make the folder layout do the following:
Move in to the site folder cd site
Make a list of all the languages ls | tr ' ' '\n' | grep html | tr '.' '\n' | grep -v 'html' > list.
Make a folder for every language cat list | xargs mkdir.
Move a language in to a folder cat list | xargs -I % mv %.html %/index.html.
Make an index page ln -s en/index.html.
Change EN to a default language cat list | xargs -I % ln -s assets %.
Remove the list file rm list

Translations

As well as new translations, improvement of translations we already have is welcome too. Just copy index.en.json to index.??.json, where ?? is your language's Zend locale name.
If the language you are translating to has more than one dialect (for example: Brazilian Portuguese vs Portuguese Portuguese), you can add _?? before .json, where ?? is a unique code for your dialect. A full example: index.pt_BR.json Capitalization does matter!

Please use LF (Unix) line endings in your json files. Even on Windows, a decent editor like Notepad++ will let you do this!

Language file metadata

The JSON files used by buildsite.py have some special names which are used by the script to build the bar of languages in the footer. The names are:

_language: The (native) name of your language. Example: Français
_ind: Leave this as it is.
_comment: A comment about the language file (optional).
_author: The creator(s) of the file.
_direction: rtl or ltr only (specifies the text direction of the language. If you leave this key out, it will be left-to-right).

Language Maintainers

Please visit the Translations page on the Tox Wiki. If you want to volunteer to maintain a language (keep it up to date), please get in contact with Urras.