X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..refs/tags/wordpress-4.3:/wp-includes/pomo/translations.php diff --git a/wp-includes/pomo/translations.php b/wp-includes/pomo/translations.php index c01a87fe..8db80c85 100644 --- a/wp-includes/pomo/translations.php +++ b/wp-includes/pomo/translations.php @@ -111,6 +111,9 @@ class Translations { return 1 == $count? 0 : 1; } + /** + * @return int + */ function get_plural_forms_count() { return 2; } @@ -146,6 +149,9 @@ class Translations { } } + /** + * @param object $other + */ function merge_originals_with(&$other) { foreach( $other->entries as $entry ) { if ( !isset( $this->entries[$entry->key()] ) ) @@ -278,16 +284,33 @@ class NOOP_Translations { return true; } + /** + * + * @param string $header + * @param string $value + */ function set_header($header, $value) { } + /** + * + * @param array $headers + */ function set_headers($headers) { } + /** + * @param string $header + * @return false + */ function get_header($header) { return false; } + /** + * @param Translation_Entry $entry + * @return false + */ function translate_entry(&$entry) { return false; } @@ -300,10 +323,18 @@ class NOOP_Translations { return $singular; } + /** + * + * @param int $count + * @return bool + */ function select_plural_form($count) { return 1 == $count? 0 : 1; } + /** + * @return int + */ function get_plural_forms_count() { return 2; } @@ -318,6 +349,9 @@ class NOOP_Translations { return 1 == $count? $singular : $plural; } + /** + * @param object $other + */ function merge_with(&$other) { } }