Skip to content

Commit

Permalink
Add textdomain loading to allow localization
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-mendonca committed Apr 15, 2015
1 parent 0f72732 commit cb1439e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion one-click-child-theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-click-child-theme
//Domain Path:
Domain Path: /languages
**************************************************************************/
/* Copyright 2011-2015 terry chay (email : [email protected])
Expand All @@ -33,6 +33,13 @@
* Performance: One-Click Child Theme is only active in admin page
*/
if (!is_admin()) { return; }
/**
* Load textdomain
*/
function _load_textdomain() {
load_plugin_textdomain( 'one-click-child-theme', false, basename(dirname(__FILE__)) . '/languages' );
}
add_action( 'init', '_load_textdomain' );
/**
* The namespace for the One-Click Child Theme Plugin
*/
Expand Down

0 comments on commit cb1439e

Please sign in to comment.