How to debug load_textdomain?

Would have loved to know that beforehand. Here is the solution to my problem, so others that are stuck might not be stuck on this for hours. WPML has a String Translation plugin. If it is activated, it seems that it passes before the load_textdomain in priority. And so, load_textdomain works in loading the file … Read more

load_plugin_text_domain() never works

why did u write $path: and not $path= in your first function code? Wait forget it, you have to privde the relative path, you’re providing the full path.. When using load_plugin_textdomain, you gotta use your plugin folder + your language files folder only; so if your language files are inside wp-content/plugins/your-plugin/languages, use load_plugin_textdomain( ‘your-plugin’, false, … Read more

What is the correct naming procedure of text domain, directory and theme name?

From https://developer.wordpress.org/themes/functionality/internationalization/ Themes that are hosted on WordPress.org the text domain must match the slug of your theme URL (wordpress.org/themes/). This is needed so that the translations from translate.wordpress.org work correctly. The text domain name must use dashes and not underscores and be lowercase. For example, if the theme’s name My Theme is defined in the style.css or it is … Read more

tech