Skip to content

Commit

Permalink
MDL-50267 lang: Remove deprecated strings in 2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Jul 26, 2016
1 parent 90a8bdb commit fb77333
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 86 deletions.
27 changes: 0 additions & 27 deletions blocks/quiz_results/lang/en/block_quiz_results.php
Expand Up @@ -24,30 +24,3 @@

$string['pluginname'] = 'Quiz results (disabled)';
$string['quiz_results:addinstance'] = 'Add a new quiz results block';

// Deprecated since Moodle 2.9.
$string['bestgrade'] = 'The highest grade:';
$string['bestgrades'] = 'The {$a} highest grades:';
$string['bestgroupgrade'] = 'The group with the highest average:';
$string['bestgroupgrades'] = 'The {$a} groups with the highest average:';
$string['config_format_absolute'] = 'Absolute numbers';
$string['config_format_fraction'] = 'Fractions';
$string['config_format_percentage'] = 'Percentages';
$string['config_grade_format'] = 'Display grades as:';
$string['config_name_format'] = 'Privacy level for displayed results:';
$string['config_names_anon'] = 'Anonymous results';
$string['config_names_full'] = 'Display full names';
$string['config_names_id'] = 'Display only ID numbers';
$string['config_no_quizzes_in_course'] = 'This course does not contain any quiz activities . You must add at least one before you are able to use this block correctly.';
$string['config_select_quiz'] = 'Which quiz should this block display results from?';
$string['config_show_best'] = 'How many of the highest grades should be shown (0 to disable)?';
$string['config_show_worst'] = 'How many of the lowest grades should be shown (0 to disable)?';
$string['configuredtoshownothing'] = 'This block\'s configuration currently does not allow it to show any results. You may want to either configure it or hide it.';
$string['config_use_groups'] = 'Show groups instead of students (only if the quiz supports groups)?';
$string['error_emptyquizid'] = 'Please configure this block and select which quiz it should display results from.';
$string['error_emptyquizrecord'] = 'There is an error right now with this block: the selected quiz does not seem to exist in the database.';
$string['error_nogroupsexist'] = 'There is an error right now with this block: it is set to display grades in group mode, but the course has no defined groups.';
$string['worstgrade'] = 'The lowest grade:';
$string['worstgrades'] = 'The {$a} lowest grades:';
$string['worstgroupgrade'] = 'The group with the lowest average:';
$string['worstgroupgrades'] = 'The {$a} groups with the lowest average:';
25 changes: 0 additions & 25 deletions blocks/quiz_results/lang/en/depreciated.txt
@@ -1,25 +0,0 @@
bestgrade,block_quiz_results
bestgrades,block_quiz_results
bestgroupgrade,block_quiz_results
bestgroupgrades,block_quiz_results
config_format_absolute,block_quiz_results
config_format_fraction,block_quiz_results
config_format_percentage,block_quiz_results
config_grade_format,block_quiz_results
config_name_format,block_quiz_results
config_names_anon,block_quiz_results
config_names_full,block_quiz_results
config_names_id,block_quiz_results
config_no_quizzes_in_course,block_quiz_results
config_select_quiz,block_quiz_results
config_show_best,block_quiz_results
config_show_worst,block_quiz_results
configuredtoshownothing,block_quiz_results
config_use_groups,block_quiz_results
error_emptyquizid,block_quiz_results
error_emptyquizrecord,block_quiz_results
error_nogroupsexist,block_quiz_results
worstgrade,block_quiz_results
worstgrades,block_quiz_results
worstgroupgrade,block_quiz_results
worstgroupgrades,block_quiz_results
3 changes: 0 additions & 3 deletions lang/en/blog.php
Expand Up @@ -184,6 +184,3 @@
$string['page-blog-edit'] = 'Blog editing pages';
$string['page-blog-index'] = 'Blog listing pages';
$string['page-blog-x'] = 'All blog pages';

// Deprecated since Moodle 2.9.
$string['siteblog'] = 'Site blog: {$a}';
5 changes: 0 additions & 5 deletions lang/en/cache.php
Expand Up @@ -177,8 +177,3 @@
$string['untestable'] = 'Untestable';
$string['userinputsharingkey'] = 'Custom key for sharing';
$string['userinputsharingkey_help'] = 'Enter your own private key here. When you set up other stores on other sites you wish to share data with make sure you set the exact same key there.';

