Make WordPress Core


Ignore:
Timestamp:
11/30/2014 09:40:53 PM (11 years ago)
Author:
wonderboymusic
Message:

Add missing @params to src/wp-includes/pomo files.

See #30224.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/translations.php

    r29479 r30663  
    1818     * Add entry to the PO structure
    1919     *
    20      * @param object &$entry
     20     * @param array|Translation_Entry &$entry
    2121     * @return bool true on success, false if the entry doesn't have a key
    2222     */
     
    3131    }
    3232
     33    /**
     34     * @param array|Translation_Entry $entry
     35     * @return bool
     36     */
    3337    function add_entry_or_merge($entry) {
    3438        if (is_array($entry)) {
     
    5862    }
    5963
     64    /**
     65     * @param array $headers
     66     */
    6067    function set_headers($headers) {
    6168        foreach($headers as $header => $value) {
     
    6471    }
    6572
     73    /**
     74     * @param string $header
     75     */
    6676    function get_header($header) {
    6777        return isset($this->headers[$header])? $this->headers[$header] : false;
    6878    }
    6979
     80    /**
     81     * @param Translation_Entry $entry
     82     */
    7083    function translate_entry(&$entry) {
    7184        $key = $entry->key();
     
    7386    }
    7487
     88    /**
     89     * @param string $singular
     90     * @param string $context
     91     * @return string
     92     */
    7593    function translate($singular, $context=null) {
    7694        $entry = new Translation_Entry(array('singular' => $singular, 'context' => $context));
     
    98116    }
    99117
     118    /**
     119     * @param string $singular
     120     * @param string $plural
     121     * @param int    $count
     122     * @param string $context
     123     */
    100124    function translate_plural($singular, $plural, $count, $context = null) {
    101125        $entry = new Translation_Entry(array('singular' => $singular, 'plural' => $plural, 'context' => $context));
     
    140164     * they can't share it effectively.
    141165     *
     166     * @param int $count
    142167     */
    143168    function gettext_select_plural_form($count) {
     
    150175    }
    151176
     177    /**
     178     * @param string $header
     179     * @return array
     180     */
    152181    function nplurals_and_expression_from_header($header) {
    153182        if (preg_match('/^\s*nplurals\s*=\s*(\d+)\s*;\s+plural\s*=\s*(.+)$/', $header, $matches)) {
     
    163192     * Makes a function, which will return the right translation index, according to the
    164193     * plural forms header
     194     * @param int    $nplurals
     195     * @param string $expression
    165196     */
    166197    function make_plural_form_function($nplurals, $expression) {
     
    204235    }
    205236
     237    /**
     238     * @param string $translation
     239     * @return array
     240     */
    206241    function make_headers($translation) {
    207242        $headers = array();
     
    217252    }
    218253
     254    /**
     255     * @param string $header
     256     * @param string $value
     257     */
    219258    function set_header($header, $value) {
    220259        parent::set_header($header, $value);
     
    254293    }
    255294
     295    /**
     296     * @param string $singular
     297     * @param string $context
     298     */
    256299    function translate($singular, $context=null) {
    257300        return $singular;
     
    266309    }
    267310
     311    /**
     312     * @param string $singular
     313     * @param string $plural
     314     * @param int    $count
     315     * @param string $context
     316     */
    268317    function translate_plural($singular, $plural, $count, $context = null) {
    269318            return 1 == $count? $singular : $plural;
Note: See TracChangeset for help on using the changeset viewer.