#46277 closed defect (bug) (fixed)
Remove trailing space from strings
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1.1 | Priority: | normal |
Severity: | minor | Version: | 5.1 |
Component: | I18N | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
[43436] introduced new strings to plugins install table that are displayed when plugin is requiring higher version of WordPress or PHP than one currently installed.
Problem is that three strings (sentences) end with trailing space. That's done because after those sentences there might be another sentence if logged in user has necessary capability.
This is wrong way to do. Translators might not notice trailing space, and certainly don't know that this is done on purpose without looking at source code first.
Attached patch fixes this.
Attachments (1)
Change History (12)
This ticket was mentioned in Slack in #core-i18n by lukecarbis. View the logs.
6 years ago
This ticket was mentioned in Slack in #polyglots by lukecarbis. View the logs.
6 years ago
This ticket was mentioned in Slack in #core by lukecarbis. View the logs.
6 years ago
This ticket was mentioned in Slack in #core by pbiron. View the logs.
6 years ago
#9
@
6 years ago
46277.diff looks good to me and is consistent with many other similar instances in core. Good catch, @dimadin!
Won't this still cause problems for languages that don't separate sentences with a leading space?
Maybe while updating here we could think of some HTML structure that would help eliminate the awkward whitespace in the translation?
Or, although it feels arduous to repeat strings, in similar situations I've doubled the strings so that the translators can get atomic units of text to work with and make sentence splits as is appropriate for their language. this doesn't feel good as a programmer but it does resolve the kinds of translation bugs introduced by mixing translated strings with untranslated strings and with concatenating translated strings.