As per Theme Handbook ⇒ Internationalization, you should call load_child_theme_textdomain()
from within the after_setup_theme
hook:
function load_greattheme_textdomain() {
load_child_theme_textdomain( 'greattheme', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'load_greattheme_textdomain' );
Make sure you name your *.mo and *.po files properly (follow the link above).
Related Posts:
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Best WordPress Localization Plugin? [closed]
- qTranslate get content by language [closed]
- How to determine current active language in qtranslate plugin? [closed]
- WPML: getting page title in different language
- Titles in my sidebar widget appear in all languages – with qtranslate
- Having two different versions of the same post?
- What is better for wordpress performace?
- WordPress | Sub-domain switching
- Checking current language in a function
- 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?
- 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
- Translations does not work with .pot file
- Put an extra check box on “Page Attributes” widget
- Trigger language change in WordPress
- How to change language file used by _e function
- Get Polylang available languages on admin page of my plugin [closed]
- How to change language?
- Polylang get non-current language/s
- Why isn’t WMPL correctly redirecting users based on browser language? [closed]
- WordPress multilingual site using page-id.php files
- How to find a language direction?
- Getting translated string through a variable
- Two different domains for two different languages
- 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
- How can I make a site viewable in multiple languages?
- Using categories as multilingual mechanism
- ‘Trick’ a plugin (WP-Members) to think the blog language has changed for a single page
- Were the language toggles removed from WP recently?
- Is it possible to temporarily override the language setting?
- 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
- How to have multiple site (UI) languages?
- How to make a wordpress site multilingual by uploading a translated CSV file that has the traslations?
- can’t change a few lines of text to another language
- Country switcher, then option to choose language for that country [closed]
- WordPress Multilinigual
- how to remove language selection option from wordpress?
- Get the ID of the default language equivalent page in Polylang [closed]
- Switch site language to en_ZA
- Where to modify translation files by _e()
- Multilingual website without third-party plugin
- I display messages using code snippets but how can I use the right language?
- How to set a dual language site in wordpress?
- WPML customizing language selector [closed]
- Translating my custom theme, always translated version?
- WordPress and Localization
- Website in multiple Language
- Problems character encoding for pages in multiple languages
- Changing interface language without multisite
- WPML language tags (Qtranslate feature) [closed]
- WordPress Relative Path
- WordPress page with non-English text
- Redirection plugin and Chinese URLs
- WP E-commerce wpml translation or multilingual
- For multiple languages, two wordpress instances on subdomains or a plugin?
- I cant test my .po file for Turkish Language
- how to change fonrs for Indian reqgional language?
- Multilingual website with different content and look
- Language setting for Specific WordPress Page
- How to add language tags like “” in just some certain pages?
- Localisation and WordPress
- Multilanguage backend interface
- 2 languages, 3 domains
- How to make a wordpress blog in two different languages?
- how to remember specific action/event for current user?
- Multi Language and Multi Theme WordPress
- WordPress multi language works in local host but not in the live site?
- Create a custom page to use in all the sites, A multisite question
- Japanese characters not showing properly
- How to load rtl.css file without changing lanuage to persian in wordpress?
- Theme isn’t multilanguage ready. How can i still add a second language to the site?
- Which language files are loaded?
- Having a two language website
- What are the downsides to uploading filenames in different languages?
- Translation not working in sprinf variable
- Hijack site url on sub domain for translation
- Create a category in different language?
- Translate placeholder text in search field
- Having problem in using wordpress with an other language
- Multi language site using only .mo and WPLANG
- Multilingual website suggestions
- get_categories only getting categories in the main language
- multi-language WordPress site
- What is the best option to convert my WordPress website to French Language?
- category title and description in multi language issue
- site with two diffrent menus for difftent pages?
- white space appears when switch to rtl
- How to make WP in two languages (e.g. English & Bengali) without plugins