Add some localized date/time strings to the main wordpress.pot. These strings appear in the admin only but can be leveraged outside of the admin by design. fixes #22916.
git-svn-id: https://develop.svn.wordpress.org/trunk@24454 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1633413430
commit
c69462faa8
@ -327,6 +327,21 @@ class WP_Locale {
|
|||||||
function is_rtl() {
|
function is_rtl() {
|
||||||
return 'rtl' == $this->text_direction;
|
return 'rtl' == $this->text_direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Private, unused function to add some date/time formats translated
|
||||||
|
* on wp-admin/options-general.php to the general POT.
|
||||||
|
*
|
||||||
|
* @since 3.6.0
|
||||||
|
*/
|
||||||
|
private function strings_for_pot() {
|
||||||
|
/* translators: localized date format, see http://php.net/date */
|
||||||
|
__( 'F j, Y' );
|
||||||
|
/* translators: localized time format, see http://php.net/date */
|
||||||
|
__( 'g:i a' );
|
||||||
|
/* translators: localized date and time format, see http://php.net/date */
|
||||||
|
__( 'F j, Y g:i a' );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user