ZurmoMessageSourceUtil Class Reference

Static Public Member Functions

static importOneMessage ($languageCode, $category, $source, $translation)
static importMessagesArray ($languageCode, $category, $messages)
static importPoFile ($languageCode, $messageFile)

Detailed Description

Utility class for importing messages to the database

Definition at line 40 of file ZurmoMessageSourceUtil.php.


Member Function Documentation

static importOneMessage ( languageCode,
category,
source,
translation 
) [static]

Imports one message string to the database

Parameters:
String $languageCode The language code
String $category The category of the translation
String $source Message source
String $translation Message translation
Returns:
Integer Id of the added translation or false
Exceptions:
NotSupportedException 

Definition at line 52 of file ZurmoMessageSourceUtil.php.

static importMessagesArray ( languageCode,
category,
messages 
) [static]

Imports messages array to the database

Parameters:
$languageCode String The language code
$category String The category of the translation
Array $messages Array with the messages
Returns:
Boolean Status of the import process
Exceptions:
NotSupportedException 

Definition at line 103 of file ZurmoMessageSourceUtil.php.

static importPoFile ( languageCode,
messageFile 
) [static]

Loads all messages with context from PO file and imports them to the database

Parameters:
String $languageCode The language code
String $messageFile Path to the PO file to import.
Returns:
Boolean Status of the import
Exceptions:
NotSupportedException 

Definition at line 138 of file ZurmoMessageSourceUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Jul 27 07:10:31 2017