13 | | $file = DIR_TESTDATA . '/pomo/simple.mo'; |
14 | | $this->assertTrue( load_textdomain( 'wp-tests-domain', $file ) ); |
15 | | $this->assertTrue( is_textdomain_loaded( 'wp-tests-domain' ) ); |
16 | | $this->assertTrue( unload_textdomain( 'wp-tests-domain' ) ); |
17 | | $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) ); |
| 14 | $this->assertEquals( __( 'January' ), $locale->get_month( 1 ) ); |
| 15 | $this->assertEquals( __( 'February' ), $locale->get_month( '02' ) ); |
| 16 | |
| 17 | $this->assertEquals( __( 'Sunday' ), $locale->get_weekday( 0 ) ); |
| 18 | $this->assertEquals( __( 'S' ), $locale->get_weekday_initial( __( 'Sunday') ) ); |
| 19 | $this->assertEquals( __( 'Sun' ), $locale->get_weekday_abbrev( __( 'Sunday' ) ) ); |
| 20 | |
| 21 | $this->assertEquals( __( 'January' ), $locale->get_month( 1 ) ); |
| 22 | $this->assertEquals( __( 'Jan' ), $locale->get_month_abbrev( __( 'January' ) ) ); |
| 23 | |
| 24 | $this->assertEquals( __( 'am' ), $locale->get_meridiem( _('am') ) ); |
| 25 | |
| 26 | return $locale; |