[ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
GlotPress Format NGX Translate class
File Size: | 157 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
GP_Format_NGX:: (3 methods):
print_exported_file()
read_originals_from_file()
decode_json_file()
Class: GP_Format_NGX - X-Ref
Format class used to support NGX Translate JSON file format.print_exported_file( $project, $locale, $translation_set, $entries ) X-Ref |
Generates a string the contains the $entries to export in the JSON file format. param: GP_Project $project The project the strings are being exported for, not used param: GP_Locale $locale The locale object the strings are being exported for. not used param: GP_Translation_Set $translation_set The locale object the strings are being param: GP_Translation $entries The entries to export. return: string The exported JSON string. since: 3.0.0 |
read_originals_from_file( $file_name ) X-Ref |
Reads a set of original strings from a JSON file. param: string $file_name The name of the uploaded JSON file. return: Translations|bool The extracted originals on success, false on failure. since: 3.0.0 |
decode_json_file( $file_name ) X-Ref |
Decode a JSON file. param: string $file_name The name of the JSON file to decode. return: decode JSON file as an array. since: 3.0.0 |
Generated: Sun Nov 24 01:01:03 2024 | Cross-referenced by PHPXref 0.7.1 |