[wp-trac] [WordPress Trac] #50087: Context-splitting needed for the string "none"
WordPress Trac
noreply at wordpress.org
Mon May 4 22:59:34 UTC 2020
#50087: Context-splitting needed for the string "none"
--------------------------+-----------------------------
Reporter: tobifjellner | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The strings "None" and "none" are used in many places.
Unfortunately, this string is impossible to translate correctly in many
languages.
The reason is that depending on what noun is described, this word may need
to be presented in various forms.
Here are the places I can see right now. Unfortunately, I don't have
enough knowledge to trace the JS sources.
Note that some of the places are using the word "None" qualifies the same
thing, for instance "Alignment" and therefore these occurrences could
share the same string for translation.
Line numbers are given as reference as of May 4 2020.
none
wp-admin/includes/meta-boxes.php:1240 type of personal relation
wp-admin/includes/meta-boxes.php:1273 type of geographical relation
wp-admin/includes/meta-boxes.php:1296 type of family relation
None
wp-includes/script-loader.php:954 ?? (term list for JavaScript)
wp-includes/media-template.php:738 Alignment
wp-includes/media-template.php:765 Embedded Player
wp-includes/media-template.php:850 Media link target
wp-includes/media-template.php:994 Alignment
wp-includes/media-template.php:1011 Media URL
wp-includes/media-template.php:1058 Alignment
wp-includes/media-template.php:1134 Media URL
wp-includes/media-template.php:1254 Preload type
wp-includes/media-template.php:1353 Preload type
wp-includes/deprecated.php:688 Dropdown categories (this string could
actually simply be replaced by the number 0)
wp-includes/js/dist/components.js:33393 ?? (minified JavaScript)
wp-includes/js/dist/block-library.js:7854 ?? (minified JavaScript)
wp-includes/js/dist/block-library.js:9029 ?? (minified JavaScript)
wp-includes/js/dist/block-library.js:21371 ?? (minified JavaScript)
For reference, I've only seen one place where _x is used, thus enabling
correct translation of the string:
None _x
wp-includes/class-wp-editor.php?marks=1336#L1336
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50087>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list