lib/private/L10N/L10N.php
/**
	 * Translating
	 * @param string $text_singular the string to translate for exactly one object
	 * @param string $text_plural the string to translate for n objects
	 * @param integer $count Number of objects
	 * @param array $parameters default:array() Parameters for sprintf
	 * @return string Translation or the same text
	 *
	 * Returns the translation. If no translation is found, $text will be
	 * returned. %n will be replaced with the number of objects.
	 *
	 * The correct plural is determined by the plural_forms-function
	 * provided by the po file.
	 *
	 */


Returns the translation. If no translation is found, $text will be
returned. %n will be replaced with the number of objects.

The correct plural is determined by the plural_forms-function
provided by the po file.
Returns the translation . If no translation is found $text will be returned . %n will be replaced with the number of objects . The correct plural is determined by the plural_forms - function provided by the po file .
public function n($text_singular, $text_plural, $count, $parameters = array()) {
		$identifier = "_${text_singular}_::_${text_plural}_";
		if (isset($this->translations[$identifier])) {
			return (string) new \OC_L10N_String($this, $identifier, $parameters, $count);
		} else {
			if ($count === 1) {
				return (string) new \OC_L10N_String($this, $text_singular, $parameters, $count);
			} else {
				return (string) new \OC_L10N_String($this, $text_plural, $parameters, $count);
			}
		}
	}
public function n ( $ text_singular , $ text_plural , $ count , $ parameters = array ( ) ) { $ identifier = " _ $ { text_singular } _::_ $ { text_plural } _ " ; if ( isset ( $ this -> translations [ $ identifier ] ) ) { return ( string ) new \ OC_L10N_String ( $ this , $ identifier , $ parameters , $ count ) ; } else { if ( $ count === 1 ) { return ( string ) new \ OC_L10N_String ( $ this , $ text_singular , $ parameters , $ count ) ; } else { return ( string ) new \ OC_L10N_String ( $ this , $ text_plural , $ parameters , $ count ) ; } } }
Translating
 @param string $text_singular the string to translate for exactly one object
 @param string $text_plural the string to translate for n objects
 @param integer $count Number of objects
 @param array $parameters default:array() Parameters for sprintf
 @return string Translation or the same text
Translating @param string $text_singular the string to translate for exactly one object @param string $text_plural the string to translate for n objects @param integer $count Number of objects @param array $parameters default : array () Parameters for sprintf @return string Translation or the same text