MDL-19950 - adding question format (qformat_) language plugin type

This commit is contained in:
arborrow
2009-06-20 23:33:38 +00:00
parent e9465902bb
commit 373ee66017
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -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
View File
@@ -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;
}