public static function addFlag($comment, $flag)
    {
        $returnValue = (string) '';

        
        $returnValue = $comment;
        $flag = trim($flag);
        $encoding = self::getApplicationHelper()->getDefaultEncoding();
        if (mb_strpos($returnValue, $flag, 0, $encoding) === false){
            $returnValue .= ((mb_strlen($returnValue, $encoding) > 0) ? " ${flag}" : $flag);
        }
        

        return (string) $returnValue;
    }
public static function addFlag($comment, $flag)
    {
        $returnValue = (string) '';

        
        $returnValue = $comment;
        $flag = trim($flag);
        $encoding = self::getApplicationHelper()->getDefaultEncoding();
        if (mb_strpos($returnValue, $flag, 0, $encoding) === false){
            $returnValue .= ((mb_strlen($returnValue, $encoding) > 0) ? " ${flag}" : $flag);
        }
        

        return (string) $returnValue;
    }
public static function addFlag ( $ comment , $ flag ) { $ returnValue = ( string ) '' ; $ returnValue = $ comment ; $ flag = trim ( $ flag ) ; $ encoding = self :: getApplicationHelper ( ) -> getDefaultEncoding ( ) ; if ( mb_strpos ( $ returnValue , $ flag , 0 , $ encoding ) === false ) { $ returnValue .= ( ( mb_strlen ( $ returnValue , $ encoding ) > 0 ) ? " ${flag}" : $ flag ) ; } return ( string ) $ returnValue ; }
Append a flag to an existing PO comment flag value.

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  string comment A PO flag comment value in which you have to add the new flag.
@param  string flag The flag to add to the existing $comment.
@return string
Append a flag to an existing PO comment flag value .