NOOP_Translations
Provides the same interface as Translations, but doesn’t do anything
Description Description
Source Source
File: wp-includes/pomo/translations.php
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | class NOOP_Translations { var $entries = array (); var $headers = array (); function add_entry( $entry ) { 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; } /** * @param string $singular * @param string $context */ function translate( $singular , $context = null ) { 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; } /** * @param string $singular * @param string $plural * @param int $count * @param string $context */ function translate_plural( $singular , $plural , $count , $context = null ) { return 1 == $count ? $singular : $plural ; } /** * @param object $other */ function merge_with( & $other ) { } } |
Expand full source code Collapse full source code View on Trac