twister-html/README.md

119 lines
3.8 KiB
Markdown
Raw Normal View History

2014-01-17 00:55:46 +00:00
twister-html
============
HTML interface for twister core.
See git repo [here](https://github.com/twisterarmy/twister-core).
Official (currently unmaintained) [version](https://github.com/miguelfreitas/twister-core)
2014-01-17 00:55:46 +00:00
Stable releses available on this [page](https://github.com/twisterarmy/twister-html/releases).
To use development version, clone this repo under `~/.twister/html` like this:
2021-05-28 02:22:35 +03:00
git clone https://github.com/twisterarmy/twister-html.git ~/.twister/html
If you're on **Mac OS X** — clone to `${HOME}/Library/Application\ Support/Twister/html` instead of `~/.twister/html`
Switch the edition
2021-05-28 02:22:35 +03:00
-----------------
2021-05-28 02:22:35 +03:00
TA Edition includes official Blaster updates and alternative features. To switch it, use followig commands:
git pull && git checkout twisterarmy
If you want to switch blaster branch:
git checkout blaster
If the master branch:
git checkout master
2021-05-28 02:22:35 +03:00
Get updates:
git pull
2014-01-17 00:55:46 +00:00
Contribute
----------
Feel free to fork and send pull requests!
2014-10-03 01:18:51 +04:00
To make it easier for us to accept your patches, please follow the conventional GitHub workflow
and keep in mind that your pull requests should have **twisterarmy** branch as both the origin and target.
1. After forking, clone your repo:
rm -rf ~/.twister/html # in case you already have it cloned from not your repo
git clone git@github.com:YOURNICKNAME/twister-html.git ~/.twister/html
cd ~/.twister/html
2. Switch to 'twisterarmy' branch:
git checkout twisterarmy
2022-07-09 23:21:17 +03:00
3. CREATE A NEW BRANCH, specific to the branch prefix and fix you're implementing:
2022-07-10 00:07:04 +03:00
git checkout -b twisterarmy-my-awesome-fix
4. Make your changes.
5. Commit and push:
2022-07-10 00:07:04 +03:00
git commit -m "fix of #12345: bad foobarizer" && git push --set-upstream origin twisterarmy-my-awesome-fix
2022-07-10 00:07:04 +03:00
6. Now open a pull request from branch 'YOURNICKNAME:twisterarmy-my-awesome-fix' to 'twisterarmy:twisterarmy' on GitHub.
7. Once the request is accepted, switch back to 'twisterarmy' and track changes in upstream repo:
2021-05-28 02:22:35 +03:00
git remote add upstream https://github.com/twisterarmy/twister-html.git # this is one-off setup
git fetch upstream && git checkout twisterarmy
git merge upstream/twisterarmy # you should get a fast-forward message here
2021-05-28 02:22:35 +03:00
git push
8. Alternatively, make your contribution into the official project:
2021-05-28 02:22:35 +03:00
2022-07-14 17:40:46 +03:00
https://github.com/miguelfreitas/twister-html
2014-10-03 01:18:51 +04:00
2014-01-17 00:55:46 +00:00
Translations
------------
If you want to add your own translation, edit `interface_localization.js` like this:
1. Fork the repo and create a new branch from 'twisterarmy' one:
2014-01-17 00:55:46 +00:00
git clone git@github.com:YOURNICKNAME/twister-html.git ~/.twister/html
cd ~/.twister/html && git checkout twisterarmy
git checkout -b Klingon-translation
2014-01-17 00:55:46 +00:00
2. Add your language to the list of available choices. You should use your ISO code here,
it should match what the browser reports. The Klingon ISO is 'tlh', so:
var knownLanguages = ['en', 'nl', 'it', 'fr', ... , 'ru', 'tlh'];
2014-01-17 00:55:46 +00:00
For multi-region languages, if you want to catch them all, use only the first half
(e.g. to match it and it-ch, specify 'it').
2014-01-17 00:55:46 +00:00
3. Add a new wordset block after existing ones:
if (preferredLanguage === 'tlh') {
polyglot.locale('tlh');
wordset = {
'Insults': 'mu\'qaD',
...
}
2014-01-17 00:55:46 +00:00
}
4. Stage all changes in file `interface_localization.js`:
2014-01-17 14:39:14 +01:00
git add interface_localization.js
2014-01-17 00:55:46 +00:00
5. Commit & push:
git commit -m 'Klingon translation'
git push origin Klingon-translation
6. Then open the pull request from branch 'YOURNICKNAME:Klingon-translation' to 'twisterarmy:twisterarmy' or 'twisterarmy:twisterarmy' on GitHub.
[Community support](https://github.com/twisterarmy/twister-html/issues)
[Official support](https://github.com/miguelfreitas/twister-core/issues)