\Gettext\GeneratorsPo

Summary

Methods
Properties
Constants
toFile()
toString()
convertString()
$options
No constants found
No protected methods found
No protected properties found
N/A
multilineQuote()
addLines()
No private properties found
N/A

Properties

$options

$options : 

Type

Methods

toFile()

toFile(\Gettext\Translations  $translations, string  $file, array  $options = array()) : boolean

Saves the translations in a file.

Parameters

\Gettext\Translations $translations
string $file
array $options

Returns

boolean

toString()

toString(\Gettext\Translations  $translations, array  $options = array()) : string

{@parentDoc}.

Parameters

\Gettext\Translations $translations
array $options

Returns

string

convertString()

convertString(string  $value) : string

Convert a string to its PO representation.

Parameters

string $value

Returns

string

multilineQuote()

multilineQuote(string  $string) : string

Escapes and adds double quotes to a string.

Parameters

string $string

Returns

string

addLines()

addLines(array  $lines, string  $name, string  $value) 

Add one or more lines depending whether the string is multiline or not.

Parameters

array $lines
string $name
string $value