[ Index ]

PHP Cross Reference of BackPress




/includes/pomo/ -> mo.php (summary)

Class for working with MO files

Version: $Id: mo.php 1180 2020-08-10 10:18:38Z xknown $
File Size: 349 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files

Defines 1 class

MO:: (14 methods):

Class: MO  - X-Ref

get_filename()   X-Ref
Returns the loaded MO file.

return: string The loaded MO file.

import_from_file( $filename )   X-Ref
Fills up with the entries from MO file $filename

param: string $filename MO file to load
return: bool True if the import from file was successful, otherwise false.

export_to_file( $filename )   X-Ref

param: string $filename
return: bool

export()   X-Ref

return: string|false

is_entry_good_for_export( $entry )   X-Ref

param: Translation_Entry $entry
return: bool

export_to_file_handle( $fh )   X-Ref

param: resource $fh
return: true

export_original( $entry )   X-Ref

param: Translation_Entry $entry
return: string

export_translations( $entry )   X-Ref

param: Translation_Entry $entry
return: string

export_headers()   X-Ref

return: string

get_byteorder( $magic )   X-Ref

param: int $magic
return: string|false

import_from_reader( $reader )   X-Ref

param: POMO_FileReader $reader
return: bool True if the import was successful, otherwise false.

make_entry( $original, $translation )   X-Ref
Build a Translation_Entry from original string and translation strings,
found in a MO file

param: string $original original string to translate from MO file. Might contain
param: string $translation translation string from MO file. Might contain
return: Translation_Entry Entry instance.

select_plural_form( $count )   X-Ref

param: int $count
return: string

get_plural_forms_count()   X-Ref

return: int

Generated: Fri Jul 12 01:00:53 2024 Cross-referenced by PHPXref 0.7.1