16 import(
'lib.pkp.classes.plugins.GenericPlugin');
24 return __(
'plugins.generic.defaultTranslation.displayName');
31 return __(
'plugins.generic.defaultTranslation.description');
37 function register($category, $path, $mainContextId =
null) {
38 $success = parent::register($category, $path, $mainContextId);
41 HookRegistry::register(
'PKPLocale::registerLocaleFile::isValidLocaleFile', array(&$this,
'isValidLocaleFile'));
63 $localeFiles = $args[3];
66 foreach ($localeFiles as $localeFile) {
67 $fileName = $localeFile->getFilename();
68 $newFileName = str_replace($locale,
'en_US', $fileName);
69 $newFile =
new LocaleFile(
'en_US', $newFileName);
70 $value = $newFile->translate($key, $params);
71 if ($value !==
null) {