plugins/generic/customLocale/CustomLocaleAction.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00017 class CustomLocaleAction {
00018 
00019    function getLocaleFiles($locale) {
00020       if (!AppLocale::isLocaleValid($locale)) return null;
00021 
00022       $localeFiles =& AppLocale::makeComponentMap($locale);
00023       $plugins =& PluginRegistry::loadAllPlugins();
00024       foreach (array_keys($plugins) as $key) {
00025          $plugin =& $plugins[$key];
00026          $localeFile = $plugin->getLocaleFilename($locale);
00027          if (!empty($localeFile)) $localeFiles[] = $localeFile;
00028          unset($plugin);
00029       }
00030       return $localeFiles;
00031    }
00032 
00033    function isLocaleFile($locale, $filename) {
00034       if (in_array($filename, CustomLocaleAction::getLocaleFiles($locale))) return true;
00035       return false;
00036    }
00037 
00038 }
00039 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7