-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add textdomain loading to allow localization
- Loading branch information
1 parent
0f72732
commit cb1439e
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]) | ||
|
@@ -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 | ||
*/ | ||
|