Make WordPress Core

Ticket #9686: 9686.patch

File 9686.patch, 736 bytes (added by hakre, 16 years ago)

'theme_locale' and 'plugin_locale' filters for theme and plugin authors.

  • wp-includes/l10n.php

     
    336336 */
    337337function load_plugin_textdomain($domain, $abs_rel_path = false, $plugin_rel_path = false) {
    338338        $locale = get_locale();
     339       
     340        $locale = apply_filters('plugin_locale', $locale, $domain);
    339341
    340342        if ( false !== $plugin_rel_path )
    341343                $path = WP_PLUGIN_DIR . '/' . trim( $plugin_rel_path, '/');
     
    362364 */
    363365function load_theme_textdomain($domain, $path = false) {
    364366        $locale = get_locale();
     367       
     368        $locale = apply_filters('theme_locale', $locale, $domain);
    365369
    366370        $path = ( empty( $path ) ) ? get_template_directory() : $path;
    367371