AppleInfoPlistFfs extends the AppleFFS class and implements support for Apple InfoPlist .strings files. More...
Static Public Member Functions | |
static | readRow ( $line) |
Parses non-empty strings file row to key and value. | |
static | writeRow ( $key, $value) |
Writes well-formed properties file row with key and value. | |
Static Public Member Functions inherited from AppleFFS | |
static | getExtraSchema () |
Additional Inherited Members | |
Public Member Functions inherited from AppleFFS | |
supportsFuzzy () | |
Query the capabilities of this FFS. | |
getFileExtensions () | |
Return the commonly used file extensions for these formats. | |
readFromVariable ( $data) | |
Public Member Functions inherited from SimpleFFS | |
__construct (FileBasedMessageGroup $group) | |
setGroup (FileBasedMessageGroup $group) | |
getGroup () | |
setWritePath ( $writePath) | |
getWritePath () | |
exists ( $code=false) | |
Returns true if the file for this message group in a given language exists. | |
read ( $code) | |
Reads messages from the file in a given language and returns an array of AUTHORS, MESSAGES and possibly other properties. | |
write (MessageCollection $collection) | |
Write the collection to file. | |
writeIntoVariable (MessageCollection $collection) | |
Read a collection and return it as a SimpleFFS formatted string. | |
filterAuthors (array $authors, $code) | |
Remove excluded authors. | |
isContentEqual ( $a, $b) | |
Checks whether two strings are equal. | |
shouldOverwrite ( $a, $b) | |
Allows to skip writing the export output into a file. | |
isGroupFfsReadable () | |
Check if the file format of the current group is readable by the file format system. | |
Protected Member Functions inherited from AppleFFS | |
writeReal (MessageCollection $collection) | |
doHeader (MessageCollection $collection) | |
doAuthors (MessageCollection $collection) | |
Protected Member Functions inherited from SimpleFFS | |
tryReadSource ( $filename, MessageCollection $collection) | |
This tries to pick up external authors in the source files so that they are not lost if those authors are not among those who have translated in the wiki. | |
tryReadFile ( $filename) | |
Read the contents of $filename and return it as a string. | |
Static Protected Member Functions inherited from AppleFFS | |
static | quoteString ( $str) |
Quote and escape Obj-C-style strings for .strings format. | |
static | escapeString ( $str) |
Escape Obj-C-style strings; use backslash-escapes etc. | |
static | unescapeString ( $str) |
Unescape Obj-C-style strings; can include backslash-escapes. | |
Protected Attributes inherited from SimpleFFS | |
$group | |
$writePath | |
$extra | |
Stores the FILES section of the YAML configuration, which can be accessed for extra FFS class specific options. | |
AppleInfoPlistFfs extends the AppleFFS class and implements support for Apple InfoPlist .strings files.
This class reads and writes only UTF-8 files.
Definition at line 12 of file AppleInfoPlistFfs.php.
|
static |
Parses non-empty strings file row to key and value.
string | $line |
RuntimeException |
Reimplemented from AppleFFS.
Definition at line 19 of file AppleInfoPlistFfs.php.
|
static |
Writes well-formed properties file row with key and value.
string | $key | |
string | $value |
Reimplemented from AppleFFS.
Definition at line 49 of file AppleInfoPlistFfs.php.