Changeset 18827 for trunk/wp-includes/l10n.php
- Timestamp:
- 09/29/2011 10:57:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/l10n.php
r18639 r18827 17 17 * for the locale global set and the locale is returned. 18 18 * 19 * The process to get the locale should only be done once but the locale will19 * The process to get the locale should only be done once, but the locale will 20 20 * always be filtered using the 'locale' hook. 21 21 * … … 54 54 /** 55 55 * Retrieves the translation of $text. If there is no translation, or 56 * the domain isn't loaded the original text is returned.56 * the domain isn't loaded, the original text is returned. 57 57 * 58 58 * @see __() Don't use translate() directly, use __() … … 85 85 /** 86 86 * Retrieves the translation of $text. If there is no translation, or 87 * the domain isn't loaded the original text is returned.87 * the domain isn't loaded, the original text is returned. 88 88 * 89 89 * @see translate() An alias of translate() … … 100 100 /** 101 101 * Retrieves the translation of $text and escapes it for safe use in an attribute. 102 * If there is no translation, or the domain isn't loaded the original text is returned.102 * If there is no translation, or the domain isn't loaded, the original text is returned. 103 103 * 104 104 * @see translate() An alias of translate() … … 116 116 /** 117 117 * Retrieves the translation of $text and escapes it for safe use in HTML output. 118 * If there is no translation, or the domain isn't loaded the original text is returned.118 * If there is no translation, or the domain isn't loaded, the original text is returned. 119 119 * 120 120 * @see translate() An alias of translate() … … 178 178 * 179 179 * By including the context in the pot file translators can translate the two 180 * string differently.180 * strings differently. 181 181 * 182 182 * @since 2.8.0 … … 258 258 * Register plural strings in POT file, but don't translate them. 259 259 * 260 * Used when you want do keep structures with translatable plural strings and260 * Used when you want to keep structures with translatable plural strings and 261 261 * use them later. 262 262 * … … 292 292 * 293 293 * @since 3.1 294 * @param array $nooped_plural array with singular, plural and context keys, usually the result of _n_noop() or _nx_noop()295 * @param int $count number of objects294 * @param array $nooped_plural Array with singular, plural and context keys, usually the result of _n_noop() or _nx_noop() 295 * @param int $count Number of objects 296 296 * @param string $domain Optional. The domain identifier the text should be retrieved in 297 297 */ … … 317 317 * @param string $domain Unique identifier for retrieving translated strings 318 318 * @param string $mofile Path to the .mo file 319 * @return bool true on success, false on failure319 * @return bool True on success, false on failure 320 320 */ 321 321 function load_textdomain( $domain, $mofile ) { … … 374 374 * 375 375 * Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The 376 * translated (.mo) file is named based o ff ofthe locale.376 * translated (.mo) file is named based on the locale. 377 377 * 378 378 * @since 1.5.0 … … 423 423 * 424 424 * @param string $domain Unique identifier for retrieving translated strings 425 * @param string s$mu_plugin_rel_path Relative to WPMU_PLUGIN_DIR directory in which426 * the MO file resides. Defaults isempty string.425 * @param string $mu_plugin_rel_path Relative to WPMU_PLUGIN_DIR directory in which 426 * the MO file resides. Defaults to empty string. 427 427 */ 428 428 function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) { … … 521 521 * 522 522 * @param string $dir A directory in which to search for language files. The default directory is WP_LANG_DIR. 523 * @return array Array of language codes or an empty array if no languages are present. 523 * @return array Array of language codes or an empty array if no languages are present. Language codes are formed by stripping the .mo extension from the language file names. 524 524 */ 525 525 function get_available_languages( $dir = null ) {
Note: See TracChangeset
for help on using the changeset viewer.