Commit 6a06204a authored by Richard Mansfield's avatar Richard Mansfield

Change some language strings

Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 94d5ed0b
......@@ -32,6 +32,8 @@ $string['Comments'] = 'Comments';
$string['comment'] = 'comment';
$string['comments'] = 'comments';
$string['addcomment'] = 'Add comment';
$string['addcommentnotallowed'] = 'You are not allowed to add comments on this View';
$string['allowcomments'] = 'Allow comments';
$string['attachfile'] = "Attach file";
$string['Attachments'] = "Attachments";
......@@ -55,8 +57,6 @@ $string['feedbackonviewbyuser'] = 'Feedback on %s by %s';
$string['feedbacksubmitted'] = 'Feedback submitted';
$string['makeprivate'] = 'Change to Private';
$string['makepublic'] = 'Make public';
$string['placefeedback'] = 'Place feedback';
$string['placefeedbacknotallowed'] = 'You are not allowed to place feedback on this View';
$string['thisfeedbackispublic'] = 'This feedback is public';
$string['thisfeedbackisprivate'] = 'This feedback is private';
......
......@@ -395,7 +395,7 @@ class ArtefactTypeComment extends ArtefactType {
}
$form['elements']['submit'] = array(
'type' => 'submitcancel',
'value' => array(get_string('placefeedback', 'artefact.comment'), get_string('cancel')),
'value' => array(get_string('addcomment', 'artefact.comment'), get_string('cancel')),
);
return $form;
}
......@@ -478,7 +478,7 @@ function add_feedback_form_validate(Pieform $form, $values) {
if (!$USER->is_logged_in()) {
$token = get_cookie('viewaccess:'.$view->get('id'));
if (!$token || get_view_from_token($token) != $view->get('id')) {
$form->set_error('message', get_string('placefeedbacknotallowed', 'artefact.comment'));
$form->set_error('message', get_string('addcommentnotallowed', 'artefact.comment'));
}
}
}
......
......@@ -17,7 +17,7 @@
<div class="viewfooter cb">
<table id="feedbacktable" class="fullwidth table">
<thead><tr><th>{str tag="feedback" section="view"}</th></tr></thead>
<thead><tr><th>{str tag="Comments" section="artefact.comment"}</th></tr></thead>
<tbody>
{$feedback->tablerows}
</tbody>
......
{if $enablecomments}
<a id="add_feedback_link" href="">{str tag=placefeedback section=artefact.comment}</a> |
<a id="add_feedback_link" href="">{str tag=addcomment section=artefact.comment}</a> |
{/if}
{if $LOGGEDIN}
<a id="objection_link" href="">{str tag=reportobjectionablematerial section=view}</a> |
......
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