twister HTML + Javascript User Interface
Go to file
miguelfreitas 411e08feac Merge pull request #109 from juanda097/patch-3
Update interface_localization.js (Added spanish language)
2014-03-16 14:22:22 -03:00
css Merge branch 'flexible_profile_modal' of https://github.com/toyg/twister-html 2014-02-06 23:21:04 -02:00
img initial import 2013-12-30 12:42:36 -02:00
abort.html Fixes #17 add 'exit' button 2014-01-17 05:22:06 +00:00
following.html fix retransmited by (and rename to "twisted again by" as requested! :) 2014-02-27 21:44:58 -03:00
home.html fix retransmited by (and rename to "twisted again by" as requested! :) 2014-02-27 21:44:58 -03:00
index.html Update index.html 2014-01-25 03:23:37 -05:00
interface_common.js cache your own mentions locally. much better user experience imho (the old thing was annoying me!). please test. 2014-01-21 01:21:54 +00:00
interface_home.js new option: "Switch to Promoted posts" (requires twister-core 0.9.15) 2014-02-17 23:17:29 -03:00
interface_localization.js Update interface_localization.js 2014-03-09 07:24:04 -05:00
interface_login.js use Polyglot.js to translate in JS and in HTML templates 2014-01-12 18:48:39 -06:00
interface_profile-edit.js Merging fffa3850f1 - add secret key button 2014-01-22 15:45:58 +00:00
jpeg_encoder_basic.js initial import 2013-12-30 12:42:36 -02:00
jquery-1.9.1.min.js initial import 2013-12-30 12:42:36 -02:00
jquery.json-2.4.js initial import 2013-12-30 12:42:36 -02:00
jquery.jsonrpcclient.js fix #33 2014-01-15 14:22:44 -02:00
jquery.min.js initial import 2013-12-30 12:42:36 -02:00
jquery.mobile-1.3.2.min.js initial import 2013-12-30 12:42:36 -02:00
jquery.mobile.router.min.js initial import 2013-12-30 12:42:36 -02:00
jquery.storageapi.js initial import 2013-12-30 12:42:36 -02:00
jQueryPlugins.js initial import 2013-12-30 12:42:36 -02:00
LICENSE add MIT license 2014-02-28 10:43:38 -03:00
login.html Translate login.html 2014-01-17 22:38:40 +01:00
mobile_abstract.js minor fixes to "following" display support by @msjoinder. 2014-01-06 15:55:26 -02:00
network.html merging master 3a0e983e63 2014-01-17 16:49:41 +00:00
polyglot.min.js use Polyglot.js to translate in JS and in HTML templates 2014-01-12 18:48:39 -06:00
profile-edit.html Merging fffa3850f1 - add secret key button 2014-01-22 15:45:58 +00:00
README.md Added localization for DE 2014-01-21 00:19:43 +01:00
tmobile.html fix retransmited by (and rename to "twisted again by" as requested! :) 2014-02-27 21:44:58 -03:00
tmobile.js cache your own mentions locally. much better user experience imho (the old thing was annoying me!). please test. 2014-01-21 01:21:54 +00:00
twister_actions.js use extended dhtget timeout parameters for mentions and hashtags (requires twister_core >= 0.9.14) 2014-02-15 17:34:55 -02:00
twister_directmsg.js use Polyglot.js to translate in JS and in HTML templates 2014-01-12 18:48:39 -06:00
twister_following.js list ourselves in following list so we may check about torrent synchronization 2014-01-25 13:27:01 -02:00
twister_formatpost.js Merge pull request #50 from miguelfreitas/master 2014-01-16 15:55:08 -08:00
twister_io.js fix harmless exception if value is null 2014-02-17 21:52:55 -03:00
twister_network.js merging master 3a0e983e63 2014-01-17 16:49:41 +00:00
twister_newmsgs.js use extended dhtget timeout parameters for mentions and hashtags (requires twister_core >= 0.9.14) 2014-02-15 17:34:55 -02:00
twister_timeline.js fix case where displaying promoted posts failed with an exception 2014-02-27 21:46:06 -03:00
twister_user.js use Polyglot.js to translate in JS and in HTML templates 2014-01-12 18:48:39 -06:00

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, DE and 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","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, 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.