Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
LanguageAction Class Reference

Public Member Functions

 downloadLocale ($locale, &$errors)
 
 getDownloadableLocales ()
 
 isDownloadAvailable ()
 
 LanguageAction ()
 

Detailed Description

LanguageAction class.

Definition at line 24 of file LanguageAction.inc.php.

Member Function Documentation

LanguageAction::downloadLocale (   $locale,
$errors 
)

Download and install a locale.

Parameters
$localestring
$errorsarray
Returns
boolean

Definition at line 94 of file LanguageAction.inc.php.

References PKPLocale\getAllLocales(), DAORegistry\getDAO(), getDownloadableLocales(), Config\getVar(), and FileWrapper\wrapper().

LanguageAction::getDownloadableLocales ( )

Get the list of locales that can be downloaded for the current version.

Definition at line 79 of file LanguageAction.inc.php.

References DAORegistry\getDAO(), and PKPLocale\loadLocaleList().

Referenced by downloadLocale().

LanguageAction::isDownloadAvailable ( )

Actions. Check to see whether the tar function exists and appears to be available for execution from PHP, and various other conditions that are required for locale downloading to be available.

Returns
boolean

Definition at line 41 of file LanguageAction.inc.php.

References Config\getVar().

LanguageAction::LanguageAction ( )

Constructor.

Definition at line 28 of file LanguageAction.inc.php.


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