Changeset 12840
- Timestamp:
- 01/26/2010 05:25:31 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
l10n.php (modified) (1 diff)
-
ms-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r12733 r12840 384 384 385 385 /** 386 * Load the translated strings for a plugin residing in the mu-plugins dir. 387 * 388 * @since 3.0 389 * 390 * @param string $domain Unique identifier for retrieving translated strings 391 */ 392 function load_muplugin_textdomain($domain, $path = false) { 393 $locale = get_locale(); 394 if ( empty($locale) ) 395 $locale = 'en_US'; 396 397 /* @todo $path is not used. Was it ever used and was it expected to be an arbitrary absolute dir? 398 * Ideally, it should be relative to WPMU_PLUGIN_DUR. 399 if ( false === $path ) 400 $path = WPMU_PLUGIN_DIR; 401 */ 402 403 $mofile = WPMU_PLUGIN_DIR . "/$domain-$locale.mo"; 404 load_textdomain($domain, $mofile); 405 } 406 407 /** 386 408 * Loads the theme's translated strings. 387 409 * -
trunk/wp-includes/ms-functions.php
r12839 r12840 5 5 * @package WordPress 6 6 */ 7 8 function load_muplugin_textdomain($domain, $path = false) {9 $locale = get_locale();10 if ( empty($locale) )11 $locale = 'en_US';12 13 if ( false === $path )14 $path = WPMU_PLUGIN_DIR;15 16 $mofile = WPMU_PLUGIN_DIR . "/$domain-$locale.mo";17 load_textdomain($domain, $mofile);18 }19 7 20 8 // @todo use update_blog_details
Note: See TracChangeset
for help on using the changeset viewer.