i18n tools: Add the text domain to translate_nooped_plural() calls as well.

Fixes #34126 props jrf.


git-svn-id: https://develop.svn.wordpress.org/trunk@36390 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2016-01-24 15:28:40 +00:00
parent 1e1ac57375
commit 3c88ac14ee
3 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class AddTextdomain {
function __construct() {
$makepot = new MakePOT;
$this->funcs = array_keys( $makepot->rules );
$this->funcs[] = 'translate_nooped_plural';
}
/**

View File

@ -14,4 +14,5 @@ function call_some_i18n_methods() {
esc_html_e( 'HTML' , 'test-domain');
esc_attr_x( 'Attribute', 'Testing' , 'test-domain');
esc_html_x( 'HTML', 'Testing' , 'test-domain');
translate_nooped_plural( 'Plural Noop', 2 , 'test-domain');
}

View File

@ -14,4 +14,5 @@ function call_some_i18n_methods() {
esc_html_e( 'HTML' );
esc_attr_x( 'Attribute', 'Testing' );
esc_html_x( 'HTML', 'Testing' );
translate_nooped_plural( 'Plural Noop', 2 );
}