| [ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
GlotPress Format Mac OSX / iOS Strings Translate class
| File Size: | 208 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
GP_Format_Strings:: (5 methods):
print_exported_file()
read_originals_from_file()
sort_entries()
unescape()
escape()
Class: GP_Format_Strings - X-Ref
Format class used to support Mac OS X / iOS Translate strings file format.| print_exported_file( $project, $locale, $translation_set, $entries ) X-Ref |
| Generates a string the contains the $entries to export in the strings file format. since: 1.0.0 return: string The exported strings 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 |
| Reads a set of original strings from a strings file. since: 1.0.0 return: Translations|bool The extracted originals on success, false on failure. param: string $file_name The name of the uploaded strings file. |
| sort_entries( $a, $b ) X-Ref |
| No description |
| unescape( $string ) X-Ref |
| Strips any escaping from a string. since: 1.0.0 return: string The unescaped string. param: string $string The string to strip escapes from. |
| escape( $string ) X-Ref |
| Adds escaping to a string. since: 1.0.0 return: string The escaped string. param: string $string The string to add escapes to. |
| Generated: Thu Nov 13 01:01:28 2025 | Cross-referenced by PHPXref 0.7.1 |