Commit d9843f75 authored by Clare Lenihan's avatar Clare Lenihan
Browse files

fix for bug #1638

made two alerts for adding blog entries translatable
parent fb8b15e0
......@@ -78,6 +78,8 @@ $string['errorsavingattachments'] = 'An error occurred while saving blog post at
$string['horizontalspace'] = 'Horizontal space';
$string['insert'] = 'Insert';
$string['insertimage'] = 'Insert image';
$string['mustspecifytitle'] = 'You must specify a title for your post';
$string['mustspecifycontent'] = 'You must specify some content for your post';
$string['myblogs'] = 'My Blogs';
$string['name'] = 'Name';
$string['newattachmentsexceedquota'] = 'The total size of the new files that you have uploaded to this post would exceed your quota. You may be able to save the post if you remove some of the attachments you have just added.';
......
......@@ -157,6 +157,8 @@ $getstring = quotestrings(array(
'insert',
'insertimage',
'left',
'mustspecifycontent',
'mustspecifytitle',
'middle',
'name',
'nofilesattachedtothispost',
......@@ -343,7 +345,7 @@ function fileattached_id(id) {
function saveblogpost() {
// Hacky inline validation - see bug #380
if ($('editpost_title').value == '') {
alert('You must specify a title for your post');
alert({$getstring['mustspecifytitle']});
return false;
}
var data = {'title' : $('editpost_title').value,
......@@ -379,7 +381,7 @@ function saveblogpost() {
data.body = $('editpost_description').value;
if (data.body == '') {
alert('You must specify some content for your post');
alert({$getstring['mustspecifycontent']});
return false;
}
data.tags = $('editpost_tags').value;
......
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