-
Loads the messages from a XLIFF file.
returns of messages.
-
Returns a list of catalogue and its culture ID.
E.g. array('messages', 'en_AU')
returns list of catalogues
-
Deletes a particular message from the specified catalogue.
returns true if deleted, false otherwise.
-
(array) getCatalogueByDir ()
Browse code
Traverses through the directory structure to find the catalogues.
This should only be called by getCatalogueList()
returns a list of catalogues.
-
(array) getCatalogueList ()
Browse code
Gets all the variants of a particular catalogue.
returns list of all variants for this catalogue.
-
(array) getCatalogues ()
Browse code
Returns a list of catalogue and its culture ID. This takes care
of directory structures.
E.g. array('messages', 'en_AU')
returns list of catalogues
-
(int) getLastModified ()
Browse code
Gets the last modified unix-time for this particular catalogue+variant.
Just use the file modified time.
returns last modified in unix-time format.
-
Gets the XLIFF file for a specific message catalogue and cultural variant.
returns full path to the XLIFF file.
-
(string) getVariants ()
Browse code
Gets the variant for a catalogue depending on the current culture.
returns the variant.
-
(boolean) isValidSource ()
Browse code
Determines if the XLIFF file source is valid.
returns true if valid, false otherwise.
-
Saves the list of untranslated blocks to the translation source.
If the translation was not found, you should add those
strings to the translation source via the append() method.
returns true if saved successfuly, false otherwise.
-
(boolean) update (, , , )
Browse code
Updates the translation.
returns true if translation was updated, false otherwise.
-
Constructor.