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.
 
 
 
 
basst85 cadc6509dc Translate more words 11 years ago
css Merging i18n branch by @msjoinder 11 years ago
img initial import 11 years ago
README.md more formatting 11 years ago
following.html include 'Followed by' in Who To Follow 11 years ago
home.html Merging i18n branch by @msjoinder 11 years ago
index.html tidy up 11 years ago
interface_common.js Merged i18n branch 11 years ago
interface_home.js use Polyglot.js to translate in JS and in HTML templates 11 years ago
interface_localization.js Translate more words 11 years ago
interface_login.js use Polyglot.js to translate in JS and in HTML templates 11 years ago
interface_profile-edit.js use Polyglot.js to translate in JS and in HTML templates 11 years ago
jQueryPlugins.js initial import 11 years ago
jpeg_encoder_basic.js initial import 11 years ago
jquery-1.9.1.min.js initial import 11 years ago
jquery.json-2.4.js initial import 11 years ago
jquery.jsonrpcclient.js fix #33 11 years ago
jquery.min.js initial import 11 years ago
jquery.mobile-1.3.2.min.js initial import 11 years ago
jquery.mobile.router.min.js initial import 11 years ago
jquery.storageapi.js initial import 11 years ago
login.html Merge pull request #14 from dionyziz/favicon 11 years ago
mobile_abstract.js minor fixes to "following" display support by @msjoinder. 11 years ago
network.html Merging i18n branch by @msjoinder 11 years ago
polyglot.min.js use Polyglot.js to translate in JS and in HTML templates 11 years ago
profile-edit.html Add a twister tornado favicon to all pages 11 years ago
tmobile.html Add a twister tornado favicon to all pages 11 years ago
tmobile.js use Polyglot.js to translate in JS and in HTML templates 11 years ago
twister_actions.js Merged i18n branch 11 years ago
twister_directmsg.js use Polyglot.js to translate in JS and in HTML templates 11 years ago
twister_following.js Merging i18n branch by @msjoinder 11 years ago
twister_formatpost.js Merge pull request #50 from miguelfreitas/master 11 years ago
twister_io.js Merged i18n branch 11 years ago
twister_network.js Merging i18n branch by @msjoinder 11 years ago
twister_newmsgs.js initial import 11 years ago
twister_timeline.js don't trust dhtget ordering, mentions/hashtags must be sorted by date. much better now. 11 years ago
twister_user.js use Polyglot.js to translate in JS and in HTML templates 11 years ago

README.md

twister-html

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

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

Localisation

If you want a localised interface (currently available only for NL, IT, FR and soon RU), use the experimental i18n branch:

git checkout i18n

If you want to translate it in your own language, check these instructions

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, checkout i18n and create a new branch

     git clone git@github.com:yournickname/twister-html.git ~/.twister/html
     cd ~/.twister/html
     git checkout i18n
     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","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. commit & push

     git commit -m "Klingon translation"
     git push   
    
  3. When opening the pull request on github, make sure you're pointing to miguelfreitas:i18n as the base, so we can merge it straight away in the right place. For any help, ping @toyg.