Browse files

Interationalised strings.

  • Loading branch information...
1 parent 7482fd2 commit 25d055a73c8d13b946d1e87284d4433d4891fe7b John committed Dec 28, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 edit_form.php
  2. +2 −2 mod_form.php
  3. +2 −2 settings.php
View
2 edit_form.php
@@ -41,7 +41,7 @@ function definition() {
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_RAW);
$mform->setDefault('id', $context->instanceid);
- $this->add_action_buttons(true, 'Save');
+ $this->add_action_buttons(true);
}
}
class mod_slideshow_comment_form extends moodleform {
View
4 mod_form.php
@@ -27,7 +27,7 @@ function definition() {
}
$mform->addRule('name', null, 'required', null, 'client');
$this->add_intro_editor(true);
- $ynopts = array(0=>'No',1=>'Yes');
+ $ynopts = array(0=>get_string('no'),1=>get_string('yes'));
$mform->addElement('filemanager', 'location', get_string('maindirectory', 'slideshow'), null,
array('subdirs' => 1, 'accepted_types' => array('*.jpg','*.gif','*.png','*.zip') ));
$options = array (0=>get_string("display_none", "slideshow"),
@@ -80,4 +80,4 @@ function data_preprocessing(&$default_values) {
}
}
-?>
+?>
View
4 settings.php
@@ -5,5 +5,5 @@
'Maxheight ?',get_string("configmaxheight", "slideshow"), '480'));
$settings->add(new admin_setting_configselect('slideshow_securepix',
'Secure pix ?',get_string("securepix", "slideshow"),'0',
- array('0' => 'No', '1' => 'Yes')));
-?>
+ array('0' => get_string('no'), '1' => get_string('yes'))));
+?>

0 comments on commit 25d055a

Please sign in to comment.