// Deprecated since 2.9.
$string['lockingmeans'] = 'Locking mechanism';
$string['lockmethod'] = 'Lock method';
$string['lockmethod_help'] = 'This is the method used for locking when required of this store.';
5 changes: 0 additions & 5 deletions lang/en/deprecated.txt
@@ -1,8 +1,3 @@
lockingmeans,core_cache
lockmethod,core_cache
lockmethod_help,core_cache
personalrepositories,core_repository
siteblog,core_blog
mybackpack,core_badges
mybadges,core_badges
myfiles,core
Expand Down
3 changes: 0 additions & 3 deletions lang/en/repository.php
Expand Up @@ -242,6 +242,3 @@
$string['wrongcontext'] = 'You cannot access to this context';
$string['xhtmlerror'] = 'You are probably using an XHTML strict header. Certain YUI components don\'t work in this mode; please turn it off.';
$string['ziped'] = 'Compress folder successfully';

// Deprecated since Moodle 2.9.
$string['personalrepositories'] = 'Available repository instances';
8 changes: 4 additions & 4 deletions lib/tests/string_manager_standard_test.php
Expand Up @@ -75,11 +75,11 @@ public function test_deprecated_strings() {
$this->assertFalse($stringman->string_deprecated('hidden', 'grades'));

// Check deprecated string.
$this->assertTrue($stringman->string_deprecated('timelimitmin', 'mod_quiz'));
$this->assertTrue($stringman->string_exists('timelimitmin', 'mod_quiz'));
$this->assertTrue($stringman->string_deprecated('modchooserenable', 'core'));
$this->assertTrue($stringman->string_exists('modchooserenable', 'core'));
$this->assertDebuggingNotCalled();
$this->assertEquals('Time limit (minutes)', get_string('timelimitmin', 'mod_quiz'));
$this->assertDebuggingCalled('String [timelimitmin,mod_quiz] is deprecated. '.
$this->assertEquals('Activity chooser on', get_string('modchooserenable', 'core'));
$this->assertDebuggingCalled('String [modchooserenable,core] is deprecated. '.
'Either you should no longer be using that string, or the string has been incorrectly deprecated, in which case you should report this as a bug. '.
'Please refer to https://docs.moodle.org/dev/String_deprecation');
}
Expand Down
2 changes: 0 additions & 2 deletions mod/lesson/lang/en/deprecated.txt
@@ -1,5 +1,3 @@
essayemailmessage,mod_lesson
lessonattempted,mod_lesson
clicktopost,mod_lesson
configmaxhighscores,mod_lesson
configactionaftercorrectanswer,mod_lesson
Expand Down
5 changes: 0 additions & 5 deletions mod/lesson/lang/en/lesson.php
Expand Up @@ -510,11 +510,6 @@
$string['yourcurrentgradeisoutof'] = 'Your current grade is {$a->grade} out of {$a->total}';
$string['youshouldview'] = 'You should answer at least: {$a}';

// Deprecated since Moodle 2.9.

$string['essayemailmessage'] = '<p>Essay prompt:<blockquote>{$a->question}</blockquote></p><p>Your response:<blockquote><em>{$a->response}</em></blockquote></p><p>{$a->teacher}\'s comments:<blockquote><em>{$a->comment}</em></blockquote></p><p>You have received {$a->earned} out of {$a->outof} for this essay question.</p><p>Your grade for the lesson has been changed to {$a->newgrade}&#37;.</p>';
$string['lessonattempted'] = 'Lesson attempted';

// Deprecated since Moodle 3.0.
$string['clicktopost'] = 'Click here to post your grade on the High Scores list.';
$string['configmaxhighscores'] = 'Number of high scores displayed';
Expand Down
2 changes: 0 additions & 2 deletions mod/quiz/lang/en/deprecated.txt
@@ -1,2 +0,0 @@
timelimitmin,mod_quiz
timelimitsec,mod_quiz
5 changes: 0 additions & 5 deletions mod/quiz/lang/en/quiz.php
Expand Up @@ -936,8 +936,3 @@
$string['xhtml'] = 'XHTML';
$string['youneedtoenrol'] = 'You need to enrol in this course before you can attempt this quiz';
$string['yourfinalgradeis'] = 'Your final grade for this quiz is {$a}.';

// Deprecated since Moodle 2.9.

$string['timelimitmin'] = 'Time limit (minutes)';
$string['timelimitsec'] = 'Time limit (seconds)';

0 comments on commit fb77333

Please sign in to comment.