[wp-trac] [WordPress Trac] #47511: Add specific "default settings" for different locales
WordPress Trac
noreply at wordpress.org
Fri Sep 30 13:33:48 UTC 2022
#47511: Add specific "default settings" for different locales
-------------------------+-----------------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+-----------------------------
Comment (by pedromendonca):
> Having this word count in the WP_Locale object would make this much
easier.
@zodiac1978 please check the new ticket #56698 and PR
https://github.com/WordPress/wordpress-develop/pull/3377/
> If you think it's best to keep these settings in the pot, lets keep them
there. However thinking we need to have a "centralized" place to process
and expose them.
@azaozz I agree with this. This is why I made this table where the
possible errors are exposed, many strings do need sanitization, but
currently, GlotPress has no way of doing it.
https://wp-i18n.org/stats/language-settings/
Many locales have actually translated these **settings strings**, some
others are not, but differ from GP_Locale properties, like
`word_count_type` and `text_direction`.
A suggestion, for further development of a GlotPress sanitization feature,
set a specific context to strings that are meant to work as exclusively as
**settings**, and a convention to pass some arguments, for example:
{{{
/* translators: This sets the text direction for WordPress. Options:
'ltr', 'rtl'. */
_x( 'ltr', 'no-translate-setting' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47511#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list