Added to the functions.php
the next:
$pather = get_stylesheet_directory().'/languages';
load_child_theme_textdomain( 'Savia-child', $pather );
And then called it as:
__( 'text to translate', 'Savia-child');
In the child theme I have created a dir: /languages
and put there po
and mo
files with the names: [locale].po/.mp
like: ru_RU.po
and ru_RU.mo
.
That is.
Related Posts:
- How to get a translated string from a language other than the current one?
- How to get a localized version of WordPress from a repository?
- Working with l10n contexts (_x etc)
- How to escape the single quote character in i18n translation strings?
- How to escape single and plural i18n text strings?
- What are the most used WordPress localization?
- Difference between 2 internationalization (i18n) functions __() & _e()
- Localization works but still get “This plugin is not properly prepared for localization” msg in directory
- How to load theme textdomain from plugin?
- get_the_date() for translating date format
- Should i use _n for pronouns in translation?
- POEdit with Custom mu-plugins code
- How does WordPress choose which translation file to use?
- Proper way to create / manage gettext (.po, .pot) files?
- Should I include colon in my msgid in PO file?
- _e() function get text_string from function
- Translations not returning translated strings
- Force translated language on front
- Translating dynamic strings
- WordPress translation loading english file
- Easy export/import of data for Translation
- WordPress Theme .mo-file won’t load
- How to become a translator on wordpress.org?
- Translation from .mo file not working in theme
- Localization, escape html elements mid-sentence
- WordPress localization – gettext and git
- Can I set WordPress to display languages based on system language without a plugin?
- /languages/ folder missing in default themes
- WordPress Translations
- Post types translation
- Translate arguments of a user added custom code [closed]
- Internationalize plugin so strings can be translated in WPML [closed]
- localization of theme and plugins to English (originally in another language)
- Interface translation without plugins
- Plugin localization persistance (woocommerce)
- WordPress Localization error within return value
- Custom theme .mo translation file not working
- Plugin translation not displaying
- WordPress translation
- Tweak the loop for translation
- Translating form labels shortcode output
- Website Language/Locale Switching
- .po file is loaded but changes are not appearing
- Translate a plugin using .po .mo files
- Override default WordPress core translation
- How to print translation supported text with HTML URL
- How to integrate get_post_time with date_i18n function?
- How to debug failed load_theme_textdomain()?
- How to provide translations for a WordPress TinyMCE plugin?
- How do translated, escaped strings (esc_attr) in Themes work?
- How do I translate: “2 hours and 15 minutes”?
- Best pratice to make taxonomy terms translatable without changing slugs?
- List of Default Translated Phrases
- How to extract translatable (double underscores and _e) strings?
- Translate content, not instance, per-post
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Localization / textdomain is slow and chaotic
- Change language of comments template
- Make theme translatable for WPML
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Use WordPress default text domain for translating labels
- Override plugin text domain in child theme
- Should I always prefer esc_attr_e & esc_html_e instead of _e?
- Replacing strings within posts with the translatable string
- Change template copy with po/mo files
- Action hook load_textdomain $domain variable
- Can’t generate pot file using wp cli
- How to avoid override string by child theme mo files when the string is empty?
- How to translate timestamp?
- Should I change text-domain of TGM library inside theme?
- Add a string to file .pot using Poedit
- Use the wp-admin translations on the front end
- How can I change the language of automated Mails?
- How to translate get_intermediate_image_sizes?
- Localization: I want the backend: english and frontend in defined language
- How to translate a string that contains a WordPress sitename
- Does the textdomain have to be the theme’s name?
- WordPress Translation Issue
- How to translate “$before” with get text in get_the_term_list?
- Plugin language always shows WP site language, not profile language
- Found a translation function that is missing a text-domain. Function _n
- Programmatically choose language for translation
- String translation for esc_html__() when registering string [closed]
- how to unlocalize theme/plugin?
- __() function inside html tags
- How to do translations in WordPress?
- Qtranslate-X get raw post title value
- WooCommerce does not translate every string
- Menu names not getting translated
- Translation not working for Constant strings in Plugin
- Debug WordPress gettext function
- qtranslate loading the wrong language
- issue in translating a wordpress them
- Understanding WordPress Default Theme – twentyfifteen.1.4 >> Languages Folder
- translate_user_role doesn’t work
- Adding a translation phrase to WordPress Theme
- Translation not working in sprinf variable
- GlotPress – WordPress integration
- WordPress NavXT plugin localization
- Archive widget numbers translation?