~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-includes/l10n.php

  • Committer: Paul Collins
  • Date: 2011-07-13 02:31:10 UTC
  • Revision ID: paul.collins@canonical.com-20110713023110-rvp7cjj31rsaomkr
import Wordpress 3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
 * @param string $domain Optional. Domain to retrieve the translated text
187
187
 * @return string Translated context string without pipe
188
188
 */
189
 
function _x( $single, $context, $domain = 'default' ) {
190
 
        return translate_with_gettext_context( $single, $context, $domain );
 
189
function _x( $text, $context, $domain = 'default' ) {
 
190
        return translate_with_gettext_context( $text, $context, $domain );
191
191
}
192
192
 
193
193
/**
201
201
 * @param string $domain Optional. Domain to retrieve the translated text
202
202
 * @return string Translated context string without pipe
203
203
 */
204
 
function _ex( $single, $context, $domain = 'default' ) {
205
 
        echo _x( $single, $context, $domain );
 
204
function _ex( $text, $context, $domain = 'default' ) {
 
205
        echo _x( $text, $context, $domain );
206
206
}
207
207
 
208
208
function esc_attr_x( $single, $context, $domain = 'default' ) {
270
270
 *  $usable_text = sprintf( translate_nooped_plural( $message, $count ), $count );
271
271
 *
272
272
 * @since 2.5
273
 
 * @param string $single Single form to be i18ned
 
273
 * @param string $singular Single form to be i18ned
274
274
 * @param string $plural Plural form to be i18ned
275
 
 * @return array array($single, $plural)
 
275
 * @return array array($singular, $plural)
276
276
 */
277
277
function _n_noop( $singular, $plural ) {
278
278
        return array( 0 => $singular, 1 => $plural, 'singular' => $singular, 'plural' => $plural, 'context' => null );