コード例 #1
0
ファイル: core.php プロジェクト: ksingh812/epb
 /**
  * Sets a custom text domain; if null is passed the text domain will revert
  * to the default text domain.
  */
 static function settextdomain($textdomain)
 {
     if (!empty($textdomain)) {
         self::$textdomain = $textdomain;
     } else {
         // null or otherwise empty value
         // revert to default
         self::$textdomain = 'comments-ratings';
     }
 }
コード例 #2
0
ファイル: defaults.php プロジェクト: ksingh812/epb
<?php

return array('cleanup' => array('switch' => array('switch_not_available')), 'checks' => array('counter' => array('is_numeric', 'not_empty')), 'processor' => array('preupdate' => array(), 'postupdate' => array()), 'errors' => array('is_numeric' => esc_html__('Numeric value required.', pixreviews::textdomain()), 'not_empty' => esc_html__('Field is required.', pixreviews::textdomain())), 'callbacks' => array('switch_not_available' => 'pixreviews_cleanup_switch_not_available', 'is_numeric' => 'pixreviews_validate_is_numeric', 'not_empty' => 'pixreviews_validate_not_empty'));
# config