Making WordPress.org

Changeset 2238


Ignore:
Timestamp:
12/29/2015 08:48:13 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Misc: Load the wordcamporg text domain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r2185 r2238  
    193193add_action( 'wp_ajax_wcorg_flush_rewrite_rules_everywhere',        'wcorg_flush_rewrite_rules' ); // This isn't used by the wp-cli command, but is useful for manual testing
    194194add_action( 'wp_ajax_nopriv_wcorg_flush_rewrite_rules_everywhere', 'wcorg_flush_rewrite_rules' );
     195
     196/*
     197 * Load the `wordcamporg` text domain.
     198 *
     199 * `wordcamporg` is used by all the custom plugins and themes, so that translators only have to deal with a single
     200 * GlotPress project, and we only have to install/update a single mofile per locale.
     201 */
     202load_textdomain( 'wordcamporg', sprintf( '%s/languages/wordcamporg-%s.mo', WP_CONTENT_DIR, get_locale() ) );
Note: See TracChangeset for help on using the changeset viewer.