[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/formats/ -> format-jed1x.php (summary)

GlotPress Format Jed 1.x class

File Size: 167 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GP_Format_Jed1x:: (3 methods):
  print_exported_file()
  read_originals_from_file()
  decode_json_file()


Class: GP_Format_Jed1x  - X-Ref

Format class used to support Jed 1.x compatible JSON file format.

print_exported_file( $project, $locale, $translation_set, $entries )   X-Ref
Generates a string the contains the $entries to export in the Jed 1.x compatible JSON file format.

since: 2.3.0
return: string The exported Jed 1.x compatible JSON string.
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.

read_originals_from_file( $file_name )   X-Ref
No description

decode_json_file( $file_name )   X-Ref
Decodes a JSON string and checks for needed array keys.

since: 2.3.0
return: array|false The encoded value or false on failure.
param: string $file_name The name of the JSON file to parse.



Generated: Tue Mar 19 01:01:21 2024 Cross-referenced by PHPXref 0.7.1