Chimo 1ac9b1e0fb Update README to reflect new configs 7 months ago
actions Change translation service from Bing to Yandex 7 months ago
classes STATUSNET -> GNUSOCIAL 2 years ago
css First commit 3 years ago
extlib/MicrosoftTranslator Adhere to the MS attribution guidelines 2 years ago
forms Change translation service from Bing to Yandex 7 months ago
js Change translation service from Bing to Yandex 7 months ago
lib Change translation service from Bing to Yandex 7 months ago
.jscsrc Add JS formatting rules (jscs/jshint) 2 years ago
.jshintrc Add JS formatting rules (jscs/jshint) 2 years ago
README.md Update README to reflect new configs 7 months ago
TranslateNoticePlugin.php Change translation service from Bing to Yandex 7 months ago

README.md

GNU social Translate Notice

Install

  1. Navigate to your /local/plugins directory (create it if it doesn't exist)
  2. git clone https://github.com/chimo/gs-translate.git TranslateNotice

Configure

  1. Get an API key from Yandex: https://tech.yandex.com/keys/get/?service=trnsl
  2. Add the following to your GNU social config.php (make sure to replace the 'api_key' value with yours):

    addPlugin('TranslateNotice', array(

    'api_key'     => 'YOUR_API_KEY'
    

    ));

Usage

Users can choose which language they want notices to be translated in by going in the "Translate Notices" section of their Settings.

When logged in, users will see a globe icon under each notice. Clicking on it should show the notice in the language they selected above.