How to translate search button

Maikel

MD support
Messages
163
Reaction score
76
The default string to translate for the search button in MD is "Search the website".

Schermafbeelding_2020-05-22_om_14_03_48.png
 

Alex

MD developer
Messages
4,883
Reaction score
1,138
Great looking site so far!

The string you are referring to in your screenshot is output with this in the MD searchform.php file:

PHP:
$label = sprintf( __( 'Search %s...', 'md' ), $source );
and based on the name of the current post type the search box is on, the $source variable is populated by other strings:

PHP:
$source = __( 'Blog', 'md' );
$source = __( 'this website', 'md' );
Between these three strings you should be fine to translate the search box as needed.
 
Top