WP_Locale::_strings_for_pot() WordPress Method

The WP_Locale::_strings_for_pot() method is used to generate a list of all translatable strings for a given WordPress locale. This is used internally by the makepot tool to generate the .pot file for each locale.

WP_Locale::_strings_for_pot() #

Registers date/time format strings for general POT.


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.


Top ↑

Source

File: wp-includes/class-wp-locale.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' );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.