Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
6a06204a
Commit
6a06204a
authored
Mar 26, 2010
by
Richard Mansfield
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change some language strings
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
94d5ed0b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
htdocs/artefact/comment/lang/en.utf8/artefact.comment.php
htdocs/artefact/comment/lang/en.utf8/artefact.comment.php
+2
-2
htdocs/artefact/comment/lib.php
htdocs/artefact/comment/lib.php
+2
-2
htdocs/theme/raw/templates/view/artefact.tpl
htdocs/theme/raw/templates/view/artefact.tpl
+1
-1
htdocs/theme/raw/templates/view/viewmenu.tpl
htdocs/theme/raw/templates/view/viewmenu.tpl
+1
-1
No files found.
htdocs/artefact/comment/lang/en.utf8/artefact.comment.php
View file @
6a06204a
...
...
@@ -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'
;
...
...
htdocs/artefact/comment/lib.php
View file @
6a06204a
...
...
@@ -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
(
'
placefeedback
notallowed'
,
'artefact.comment'
));
$form
->
set_error
(
'message'
,
get_string
(
'
addcomment
notallowed'
,
'artefact.comment'
));
}
}
}
...
...
htdocs/theme/raw/templates/view/artefact.tpl
View file @
6a06204a
...
...
@@ -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>
...
...
htdocs/theme/raw/templates/view/viewmenu.tpl
View file @
6a06204a
{
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>
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment