Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
AppleInfoPlistFfs Class Reference

AppleInfoPlistFfs extends the AppleFFS class and implements support for Apple InfoPlist .strings files. More...

Inheritance diagram for AppleInfoPlistFfs:
AppleFFS SimpleFFS FFS

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.
 

Detailed Description

AppleInfoPlistFfs extends the AppleFFS class and implements support for Apple InfoPlist .strings files.

This class reads and writes only UTF-8 files.

Since
2020.03

Definition at line 12 of file AppleInfoPlistFfs.php.

Member Function Documentation

◆ readRow()

static AppleInfoPlistFfs::readRow ( $line)
static

Parses non-empty strings file row to key and value.

Parameters
string$line
Exceptions
RuntimeException
Returns
array array( string $key, string $val )

Reimplemented from AppleFFS.

Definition at line 19 of file AppleInfoPlistFfs.php.

◆ writeRow()

static AppleInfoPlistFfs::writeRow ( $key,
$value )
static

Writes well-formed properties file row with key and value.

Parameters
string$key
string$value
Returns
string

Reimplemented from AppleFFS.

Definition at line 49 of file AppleInfoPlistFfs.php.


The documentation for this class was generated from the following file: