GNU social Translation Plugin

Chimo 1ac9b1e0fb Update README to reflect new configs 4 months ago
actions 1c9850daec Change translation service from Bing to Yandex 4 months ago
classes 9ee2c3bc2b STATUSNET -> GNUSOCIAL 2 years ago
css 387b858779 First commit 3 years ago
extlib d7a8004332 Adhere to the MS attribution guidelines 2 years ago
forms 1c9850daec Change translation service from Bing to Yandex 4 months ago
js 1c9850daec Change translation service from Bing to Yandex 4 months ago
lib 1c9850daec Change translation service from Bing to Yandex 4 months ago
.jscsrc ade1bb6c13 Add JS formatting rules (jscs/jshint) 2 years ago
.jshintrc ade1bb6c13 Add JS formatting rules (jscs/jshint) 2 years ago
README.md 1ac9b1e0fb Update README to reflect new configs 4 months ago
TranslateNoticePlugin.php 1c9850daec Change translation service from Bing to Yandex 4 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.