Make WordPress Core

Opened 3 years ago

Closed 8 days ago

#50795 closed defect (bug) (worksforme)

Strings are not automatically translated

Reported by: barboocha's profile Barboocha Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.4.2
Component: I18N Keywords: close
Focuses: Cc:

Description

Hi,

I have a problem with translation to Czech. Validation messages after submitting a new comment are not translated and I am not able to do that anywhere as you can see here: http://www.awesomescreenshot.com/image/5090457/eed10a634f3748b66ee0033cf88031f8

String should automatically be translated if my site language is set to Czech, right? However I just tested it and I can see it's not getting translated even when Czech is set as the site language.

I tried switching over to the default WordPress theme TwentyTwenty and the same thing happens here, so there must be something wrong with the translation.

Could you please help?

Thank you in advance.

Change History (6)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to I18N

#2 follow-up: @justinahinon
3 years ago

  • Keywords close added

Welcome on Trac @Barboocha. Thanks for opening this.

I've looked at the code for the string here http://develop.svn.wordpress.org/trunk/src/wp-includes/comment.php at line 3503, and it is well escaped; meaning that this is not a bug.

It's still showing in English on your site because the translation for this particular string was not done in the version of WordPress you were using when you opened this ticket, 5.4.2.

The string is now translated (see https://translate.wordpress.org/projects/wp/dev/cs/default/?filters[term]=please+fill+the+required+fields) and will probably appears in Czech on your website in the future releases of WordPress.

#3 in reply to: ↑ 2 ; follow-up: @SergeyBiryukov
3 years ago

Replying to justinahinon:

It's still showing in English on your site because the translation for this particular string was not done in the version of WordPress you were using when you opened this ticket, 5.4.2.

The string is now translated (see https://translate.wordpress.org/projects/wp/dev/cs/default/?filters[term]=please+fill+the+required+fields) and will probably appears in Czech on your website in the future releases of WordPress.

Hmm, that translation was added 8 years ago, on 2012-01-24 22:05:37 GMT, and should be present in WordPress 5.4.2 (released two months ago), so I suspect something else might be at play here. I haven't tried to reproduce yet, though.

#4 in reply to: ↑ 3 @justinahinon
3 years ago

  • Keywords close removed

Replying to SergeyBiryukov:

Hmm, that translation was added 8 years ago, on 2012-01-24 22:05:37 GMT, and should be present in WordPress 5.4.2 (released two months ago), so I suspect something else might be at play here.

Oh my bad sorry.

I haven't tried to reproduce yet, though.

On my side, I was able to reproduce the issue.

I've also tested on a ten or so locales with 5.4.2. In addition to the cs_CS locale, I've found that on uz_UZ locale also, this particular keep showing in English while it's translated on https://translate.wordpress.org. I assume there should be others locales with the same issue.

#5 @swissspidy
9 months ago

  • Keywords close added

Unable to reproduce this.

#6 @swissspidy
8 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.