Changeset 32961
- Timestamp:
- 06/27/2015 12:31:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/locale.php
r32672 r32961 96 96 * @global string $wp_version 97 97 */ 98 function init() {98 public function init() { 99 99 // The Weekdays 100 100 $this->weekday[0] = /* translators: weekday */ __('Sunday'); … … 195 195 * @since 3.8.0 196 196 */ 197 function rtl_src_admin_notice() {197 public function rtl_src_admin_notice() { 198 198 echo '<div class="error"><p>' . 'The <code>build</code> directory of the develop repository must be used for RTL.' . '</p></div>'; 199 199 } … … 212 212 * @return string Full translated weekday 213 213 */ 214 function get_weekday($weekday_number) {214 public function get_weekday($weekday_number) { 215 215 return $this->weekday[$weekday_number]; 216 216 } … … 230 230 * @return string 231 231 */ 232 function get_weekday_initial($weekday_name) {232 public function get_weekday_initial($weekday_name) { 233 233 return $this->weekday_initial[$weekday_name]; 234 234 } … … 246 246 * @return string Translated weekday abbreviation 247 247 */ 248 function get_weekday_abbrev($weekday_name) {248 public function get_weekday_abbrev($weekday_name) { 249 249 return $this->weekday_abbrev[$weekday_name]; 250 250 } … … 267 267 * @return string Translated full month name 268 268 */ 269 function get_month($month_number) {269 public function get_month($month_number) { 270 270 return $this->month[zeroise($month_number, 2)]; 271 271 } … … 283 283 * @return string Translated abbreviated month 284 284 */ 285 function get_month_abbrev($month_name) {285 public function get_month_abbrev($month_name) { 286 286 return $this->month_abbrev[$month_name]; 287 287 } … … 298 298 * @return string Translated version 299 299 */ 300 function get_meridiem($meridiem) {300 public function get_meridiem($meridiem) { 301 301 return $this->meridiem[$meridiem]; 302 302 } … … 316 316 * @since 2.1.0 317 317 */ 318 function register_globals() {318 public function register_globals() { 319 319 $GLOBALS['weekday'] = $this->weekday; 320 320 $GLOBALS['weekday_initial'] = $this->weekday_initial; … … 329 329 * @since 2.1.0 330 330 */ 331 function __construct() {331 public function __construct() { 332 332 $this->init(); 333 333 $this->register_globals(); … … 340 340 * @return bool Whether locale is RTL. 341 341 */ 342 function is_rtl() {342 public function is_rtl() { 343 343 return 'rtl' == $this->text_direction; 344 344 } … … 353 353 * @since 3.6.0 354 354 */ 355 function _strings_for_pot() {355 public function _strings_for_pot() { 356 356 /* translators: localized date format, see http://php.net/date */ 357 357 __( 'F j, Y' );
Note: See TracChangeset
for help on using the changeset viewer.