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
d68e2c16
Commit
d68e2c16
authored
Nov 23, 2014
by
webchick
Browse files
Issue
#2371987
by sarav.din33, michaellenahan: Use e.g. instead of i.e. in Date field hover text
parent
df881baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Datetime/Element/Datetime.php
View file @
d68e2c16
...
...
@@ -241,7 +241,7 @@ public static function processDatetime(&$element, FormStateInterface $form_state
// placeholders are invalid for HTML5 date and datetime, so an example
// format is appended to the title to appear in tooltips.
$extra_attributes
=
array
(
'title'
=>
t
(
'Date (
i.e
. !format)'
,
array
(
'!format'
=>
static
::
formatExample
(
$date_format
))),
'title'
=>
t
(
'Date (
e.g
. !format)'
,
array
(
'!format'
=>
static
::
formatExample
(
$date_format
))),
'type'
=>
$element
[
'#date_date_element'
],
);
...
...
@@ -286,7 +286,7 @@ public static function processDatetime(&$element, FormStateInterface $form_state
// Adds the HTML5 attributes.
$extra_attributes
=
array
(
'title'
=>
t
(
'Time (
i.e
. !format)'
,
array
(
'!format'
=>
static
::
formatExample
(
$time_format
))),
'title'
=>
t
(
'Time (
e.g
. !format)'
,
array
(
'!format'
=>
static
::
formatExample
(
$time_format
))),
'type'
=>
$element
[
'#date_time_element'
],
'step'
=>
$element
[
'#date_increment'
],
);
...
...
Write
Preview
Supports
Markdown
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