Make WordPress Core


Ignore:
Timestamp:
02/20/2016 09:43:51 PM (9 years ago)
Author:
ocean90
Message:

i18n-tools: Respect the coding standards when adding textdomains with add-textdomain.php.

Props GaryJ, groovecoder.
Fixes #21616.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/i18n/t/data/add-textdomain-0-result.php

    r36390 r36603  
    11<?php
    22function call_some_i18n_methods() {
    3     __( 'Hello World' , 'test-domain');
    4     _e( 'Hello World' , 'test-domain');
    5     _n( 'Single', 'Plural', 1 , 'test-domain');
    6     _n_noop( 'Single Noop', 'Plural Noop', 1 , 'test-domain');
    7     _x( 'Hello World', 'Testing' , 'test-domain');
    8     _ex( 'Hello World', 'Testing' , 'test-domain');
    9     _nx( 'Hello World', 'Testing' , 'test-domain');
    10     _nx_noop( 'Hello World Noop', 'Testing' , 'test-domain');
    11     esc_attr__( 'Attribute' , 'test-domain');
    12     esc_html__( 'HTML' , 'test-domain');
    13     esc_attr_e( 'Attribute' , 'test-domain');
    14     esc_html_e( 'HTML' , 'test-domain');
    15     esc_attr_x( 'Attribute', 'Testing' , 'test-domain');
    16     esc_html_x( 'HTML', 'Testing' , 'test-domain');
    17     translate_nooped_plural( 'Plural Noop', 2 , 'test-domain');
     3    __( 'Hello World', 'test-domain' );
     4    _e( 'Hello World', 'test-domain' );
     5    _n( 'Single', 'Plural', 1, 'test-domain' );
     6    _n_noop( 'Single Noop', 'Plural Noop', 1, 'test-domain' );
     7    _x( 'Hello World', 'Testing', 'test-domain' );
     8    _ex( 'Hello World', 'Testing', 'test-domain' );
     9    _nx( 'Hello World', 'Testing', 'test-domain' );
     10    _nx_noop( 'Hello World Noop', 'Testing', 'test-domain' );
     11    esc_attr__( 'Attribute', 'test-domain' );
     12    esc_html__( 'HTML', 'test-domain' );
     13    esc_attr_e( 'Attribute', 'test-domain' );
     14    esc_html_e( 'HTML', 'test-domain' );
     15    esc_attr_x( 'Attribute', 'Testing', 'test-domain' );
     16    esc_html_x( 'HTML', 'Testing', 'test-domain' );
     17    translate_nooped_plural( 'Plural Noop', 2, 'test-domain' );
    1818}
Note: See TracChangeset for help on using the changeset viewer.