src/Ui/EditTranslationProxyTrait.php
protected function setTranslationForMessageFromService($selfEdit, $msgInstanceName, $key, $label, $language, $delete)
    {
        if ($delete) {
            $translationService = new InstanceProxy($msgInstanceName, $selfEdit);

            return $translationService->deleteMessage($key, $language);
        } else {
            $translationService = new InstanceProxy($msgInstanceName, $selfEdit);

            return $translationService->setMessage($key, $label, $language);
        }
    }
protected function setTranslationForMessageFromService($selfEdit, $msgInstanceName, $key, $label, $language, $delete)
    {
        if ($delete) {
            $translationService = new InstanceProxy($msgInstanceName, $selfEdit);

            return $translationService->deleteMessage($key, $language);
        } else {
            $translationService = new InstanceProxy($msgInstanceName, $selfEdit);

            return $translationService->setMessage($key, $label, $language);
        }
    }
protected function setTranslationForMessageFromService ( $ selfEdit , $ msgInstanceName , $ key , $ label , $ language , $ delete ) { if ( $ delete ) { $ translationService = new InstanceProxy ( $ msgInstanceName , $ selfEdit ) ; return $ translationService -> deleteMessage ( $ key , $ language ) ; } else { $ translationService = new InstanceProxy ( $ msgInstanceName , $ selfEdit ) ; return $ translationService -> setMessage ( $ key , $ label , $ language ) ; } }
Saves the translation for one key and one language using CURL.

@param  bool      $selfEdit
@param  string    $msgInstanceName
@param  string    $key
@param  string    $label
@param  string    $language
@param  string    $delete
@return boolean
@throws Exception
Saves the translation for one key and one language using CURL .