From 606c88fe75ca66de9ff1ad51b160000f6fb8b0b5 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 31 Jan 2015 20:27:16 +0000 Subject: [PATCH] i18n tools: Exclude wp-includes/class-pop3.php in wp_frontend(). The external library uses the underscore alias for the native gettext() function. Makepot extracts these strings too, which results in having 25 unused translations. fixes #31179. git-svn-id: https://develop.svn.wordpress.org/trunk@31315 602fd350-edb4-49c9-b593-d223f7449a82 --- tools/i18n/makepot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/i18n/makepot.php b/tools/i18n/makepot.php index 2c00e14de9..cdbcbf9f57 100644 --- a/tools/i18n/makepot.php +++ b/tools/i18n/makepot.php @@ -247,7 +247,7 @@ class MakePOT { return $this->wp_generic( $dir, array( 'project' => 'wp-frontend', 'output' => $output, 'includes' => array(), - 'excludes' => array( 'wp-admin/.*', 'wp-content/themes/.*' ), + 'excludes' => array( 'wp-admin/.*', 'wp-content/themes/.*', 'wp-includes/class-pop3\.php' ), 'default_output' => 'wordpress.pot', ) ); }