Commit d09b992d authored by Nigel McNie's avatar Nigel McNie
Browse files

Translate the 'from/to' strings in the admin section when showing an upgrade. Fixes #1740

parent 380b108b
......@@ -53,6 +53,7 @@ $string['upgradesuccesstoversion'] = 'Successfully upgraded to version ';
$string['upgradefailure'] = 'Failed to upgrade!';
$string['noupgrades'] = 'Nothing to upgrade! You are fully up to date!';
$string['youcanupgrade'] = 'You can upgrade Mahara from %s (%s) to %s (%s)!';
$string['Plugin'] = 'Plugin';
// Admin navigation menu
$string['adminhome'] = 'Admin home';
......
......@@ -49,6 +49,8 @@ $string['no'] = 'No';
$string['yes'] = 'Yes';
$string['none'] = 'None';
$string['at'] = 'at';
$string['From'] = 'From';
$string['To'] = 'To';
$string['next'] = 'Next';
$string['nextpage'] = 'Next page';
......
......@@ -119,9 +119,6 @@ $string['blocktypecategory.multimedia'] = 'Multimedia';
$string['notitle'] = 'No title';
$string['clickformoreinformation'] = 'Click for more information and to place feedback';
$string['From'] = 'From';
$string['To'] = 'To';
$string['noartefactstochoosefrom'] = 'Sorry, no artefacts to choose from';
?>
......@@ -11,9 +11,9 @@
<h4>{str tag=thefollowingupgradesareready section=admin}</h4>
<table cellspacing="0">
<tr>
<th>Plugin</th>
<th>From</th>
<th>To</th>
<th>{str tag=Plugin section=admin}</th>
<th>{str tag=From}</th>
<th>{str tag=To}</th>
</tr>
{foreach from=$upgrades key=key item=upgrade}
{if $key != 'disablelogin'}
......
......@@ -35,7 +35,7 @@ define('TITLE', get_string('editaccess', 'view'));
require_once('pieforms/pieform.php');
require_once('pieforms/pieform/elements/calendar.php');
require_once(get_config('docroot') . 'lib/view.php');
$smarty = smarty(array('tablerenderer'), pieform_element_calendar_get_headdata(pieform_element_calendar_configure(array())), array('view' => array('From', 'To')));
$smarty = smarty(array('tablerenderer'), pieform_element_calendar_get_headdata(pieform_element_calendar_configure(array())), array('mahara' => array('From', 'To')));
$view = new View(param_integer('id'));
$new = param_boolean('new');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment