Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f1fda0f0
Commit
f1fda0f0
authored
Oct 16, 2008
by
Dries Buytaert
Browse files
- Patch
#320793
by hass: fixed translation issue.
parent
cbec0581
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.admin.inc
View file @
f1fda0f0
...
...
@@ -645,14 +645,14 @@ function system_modules($form_state = array()) {
if
(
is_array
(
$module
->
info
[
'dependencies'
]))
{
foreach
(
$module
->
info
[
'dependencies'
]
as
$dependency
)
{
if
(
!
isset
(
$files
[
$dependency
]))
{
$extra
[
'dependencies'
][
$dependency
]
=
drupal_ucfirst
(
$dependency
)
.
t
(
'
(<span class="admin-missing">missing</span>)'
);
$extra
[
'dependencies'
][
$dependency
]
=
t
(
'@module
(<span class="admin-missing">missing</span>)'
,
array
(
'@module'
=>
drupal_ucfirst
(
$dependency
))
);
$extra
[
'disabled'
]
=
TRUE
;
}
elseif
(
!
$files
[
$dependency
]
->
status
)
{
$extra
[
'dependencies'
][
$dependency
]
=
$files
[
$dependency
]
->
info
[
'name'
]
.
t
(
'
(<span class="admin-disabled">disabled</span>)'
);
$extra
[
'dependencies'
][
$dependency
]
=
t
(
'@module
(<span class="admin-disabled">disabled</span>)'
,
array
(
'@module'
=>
$files
[
$dependency
]
->
info
[
'name'
])
);
}
else
{
$extra
[
'dependencies'
][
$dependency
]
=
$files
[
$dependency
]
->
info
[
'name'
]
.
t
(
'
(<span class="admin-enabled">enabled</span>)'
);
$extra
[
'dependencies'
][
$dependency
]
=
t
(
'@module
(<span class="admin-enabled">enabled</span>)'
,
array
(
'@module'
=>
$files
[
$dependency
]
->
info
[
'name'
])
);
}
}
}
...
...
@@ -667,11 +667,11 @@ function system_modules($form_state = array()) {
$dependents
=
array
();
foreach
(
$module
->
info
[
'dependents'
]
as
$dependent
)
{
if
(
$files
[
$dependent
]
->
status
==
1
)
{
$extra
[
'dependents'
][]
=
$files
[
$dependent
]
->
info
[
'name'
]
.
t
(
'
(<span class="admin-enabled">enabled</span>)'
);
$extra
[
'dependents'
][]
=
t
(
'@module
(<span class="admin-enabled">enabled</span>)'
,
array
(
'@module'
=>
$files
[
$dependent
]
->
info
[
'name'
])
);
$extra
[
'disabled'
]
=
TRUE
;
}
else
{
$extra
[
'dependents'
][]
=
$files
[
$dependent
]
->
info
[
'name'
]
.
t
(
'
(<span class="admin-disabled">disabled</span>)'
);
$extra
[
'dependents'
][]
=
t
(
'@module
(<span class="admin-disabled">disabled</span>)'
,
array
(
'@module'
=>
$files
[
$dependent
]
->
info
[
'name'
])
);
}
}
$form
[
'modules'
][
$module
->
info
[
'package'
]][
$filename
]
=
_system_modules_build_row
(
$module
->
info
,
$extra
);
...
...
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