Core Class
View Source on Trac ↗
Core Class
PO
class PO
// Constructor: function Object() { [native code] } No description available.
Methods 17 methods
| Method / Return | Description |
|---|---|
| export_headers() string | Exports headers to a PO entry |
| export_entries() string | Exports all entries to PO format |
| export() string | Exports the whole PO file as a string
Parameters: $include_headers: mixed |
| export_to_file() bool | Same as {@link export}, but writes the result to a file
Parameters: $filename: mixed, $include_headers: mixed |
| set_comment_before_headers() void | Text to include as a comment before the start of the PO contents
Parameters: $text: mixed |
| poify() string | Formats a string in PO-style
Parameters: $input_string: mixed |
| unpoify() string | Gives back the original string from a PO-formatted string
Parameters: $input_string: mixed |
| prepend_each_line() void | Inserts $with in the beginning of every new line of $input_string and
Parameters: $input_string: mixed, $with: mixed |
| comment_block() void | Prepare a text as a comment -- wraps the lines and prepends #
Parameters: $text: mixed, $char: mixed |
| export_entry() (string | Builds a string from the entry for inclusion in PO file
Parameters: $entry: mixed |
| match_begin_and_end_newlines() void | No description available.
Parameters: $translation: mixed, $original: mixed |
| import_from_file() bool | No description available.
Parameters: $filename: mixed |
| is_final() bool | Helper function for read_entry
Parameters: $context: mixed |
| read_entry() (null | No description available.
Parameters: $f: mixed, $lineno: mixed |
| read_line() bool | No description available.
Parameters: $f: mixed, $action: mixed |
| add_comment_to_entry() void | No description available.
Parameters: $entry: mixed, $po_comment_line: mixed |
| trim_quotes() string | No description available.
Parameters: $s: mixed |
Properties
| Property / Type | Description |
|---|---|
| $comments_before_headers mixed public | No description available. |
Class Information
Source File
wp-includes/pomo/po.php
Advertisement