MDL-19950 - adding question format (qformat_) language plugin type
This commit is contained in:
@@ -5233,6 +5233,7 @@ function places_to_search_for_lang_strings() {
|
||||
'gradereport_' => array('grade/report'),
|
||||
'gradeimport_' => array('grade/import'),
|
||||
'gradeexport_' => array('grade/export'),
|
||||
'qformat_' => array('question/format'),
|
||||
'profilefield_' => array('user/profile/field'),
|
||||
'' => array('mod')
|
||||
);
|
||||
|
||||
+4
-1
@@ -2080,7 +2080,10 @@ function get_import_export_formats( $type ) {
|
||||
if ($provided) {
|
||||
$formatname = get_string($fileformat, 'quiz');
|
||||
if ($formatname == "[[$fileformat]]") {
|
||||
$formatname = $fileformat; // Just use the raw folder name
|
||||
$formatname = get_string($fileformat, 'qformat_'.$fileformat);
|
||||
if ($formatname == "[[$fileformat]]") {
|
||||
$formatname = $fileformat; // Just use the raw folder name
|
||||
}
|
||||
}
|
||||
$fileformatnames[$fileformat] = $formatname;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user