A GNUSocial plugin to translate status on the fly with Yandex API
kim 1613329751 Merge branch 'master' of diogo/YandexTranslate into master | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
README.md | %!s(int64=5) %!d(string=hai) anos | |
YandexTranslatePlugin.php | %!s(int64=5) %!d(string=hai) anos | |
jquery.min.js | %!s(int64=5) %!d(string=hai) anos |
This little plugin create a translate button at the end of each status on your timeline working with the Yandex API.
Add to the config.php file this lines
$config['site']['yandex']['api_key'] = ''; //Your Yandex API key
$config['site']['yandex']['lang'] = ''; //the shortcode of the desired language, ex. es for spanish
addPlugin('YandexTranslate'); // Activate Plugin