Reputation
Next privilege 200 Rep.
See reduced ads
Badges
1 12
Impact
~11k people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
Aug
17
comment Localization Problem: Doesn't Display Translated Words
load_plugin_textdomain() always seems to return false. According to the documentation of the function, "On failure returns null and also on success returns nothing." Does this mean that if it loads a language file then returns true? "returns nothing" mean returns true, not false?
Aug
17
comment Localization Problem: Doesn't Display Translated Words
Okey, I created a .mo file as well but it doesn't translate. I also tried lowercase text domain. It did not help either. Also there was an error in my code: add_action('int', 'localizationsample_init'); had to be corrected to add_action('init', 'localizationsample_init'); Also load_plugin_textdomain() does not return a value so checking if it is loaded with your suggested method does not seem to work.