You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 years ago | |
---|---|---|
actions | 6 years ago | |
classes | 8 years ago | |
css | 10 years ago | |
forms | 6 years ago | |
js | 6 years ago | |
lib | 6 years ago | |
.jscsrc | 8 years ago | |
.jshintrc | 8 years ago | |
LICENSE | 6 years ago | |
README.md | 5 years ago | |
TranslateNoticePlugin.php | 6 years ago |
README.md
GNU social Translate Notice
Install
- Navigate to your /local/plugins directory (create it if it doesn't exist)
git clone https://github.com/chimo/gs-translate.git TranslateNotice
Configure
- Get an API key from Yandex: https://tech.yandex.com/keys/get/?service=trnsl
- 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: