public function translateByNumber( int $number, string $defaultTranslation, ...$args ) : string
   {

      $transStr = $this->_source->getTranslation( $number, $defaultTranslation );

      if ( \count( $args ) < 1 )
      {
         return $transStr;
      }

      return \sprintf( $transStr, $args );

   }
public function translateByNumber( int $number, string $defaultTranslation, ...$args ) : string
   {

      $transStr = $this->_source->getTranslation( $number, $defaultTranslation );

      if ( \count( $args ) < 1 )
      {
         return $transStr;
      }

      return \sprintf( $transStr, $args );

   }
public function translateByNumber ( int $ number , string $ defaultTranslation , ... $ args ) : string { $ transStr = $ this -> _source -> getTranslation ( $ number , $ defaultTranslation ) ; if ( \ count ( $ args ) < 1 ) { return $ transStr ; } return \ sprintf ( $ transStr , $ args ) ; }
Gets the translation by an numeric identifier.

@param int $number The numeric identifier
@param string $defaultTranslation This text is returned as translation if the source not holds the
translation with the requested identifier.
@param array ...$args If the translation contains sprintf compatible replacements
you can declare the replacing values here.
@return string
Gets the translation by an numeric identifier .