twister HTML + Javascript User Interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
miguelfreitas 725f26a368 Merge pull request #233 from slr/tasty-language-filter 10 years ago
css fix for showing of promoted posts, zh localizaion of notifications, replacement of couldnt_find_any_posts string by common slider 10 years ago
img
js fix for showing of promoted posts, zh localizaion of notifications, replacement of couldnt_find_any_posts string by common slider 10 years ago
sound
theme_calm fix for showing of promoted posts, zh localizaion of notifications, replacement of couldnt_find_any_posts string by common slider 10 years ago
theme_nin fixes of lang filtering & posts showning, of localization, especially for de,fr,ru,zh, option for autoupdating of TopTrends, UPD of SASS for nin 10 years ago
theme_original/js move theme-specific JS to theme-related files 10 years ago
AUTHORS credits for language filtering 10 years ago
LICENSE Updated license date 10 years ago
README.md Update README.md 10 years ago
abort.html
following.html postboard lang filtering, its options, tuning of shining 10 years ago
home.html fix for showing of promoted posts, zh localizaion of notifications, replacement of couldnt_find_any_posts string by common slider 10 years ago
index.html
login.html postboard lang filtering, its options, tuning of shining 10 years ago
network.html postboard lang filtering, its options, tuning of shining 10 years ago
options.html fix of Scope_of_usage label 10 years ago
profile-edit.html postboard lang filtering, its options, tuning of shining 10 years ago
tmobile.html postboard lang filtering, its options, tuning of shining 10 years ago
twister-crypto-test.html get javascript crypto code into repository (not used though) 10 years ago

README.md

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.