From 185b96ab45e20ccabd21dff509705d594cfb5294 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 30 Nov 2020 16:39:47 -0500 Subject: [PATCH] XAPI: Add lang vars for spanish + readme file - refs BT#1742 --- plugin/xapi/README.md | 23 +++++++++++++++++ plugin/xapi/lang/english.php | 4 +-- plugin/xapi/lang/spanish.php | 46 ++++++++++++++++++++++++++++++++++ plugin/xapi/src/XApiPlugin.php | 2 +- 4 files changed, 72 insertions(+), 3 deletions(-) create mode 100644 plugin/xapi/README.md create mode 100644 plugin/xapi/lang/spanish.php diff --git a/plugin/xapi/README.md b/plugin/xapi/README.md new file mode 100644 index 0000000000..5ad70a6679 --- /dev/null +++ b/plugin/xapi/README.md @@ -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. diff --git a/plugin/xapi/lang/english.php b/plugin/xapi/lang/english.php index eb8e725c39..8022536010 100644 --- a/plugin/xapi/lang/english.php +++ b/plugin/xapi/lang/english.php @@ -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.' - .'
This is automatically by Chamilo LMS. Don\'t replace it.'; + .'
This is generated automatically by Chamilo LMS. Don\'t replace it.'; $strings['lrs_url'] = 'LRS endpoint'; $strings['lrs_url_help'] = 'Base URL from the LRS'; $strings['lrs_auth_username'] = 'LRS user'; diff --git a/plugin/xapi/lang/spanish.php b/plugin/xapi/lang/spanish.php new file mode 100644 index 0000000000..d75b26cb8c --- /dev/null +++ b/plugin/xapi/lang/spanish.php @@ -0,0 +1,46 @@ +Esto es generado automáticamente por Chamilo LMS. No reemplazarlo.'; +$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ó'; diff --git a/plugin/xapi/src/XApiPlugin.php b/plugin/xapi/src/XApiPlugin.php index 641ad2c8c6..15a660ee74 100644 --- a/plugin/xapi/src/XApiPlugin.php +++ b/plugin/xapi/src/XApiPlugin.php @@ -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 ', ];