private static function readResources($locale)
 {
     $hash = array();
     Resources::readResourceFile(dirname(__FILE__) . "/../locales/{$locale}/properties.txt", $hash);
     $fileName = $_SERVER['DOCUMENT_ROOT'] . WEBIM_ROOT . '/themes/' . Browser::getCurrentTheme() . '/locales/' . $locale . '/resources.txt';
     if (is_file($fileName)) {
         Resources::readResourceFile($fileName, $hash);
     }
     return $hash;
 }