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:
Andrew Nacin 2013-06-20 14:27:37 +00:00
parent 80c30af9e8
commit 06933ac440
1 changed files with 15 additions and 0 deletions

View File

@ -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' );
}
}
/**