Making WordPress.org

Changeset 6943


Ignore:
Timestamp:
03/27/2018 07:48:55 PM (8 years ago)
Author:
coreymckrill
Message:

WP15: Load the wp15 textdomain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wp15.wordpress.net/public_html/content/mu-plugins/locales.php

    r6941 r6943  
    1515
    1616require_once trailingslashit( dirname( __FILE__ ) ) . 'locale-detection/locale-detection.php';
     17
     18/**
     19 * Load the wp15 textdomain.
     20 */
     21function textdomain() {
     22    $path   = WP_LANG_DIR . '/wp15';
     23    $mofile = 'wp15-' . get_locale() . '.mo';
     24
     25    load_textdomain(
     26        'wp15',
     27        $path . '/' . $mofile
     28    );
     29}
     30
     31add_action( 'plugins_loaded', __NAMESPACE__ . '\textdomain' );
    1732
    1833/**
Note: See TracChangeset for help on using the changeset viewer.