Make WordPress Core


Ignore:
Timestamp:
09/29/2011 10:57:43 PM (13 years ago)
Author:
ryan
Message:

phpdoc typo and readability fixes. Props SergeyBiryukov. fixes #18560

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/l10n.php

    r18639 r18827  
    1717 * for the locale global set and the locale is returned.
    1818 *
    19  * The process to get the locale should only be done once but the locale will
     19 * The process to get the locale should only be done once, but the locale will
    2020 * always be filtered using the 'locale' hook.
    2121 *
     
    5454/**
    5555 * 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.
    5757 *
    5858 * @see __() Don't use translate() directly, use __()
     
    8585/**
    8686 * 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.
    8888 *
    8989 * @see translate() An alias of translate()
     
    100100/**
    101101 * 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.
    103103 *
    104104 * @see translate() An alias of translate()
     
    116116/**
    117117 * 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.
    119119 *
    120120 * @see translate() An alias of translate()
     
    178178 *
    179179 * By including the context in the pot file translators can translate the two
    180  * string differently.
     180 * strings differently.
    181181 *
    182182 * @since 2.8.0
     
    258258 * Register plural strings in POT file, but don't translate them.
    259259 *
    260  * Used when you want do keep structures with translatable plural strings and
     260 * Used when you want to keep structures with translatable plural strings and
    261261 * use them later.
    262262 *
     
    292292 *
    293293 * @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 objects
     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 objects
    296296 * @param string $domain Optional. The domain identifier the text should be retrieved in
    297297 */
     
    317317 * @param string $domain Unique identifier for retrieving translated strings
    318318 * @param string $mofile Path to the .mo file
    319  * @return bool true on success, false on failure
     319 * @return bool True on success, false on failure
    320320 */
    321321function load_textdomain( $domain, $mofile ) {
     
    374374 *
    375375 * Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The
    376  * translated (.mo) file is named based off of the locale.
     376 * translated (.mo) file is named based on the locale.
    377377 *
    378378 * @since 1.5.0
     
    423423 *
    424424 * @param string $domain Unique identifier for retrieving translated strings
    425  * @param strings $mu_plugin_rel_path Relative to WPMU_PLUGIN_DIR directory in which
    426  * the MO file resides. Defaults is empty 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.
    427427 */
    428428function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) {
     
    521521 *
    522522 * @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.  Language codes are formed by stripping the .mo extension from the language file names.
     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.
    524524 */
    525525function get_available_languages( $dir = null ) {
Note: See TracChangeset for help on using the changeset viewer.