Method |
Description |
|
addTranslation ( string $language, string $text ) |
|
|
clearDependentCache ( ) : void |
|
|
getByKey ( $id, boolean $create = false, boolean $returnIdIfEmpty = false ) : static |
|
|
getByKeyLocalized ( $id, boolean $create = false, boolean $returnIdIfEmpty = false, $language = null ) : string |
Static Helper to get the translation of the current locale |
|
getCreationDate ( ) |
|
|
getDate ( ) : integer |
|
|
getForWebserviceExport ( ) : array |
|
|
getFromWebserviceImport ( $data ) |
|
|
getKey ( ) : string |
|
|
getModificationDate ( ) |
|
|
getTranslation ( $language ) : array |
|
|
getTranslations ( ) : array |
|
|
importTranslationsFromFile ( $file, boolean $replaceExistingTranslations = true, $languages = null ) |
Imports translations from a csv file
The CSV file has to have the same format as an Pimcore translation-export-file |
|
save ( ) |
|
|
setCreationDate ( $date ) |
|
|
setDate ( $date ) |
|
|
setKey ( $key ) |
|
|
setModificationDate ( $date ) |
|
|
setTranslations ( $translations ) |
|
|