Skip to content

Commit

Permalink
Improve whispeak plugin docs - refs BT#14921
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Oct 8, 2018
1 parent 8e1fe57 commit 15d9bbd
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
7 changes: 7 additions & 0 deletions plugin/whispeakauth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Speech authentication with Whispeak

Instructions:
1. Install plugin in Chamilo.
2. Set the plugin configuration with the token and API url. And enable the plugin.
3. Set the `login_bottom` region to the plugin.
4. Add `$_configuration['whispeak_auth_enabled'] = true;` to `configuration.php` file.
4 changes: 2 additions & 2 deletions plugin/whispeakauth/WhispeakAuthPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class WhispeakAuthPlugin extends Plugin
const SETTING_ENABLE = 'enable';
const SETTING_API_URL = 'api_url';
const SETTING_TOKEN = 'token';
const SETTING_INSTRUCTION = 'instruction';

const EXTRAFIELD_AUTH_UID = 'whispeak_auth_uid';

Expand All @@ -28,8 +29,7 @@ protected function __construct()
self::SETTING_ENABLE => 'boolean',
self::SETTING_API_URL => 'text',
self::SETTING_TOKEN => 'text',
'<p>Add <code>$_configuration[\'whispeak_auth_enabled\'] = true;</code> '.
'in <code>configuration.php</code> file</p>' => 'html',
self::SETTING_INSTRUCTION => 'html',
]
);
}
Expand Down
10 changes: 9 additions & 1 deletion plugin/whispeakauth/lang/english.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
/* For licensing terms, see /license.txt */

$strings['plugin_title'] = 'Speech authentication with Whispeak';
$strings['plugin_comment'] = 'Allow speech authentication in Chamilo.';

$strings['enable'] = 'Enable';
$strings['api_url'] = 'API URL';
$strings['api_url_help'] = 'http://api.whispeak.io:8080/v1/';
$strings['token'] = 'API key';
$strings['instruction'] = '<p>Add <code>$_configuration[\'whispeak_auth_enabled\'] = true;</code>'.
'in the <code>configuration.php</code> file</p>';

$strings['EnrollmentSampleText'] = 'The famous Mona Lisa painting was painted by Leonardo Da Vinci.';

Expand All @@ -11,5 +19,5 @@
$strings['EnrollmentFailed'] = 'Enrollment failed.';
$strings['EnrollmentSuccess'] = 'Enrollment success.';
$strings['AuthentifyFailed'] = 'Login failed.';
$strings['AuthentifySuccess'] = '¡Authentication success!';
$strings['AuthentifySuccess'] = 'Authentication success!';
$strings['TryAgain'] = 'Try again';
15 changes: 15 additions & 0 deletions plugin/whispeakauth/lang/spanish.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,22 @@
/* For licensing terms, see /license.txt */

$strings['plugin_title'] = 'Authenticación de voz con Whispeak';
$strings['plugin_comment'] = 'Permitir autenticación de voz en Chamilo.';

$strings['enable'] = 'Habilitar';
$strings['api_url'] = 'URL del API';
$strings['api_url_help'] = 'http://api.whispeak.io:8080/v1/';
$strings['token'] = 'Llave del API';
$strings['instruction'] = '<p>Agrega <code>$_configuration[\'whispeak_auth_enabled\'] = true;</code>'.
'al archivo <code>configuration.php</code></p>';

$strings['EnrollmentSampleText'] = 'El famoso cuadro de Mona Lisa fue pintado por Leonardo Da Vinci.';

$strings['RepeatThisPhrase'] = 'Repita esta frase tres veces después de permitir la grabación de audio:';

$strings['SpeechAuthentication'] = 'Atenticación con voz';
$strings['EnrollmentFailed'] = 'Inscripción fallida.';
$strings['EnrollmentSuccess'] = 'Inscripción correcta.';
$strings['AuthentifyFailed'] = 'Inicio de sesión fallido.';
$strings['AuthentifySuccess'] = '¡Autenticación correcta!';
$strings['TryAgain'] = 'Intente de nuevo.';

0 comments on commit 15d9bbd

Please sign in to comment.