bpgrsugls_textdomain

The BP Groups Suggestions bpgrsugls textdomain function.

Description

bpgrsugls_textdomain(); 

Usage

  1. if ( !function_exists( 'bpgrsugls_textdomain' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groups-suggestions/loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bpgrsugls_textdomain(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/loader.php  
  1. function bpgrsugls_textdomain() { 
  2. $locale = get_locale(); 
  3.  
  4. // First look in wp-content/languages, where custom language files will not be overwritten by upgrades. Then check the packaged language file directory. 
  5. $mofile_custom = WP_CONTENT_DIR . "/languages/bp_group_suggestions_ls-$locale.mo"; 
  6. $mofile_packaged = BP_GROUP_SUGGESTIONS_LS_DIR . "languages/bp_group_suggestions_ls-$locale.mo"; 
  7.  
  8. if (file_exists($mofile_custom)) { 
  9. load_textdomain('bp_group_suggestions_ls', $mofile_custom); 
  10. return; 
  11. } else if (file_exists($mofile_packaged)) { 
  12. load_textdomain('bp_group_suggestions_ls', $mofile_packaged); 
  13. return;