makeComponentMap() static public method

.. => filename (use getFilenameComponentMap instead)
static public makeComponentMap ( $locale ) : array
$locale string
return array
Esempio n. 1
0
 /**
  * Make a map of components to their respective files.
  * @param $locale string
  * @return array
  */
 function makeComponentMap($locale)
 {
     $componentMap = parent::makeComponentMap($locale);
     $baseDir = "locale/{$locale}/";
     $componentMap[LOCALE_COMPONENT_APPLICATION_COMMON] = $baseDir . 'locale.xml';
     $componentMap[LOCALE_COMPONENT_OJS_AUTHOR] = $baseDir . 'author.xml';
     $componentMap[LOCALE_COMPONENT_OJS_EDITOR] = $baseDir . 'editor.xml';
     $componentMap[LOCALE_COMPONENT_OJS_MANAGER] = $baseDir . 'manager.xml';
     $componentMap[LOCALE_COMPONENT_OJS_ADMIN] = $baseDir . 'admin.xml';
     $componentMap[LOCALE_COMPONENT_OJS_DEFAULT] = $baseDir . 'default.xml';
     return $componentMap;
 }
Esempio n. 2
0
 /**
  * Make a map of components to their respective files.
  * @param $locale string
  * @return array
  */
 static function makeComponentMap($locale)
 {
     $componentMap = parent::makeComponentMap($locale);
     $baseDir = "locale/{$locale}/";
     $componentMap[LOCALE_COMPONENT_APP_COMMON] = $baseDir . 'locale.xml';
     $componentMap[LOCALE_COMPONENT_APP_AUTHOR] = $baseDir . 'author.xml';
     $componentMap[LOCALE_COMPONENT_APP_SUBMISSION] = $baseDir . 'submission.xml';
     $componentMap[LOCALE_COMPONENT_APP_EDITOR] = $baseDir . 'editor.xml';
     $componentMap[LOCALE_COMPONENT_APP_MANAGER] = $baseDir . 'manager.xml';
     $componentMap[LOCALE_COMPONENT_APP_ADMIN] = $baseDir . 'admin.xml';
     $componentMap[LOCALE_COMPONENT_APP_DEFAULT] = $baseDir . 'default.xml';
     return $componentMap;
 }
Esempio n. 3
0
 /**
  * Make a map of components to their respective files.
  * @param $locale string
  * @return array
  */
 function makeComponentMap($locale)
 {
     $componentMap = parent::makeComponentMap($locale);
     $baseDir = "locale/{$locale}/";
     $componentMap[LOCALE_COMPONENT_APPLICATION_COMMON] = $baseDir . 'locale.xml';
     $componentMap[LOCALE_COMPONENT_OMP_MANAGER] = $baseDir . 'manager.xml';
     $componentMap[LOCALE_COMPONENT_OMP_SUBMISSION] = $baseDir . 'submission.xml';
     $componentMap[LOCALE_COMPONENT_OMP_EDITOR] = $baseDir . 'editor.xml';
     $componentMap[LOCALE_COMPONENT_OMP_ADMIN] = $baseDir . 'admin.xml';
     $componentMap[LOCALE_COMPONENT_OMP_DEFAULT_SETTINGS] = $baseDir . 'defaultSettings.xml';
     return $componentMap;
 }
Esempio n. 4
0
 /**
  * Make a map of components to their respective files.
  * @param $locale string
  * @return array
  */
 function makeComponentMap($locale)
 {
     $componentMap = parent::makeComponentMap($locale);
     $baseDir = "locale/{$locale}/";
     $componentMap[LOCALE_COMPONENT_APPLICATION_COMMON] = $baseDir . 'locale.xml';
     return $componentMap;
 }