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:
parent
1e1ac57375
commit
3c88ac14ee
@ -20,6 +20,7 @@ class AddTextdomain {
|
||||
function __construct() {
|
||||
$makepot = new MakePOT;
|
||||
$this->funcs = array_keys( $makepot->rules );
|
||||
$this->funcs[] = 'translate_nooped_plural';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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');
|
||||
}
|
@ -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 );
|
||||
}
|
Loading…
Reference in New Issue
Block a user