Ticket #839: inter_bbpress.patch

File inter_bbpress.patch, 962 bytes (added by momo360modena, 4 years ago)
  • .

     
    1818        require_once(BB_PATH . BB_INC . 'wp-functions.php'); 
    1919        require_once(BB_PATH . BB_INC . 'functions.php'); 
    2020         
     21        // Example, launch french translation 
     22        define('BB_LANG', 'fr_FR'); 
     23         
    2124        // Only load these if we need a translation 
    2225        if (defined('BB_LANG') && BB_LANG) { 
    2326                require_once(BB_PATH . BB_INC . 'streams.php'); 
    2427                require_once(BB_PATH . BB_INC . 'gettext.php'); 
    2528        } 
    2629         
     30        // Define the language file directory 
     31        if ( !defined('BB_LANG_DIR') ) 
     32                if ( defined('BBLANGDIR') ) // User has set old constant 
     33                        define('BB_LANG_DIR', BBLANGDIR); 
     34                else 
     35                        define('BB_LANG_DIR', BB_PATH . BB_INC . 'languages/'); // absolute path with trailing slash 
     36         
    2737        // All strings pass through gettext, but not all will get translated, BB_LANG usually isn't defined early on 
    2838        require_once(BB_PATH . BB_INC . 'l10n.php'); 
    2939