Giter Club home page Giter Club logo

website's Introduction

This is the web site at https://chia.network/. Pull requests accepted!

If you have ideas for the FAQ, check out https://github.com/Chia-Network/website/tree/master/webroot/faq

You can see this web site locally with python 2 as follows:

    $ cd webroot
    $ python -m SimpleHTTPServer

or with python 3:

    $ cd webroot
    $ python3 -m http.server

Then browse to http://127.0.0.1:8000/

Translations

This site uses l20n.js v5.0 to translate static html content. Please take a moment to familiarize yourself with its rules and syntax before adding content or translations.

Guidelines for new content in existing files

  • All text section elements must include the data-l10n-id="text-id" attribute:
    <span data-l10n-id="new-text-section">This is a new section of text</span>
  • Before adding new translation entries, make sure one does not already exist by checking the app.en-US.ftl

  • Add new text entries and english translations to app.en-US.ftl

  • Add the same entries to the remaining translation files

Guidelines for new html files

  • All html files must include the following in the head section:
    <meta name="defaultLanguage" content="en-US">
    <meta name="availableLanguages" content="en-US, fr, ja, nl, de, es, sr, pt-BR, tr">
    <link rel="localization" href="./locales/app.{locale}.ftl">
    <script defer src="./js/l20n.min.js"></script>

Guidelines for adding languages

For html

  • Add the two character locale code to the following meta element in all existing html files
    <meta name="availableLanguages" content="en-US, fr, ja, nl, de, es, sr, pt-BR, tr">
  • Add the translated name of the language to the dictionary at the top of locales.js
var names = {
   "en-US": "English",
   "fr": "Français",
   "ja": "日本語",
   "nl": "Nederlands",
   "de": "Deutsch",
   "es": "Español",
   "sr": "Srpski",
   "pt-BR": "Português",
   "tr": "Türk"
};
  • Copy locales/app.en-US.ftl and rename it with the locale code being added.
  • Translate away!

For the FAQ

  • Translations of the FAQ are kept in markdown, and don't use l20n
  • Copy faq.md to the translated markdown files folder, changing its name to faq.<2 letter locale code>.md
  • Translate away!

website's People

Contributors

abdullahguch avatar akiyoshi avatar akscipy avatar alathers avatar alfondotnet avatar ashadle avatar brampauwelyn avatar che-perez avatar coder472 avatar cs4r avatar datdraggy avatar davelab6 avatar davision avatar detailyang avatar dkackman avatar eldain avatar faisal3325 avatar grammost avatar hoffmang9 avatar jduffey avatar katabame avatar keo-rsp avatar liquideveloper avatar marlonx19 avatar mrkellysch avatar nur-azhar avatar ohanesian avatar pwindle avatar richardkiss avatar shayanb avatar

Watchers

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