XAPI: Add lang vars for spanish + readme file - refs BT#1742

pull/3687/head
Angel Fernando Quiroz Campos 5 years ago
parent d388cfa439
commit 185b96ab45
  1. 23
      plugin/xapi/README.md
  2. 4
      plugin/xapi/lang/english.php
  3. 46
      plugin/xapi/lang/spanish.php
  4. 2
      plugin/xapi/src/XApiPlugin.php

@ -0,0 +1,23 @@
# Experience API (xAPI)
Allow to incorporate an external Learning Record Store and use activities with the xAPI.
> You can import and use TinCan packages.
> Import Cmi5 packages is beta state and development.
**Configuration**
Set LRS endpoint, username and password to itegrate an external LRS in Chamilo LMS.
The fields "Learning path item viewed", "Learning path ended", "Quiz question answered" and "Quiz ended" allow enabling
hooks when the user views an item in learning path, completes a learning path, answers a quiz question and ends the exam.
The statements generated with these hooks are logged in Chamilo database, waiting to be sent to the LRS by a cron job.
The cron job to configure in your server is located in `/CHAMILO_PATH/plugin/xapi/cron/send_statements.php`.
**Use the Statement API from Chamilo LMS**
You can use the xAPI statement API to save some statements from another service.
You need create credentials (username/password) to do this. First you need set the "menu_administrator" plugin region
to xAPI plugin. Then you can create the credentials with the new page "Experience API (xAPI)"
inside de Plugins block in the Administration panel.

@ -3,11 +3,11 @@
/* For licensing terms, see /license.txt */
$strings['plugin_title'] = 'Experience API (xAPI)';
$strings['plugin_comment'] = 'Allow to incorporate an Learning Record Store and clients to xAPI';
$strings['plugin_comment'] = 'Allow to incorporate an external Learning Record Store and use activities with the xAPI specification.';
$strings[XApiPlugin::SETTING_UUID_NAMESPACE] = 'UUID Namespace';
$strings[XApiPlugin::SETTING_UUID_NAMESPACE.'_help'] = 'Namespace for universally unique identifiers used as statement IDs.'
.'<br>This is automatically by Chamilo LMS. <strong>Don\'t replace it.</strong>';
.'<br>This is generated automatically by Chamilo LMS. <strong>Don\'t replace it.</strong>';
$strings['lrs_url'] = 'LRS endpoint';
$strings['lrs_url_help'] = 'Base URL from the LRS';
$strings['lrs_auth_username'] = 'LRS user';

@ -0,0 +1,46 @@
<?php
/* For licensing terms, see /license.txt */
$strings['plugin_title'] = 'Experience API (xAPI)';
$strings['plugin_comment'] = 'Permite incorporar un Learning Record Store externo y usar actividades con la especificación xAPI.';
$strings[XApiPlugin::SETTING_UUID_NAMESPACE] = 'UUID Namespace';
$strings[XApiPlugin::SETTING_UUID_NAMESPACE.'_help'] = 'Namespace para los identificadores unicos universales (UUID) usados como IDs de statements.'
.'<br>Esto es generado automáticamente por Chamilo LMS. <strong>No reemplazarlo.</strong>';
$strings['lrs_url'] = 'LRS endpoint';
$strings['lrs_url_help'] = 'Base de la URL del LRS';
$strings['lrs_auth_username'] = 'Usuario del LRS';
$strings['lrs_auth_username_help'] = 'Usuario para autenticación con HTTP básica';
$strings['lrs_auth_password'] = 'Contraseña del LRS';
$strings['lrs_auth_password_help'] = 'Contraseña para autenticación con HTTP básica';
$strings['lrs_lp_item_viewed_active'] = 'Visualización de contenido de lección';
$strings['lrs_lp_end_active'] = 'Finalización de lección';
$strings['lrs_quiz_active'] = 'Finalización de ejercicio';
$strings['lrs_quiz_question_active'] = 'Resolución de pregunta en ejercicio';
$strings['NoActivities'] = 'No hay actividades aún';
$strings['ActivityTitle'] = 'Actividad';
$strings['AddActivity'] = 'Agregar actividad';
$strings['TinCanPackage'] = 'Paquete TinCan (zip)';
$strings['Cmi5Package'] = 'Paquete Cmi5(zip)';
$strings['OnlyZipAllowed'] = 'Sólo archivos ZIP están permitidos (.zip).';
$strings['ActivityImported'] = 'Actividad importada.';
$strings['EditActivity'] = 'Editar actividad';
$strings['ActivityUpdated'] = 'Actividad actualizada';
$strings['ActivityLaunchUrl'] = 'URL de inicio';
$strings['ActivityId'] = 'ID de actividad';
$strings['ActivityType'] = 'Tipo de actividad';
$strings['ActivityDeleted'] = 'Actividad eliminada';
$strings['ActivityLaunch'] = 'Iniciar';
$strings['ActivityFirstLaunch'] = 'Primer inicio';
$strings['ActivityLastLaunch'] = 'Últimmo inicio';
$strings['LaunchNewAttempt'] = 'Iniciar nuevo intento';
$strings['LrsConfiguration'] = 'Configuración de LRS';
$strings['Verb'] = 'Verbo';
$strings['Actor'] = 'Actor';
$strings['ToolTinCan'] = 'Actividades';
$strings['Terminated'] = 'Terminó';
$strings['Completed'] = 'Completó';
$strings['Answered'] = 'Respondió';
$strings['Viewed'] = 'Visualizó';

@ -62,7 +62,7 @@ class XApiPlugin extends Plugin implements HookPluginInterface
*/
protected function __construct()
{
$version = '0.1';
$version = '0.1 (beta)';
$author = [
'Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>',
];

Loading…
Cancel
Save