Skip to content
GitLab
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
c6f8e703
Commit
c6f8e703
authored
Dec 15, 2006
by
Martyn Smith
Committed by
Martyn Smith
Dec 15, 2006
Browse files
Added js get_string language strings, and passed them correctly to the
appropriate js
parent
7f8e534d
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/mahara.php
View file @
c6f8e703
...
...
@@ -27,15 +27,16 @@
defined
(
'INTERNAL'
)
||
die
();
// General form strings
$string
[
'add'
]
=
'Add'
;
$string
[
'cancel'
]
=
'Cancel'
;
$string
[
'delete'
]
=
'Delete'
;
$string
[
'edit'
]
=
'Edit'
;
$string
[
'save'
]
=
'Save'
;
$string
[
'submit'
]
=
'Submit'
;
$string
[
'update'
]
=
'Update'
;
$string
[
'change'
]
=
'Change'
;
$string
[
'go'
]
=
'Go'
;
$string
[
'add'
]
=
'Add'
;
$string
[
'cancel'
]
=
'Cancel'
;
$string
[
'delete'
]
=
'Delete'
;
$string
[
'edit'
]
=
'Edit'
;
$string
[
'save'
]
=
'Save'
;
$string
[
'submit'
]
=
'Submit'
;
$string
[
'update'
]
=
'Update'
;
$string
[
'change'
]
=
'Change'
;
$string
[
'go'
]
=
'Go'
;
$string
[
'loading'
]
=
'Loading ...'
;
$string
[
'no'
]
=
'no'
;
$string
[
'yes'
]
=
'yes'
;
...
...
htdocs/lang/en.utf8/view.php
View file @
c6f8e703
...
...
@@ -59,3 +59,12 @@ $string['empty_block'] = 'Select an artefact from the tree on the left to place
$string
[
'viewinformationsaved'
]
=
'View information saved successfully'
;
$string
[
'canteditdontown'
]
=
'You can\'t edit this view because you don\'t own it'
;
$string
[
'chooseformat'
]
=
'Select how you would like to display this artefact in this block ...'
;
$string
[
'format.listself'
]
=
'List item (you can put multiple artefacts in this block like this)'
;
$string
[
'format.listchildren'
]
=
'List children of this artefact'
;
$string
[
'format.renderfull'
]
=
'Display entire artefact'
;
$string
[
'format.rendermetadata'
]
=
'Display metadata for this artefact'
;
htdocs/view/create3.php
View file @
c6f8e703
...
...
@@ -118,7 +118,21 @@ if (isset($parsed_template['css'])) {
$headers
[]
=
'<link rel="stylesheet" type="text/css" href="'
.
get_config
(
'wwwroot'
)
.
'view/template.css.php?template='
.
$data
[
'template'
]
.
'">'
;
}
$smarty
=
smarty
(
array
(
'collapsabletree'
,
'move'
,
'tablerenderer'
),
$headers
);
$smarty
=
smarty
(
array
(
'collapsabletree'
,
'move'
,
'tablerenderer'
),
$headers
,
array
(
'view'
=>
array
(
'chooseformat'
,
'format.listself'
,
'format.listchildren'
,
'format.renderfull'
,
'format.rendermetadata'
,
'empty_block'
,
'empty_label'
,
),
)
);
$smarty
->
assign
(
'rootinfo'
,
$rootinfo
);
$smarty
->
assign
(
'plusicon'
,
theme_get_image_path
(
'plus.png'
));
$smarty
->
assign
(
'minusicon'
,
theme_get_image_path
(
'minus.png'
));
...
...
htdocs/view/edit.php
View file @
c6f8e703
...
...
@@ -180,7 +180,21 @@ if (isset($parsed_template['css'])) {
$headers
[]
=
'<link rel="stylesheet" type="text/css" href="'
.
get_config
(
'wwwroot'
)
.
'view/template.css.php?template='
.
$data
[
'template'
]
.
'">'
;
}
$smarty
=
smarty
(
array
(
'collapsabletree'
,
'move'
,
'tablerenderer'
),
$headers
);
$smarty
=
smarty
(
array
(
'collapsabletree'
,
'move'
,
'tablerenderer'
),
$headers
,
array
(
'view'
=>
array
(
'chooseformat'
,
'format.listself'
,
'format.listchildren'
,
'format.renderfull'
,
'format.rendermetadata'
,
'empty_block'
,
'empty_label'
,
),
)
);
$smarty
->
assign
(
'rootinfo'
,
$rootinfo
);
$smarty
->
assign
(
'plusicon'
,
theme_get_image_path
(
'plus.png'
));
$smarty
->
assign
(
'minusicon'
,
theme_get_image_path
(
'minus.png'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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