Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
isTranslated ($messageId, $original=false, $locale=null) | |
setLocale ($locale) | |
toString () | |
![]() | |
__construct ($options=array()) | |
addTranslation ($options=array()) | |
setOptions (array $options=array()) | |
getOptions ($optionKey=null) | |
getLocale () | |
setLocale ($locale) | |
getList () | |
getMessageId ($message, $locale=null) | |
getMessageIds ($locale=null) | |
getMessages ($locale=null) | |
isAvailable ($locale) | |
translate ($messageId, $locale=null) | |
plural ($singular, $plural, $number, $locale=null) | |
_ ($messageId, $locale=null) | |
isTranslated ($messageId, $original=false, $locale=null) | |
toString () | |
![]() | |
translate ($messageId, $locale=null) | |
__ () | |
Protected Member Functions | |
_loadTranslationData ($data, $locale, array $options=[]) | |
![]() | |
_loadTranslationData ($data, $locale, array $options=array()) | |
_log ($message, $locale) | |
Additional Inherited Members | |
![]() | |
static | getCache () |
static | setCache (Zend_Cache_Core $cache) |
static | hasCache () |
static | removeCache () |
static | clearCache ($tag=null) |
![]() | |
const | LOCALE_DIRECTORY = 'directory' |
const | LOCALE_FILENAME = 'filename' |
![]() | |
$_options | |
$_translate = array() | |
![]() | |
static | $_cache = null |
Definition at line 12 of file AbstractAdapter.php.
|
protected |
Load translation data
@SuppressWarnings(PHPMD.UnusedFormalParameter)
mixed | $data | |
string | $locale | |
array | $options | (optional) |
Definition at line 23 of file AbstractAdapter.php.
isTranslated | ( | $messageId, | |
$original = false , |
|||
$locale = null |
|||
) |
Is translation available.
Return false, as \Zend_Validate pass message into translator only when isTranslated is false
@SuppressWarnings(PHPMD.UnusedFormalParameter)
string | $messageId | |
bool | $original | |
null | $locale |
Definition at line 39 of file AbstractAdapter.php.
setLocale | ( | $locale | ) |
Stub for setLocale functionality
@SuppressWarnings(PHPMD.UnusedFormalParameter)
string | $locale |
Definition at line 51 of file AbstractAdapter.php.
toString | ( | ) |