[wp-trac] [WordPress Trac] #39733: List item separator should be a WP_Locale property
WordPress Trac
noreply at wordpress.org
Sun Jan 29 18:20:41 UTC 2017
#39733: List item separator should be a WP_Locale property
----------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Currently, some (most?) themes have a translatable list item separator for
displaying a list of categories or tags. See an [source:tags/4.7.2/src/wp-
content/themes/twentyseventeen/inc/template-tags.php?marks=65#L58 example
in Twenty Seventeen]:
{{{
/* translators: used between list items, there is a space after the comma
*/
$separate_meta = __( ', ', 'twentyseventeen' );
}}}
One of ru_RU translation team contributors made a point that list item
separator is a locale property, and it doesn't make much sense to
translate it separately in multiple projects.
We could probably add it as a property of `WP_Locale` class, in addition
to `::number_format['thousands_sep']` and
`::number_format['decimal_point']`, and there should be a public function
like `number_format_i18n()`, e.g. `get_list_item_separator()`, for plugins
and themes to use. Thoughts?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39733>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list