echo $OUTPUT->heading("$usercount ".get_string('users'));
}
- $alphabet = explode(',', get_string('alphabet'));
+ $alphabet = explode(',', get_string('alphabet', 'langconfig'));
$strall = get_string('all');
$baseurl = new moodle_url('user.php', array('sort' => $sort, 'dir' => $dir, 'perpage' => $perpage));
$string['allownot'] = 'Do not allow';
$string['allparticipants'] = 'All participants';
$string['allteachers'] = 'All teachers';
-$string['alphabet'] = 'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z';
$string['alphanumerical'] = 'Can only contain alphanumeric characters, hyphen (-) or period (.)';
$string['alreadyconfirmed'] = 'Registration has already been confirmed';
$string['always'] = 'Always';
* @return string The String !
*/
public function get_string($identifier, $component='', $a=NULL) {
- if (empty($component)) {
- $component = 'moodle';
- }
// this will be replaced by merging of lang and langconfig
static $langconfigstrs = array('alphabet' => 1, 'backupnameformat' => 1, 'decsep' => 1,
'firstdayofweek' => 1, 'listsep' => 1, 'locale' => 1, 'localewin' => 1,
'thischarset' => 1, 'thisdirection' => 1, 'thislanguage' => 1,
'strftimedatetimeshort' => 1, 'thousandssep' => 1);
- if ((empty($component) or $component === 'moodle') and isset($langconfigstrs[$identifier])) {
+ if ((empty($component)) and isset($langconfigstrs[$identifier])) {
$component = 'core_langconfig';
}
+ if (empty($component)) {
+ $component = 'moodle';
+ }
+
$lang = current_language();
$string = $this->load_component_strings($component, $lang);
&& isset($this->columns['fullname'])) {
$strall = get_string('all');
- $alpha = explode(',', get_string('alphabet'));
+ $alpha = explode(',', get_string('alphabet', 'langconfig'));
// Bar of first initials
$firstinitial = $table->get_initial_first();
$lastinitial = $table->get_initial_last();
$strall = get_string('all');
- $alpha = explode(',', get_string('alphabet'));
+ $alpha = explode(',', get_string('alphabet', 'langconfig'));
// Bar of first initials