/**
* Class for a set of entries for translation and their associated headers
*
- * @version $Id: translations.php 718 2012-10-31 00:32:02Z nbachiyski $
+ * @version $Id: translations.php 1157 2015-11-20 04:30:11Z dd32 $
* @package pomo
* @subpackage translations
*/
require_once dirname(__FILE__) . '/entry.php';
-if ( !class_exists( 'Translations' ) ):
+if ( ! class_exists( 'Translations', false ) ):
class Translations {
var $entries = array();
var $headers = array();
return 1 == $count? 0 : 1;
}
+ /**
+ * @return int
+ */
function get_plural_forms_count() {
return 2;
}
}
}
+ /**
+ * @param object $other
+ */
function merge_originals_with(&$other) {
foreach( $other->entries as $entry ) {
if ( !isset( $this->entries[$entry->key()] ) )
}
endif;
-if ( !class_exists( 'NOOP_Translations' ) ):
+if ( ! class_exists( 'NOOP_Translations', false ) ):
/**
* Provides the same interface as Translations, but doesn't do anything
*/
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;
}
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;
}
return 1 == $count? $singular : $plural;
}
+ /**
+ * @param object $other
+ */
function merge_with(&$other) {
}
}