|
@ -232,8 +232,13 @@ class mod_game_mod_form extends moodleform_mod { |
|
|
$a = array(); |
|
|
$a = array(); |
|
|
$a = get_string_manager()->get_list_of_translations(); |
|
|
$a = get_string_manager()->get_list_of_translations(); |
|
|
$a[ ''] = '----------'; |
|
|
$a[ ''] = '----------'; |
|
|
|
|
|
$a[ 'user'] = get_string('language_user_defined', 'game'); |
|
|
ksort( $a); |
|
|
ksort( $a); |
|
|
$mform->addElement('select', 'language', get_string('hangman_language','game'), $a); |
|
|
$mform->addElement('select', 'language', get_string('hangman_language','game'), $a); |
|
|
|
|
|
|
|
|
|
|
|
$mform->addElement('text', 'userlanguage', get_string('language_user_defined','game')); |
|
|
|
|
|
$mform->setType('userlanguage', PARAM_TEXT); |
|
|
|
|
|
$mform->disabledIf('userlanguage', 'language', 'neq', 'user'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------- |
|
|
//--------------------------------------------------------------------------- |
|
|