protected function translate()
    {
        $translatorOptions = $this->getTranslatorOptions();
        if (empty($translatorOptions) && !array_key_exists("fields", $translatorOptions)) {
            return;
        }

        $params = array();
        if (array_key_exists("params", $translatorOptions)) {
            $params = $translatorOptions["params"];
        }

        $domain = "RedKiteCms";
        if (array_key_exists("domain", $translatorOptions)) {
            $domain = $translatorOptions["domain"];
        }

        foreach ($translatorOptions["fields"] as $field) {
            $field = ucfirst($field);
            $method = 'get' . $field;
            $value = Translator::translate($this->$method(), $params, $domain);
            $method = 'set' . $field;
            $this->$method($value);
        }
    }