Moodle

The message "Attachments of" is not supported Language pack (get_string())

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor 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";

Activity

Hide
Tatsuya Shirai added a comment -

The message appears in the top of Attachments Tab page.

Show
Tatsuya Shirai added a comment - The message appears in the top of Attachments Tab page.
Hide
Koen Roggemans added a comment -

This problem will solve itself in Moodle 2.0

Show
Koen Roggemans added a comment - This problem will solve itself in Moodle 2.0

People

Vote (3)
Watch (1)

Dates

  • Created:
    Updated: