Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
48d3efdb
Commit
48d3efdb
authored
Sep 12, 2007
by
Gábor Hojtsy
Browse files
#174270
by kkaefer and Frando@fresko.dk: make node filter status texts translatable
parent
2b894366
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.admin.inc
View file @
48d3efdb
...
...
@@ -50,10 +50,15 @@ function user_filter_form() {
);
foreach
(
$session
as
$filter
)
{
list
(
$type
,
$value
)
=
$filter
;
$string
=
(
$i
++
?
'<em>and</em> where <strong>%a</strong> is <strong>%b</strong>'
:
'<strong>%a</strong> is <strong>%b</strong>'
);
// Merge an array of arrays into one if necessary.
$options
=
$type
==
'permission'
?
call_user_func_array
(
'array_merge'
,
$filters
[
$type
][
'options'
])
:
$filters
[
$type
][
'options'
];
$form
[
'filters'
][
'current'
][]
=
array
(
'#value'
=>
t
(
$string
,
array
(
'%a'
=>
$filters
[
$type
][
'title'
]
,
'%b'
=>
$options
[
$value
])));
$params
=
array
(
'%property'
=>
$filters
[
$type
][
'title'
]
,
'%value'
=>
$options
[
$value
]);
if
(
$i
++
>
0
)
{
$form
[
'filters'
][
'current'
][]
=
array
(
'#value'
=>
t
(
'<em>and</em> where <strong>%property</strong> is <strong>%value</strong>'
,
$params
));
}
else
{
$form
[
'filters'
][
'current'
][]
=
array
(
'#value'
=>
t
(
'<strong>%property</strong> is <strong>%value</strong>'
,
$params
));
}
}
foreach
(
$filters
as
$key
=>
$filter
)
{
...
...
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