GithubHelp home page GithubHelp logo

oniichanj / tox-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tox-archive/tox-website.old

0.0 2.0 0.0 4.36 MB

Source code for the tox.im website

Home Page: https://tox.im

License: Creative Commons Attribution Share Alike 4.0 International

CSS 7.67% JavaScript 26.78% Python 65.55%

tox-website's Introduction

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 Proplex.

tox-website's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.