Make WordPress Core

Opened 8 months ago

Last modified 7 months ago

#40172 reopened defect (bug)

Search form is not translated.

Reported by: Dreamsorcerer Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: I18N Keywords:
Focuses: ui Cc:


There are 3 translatable strings for the form field found here:

But, testing against Esperanto, which is 100% translated, these strings are not getting translated.

I can see that the label and input box will be translated if you remove the context (using __() instead of _x()), but I can see there is no translation for the placeholder in the .mo file.

Change History (3)

#1 @ocean90
8 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hello @Dreamsorcerer, welcome to Trac!

Thanks for you report. I couldn't reproduce this issue. Please make sure that you have the latest translations installed. You can replace yours with the ones from https://downloads.wordpress.org/translation/core/4.7.3/eo.zip.

Themes like Twenty Seventeen are also using their own search form template so make sure that the theme translation is also updated (https://downloads.wordpress.org/translation/theme/twentyseventeen/1.0/eo.zip).

#2 @Dreamsorcerer
8 months ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

OK, I've updated the translations, and I can see the translation exists in the .mo file. But, it is still not working, in fact, it doesn't look like the admin is translated either.

I've edited (temporarily) the form in general-template.php file, and can see the changes appear on the site, so it is definitely pulling the form from there.

I've tried disabling all plugins to no effect. Which theme are you using to test this on, so I can see if it is a problem with the theme? Or, any other suggestions where I might look for this?

#3 @SergeyBiryukov
7 months ago

  • Milestone set to Awaiting Review
Note: See TracTickets for help on using tickets.