controllers/i18n/actions.php
protected function customizeTranslation()
	{
		$message 		= \Sifo\FilterPost::getInstance()->getString( 'msgid' );
		$id_message 	= null;
		if ( is_numeric( $message ) )
		{
			$id_message = $message;
		}
		$instance			= $this->getParsedParam( 'instance' );
		$translator_model 	= new I18nTranslatorModel();

		$id_message = $translator_model->getTranslation( $message, $id_message );

		$result = array( 'status' => 'KO', 'msg' => 'This Message or ID doesn\'t exist.' );
		if ( $id_message )
		{
			$result = array( 'status' => 'OK', 'msg' => 'Message successfully customized.' );
			if( !$translator_model->customizeTranslation( $id_message, $instance ) )
			{
				$result = array( 'status' => 'KO', 'msg' => 'This message is already customized in this instance.' );
			}
		}

		return $result;
	}
protected function customizeTranslation()
	{
		$message 		= \Sifo\FilterPost::getInstance()->getString( 'msgid' );
		$id_message 	= null;
		if ( is_numeric( $message ) )
		{
			$id_message = $message;
		}
		$instance			= $this->getParsedParam( 'instance' );
		$translator_model 	= new I18nTranslatorModel();

		$id_message = $translator_model->getTranslation( $message, $id_message );

		$result = array( 'status' => 'KO', 'msg' => 'This Message or ID doesn\'t exist.' );
		if ( $id_message )
		{
			$result = array( 'status' => 'OK', 'msg' => 'Message successfully customized.' );
			if( !$translator_model->customizeTranslation( $id_message, $instance ) )
			{
				$result = array( 'status' => 'KO', 'msg' => 'This message is already customized in this instance.' );
			}
		}

		return $result;
	}
protected function customizeTranslation ( ) { $ message = \ Sifo \ FilterPost :: getInstance ( ) -> getString ( 'msgid' ) ; $ id_message = null ; if ( is_numeric ( $ message ) ) { $ id_message = $ message ; } $ instance = $ this -> getParsedParam ( 'instance' ) ; $ translator_model = new I18nTranslatorModel ( ) ; $ id_message = $ translator_model -> getTranslation ( $ message , $ id_message ) ; $ result = array ( 'status' => 'KO' , 'msg' => 'This Message or ID doesn\'t exist.' ) ; if ( $ id_message ) { $ result = array ( 'status' => 'OK' , 'msg' => 'Message successfully customized.' ) ; if ( ! $ translator_model -> customizeTranslation ( $ id_message , $ instance ) ) { $ result = array ( 'status' => 'KO' , 'msg' => 'This message is already customized in this instance.' ) ; } } return $ result ; }
Customize translation.
@return mixed
Customize translation .