Skip to content

Commit

Permalink
Move translations folder outside plugin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
G3ronim0 committed Jun 14, 2016
1 parent 828f99d commit f983950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpt-tx-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
define( 'WPTXU_URL_ASSETS_JS', WPTXU_URL_ASSETS . 'js/' );
define( 'WPTXU_URL_ASSETS_IMG', WPTXU_URL_ASSETS . 'img/' );

define( 'WPTXU_CONTENT_PATH', WPTXU_PATH . 'languages' );
define( 'WPTXU_CONTENT_PATH', WP_CONTENT_DIR . '/wpt-tx-updater' );

/**
* Tell WP what to do when plugin is loaded
Expand Down Expand Up @@ -88,7 +88,7 @@ function wptxu_load_plugin_textdomain() {
foreach ( $domains as $domain ) {
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );

load_plugin_textdomain( $domain, false, plugin_basename( dirname( __FILE__ ) ) . '/languages/plugins/' . $domain . '/' . $locale . '/' );
load_textdomain( $domain, WPTXU_CONTENT_PATH . '/plugins/' . $domain . '/' . $locale . '/' . $domain . '-' . $locale . '.mo' );

}
}
Expand Down

0 comments on commit f983950

Please sign in to comment.