Open Journal Systems  3.3.0
AppLocale.inc.php
1 <?php
2 
17 import('lib.pkp.classes.i18n.PKPLocale');
18 
19 class AppLocale extends PKPLocale {
25  static function makeComponentMap($locale) {
26  $baseDir = "locale/$locale/";
27  return parent::makeComponentMap($locale) + array(
28  LOCALE_COMPONENT_APP_COMMON => $baseDir . 'locale.po',
29  LOCALE_COMPONENT_APP_AUTHOR => $baseDir . 'author.po',
30  LOCALE_COMPONENT_APP_SUBMISSION => $baseDir . 'submission.po',
31  LOCALE_COMPONENT_APP_EDITOR => $baseDir . 'editor.po',
32  LOCALE_COMPONENT_APP_MANAGER => $baseDir . 'manager.po',
33  LOCALE_COMPONENT_APP_ADMIN => $baseDir . 'admin.po',
34  LOCALE_COMPONENT_APP_DEFAULT => $baseDir . 'default.po',
35  LOCALE_COMPONENT_APP_API => $baseDir . 'api.po',
36  LOCALE_COMPONENT_APP_EMAIL => $baseDir . 'emails.po',
37  );
38  }
39 }
40 
PKPLocale
Provides methods for loading locale data and translating strings identified by unique keys.
Definition: PKPLocale.inc.php:73
AppLocale\makeComponentMap
static makeComponentMap($locale)
Definition: AppLocale.inc.php:25
AppLocale
Provides methods for loading locale data and translating strings identified by unique keys.
Definition: AppLocale.inc.php:19