Just as any regular string, you can use
<?php esc_attr_e( 'Your Search term here', 'your_theme_slug' ); ?>
So your code for the <input>
would look like
<input type="search" class="search-field" placeholder="<?php
esc_attr_e( 'Your Search term here', 'your_theme_slug' );
?>" value="<?php
echo esc_attr( $search );
?>" name="s">
WPML, as well as WordPress, uses the PHP get_text()
function. You can translate this either with the additional String Translation Plugin, or you create a mo/po file for your theme.
Related Posts:
- WPML language tags (Qtranslate feature) [closed]
- WordPress Translation to french, at -> à not working
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Best WordPress Multi-language Plugin? [closed]
- Setting WPLANG from a plugin
- WPML: getting page title in different language
- Titles in my sidebar widget appear in all languages – with qtranslate
- What is better for wordpress performace?
- Checking current language in a function
- Translations does not work with .pot file
- Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]
- Why isn’t WMPL correctly redirecting users based on browser language? [closed]
- WordPress For Urdu Language
- WordPress multilingual site using page-id.php files
- Getting translated string through a variable
- ‘Trick’ a plugin (WP-Members) to think the blog language has changed for a single page
- How to translate WordPress Emails?
- Country switcher, then option to choose language for that country [closed]
- Specific content by country in multiple languages
- WPML customizing language selector [closed]
- Translating my custom theme, always translated version?
- Website in multiple Language
- Transposh Japanese language transaltion not showing up
- WP-e-commerce (getshopped) Hebrew language files – where can I get them? [closed]
- Structure of multilingual and multiregional directory listing website for translation
- Is there a way to ensure browser automatically translates page content to another language (via Google Translate)?
- Theme isn’t multilanguage ready. How can i still add a second language to the site?
- Setting WPLANG from a plugin
- Translation not working in sprinf variable
- How to translate the blog date in the Avada theme [closed]
- Open Source replacement for WPML? [closed]
- Best WordPress Localization Plugin? [closed]
- How to get a translated string from a language other than the current one?
- qTranslate get content by language [closed]
- Localization: I want the backend: english and frontend in defined language
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- gettext does not translate when called in ajax
- How to debug failed load_theme_textdomain()?
- why is translation not working on theme?
- How to determine current active language in qtranslate plugin? [closed]
- Changing the language of a single page
- Gettext details
- Best pratice to make taxonomy terms translatable without changing slugs?
- Force Plugin to English Translation
- Having two different versions of the same post?
- Set language per post
- WordPress | Sub-domain switching
- Make a custom theme translate-ready
- What is the purpose of adding a .po file?
- detect the language a post is written in
- Does changing ‘WPLANG’ in wp-config.php just effect the admin language or does it have other consequences?
- WPML Get url without outputting
- Is there a way to localize role labels?
- How to add just one page in Arabic
- Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?
- One of the messages in .po file doesn’t show up
- Multi-language module in WordPress or Google sites
- Put an extra check box on “Page Attributes” widget
- Trigger language change in WordPress
- How to change language file used by _e function
- Make theme translatable for WPML
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- Get Polylang available languages on admin page of my plugin [closed]
- How to tell a theme to use different .mo and .po files?
- How to change language?
- Polylang get non-current language/s
- Language Translation is not working?
- How to find a language direction?
- How to have english digits in some posts with an rtl WordPress theme
- How WordPress knows where to find locale files?
- Two different domains for two different languages
- Prepare plugin options for multi-lingual support
- What is the correct way for multi-domain and multi-language website?
- How to change the language of the ‘Reset Password’ page
- How to reload wordpress textdomains at runtime
- Two language versions for each article
- WPML Translated Term
- How can I make a site viewable in multiple languages?
- How to set up WPLANG in wp-config.php for 4 languages?
- Fetch ID’s associated with a custom post type when translated with WPML?
- Using categories as multilingual mechanism
- Theme localization in WPML – .mo file error [closed]
- Were the language toggles removed from WP recently?
- WordPress Multilingual Theme using Multisite
- Should I include colon in my msgid in PO file?
- WPML custom string translation get outside of container
- How to add LTR to a custom theme which in RTL by default
- Default string not appearing want to translate
- WPML Default Language User Meta [closed]
- Is it possible to temporarily override the language setting?
- make a mulitingual wordpress website Arabic-english
- How to use language files in plugins?
- How to find when qtranslate plugin’s language changes? [closed]
- conditional (theme) language selection at ‘runtime’
- Simple Multilanguage Switcher
- A simple method for disabling WPML language switcher when meeting specific circumstances [closed]
- How to force change Network site multi language subdirectory base URL?
- How to save post with different languages and linked them with WPML?
- Custom rewrite rules not working with WPML