[wp-trac] [WordPress Trac] #47511: Add specific "default settings" for different locales

WordPress Trac noreply at wordpress.org
Fri Jul 30 11:17:14 UTC 2021


#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 zodiac1978):

 We stumbled upon this problem in our plugin too. In our case it is the
 word count (words vs. characters):
 https://github.com/pluginkollektiv/antispam-bee/issues/403

 There is no way for us to read this information from the existing core
 translation, so we have to duplicate this "translation" in our plugin
 (which is in fact no translation but a choice) or we have to use the core
 translation.

 The latter has the additional problem that the PO parser is adding this to
 the translation strings nevertheless although the correct text domain is
 missing.

 Having this word count in the `WP_Locale` object would make this much
 easier.

 At the moment there are 65 plugin shown for the string "Word count type.
 Do not translate!"
 https://wpdirectory.net/search/01FBV7MTEHG0XDATA5823T85VV

 WooComerce and others are using its own translation, but Jetpack or Site
 Origin Page Builder (and others) for example are using the core
 translation (like we do it at the moment in Antispam Bee).

 Duplicating this string *and* using the core translation (producing an
 unused string in GlotPress) are both not the best solution here, I think.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47511#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list