mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-80204 lang: Polysemic lang strings to & from
AMOS BEGIN CPY [to,moodle],[todate,moodle] MOV [to,moodle],[torecipient,moodle] CPY [from,moodle],[fromdate,moodle] MOV [from,moodle],[fromsender,moodle] AMOS END
This commit is contained in:
parent
38a3310c92
commit
a840d06652
@ -94,7 +94,7 @@ class edit_license extends moodleform {
|
||||
$mform->addHelpButton('source', 'source', 'tool_licensemanager');
|
||||
$mform->addRule('source', get_string('sourcerequirederror', 'tool_licensemanager'), 'required');
|
||||
|
||||
$mform->addElement('date_selector', 'version', get_string('version', 'tool_licensemanager'), get_string('from'));
|
||||
$mform->addElement('date_selector', 'version', get_string('version', 'tool_licensemanager'));
|
||||
$mform->addHelpButton('version', 'version', 'tool_licensemanager');
|
||||
|
||||
$this->add_action_buttons();
|
||||
|
@ -751,11 +751,11 @@ abstract class moodleform_mod extends moodleform {
|
||||
$mform->addElement('checkbox', 'ratingtime', get_string('ratingtime', 'rating'));
|
||||
$mform->hideIf('ratingtime', $assessedfieldname, 'eq', 0);
|
||||
|
||||
$mform->addElement('date_time_selector', 'assesstimestart', get_string('from'));
|
||||
$mform->addElement('date_time_selector', 'assesstimestart', get_string('fromdate'));
|
||||
$mform->hideIf('assesstimestart', $assessedfieldname, 'eq', 0);
|
||||
$mform->hideIf('assesstimestart', 'ratingtime');
|
||||
|
||||
$mform->addElement('date_time_selector', 'assesstimefinish', get_string('to'));
|
||||
$mform->addElement('date_time_selector', 'assesstimefinish', get_string('todate'));
|
||||
$mform->hideIf('assesstimefinish', $assessedfieldname, 'eq', 0);
|
||||
$mform->hideIf('assesstimefinish', 'ratingtime');
|
||||
|
||||
|
@ -140,3 +140,5 @@ updatingain,core
|
||||
summaryof,core
|
||||
gradeitemadvanced,core_grades
|
||||
gradeitemadvanced_help,core_grades
|
||||
to,core
|
||||
from,core
|
||||
|
@ -942,7 +942,8 @@ $string['formatplain'] = 'Plain text format';
|
||||
$string['formattext'] = 'Moodle auto-format';
|
||||
$string['forumpreferences'] = 'Forum preferences';
|
||||
$string['framesetinfo'] = 'This frameset document contains:';
|
||||
$string['from'] = 'From';
|
||||
$string['fromdate'] = 'From';
|
||||
$string['fromsender'] = 'From';
|
||||
$string['frontpagecategorycombo'] = 'Combo list';
|
||||
$string['frontpagecategorynames'] = 'List of categories';
|
||||
$string['frontpagecourselist'] = 'List of courses';
|
||||
@ -2256,7 +2257,8 @@ $string['time'] = 'Time';
|
||||
$string['timecreated'] = 'Time created';
|
||||
$string['timecreatedcourse'] = 'Course time created';
|
||||
$string['timezone'] = 'Timezone';
|
||||
$string['to'] = 'To';
|
||||
$string['todate'] = 'To';
|
||||
$string['torecipient'] = 'To';
|
||||
$string['tocreatenewaccount'] = 'Skip to create new account';
|
||||
$string['tocontent'] = 'To item "{$a}"';
|
||||
$string['today'] = 'Today';
|
||||
@ -2504,3 +2506,5 @@ $string['editinga'] = 'Editing {$a}';
|
||||
$string['updatinga'] = 'Updating: {$a}';
|
||||
$string['updatingain'] = 'Updating {$a->what} in {$a->in}';
|
||||
$string['summaryof'] = 'Summary of {$a}';
|
||||
$string['from'] = 'From';
|
||||
$string['to'] = 'To';
|
||||
|
@ -196,7 +196,7 @@ if ($messages) {
|
||||
}
|
||||
echo '<table class="generaltable"><tbody>';
|
||||
echo '<tr>
|
||||
<th scope="col" class="cell">' . get_string('from') . '</th>
|
||||
<th scope="col" class="cell">' . get_string('fromsender') . '</th>
|
||||
<th scope="col" class="cell">' . get_string('message', 'message') . '</th>
|
||||
<th scope="col" class="cell">' . get_string('time') . '</th>
|
||||
</tr>';
|
||||
|
@ -45,9 +45,11 @@ class dates_filter_form extends \moodleform {
|
||||
];
|
||||
|
||||
// From date field.
|
||||
$this->_form->addElement('date_selector', 'filterdatefrompopover', get_string('from'), ['optional' => true], $attributes);
|
||||
$this->_form->addElement('date_selector', 'filterdatefrompopover',
|
||||
get_string('fromdate'), ['optional' => true], $attributes);
|
||||
|
||||
// To date field.
|
||||
$this->_form->addElement('date_selector', 'filterdatetopopover', get_string('to'), ['optional' => true], $attributes);
|
||||
$this->_form->addElement('date_selector', 'filterdatetopopover',
|
||||
get_string('todate'), ['optional' => true], $attributes);
|
||||
}
|
||||
}
|
||||
|
@ -46,8 +46,8 @@ class filter_form extends \moodleform {
|
||||
|
||||
$mform->addElement('header', 'filterheader', get_string('filter'));
|
||||
$opts = ['optional' => true];
|
||||
$mform->addElement('date_selector', 'filterstartdate', get_string('from'), $opts);
|
||||
$mform->addElement('date_selector', 'filterenddate', get_string('to'), $opts);
|
||||
$mform->addElement('date_selector', 'filterstartdate', get_string('fromdate'), $opts);
|
||||
$mform->addElement('date_selector', 'filterenddate', get_string('todate'), $opts);
|
||||
|
||||
$mform->setExpanded('filterheader', false);
|
||||
|
||||
|
@ -96,7 +96,7 @@ class number extends base {
|
||||
$mform->hideIf($this->name . '_value1', $this->name . '_operator', 'in',
|
||||
[self::ANY_VALUE, self::IS_NOT_EMPTY, self::IS_EMPTY]);
|
||||
|
||||
$objs['text2'] = $mform->createElement('text', $this->name . '_value2', get_string('to'), ['size' => 3]);
|
||||
$objs['text2'] = $mform->createElement('text', $this->name . '_value2', get_string('torecipient'), ['size' => 3]);
|
||||
$mform->setType($this->name . '_value2', PARAM_INT);
|
||||
$mform->setDefault($this->name . '_value2', 0);
|
||||
$mform->hideIf($this->name . '_value2', $this->name . '_operator', 'noteq', self::RANGE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user