From c34a52f11604ccc030dc4e09ea61e8dfd0466fb7 Mon Sep 17 00:00:00 2001 From: boris Date: Tue, 21 Jun 2016 21:34:15 +0300 Subject: [PATCH] readme.md --- readme.md | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..8636442 --- /dev/null +++ b/readme.md @@ -0,0 +1,146 @@ +# Wings Site + +Official Wings Site repository. Based on Bootstrap/HTML5/CSS. + +## Launch + +The following shows how to launch a local version of the site with `http-server` nodejs module. + +The method requires `nodejs` and `npm` to be installed. + +```sh +npm install -g http-server +cd +http-server +``` + +## Contribution & Compensation + +We are ready for any contribution and ready to pay bounties for it. In general bounties are 125 Eggs per file/article, however if the word count exceeds 500, there is an additional payment of 125 per 500 words. Please see https://blog.wings.ai/wings-content-and-translation-bounties-1f8e075dd50a for more information. + +To make a claim, you must set up an account at https://bounty.wings.ai and pick a username. In the file which you are editing on the first line you must make a comment and insert the username you registered with. Once your pull request is approved, go pack to https://bounty.wings.ai and make a "claim" for translations and insert the URL of your approved pull request. + +Only one important note: we are using git flow to manage branches. Read more in [gitflow tutorial](http://danielkummer.github.io/git-flow-cheatsheet/) to follow our repo rules. + +## Translations + +This tutorial explains how to add translation. + +### Fork Repository + +Fork this repository by clicking on next button: + + +### Create new branch + +Create new branch in your version of repository, call it: `feature/` + +Replace `lang` with name of your language translation. + +### Create language files + +First go to `bundle` directory. + +Create new file in this directory with next name: + +``` +Content_.properties +``` + +Replace `` with lang that you going to translate. + +For example: + +* en_GB - Grate Britain English. +* ru_RU - Russian. + +See full list of codes on this [page](http://www.lingoes.net/en/translator/langcode.htm) (**Important**: use '_' instead of '-' in file name). + +Open `bundle/languages.json` and add your translation to list, for example: + +```json +{ + "languages": [ + "en_GB", + "ru_RU" + "" + ] +} +``` + +Where is `` place for you lang code. + +Open `bundle/json` folder and create same file for chat animation translation (see pic). +Format of file name: `chat_.json`. You need to replace with **your** lang code. + +At the beginning of the your file you must also add your Eggs username which you picked when registering with https://bounty.wings.ai. + +``` +eggs_username= +``` + + +### Start translations (Site) + +Open 'bundle/Content_en_GB.properties` file with english translation and see format of this file: + +``` += +``` + +Where is `key` id of block of text that you translate and where is `message` is message to translate. + +For example + +This message in english + +``` +title=Wings - A decentralized platform to create, join and manage DAOs +``` + +Will look like this in russian + +``` +title=Wings - Децентрализованная платформа для создания, участия и управления DAO +``` + +`key` is `title` and it hasn't changed, but message yes. + +Do same for you language in your lang file. + + + +### Start translations (Chat) + +To translate chat, open created file `bundle/json/chat_.json` and copy to this file content from `bundle/json/chat_en_GB.json`. + +This is **json** file and contains **json** array of message. + +One element of array: + +```json +{ + "author": "bot", + "avatar": "images/bot.svg", + "msg": "Hi! I am Wings DAO management bot. How may i be of service ?" +} +``` + +You need to insert a new data field called `translator` and set the value to your Eggs username, like so: + +```json +{ + "author": "bot", + "translator": "Bob", + "avatar": "images/bot.svg", + "msg": "Hi! I am Wings DAO management bot. How may i be of service ?" +} +``` + +You need to translate `msg` field in each element of array to make translation of chat. + +### Make pull request of your translation + +Commit your changes and make pull request from your branch to our repository. + +## Copyright © 2016 ChainLab \ No newline at end of file