Title: WP_Locale::_strings_for_pot
Published: April 25, 2014
Last modified: April 28, 2025

---

# WP_Locale::_strings_for_pot()

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#wp--skip-link--target)

Registers date/time format strings for general POT.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#description)󠁿

Private, unused method to add some date/time formats translated on wp-admin/options-
general.php to the general POT that would otherwise be added to the admin POT.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#source)󠁿

    ```php
    public function _strings_for_pot() {
    	/* translators: Localized date format, see https://www.php.net/manual/datetime.format.php */
    	__( 'F j, Y' );
    	/* translators: Localized time format, see https://www.php.net/manual/datetime.format.php */
    	__( 'g:i a' );
    	/* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */
    	__( 'F j, Y g:i a' );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-locale.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-locale.php#L418)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-locale.php#L418-L425)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#related)󠁿

| Uses | Description | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_locale/_strings_for_pot/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.6.0](https://developer.wordpress.org/reference/since/3.6.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_locale%2F_strings_for_pot%2F)
before being able to contribute a note or feedback.