Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
TranslatorAction Class Reference

Public Member Functions

 export ($locale)
 testEmails ($locale, $referenceLocale)
 testLocale ($locale, $referenceLocale)

Detailed Description

Perform various tasks related to translation.

Definition at line 17 of file

Member Function Documentation

TranslatorAction::export (   $locale)

Export the locale files to the browser as a tarball. Requires tar for operation (configured in

Definition at line 22 of file

References DAORegistry\getDAO(), and Config\getVar().

Referenced by TranslatorHandler\export().

TranslatorAction::testEmails (   $locale,

Test the emails in the supplied locale against those in the supplied reference locale.

array List of errors

Definition at line 179 of file

References PKPLocale\getParameterNames().

TranslatorAction::testLocale (   $locale,

Test all locale files for the supplied locale against the supplied reference locale, returning an array of errors.

$localestring Name of locale to test
$referenceLocalestring Name of locale to test against

Definition at line 136 of file

References PKPLocale\getFilenameComponentMap(), and PluginRegistry\loadAllPlugins().

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