/** * Create an instance for a given file * * @param string $locale The locale to be set for this Dictionary * * @return Dictionary */ public static function factory($locale) { $dict = new Dictionary(); $dict->load($locale); return $dict; }