Property | Type | Description | |
---|---|---|---|
$dataExt | string | Message data filename extension. | |
$dataSeparator | string | Separator between culture name and source. | |
$poExt | string | PO data filename extension |
Method | Description | |
---|---|---|
__construct ( $source ) | ||
catalogues ( ) : array | Returns a list of catalogue as key and all it variants as value. | |
delete ( $message, $catalogue = 'messages' ) : boolean | Delete a particular message from the specified catalogue. | |
save ( $catalogue = 'messages' ) : boolean | Save the list of untranslated blocks to the translation source. | |
update ( $text, $target, $comments, $catalogue = 'messages' ) : boolean | Update the translation. |
Method | Description | |
---|---|---|
createMessageTemplate ( $catalogue ) | ||
getCatalogueList ( $catalogue ) : array | Get all the variants of a particular catalogue. | |
getCatalogues ( $dir = null, $variant = null ) : array | Returns a list of catalogue and its culture ID. This takes care of directory structures. | |
getLastModified ( $source ) : integer | Get the last modified unix-time for this particular catalogue+variant. | |
getSource ( $variant ) : string | Get the MO file for a specific message catalogue and cultural vairant. | |
isValidSource ( $filename ) : boolean | Determin if the MO file source is valid. | |
loadData ( $filename ) : array | Load the messages from a MO file. |
Method | Description | |
---|---|---|
getCatalogueByDir ( $catalogue ) : array | Traverse through the directory structure to find the catalogues. | |
getPOFile ( $MOFile ) | ||
getVariants ( $catalogue = 'messages' ) : string | Get the variant for a catalogue depending on the current culture. |
public catalogues ( ) : array | ||
return | array | list of catalogues |
protected getCatalogueList ( $catalogue ) : array | ||
return | array | list of all variants for this catalogue. |
protected getCatalogues ( $dir = null, $variant = null ) : array | ||
return | array | list of catalogues |
protected getLastModified ( $source ) : integer | ||
return | integer | last modified in unix-time format. |
protected isValidSource ( $filename ) : boolean | ||
return | boolean | true if valid, false otherwise. |
protected string $dataExt | ||
return | string |
protected string $dataSeparator | ||
return | string |