Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
aa6a2eb7
Commit
aa6a2eb7
authored
Apr 08, 2010
by
Evan Goldenberg
Browse files
use language strings for export view selection controls (bug #547407)
Signed-off-by:
Evan Goldenberg
<
evang@catalyst.net.nz
>
parent
7ff37f19
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/js/export.js
View file @
aa6a2eb7
...
...
@@ -8,6 +8,7 @@
*/
addLoadEvent
(
function
()
{
removeElementClass
(
$
(
'
whatviewsselection
'
),
'
hidden
'
);
var
container
=
$
(
'
whatviews
'
);
var
containerVisible
=
false
;
var
radios
=
[];
...
...
@@ -58,7 +59,7 @@ addLoadEvent(function() {
var
checkboxes
=
getElementsByTagAndClassName
(
'
input
'
,
'
checkbox
'
,
'
whatviews
'
);
var
checkboxHelperDiv
=
DIV
();
var
checkboxSelectAll
=
A
({
'
href
'
:
''
},
'
S
elect
all
'
);
var
checkboxSelectAll
=
$
(
'
s
elect
ion_
all
'
);
connect
(
checkboxSelectAll
,
'
onclick
'
,
function
(
e
)
{
e
.
stop
();
forEach
(
checkboxes
,
function
(
i
)
{
...
...
@@ -66,7 +67,7 @@ addLoadEvent(function() {
});
});
var
checkboxReverseSelection
=
A
({
'
href
'
:
''
},
'
Reverse
selection
'
);
var
checkboxReverseSelection
=
$
(
'
selection
_reverse
'
);
connect
(
checkboxReverseSelection
,
'
onclick
'
,
function
(
e
)
{
e
.
stop
();
forEach
(
checkboxes
,
function
(
i
)
{
...
...
@@ -74,8 +75,6 @@ addLoadEvent(function() {
});
});
appendChildNodes
(
checkboxHelperDiv
,
checkboxSelectAll
,
'
|
'
,
checkboxReverseSelection
);
insertSiblingNodesBefore
(
getFirstElementByTagAndClassName
(
'
table
'
,
null
,
container
),
checkboxHelperDiv
);
});
htdocs/lang/en.utf8/export.php
View file @
aa6a2eb7
...
...
@@ -47,6 +47,8 @@ $string['generateexport'] = 'Generate export';
$string
[
'noexportpluginsenabled'
]
=
'No export plugins have been enabled by the administrator, so you are unable to use this feature'
;
$string
[
'justsomeviews'
]
=
'Just some of my Views'
;
$string
[
'pleasewaitwhileyourexportisbeinggenerated'
]
=
'Please wait while your export is being generated...'
;
$string
[
'reverseselection'
]
=
'Reverse selection'
;
$string
[
'selectall'
]
=
'Select all'
;
$string
[
'setupcomplete'
]
=
'Setup complete'
;
$string
[
'Starting'
]
=
'Starting'
;
$string
[
'unabletoexportportfoliousingoptions'
]
=
'Unable to export a portfolio using the chosen options'
;
...
...
htdocs/theme/raw/pieforms/export.php
View file @
aa6a2eb7
...
...
@@ -40,6 +40,9 @@ foreach ($elements as $key => $element) {
}
if
(
$body
)
{
echo
'<div id="whatviewsselection" class="hidden"><a href="" id="selection_all">'
.
get_string
(
'selectall'
,
'export'
)
.
'</a> | <a href="" id="selection_reverse">'
.
get_string
(
'reverseselection'
,
'export'
)
.
'</a></div>'
;
echo
"<table>
\n
"
;
foreach
(
$body
as
$rownum
=>
$row
)
{
if
(
$rownum
==
0
)
{
...
...
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