Wordpress/tools/i18n/t/data/add-textdomain-0.php
Dominik Schilling (ocean90) 78ed4e109a i18n-tools: Respect the coding standards when adding textdomains with add-textdomain.php.
Props GaryJ, groovecoder.
Fixes #21616.

git-svn-id: https://develop.svn.wordpress.org/trunk@36603 602fd350-edb4-49c9-b593-d223f7449a82
2016-02-20 21:43:51 +00:00

19 lines
529 B
PHP
Executable File

<?php
function call_some_i18n_methods() {
__( 'Hello World' );
_e( 'Hello World' );
_n( 'Single', 'Plural', 1 );
_n_noop( 'Single Noop', 'Plural Noop', 1 );
_x( 'Hello World', 'Testing' );
_ex( 'Hello World', 'Testing' );
_nx( 'Hello World', 'Testing' );
_nx_noop( 'Hello World Noop', 'Testing' );
esc_attr__( 'Attribute' );
esc_html__( 'HTML' );
esc_attr_e( 'Attribute' );
esc_html_e( 'HTML' );
esc_attr_x( 'Attribute', 'Testing' );
esc_html_x( 'HTML', 'Testing' );
translate_nooped_plural( 'Plural Noop', 2 );
}