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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
chimo cf904896ff readme: Add screenshots 5 years ago
actions Change translation service from Bing to Yandex 6 years ago
classes STATUSNET -> GNUSOCIAL 8 years ago
css First commit 9 years ago
forms Change translation service from Bing to Yandex 6 years ago
js Change translation service from Bing to Yandex 6 years ago
lib Change translation service from Bing to Yandex 6 years ago
.jscsrc Add JS formatting rules (jscs/jshint) 8 years ago
.jshintrc Add JS formatting rules (jscs/jshint) 8 years ago
LICENSE Add license 5 years ago
README.md readme: Add screenshots 5 years ago
TranslateNoticePlugin.php Change translation service from Bing to Yandex 6 years 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:
Timeline icons

Clicking on it should show the notice in the language they selected above:
Translation results