Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
info
mahara-museum
Commits
8b7243af
Commit
8b7243af
authored
Jan 23, 2008
by
Nigel McNie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translate 'Only showing first X of Y results' for the userlist element. Thanks to Heinz.
parent
348d8da2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
htdocs/lang/en.utf8/admin.php
htdocs/lang/en.utf8/admin.php
+2
-0
htdocs/lib/form/elements/userlist.php
htdocs/lib/form/elements/userlist.php
+3
-0
htdocs/theme/default/templates/form/userlist.tpl
htdocs/theme/default/templates/form/userlist.tpl
+2
-2
No files found.
htdocs/lang/en.utf8/admin.php
View file @
8b7243af
...
...
@@ -268,6 +268,8 @@ $string['Institution'] = 'Institution';
// general stuff
$string
[
'notificationssaved'
]
=
'Notification settings saved'
;
$string
[
'onlyshowingfirst'
]
=
'Only showing first'
;
$string
[
'resultsof'
]
=
'results of'
;
$string
[
'installed'
]
=
'Installed'
;
$string
[
'errors'
]
=
'Errors'
;
...
...
htdocs/lib/form/elements/userlist.php
View file @
8b7243af
...
...
@@ -69,6 +69,9 @@ function pieform_element_userlist(Pieform $form, $element) {
$smarty
->
assign
(
'righttitle'
,
$element
[
'righttitle'
]);
}
$smarty
->
assign
(
'onlyshowingfirst'
,
json_encode
(
get_string
(
'onlyshowingfirst'
,
'admin'
)));
$smarty
->
assign
(
'resultsof'
,
json_encode
(
get_string
(
'resultsof'
,
'admin'
)));
return
$smarty
->
fetch
(
'form/userlist.tpl'
);
}
...
...
htdocs/theme/default/templates/form/userlist.tpl
View file @
8b7243af
...
...
@@ -50,9 +50,9 @@
if
(
users
.
count
>
users
.
limit
)
{
replaceChildNodes
(
'
{
{
$name
}
}_messages
'
,
DIV
(
null
,
'
O
nly
showing
first
'
,
{
{
$o
nlyshowingfirst
}
},
'
'
,
SPAN
(
{
'id'
:
'{{$name}}_userlimit'
}
,
users
.
limit
),
'
results
of
'
,
'
'
,
{
{
$
resultsof
}
},
'
'
,
SPAN
(
{
'id'
:
'{{$name}}_usercount'
}
,
users
.
count
-
counter
)
)
);
...
...
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