#11270 closed defect (bug) (fixed)
Punctuation isn't properly internationalised
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.4 | Priority: | normal |
| Severity: | normal | Version: | 2.9 |
| Component: | I18N | Keywords: | has-patch gsoc |
| Focuses: | Cc: |
Description
Punctuation should be included in i18n strings, because it is often quite different in foreign languages.
For example, there are several places where exclamation marks are not internationalised.
However, languages such as Spanish also have an exclamation mark at the beginning of the question, whilst there may be languages which do not sue it at all.
An example of this is in wp-admin/comment.php, where the following appears repeatedly :
sprintf(' <a href="%s">'.__('Go back').'</a>!', ...)
Correct alternatives are :
sprintf(' <a href="%s">'.__('Go back!').'</a>', ...)
Or, if you want to keep the punctuation out of the link :
sprintf(__('<a href="%s">Go back</a>!'), ...)
There are other similar i18n punctuation problems scattered throughout WP.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
I went through allof 4093 items containing translations (!!), found only two cases