Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.9.4
-
Fix Version/s: None
-
Component/s: Language, Wiki (1.x)
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
In non-latin lang. environment such as japanese the message "Attachments of [foo]" does not translate to each language.
So, the message is not supported get_string() function.
In function ewiki_action_attachments() on mod/wiki/ewiki/plugins/moodle/downloads.php,
$o .= ewiki_page_filedownload(ucwords(EWIKI_ACTION_ATTACHMENTS) . " " . ewiki_t("of") . " $id", $data, "view", $id);
Then, I suggest to change the statement as follows;
$o .= ewiki_page_filedownload(get_string('attachmentsof', 'wiki', $id), $data, "view", $id);
and add $string['attachmentsof'] to lang/en_utf8/wiki.php,
$string['attachmentsof'] = "Attachments of $a";
The message appears in the top of Attachments Tab page.