Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pomo/translations.php

    r46586 r47122  
    1313        $po->add_entry( $entry );
    1414        $this->assertEquals( array( $entry->key() => $entry ), $po->entries );
    15         // add the same entry more than once
    16         // we do not need to test proper key generation here, see test_key()
     15        // Add the same entry more than once.
     16        // We do not need to test proper key generation here, see test_key().
    1717        $po->add_entry( $entry );
    1818        $po->add_entry( $entry );
     
    2626            $po->entries
    2727        );
    28         // add empty entry
     28        // Add empty entry.
    2929        $this->assertEquals( false, $po->add_entry( $empty ) );
    3030        $this->assertEquals(
     
    3636        );
    3737
    38         // give add_entry() the arguments and let it create the entry itself
     38        // Give add_entry() the arguments and let it create the entry itself.
    3939        $po = new Translations();
    4040        $po->add_entry( array( 'singular' => 'baba' ) );
     
    9494        $this->assertEquals( 'other', $domain->translate_plural( 'other', 'others', 1 ) );
    9595        $this->assertEquals( 'others', $domain->translate_plural( 'other', 'others', 111 ) );
    96         // too few translations + cont logic
     96        // Too few translations + cont logic.
    9797        $this->assertEquals( 'babas', $domain->translate_plural( 'baba', 'babas', 2 ) );
    9898        $this->assertEquals( 'babas', $domain->translate_plural( 'baba', 'babas', 0 ) );
    9999        $this->assertEquals( 'babas', $domain->translate_plural( 'baba', 'babas', -1 ) );
    100100        $this->assertEquals( 'babas', $domain->translate_plural( 'baba', 'babas', 999 ) );
    101         // proper
     101        // Proper.
    102102        $this->assertEquals( 'dyadox', $domain->translate_plural( 'dyado', 'dyados', 1 ) );
    103103        $this->assertEquals( 'dyadoy', $domain->translate_plural( 'dyado', 'dyados', 0 ) );
Note: See TracChangeset for help on using the changeset viewer.