[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
I18N: WP_Translations class.
File Size: | 152 lines (4 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Translations:: (5 methods):
__construct()
__get()
make_entry()
translate_plural()
translate()
Class: WP_Translations - X-Ref
Class WP_Translations.__construct( WP_Translation_Controller $controller, string $textdomain = 'default' ) X-Ref |
Constructor. param: WP_Translation_Controller $controller I18N controller. param: string $textdomain Optional. Text domain. Default 'default'. |
__get( string $name ) X-Ref |
Magic getter for backward compatibility. param: string $name Property name. return: mixed |
make_entry( $original, $translations ) X-Ref |
Builds a Translation_Entry from original string and translation strings. param: string $original Original string to translate from MO file. Might contain param: string $translations Translation strings from MO file. return: Translation_Entry Entry instance. |
translate_plural( $singular, $plural, $count = 1, $context = '' ) X-Ref |
Translates a plural string. param: string|null $singular Singular string. param: string|null $plural Plural string. param: int|float $count Count. Should be an integer, but some plugins pass floats. param: string|null $context Context. return: string|null Translation if it exists, or the unchanged singular string. |
translate( $singular, $context = '' ) X-Ref |
Translates a singular string. param: string|null $singular Singular string. param: string|null $context Context. return: string|null Translation if it exists, or the unchanged singular string |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |