Moodle

String missing for translation

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: None
  • Component/s: MNet
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

remotemoodleuser and editremoteprofil are missing strings for translation.

Activity

Hide
Peter Sereinigg added a comment -

screenshot

Show
Peter Sereinigg added a comment - screenshot
Hide
Peter Bulmer added a comment -

Looks like something somebody forgot to push upstream

On our flagship mnet site the english string for 'editremoteprofile' is "Edit remote profile" (no surprises there).

What is showing up as [[remotemoodleuser]] is actually the result of:
get_string('remote'.$remotehost->application.'user') not finding a result when the remote host if a moodle.

So, the knee-jerk fix that I could apply would be to populate the language strings for "remotemoodleuser" and "remotemaharauser", the more considered approach might modify the get_string call to be more like:
get_string('remoteappuser', '', $remotehost->application);
with a string definition along the lines of:
$string['remoteappuser'] = 'Remote '.mb_convert_case($a, MB_CASE_TITLE).' User';

Show
Peter Bulmer added a comment - Looks like something somebody forgot to push upstream On our flagship mnet site the english string for 'editremoteprofile' is "Edit remote profile" (no surprises there). What is showing up as [[remotemoodleuser]] is actually the result of: get_string('remote'.$remotehost->application.'user') not finding a result when the remote host if a moodle. So, the knee-jerk fix that I could apply would be to populate the language strings for "remotemoodleuser" and "remotemaharauser", the more considered approach might modify the get_string call to be more like: get_string('remoteappuser', '', $remotehost->application); with a string definition along the lines of: $string['remoteappuser'] = 'Remote '.mb_convert_case($a, MB_CASE_TITLE).' User';
Hide
Peter Bulmer added a comment -

Hi Ralf, Peter.

Commit made to MOODLE_19_STABLE and cvshead.

Please have a look & try out.

Pete

Show
Peter Bulmer added a comment - Hi Ralf, Peter. Commit made to MOODLE_19_STABLE and cvshead. Please have a look & try out. Pete

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: