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
ceaf783d
Unverified
Commit
ceaf783d
authored
Feb 26, 2020
by
Alex Pott
Browse files
Issue
#3104071
by jungle, knyshuk.vova: DrupalDateTime::$formatTranslationCache should be an array
parent
3c5abe40
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Datetime/DrupalDateTime.php
View file @
ceaf783d
...
...
@@ -23,9 +23,34 @@ class DrupalDateTime extends DateTimePlus {
use
StringTranslationTrait
;
/**
* Format string translation cache.
* Format
ted
string
s
translation cache.
*
* @var string
* Translation cache represents an instance storage for formatted date
* strings. It contains a multidimensional array where:
* - first level keys - are drupal language codes;
* - second level keys - are each symbols of given format string (like 'F');
* - third level keys - are original matched strings related to the symbol;
* - values - are translated or not-translated original strings (depends on
* if a particular symbol represents translatable value according to PHP's
* date() format character).
*
* For example:
* @code
* [
* 'en' => [
* 'F' => [
* 'November' => t('November'),
* 'December' => t('December'),
* ],
* 'd' => [
* '10' => '10',
* '31' => '31',
* ],
* ],
* ]
* @endcode
*
* @var array
*/
protected
$formatTranslationCache
;
...
...
Alex Pott
@alexpott
mentioned in commit
d7b34a94
·
Feb 26, 2020
mentioned in commit
d7b34a94
mentioned in commit d7b34a94d7c9f4acddb0169bb349bfcbffccc214
Toggle commit list
Alex Pott
@alexpott
mentioned in commit
456d5704
·
Feb 26, 2020
mentioned in commit
456d5704
mentioned in commit 456d5704521d5636219aab090d818e7a53b87ceb
Toggle commit list
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