twister HTML + Javascript User Interface
Go to file
2015-08-20 17:19:54 +05:00
css add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
img merge tox and bitmessage support from calm 2014-04-10 18:24:03 -03:00
js add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
licenses fix of post splitting, $.fn.caret, licenses for caret, franc and notify modules 2015-04-09 22:09:05 +05:00
sound more merging with twister-calm + fixes 2014-03-25 00:01:30 -03:00
theme_calm add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
theme_nin add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
theme_original/js move theme-specific JS to theme-related files 2014-11-04 22:42:31 +06:00
abort.html more merging with twister-calm + fixes 2014-03-25 00:01:30 -03:00
AUTHORS fix typo in AUTHORS 2015-08-18 22:25:51 +05:00
following.html add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
home.html add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
index.html remove inline scripts 2015-07-17 17:17:28 -03:00
LICENSE Updated license date 2015-01-01 10:32:16 +00:00
login.html remove inline scripts 2015-07-17 17:17:28 -03:00
network.html fix network promoted message set up 2015-08-18 22:21:03 +05:00
options.html delete link to ~calm~ repo from options; obsolete, should be in theme_option.js 2015-08-18 19:59:40 +05:00
profile-edit.html remove inline scripts 2015-07-17 17:17:28 -03:00
README.md Update README.md 2014-10-03 01:18:51 +04:00
tmobile.html tune tmobile CSS for time stamp 2015-08-20 12:52:31 +05:00
twister-crypto-test.html get javascript crypto code into repository (not used though) 2014-12-22 19:41:33 -02:00

twister-html

HTML interface for Twister (github). To use it, clone this repo under ~/.twister/html like this:

git clone https://github.com/miguelfreitas/twister-html.git ~/.twister/html

If you'r on Mac OS X - clone to ${HOME}/Library/Application\ Support/Twister/html instead of ~/.twister/html

Contribute

Feel free to fork and send pull requests!

To make it easier for us to accept your patches, please follow the conventional GitHub workflow:

 # after forking, clone your repo
 rm -rf ~/.twister/html
 git clone git@github.com:yournickname/twister-html.git ~/.twister/html
 cd ~/.twister/html
 # CREATE A NEW BRANCH, specific to the fix you're implementing
 git checkout -b my-fix
 # ... make your changes ...
 # commit and push
 git commit -m "Fixing #1234 - bad foobarizer" && git push
 # Now open a pull request from branch my-fix to miguelfreitas:master on github.
 # Once the request is accepted, switch back to master and track upstream
 git remote add upstream https://github.com/miguelfreitas/twister-html.git # one-off setup
 git fetch upstream
 git checkout master
 git merge upstream/master # you should get a fast-forward message here
 git push

Translations

If you want to add your own translation, edit interface_localization.js like this:

  1. fork the repo and create a new branch

     git clone git@github.com:yournickname/twister-html.git ~/.twister/html
     cd ~/.twister/html
     git checkout -b Klingon
    
  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"];`
    

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").

  1. add a new wordset block after existing ones

     if(preferredLanguage == "tlh"){
         polyglot.locale("tlh");
         wordset = {
             "Insults": "mu'qaD,
             ....
         }
     }
    
  2. stage all changes in file interface_localization.js

     git add interface_localization.js
    
  3. commit & push

     git commit -m "Klingon translation"
     git push   
    
  4. When opening the pull request on github. For any help, ping @toyg.