[wp-trac] [WordPress Trac] #56698: Define 'Word count type' as a WP_Locale property
WordPress Trac
noreply at wordpress.org
Tue Feb 7 17:26:30 UTC 2023
#56698: Define 'Word count type' as a WP_Locale property
-------------------------------------------------+-------------------------
Reporter: pedromendonca | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: I18N | Version: 4.3
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing-info needs- | Focuses:
testing has-unit-tests commit |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* owner: (none) => audrasjb
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55279" 55279]:
{{{
#!CommitTicketReference repository="" revision="55279"
I18N: Introduce `word_count_type` property to `WP_Locale`.
This changesets adds a `word_count_type` property, so that it does not
need to be translated separately across multiple projects.
List of changes:
- New property: `WP_Locale::word_count_type`.
- New method: `WP_Locale::get_word_count_type()`.
- New function: `wp_get_word_count_type()` as a wrapper for
`WP_Locale::get_word_count_type()`.
- All `_x( 'words', 'Word count type. Do not translate!' )` strings have
been replaced with a call to `wp_get_word_count_type()`.
Props pedromendonca, desrosj, costdev, mukesh27, johnbillion.
Fixes #56698.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56698#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list