[ Index ] |
PHP Cross Reference of BackPress |
[Source view] [Print] [Project Stats]
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 includes/pomo/translations.php includes/pomo/streams.php |
MO:: (14 methods):
get_filename()
import_from_file()
export_to_file()
export()
is_entry_good_for_export()
export_to_file_handle()
export_original()
export_translations()
export_headers()
get_byteorder()
import_from_reader()
make_entry()
select_plural_form()
get_plural_forms_count()
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 return: bool True if the import from file was successful, otherwise false. param: string $filename MO file to load |
export_to_file( $filename ) X-Ref |
return: bool param: string $filename |
export() X-Ref |
return: string|false |
is_entry_good_for_export( $entry ) X-Ref |
return: bool param: Translation_Entry $entry |
export_to_file_handle( $fh ) X-Ref |
return: true param: resource $fh |
export_original( $entry ) X-Ref |
return: string param: Translation_Entry $entry |
export_translations( $entry ) X-Ref |
return: string param: Translation_Entry $entry |
export_headers() X-Ref |
return: string |
get_byteorder( $magic ) X-Ref |
return: string|false param: int $magic |
import_from_reader( $reader ) X-Ref |
return: bool True if the import was successful, otherwise false. param: POMO_FileReader $reader |
make_entry( $original, $translation ) X-Ref |
Build a Translation_Entry from original string and translation strings, found in a MO file return: Translation_Entry Entry instance. param: string $original original string to translate from MO file. Might contain param: string $translation translation string from MO file. Might contain |
select_plural_form( $count ) X-Ref |
return: string param: int $count |
get_plural_forms_count() X-Ref |
return: int |
Generated: Sat Nov 23 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |