Ticket #839: inter_bbpress.patch
| File inter_bbpress.patch, 962 bytes (added by momo360modena, 4 years ago) |
|---|
-
.
18 18 require_once(BB_PATH . BB_INC . 'wp-functions.php'); 19 19 require_once(BB_PATH . BB_INC . 'functions.php'); 20 20 21 // Example, launch french translation 22 define('BB_LANG', 'fr_FR'); 23 21 24 // Only load these if we need a translation 22 25 if (defined('BB_LANG') && BB_LANG) { 23 26 require_once(BB_PATH . BB_INC . 'streams.php'); 24 27 require_once(BB_PATH . BB_INC . 'gettext.php'); 25 28 } 26 29 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 27 37 // All strings pass through gettext, but not all will get translated, BB_LANG usually isn't defined early on 28 38 require_once(BB_PATH . BB_INC . 'l10n.php'); 29 39