Load textdomain in the website, not in the admin, based on user settings not general settings
Load textdomain in the website, not in the admin, based on user settings not general settings
Load textdomain in the website, not in the admin, based on user settings not general settings
Using Number in Text domain
Thanks all friends. Finally i found the problem. i must use fa_IR.mo instead of fa_IR.MO
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
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
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