It is better to use gettext calls, according to WPML Guidelines.
Related Posts:
- Make theme translatable for WPML
- WPML Translated Term
- Should I include colon in my msgid in PO file?
- WPML custom string translation get outside of container
- How can I see my theme’s text domain?
- English version of my site show french strings [closed]
- How to translate “$before” with get text in get_the_term_list?
- Can I set WordPress to display languages based on system language without a plugin?
- Translate arguments of a user added custom code [closed]
- WPML icl_register_string() throws fatal error but works [closed]
- Internationalize plugin so strings can be translated in WPML [closed]
- Making WP theme / plugin multii-lingual without plugins
- Translate string inside twig template
- WPML & Events Manager translatable fields after duplication
- How to find posts that are missing translation? (wpml)
- Override default WordPress core translation
- How to get a translated string from a language other than the current one?
- Custom strings for translation using Polylang plugin
- Working with l10n contexts (_x etc)
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- How to debug failed load_theme_textdomain()?
- How to handle text with function __(?
- How do I translate: “2 hours and 15 minutes”?
- Disabling Translation Update
- Gettext details
- How to save a translation of a plugin in “CodeStyling Localization”?
- Set language per post
- List of Default Translated Phrases
- How to extract translatable (double underscores and _e) strings?
- How to set locale in ajax requests?
- Translate content, not instance, per-post
- How to load theme textdomain from plugin?
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- get_the_date() for translating date format
- Custom translation of Month names
- Ajax – gettext without a plugin
- How to add translation for a string
- New plugin translation does not work
- POEdit with Custom mu-plugins code
- Make changes to translation?
- Gutenberg not all editor text translated
- How does WordPress choose which translation file to use?
- Is this a correct usage of esc_html_e?
- How to set translations in javascripts for my plugin?
- translating wordpress with poedit
- Replacing strings within posts with the translatable string
- Theme localization in WPML – .mo file error [closed]
- Change template copy with po/mo files
- Implementing conditional gettext translation
- Default string not appearing want to translate
- Translations not returning translated strings
- Can’t generate pot file using wp cli
- How to Translate a string of an array inside a class?
- How to translate timestamp?
- How to override default WordPress core language file
- Translate pages and URLs without duplicating
- How can you locate the .po file used for translation of a page?
- How to translate WordPress Emails?
- Add a string to file .pot using Poedit
- Fixed values for same post translations
- Translating dynamic strings
- How do I troubleshoot translation issues?
- Easy export/import of data for Translation
- How to change a word in theme?
- Using _e() or __() to translate text with div
- Is it best practice to use English as the base of a translation-ready theme?
- WordPress Translation Issue
- Using wordpress translations strings in plugin
- Using Variable in WordPress Translate Functions
- WordPress localization – gettext and git
- Get Text Domain For Transalation
- Found a translation function that is missing a text-domain. Function _n
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- Fix Problem With Textdomain Translation
- /languages/ folder missing in default themes
- Translate a child theme with pure PHP and gettext
- WordPress Translations
- Trying to localize a Underscores starter theme [duplicate]
- mo / po translation files does not seem to work
- Problem with Language translation
- Translate custom template with WPML
- localization of theme and plugins to English (originally in another language)
- POT file generated using WP-CLI does not retrieve strings from translation functions with FQN (Qualifier)
- Using wp-cli to create a .pot file that interprets .twig files as well
- Changing text for “Continue reading…” translation
- Can’t translate child theme
- Translate wordpress without duplicate custom post
- How to Convert Date to Thai
- WordPress does not translate
- How to use translation functions inside WordPress page
- Translate Plugin with french as base language
- WordPress translation
- Tweak the loop for translation
- String translation with or without po file
- Translating “comments”, “leave a comment”, “prev”, “next”, “share”
- Website Language/Locale Switching
- Can’t load text domain in a mu-plugin
- multisite same language different translation
- Translate via URL parameter working only in localhost