Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
advanced_help
Commits
b5fe4124
Commit
b5fe4124
authored
Apr 27, 2008
by
Earl Miles
Browse files
#251897
(by Jose Reyero): Fixes to translation.
parent
a5719d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
advanced_help.module
View file @
b5fe4124
...
...
@@ -502,15 +502,15 @@ function advanced_help_get_topics() {
if
(
!
empty
(
$info
))
{
// Get translated titles:
global
$language
;
if
(
file_exists
(
"
$module_path
/translations/help/
$language->language
/module.help.ini"
))
{
$translation
=
parse_ini_file
(
"
$module_path
/translations/help/
$language->language
/module.help.ini"
,
TRUE
);
if
(
file_exists
(
"
$module_path
/translations/help/
$language->language
/
$
module
.help.ini"
))
{
$translation
=
parse_ini_file
(
"
$module_path
/translations/help/
$language->language
/
$
module
.help.ini"
,
TRUE
);
}
foreach
(
$info
as
$name
=>
$topic
)
{
// Each topic should have a name, a title, a file and of course the path.
$file
=
!
empty
(
$topic
[
'file'
])
?
$topic
[
'file'
]
:
$name
;
$topics
[
$module
][
$name
]
=
array
(
'name'
=>
$name
,
'title'
=>
!
empty
(
$translation
[
'
name
'
][
'title'
])
?
$translation
[
'
name
'
][
'title'
]
:
$topic
[
'title'
],
'title'
=>
!
empty
(
$translation
[
$
name
][
'title'
])
?
$translation
[
$
name
][
'title'
]
:
$topic
[
'title'
],
'weight'
=>
isset
(
$topic
[
'weight'
])
?
$topic
[
'weight'
]
:
0
,
'parent'
=>
isset
(
$topic
[
'parent'
])
?
$topic
[
'parent'
]
:
0
,
'file'
=>
$file
.
'.html'
,
// require extension
...
...
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