From 06933ac44070c8478be29f6802f2a4fe28e8ae60 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Jun 2013 14:27:37 +0000 Subject: [PATCH] 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 --- wp-includes/locale.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wp-includes/locale.php b/wp-includes/locale.php index bc5037c723..44bdf6e88c 100644 --- a/wp-includes/locale.php +++ b/wp-includes/locale.php @@ -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' ); + } } /**