load_default_textdomain [ WordPress Function ]
load_default_textdomain ( No parameters )
| Defined at: |
|
Soorgelijke functies: load_textdomain, load_muplugin_textdomain, load_theme_textdomain, load_plugin_textdomain, unload_textdomain
Loads default translated strings based on locale.
Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The translated (.mo) file is named based on the locale.
Source
<?php
function load_default_textdomain() {
$locale = get_locale();
load_textdomain( 'default', WP_LANG_DIR . "/$locale.mo" );
if ( ( is_multisite() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) ) && ! file_exists( WP_LANG_DIR . "/admin-$locale.mo" ) ) {
load_textdomain( 'default', WP_LANG_DIR . "/ms-$locale.mo" );
return;
}
if ( is_admin() )
load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" );
if ( is_network_admin() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) )
load_textdomain( 'default', WP_LANG_DIR . "/admin-network-$locale.mo" );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/load default textdomain « WordPress Codex
Description. Loads default translated strings based on locale. Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The translated (.mo) file ...
codex.wordpress.org - WordPress › Support » Tags — load_default_textdomain
Forums. Username or Email Address Password (forgot?) Register · WordPress › Support » load_default_textdomain. Tag: load_default_textdomain Add New » ...
wordpress.org - #7378 (load_default_textdomain() should use WP_LANG_DIR ...
Description. load_default_textdomain() uses the old LANGDIR constant rather than WP_LANG_DIR. Change History. comment:1 ryan — 4 years ago ...
core.trac.wordpress.org - load_default_textdomain() Error when accessing bb-admin - bbPress
"Fatal error: Call to undefined function load_default_textdomain() in S:\Dev\ xampp\htdocs\blog\forums\bb-settings.php on line 143". I get this ...
bbpress.org