translate_plural( $single, $plural, $number ); /** * Filters the singular or plural form of a string. * * @since WP 2.2.0 * * @param string $translation * @param string $single * @param string $plural * @param string $number * @param string $domain */ return apply_filters( 'ngettext', $translation, $single, $plural, $number, 'freemius' ); } /** * Translates and retrieves the singular or plural form based on the supplied number, with gettext context. * * @since 1.2.1.6 * * @param string $single * @param string $plural * @param int $number * @param string $context * * @return string */ function _fs_nx($single, $plural, $number, $context ) { $translations = get_translations_for_domain( 'freemius' ); $translation = $translations->translate_plural( $single, $plural, $number, $context ); /** * Filters the singular or plural form of a string with gettext context. * * @since WP 3.0 * * @param string $translation * @param string $single * @param string $plural * @param string $number * @param string $context * @param string $domain */ return apply_filters( 'ngettext_with_context', $translation, $single, $plural, $number, $context, 'freemius' ); } /** * Registers plural strings in POT file, but does not translate them. * * Used when you want to keep structures with translatable plural * strings and use them later when the number is known. * * @since 1.2.1.6 * * @param string $singular * @param string $plural * * @return array */ function _fs_n_noop( $singular, $plural ) { return array( 'singular' => $singular, 'plural' => $plural, 'context' => null, 'domain' => 'freemius' ); } /** * Registers plural strings with gettext context in POT file, but does not translate them. * * Used when you want to keep structures with translatable plural * strings and use them later when the number is known. * * @since 1.2.1.6 * * @param string $singular * @param string $plural * @param string $context * * @return array */ function _fs_nx_noop( $singular, $plural, $context ) { return array( 'singular' => $singular, 'plural' => $plural, 'context' => $context, 'domain' => 'freemius' ); }