FML/Elements/Dico.php
public function setEntry($language, $entryId, $entryValue)
    {
        $language   = (string)$language;
        $entryId    = (string)$entryId;
        $entryValue = (string)$entryValue;
        if (!isset($this->entries[$language]) && $entryValue) {
            $this->entries[$language] = array();
        }
        if ($entryValue) {
            $this->entries[$language][$entryId] = $entryValue;
        } else {
            if (isset($this->entries[$language][$entryId])) {
                unset($this->entries[$language][$entryId]);
            }
        }
        return $this;
    }
public function setEntry($language, $entryId, $entryValue)
    {
        $language   = (string)$language;
        $entryId    = (string)$entryId;
        $entryValue = (string)$entryValue;
        if (!isset($this->entries[$language]) && $entryValue) {
            $this->entries[$language] = array();
        }
        if ($entryValue) {
            $this->entries[$language][$entryId] = $entryValue;
        } else {
            if (isset($this->entries[$language][$entryId])) {
                unset($this->entries[$language][$entryId]);
            }
        }
        return $this;
    }
public function setEntry ( $ language , $ entryId , $ entryValue ) { $ language = ( string ) $ language ; $ entryId = ( string ) $ entryId ; $ entryValue = ( string ) $ entryValue ; if ( ! isset ( $ this -> entries [ $ language ] ) && $ entryValue ) { $ this -> entries [ $ language ] = array ( ) ; } if ( $ entryValue ) { $ this -> entries [ $ language ] [ $ entryId ] = $ entryValue ; } else { if ( isset ( $ this -> entries [ $ language ] [ $ entryId ] ) ) { unset ( $ this -> entries [ $ language ] [ $ entryId ] ) ; } } return $ this ; }
Set the translatable entry for the specific language

@api
@param string $language   Language id
@param string $entryId    Entry id
@param string $entryValue Translated entry value
@return static
Set the translatable entry for the specific language