Wordpress/tools/i18n/t/data/add-textdomain-0-result.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
754 B
PHP
Executable File

<?php
function call_some_i18n_methods() {
__( 'Hello World', 'test-domain' );
_e( 'Hello World', 'test-domain' );
_n( 'Single', 'Plural', 1, 'test-domain' );
_n_noop( 'Single Noop', 'Plural Noop', 1, 'test-domain' );
_x( 'Hello World', 'Testing', 'test-domain' );
_ex( 'Hello World', 'Testing', 'test-domain' );
_nx( 'Hello World', 'Testing', 'test-domain' );
_nx_noop( 'Hello World Noop', 'Testing', 'test-domain' );
esc_attr__( 'Attribute', 'test-domain' );
esc_html__( 'HTML', 'test-domain' );
esc_attr_e( 'Attribute', 'test-domain' );
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' );
}