src/Metabox/Factory.php
protected function setMetaboxTranslations(MetaboxInterface $metabox)
    {
        if (! function_exists('__')) {
            return $this;
        }

        $metabox->addTranslation('done', __('Saved', Application::TEXTDOMAIN));
        $metabox->addTranslation('error', __('Saved with errors', Application::TEXTDOMAIN));
        $metabox->addTranslation('saving', __('Saving', Application::TEXTDOMAIN));
        $metabox->addTranslation('submit', sprintf('%s %s', __('Save', Application::TEXTDOMAIN), $metabox->getTitle()));

        return $this;
    }
protected function setMetaboxTranslations(MetaboxInterface $metabox)
    {
        if (! function_exists('__')) {
            return $this;
        }

        $metabox->addTranslation('done', __('Saved', Application::TEXTDOMAIN));
        $metabox->addTranslation('error', __('Saved with errors', Application::TEXTDOMAIN));
        $metabox->addTranslation('saving', __('Saving', Application::TEXTDOMAIN));
        $metabox->addTranslation('submit', sprintf('%s %s', __('Save', Application::TEXTDOMAIN), $metabox->getTitle()));

        return $this;
    }
protected function setMetaboxTranslations ( MetaboxInterface $ metabox ) { if ( ! function_exists ( '__' ) ) { return $ this ; } $ metabox -> addTranslation ( 'done' , __ ( 'Saved' , Application :: TEXTDOMAIN ) ) ; $ metabox -> addTranslation ( 'error' , __ ( 'Saved with errors' , Application :: TEXTDOMAIN ) ) ; $ metabox -> addTranslation ( 'saving' , __ ( 'Saving' , Application :: TEXTDOMAIN ) ) ; $ metabox -> addTranslation ( 'submit' , sprintf ( '%s %s' , __ ( 'Save' , Application :: TEXTDOMAIN ) , $ metabox -> getTitle ( ) ) ) ; return $ this ; }
Set metabox translations strings.

@param MetaboxInterface $metabox

@return $this
Set metabox translations strings .