twister HTML + Javascript User Interface
Go to file
2014-10-31 22:45:34 +06:00
css Improved unicode conversion 2014-07-31 20:43:01 +02:00
img merge tox and bitmessage support from calm 2014-04-10 18:24:03 -03:00
js fix switch-to-normal/promoted-posts to be compatible with different themes. add polyglot.t() to strings 2014-10-31 22:45:34 +06:00
sound more merging with twister-calm + fixes 2014-03-25 00:01:30 -03:00
theme_calm Improved unicode conversion 2014-07-31 20:43:01 +02:00
theme_nin Update i18n 2014-09-21 14:06:48 +02:00
abort.html more merging with twister-calm + fixes 2014-03-25 00:01:30 -03:00
AUTHORS Nin theme credits 2014-09-19 19:17:00 -03:00
following.html Update i18n 2014-09-21 14:06:48 +02:00
home.html now with the newer theme mechanism, span.menu-news may be themed while keeping the inline display. 2014-09-28 16:32:48 -03:00
index.html move javascripts to js/ like in twister-calm 2014-03-16 22:19:37 -03:00
LICENSE add MIT license 2014-02-28 10:43:38 -03:00
login.html Update i18n 2014-09-21 14:06:48 +02:00
network.html merge nin theme by @myleneb 2014-09-19 19:09:08 -03:00
options.html Direct Message's copy to self feature (requires twisterd 0.9.26) 2014-09-27 12:04:32 -03:00
profile-edit.html now with the newer theme mechanism, span.menu-news may be themed while keeping the inline display. 2014-09-28 16:32:48 -03:00
README.md Update README.md 2014-10-03 01:18:51 +04:00
tmobile.html add code localizations mobile version 2014-10-12 19:03:17 +04: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.