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.
 
 
gs-translate/README.md

996 B

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