mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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: http://core.svn.wordpress.org/trunk@24454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
80c30af9e8
commit
06933ac440
@ -327,6 +327,21 @@ class WP_Locale {
|
||||
function is_rtl() {
|
||||
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