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
344aed13
Commit
344aed13
authored
Jun 20, 2009
by
Dries Buytaert
Browse files
- Patch
#67211
by catch, Gábor Hojtsy, yoroy, cdale, et al: drop the colon after form titles.
parent
549e5737
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
344aed13
...
...
@@ -2620,10 +2620,10 @@ function theme_form_element($element) {
if
(
!
empty
(
$element
[
'#title'
])
&&
empty
(
$element
[
'#form_element_skip_title'
]))
{
$title
=
$element
[
'#title'
];
if
(
!
empty
(
$element
[
'#id'
]))
{
$output
.
=
' <label for="'
.
$element
[
'#id'
]
.
'">'
.
$t
(
'!title
:
!required'
,
array
(
'!title'
=>
filter_xss_admin
(
$title
),
'!required'
=>
$required
))
.
"</label>
\n
"
;
$output
.
=
' <label for="'
.
$element
[
'#id'
]
.
'">'
.
$t
(
'!title !required'
,
array
(
'!title'
=>
filter_xss_admin
(
$title
),
'!required'
=>
$required
))
.
"</label>
\n
"
;
}
else
{
$output
.
=
' <label>'
.
$t
(
'!title
:
!required'
,
array
(
'!title'
=>
filter_xss_admin
(
$title
),
'!required'
=>
$required
))
.
"</label>
\n
"
;
$output
.
=
' <label>'
.
$t
(
'!title !required'
,
array
(
'!title'
=>
filter_xss_admin
(
$title
),
'!required'
=>
$required
))
.
"</label>
\n
"
;
}
}
...
...
modules/locale/locale.test
View file @
344aed13
...
...
@@ -1366,7 +1366,7 @@ class LocaleContentFunctionalTest extends DrupalWebTestCase {
// Set page content type to use multilingual support.
$this
->
drupalGet
(
'admin/build/node-type/page'
);
$this
->
assertText
(
t
(
'Multilingual support
:
'
),
t
(
'Multilingual support fieldset present on content type configuration form.'
));
$this
->
assertText
(
t
(
'Multilingual support'
),
t
(
'Multilingual support fieldset present on content type configuration form.'
));
$edit
=
array
(
'language_content_type'
=>
1
,
);
...
...
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