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

Fix bug #750, 'uploading file' is not translatable. Thanks to Heinz

parent ea73e510
......@@ -104,6 +104,7 @@ $string['profileiconsnoneselected'] = 'No profile icons were selected to be dele
$string['onlyfiveprofileicons'] = 'You may upload only five profile icons';
$string['profileiconuploadexceedsquota'] = 'Uploading this profile icon would exceed your disk quota. Try deleting some files you have uploaded';
$string['profileiconimagetoobig'] = 'The image you uploaded was too big (%sx%s pixels). It must not be larger than 300x300 pixels';
$string['uploadingfile'] = 'uploading file...';
$string['uploadprofileicon'] = 'Upload Profile Icon';
$string['profileiconsiconsizenotice'] = 'You may upload up to <strong>five</strong> profile icons here, and choose one to be displayed as your default icon at any one time. Your icons must be between 100x100 and 300x300 pixels';
......@@ -90,6 +90,7 @@ $uploadform = pieform(array(
$strnoimagesfound = json_encode(get_string('noimagesfound', 'artefact.internal'));
$struploadingfile = json_encode(get_string('uploadingfile', 'artefact.internal'));
$wwwroot = get_config('wwwroot');
$smarty->assign('INLINEJAVASCRIPT', <<<EOF
var table = new TableRenderer(
......@@ -123,7 +124,7 @@ table.emptycontent = {$strnoimagesfound};
table.paginate = false;
var uploadingMessage = TR(null,
TD(null, 'uploading file...')
TD(null, {$struploadingfile})
function preSubmit(form, data) {
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