Problem with localization (fix suggested)
-
Hello,
There are several strings than can’t be translated (like ‘Courses’ and ‘Lessons’ from the admin menu) because they are loaded before the loading of the textdomain.
Possible solutions:
1. You can move theload_plugin_textdomain
function from namste-model.php to the begining ofnamaste.php
2. You can move up
add_action('init', array("NamasteLMS", "init"));
so first the textdomain is loaded and then everything else. (it is just this that I’m not sure if there are any functions that will require anything else to be loaded before this.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem with localization (fix suggested)’ is closed to new replies.