Open Journal Systems  2.4.3
 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 TranslatorAction.inc.php.

Member Function Documentation

TranslatorAction::export (   $locale)

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

Definition at line 22 of file TranslatorAction.inc.php.

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

Referenced by TranslatorHandler\export().

TranslatorAction::testEmails (   $locale,
  $referenceLocale 
)

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

Parameters
$localestring
$referenceLocalestring
Returns
array List of errors

Definition at line 182 of file TranslatorAction.inc.php.

References PKPLocale\getParameterNames().

TranslatorAction::testLocale (   $locale,
  $referenceLocale 
)

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

Parameters
$localestring Name of locale to test
$referenceLocalestring Name of locale to test against
Returns
array

Definition at line 139 of file TranslatorAction.inc.php.

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


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