diff --git a/plugin/tour/index.php b/plugin/tour/index.php
index adc1ee0563..03999b2276 100644
--- a/plugin/tour/index.php
+++ b/plugin/tour/index.php
@@ -12,6 +12,8 @@ require_once dirname(__FILE__) . '/config.php';
$pluginPath = api_get_path(PLUGIN_PATH) . 'tour/';
$pluginWebPath = api_get_path(WEB_PLUGIN_PATH) . 'tour/';
+$tourPlugin = Tour::create();
+
$jsonContent = file_get_contents($pluginPath . 'config/tour.json');
$json = json_decode($jsonContent, true);
@@ -32,6 +34,9 @@ $_template['web_path'] = array(
);
$_template['text'] = array(
- 'start_button' => get_lang('StartTheTour'),
- 'start_tour' => get_lang('HelloChamiloLMS'),
+ 'start_button' => $tourPlugin->get_lang('StartButtonText'),
+ 'next' => $tourPlugin->get_lang('Next'),
+ 'prev' => $tourPlugin->get_lang('Prev'),
+ 'skip' => $tourPlugin->get_lang('Skip'),
+ 'done' => $tourPlugin->get_lang('Done')
);
diff --git a/plugin/tour/lang/english.php b/plugin/tour/lang/english.php
index 9049fc8f74..2edeab1842 100644
--- a/plugin/tour/lang/english.php
+++ b/plugin/tour/lang/english.php
@@ -10,9 +10,17 @@
$strings['plugin_title'] = 'Tour';
$strings['plugin_comment'] = 'This plugin shows people how to use your Chamilo LMS';
+/* Strings for settings */
$strings['show_tour'] = 'Show the tour';
$showTourHelpLine01 = 'The necessary configuration to show the help blocks, in JSON format, is located in the %splugin/tour/config/tour.json%s file.';
-$showTourHelpLine02 = '%sSee README file for more information.';
+$showTourHelpLine02 = 'See README file for more information.';
-$strings['show_tour_help'] = sprintf("$showTourHelpLine01 a $showTourHelpLine02", "", "", "
");
\ No newline at end of file
+$strings['show_tour_help'] = sprintf("$showTourHelpLine01 %s $showTourHelpLine02", "", "", "
");
+
+/* Strings for plugin UI */
+$strings['Skip'] = 'Skip';
+$strings['Next'] = 'Next';
+$strings['Prev'] = 'Prev';
+$strings['Done'] = 'Done';
+$strings['StartButtonText'] = 'Start the tour';
\ No newline at end of file
diff --git a/plugin/tour/lang/spanish.php b/plugin/tour/lang/spanish.php
index 4d9a97ed9d..c051c3c7f2 100644
--- a/plugin/tour/lang/spanish.php
+++ b/plugin/tour/lang/spanish.php
@@ -3,16 +3,24 @@
/* For licensing terms, see /license.txt */
/**
- * Strings to english L10n
+ * Strings to spanish L10n
* @author Angel Fernando Quiroz Campos
* @package chamilo.plugin.tour
*/
$strings['plugin_title'] = 'Tour';
-$strings['plugin_comment'] = 'Este plugin muestra a la gente cómo usar tu Chamilo LMS';
+$strings['plugin_comment'] = 'Este plugin muestra a la gente cómo usar tu LMS';
-$strings['show_tour'] = 'Mostrar el recorrido';
+/* Strings for settings */
+$strings['show_tour'] = 'Mostrar el tour';
-$showTourHelpLine01 = 'La configuración necesaria para mostrar los bloques de ayuda, en formato JSON, está localizada en el archivo %splugin/tour/config/tour.json%s.';
-$showTourHelpLine02 = '%sMira el archivo README para más información.';
+$showTourHelpLine01 = 'La configuración necesaria para mostrar los bloques de ayuda, en formato JSON, están localizadas en el archivo %splugin/tour/config/tour.json%s.';
+$showTourHelpLine02 = 'Ver el archivo README para más información.';
-$strings['show_tour_help'] = sprintf("$showTourHelpLine01 $showTourHelpLine02", "", "", "
");
\ No newline at end of file
+$strings['show_tour_help'] = sprintf("$showTourHelpLine01 %s $showTourHelpLine02", "", "", "
");
+
+/* Strings for plugin UI */
+$strings['Skip'] = 'Saltar';
+$strings['Next'] = 'Siguiente';
+$strings['Prev'] = 'Anterior';
+$strings['Done'] = 'Hecho';
+$strings['StartButtonText'] = 'Empezar el recorrido';
\ No newline at end of file
diff --git a/plugin/tour/views/script.tpl b/plugin/tour/views/script.tpl
index e5443cbedc..7ac2bac429 100644
--- a/plugin/tour/views/script.tpl
+++ b/plugin/tour/views/script.tpl
@@ -26,7 +26,11 @@
'page_class': pageClassName
}, function(response) {
intro.setOptions({
- steps: response
+ steps: response,
+ nextLabel: '{{ tour.text.next }}',
+ prevLabel: '{{ tour.text.prev }}',
+ skipLabel: '{{ tour.text.skip }}',
+ doneLabel: '{{ tour.text.done }}'
});
});
}