Changeset 7397 for trunk/wp-includes/l10n.php
- Timestamp:
- 03/19/2008 04:00:09 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/l10n.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r6916 r7397 197 197 198 198 /** 199 * __ngettext_noop() - register plural strings in POT file, but don't translate them 200 * 201 * Used when you want do keep structures with translatable plural strings and 202 * use them later. 203 * 204 * Example: 205 * $messages = array( 206 * 'post' => ngettext_noop('%s post', '%s posts'), 207 * 'page' => ngettext_noop('%s pages', '%s pages') 208 * ); 209 * ... 210 * $message = $messages[$type]; 211 * $usable_text = sprintf(__ngettext($message[0], $message[1], $count), $count); 212 * 213 * @since 2.5 214 * @param $single Single form to be i18ned 215 * @param $plural Plural form to be i18ned 216 * @param $number Not used, here for compatibility with __ngettext, optional 217 * @param $domain Not used, here for compatibility with __ngettext, optional 218 * @return array array($single, $plural) 219 */ 220 function __ngettext_noop($single, $plural, $number=1, $domain = 'default') { 221 return array($single, $plural); 222 } 223 224 /** 199 225 * load_textdomain() - Loads MO file into the list of domains 200 226 *
Note: See TracChangeset
for help on using the changeset viewer.