/** * @param string $domain * @return array * @author Rytis Grincevičius <*****@*****.**> */ public static function getTranslations($domain = '') { $domain = $domain ? $domain : 'default'; $path = Path::translation_path($domain . '.php'); if (file_exists($path)) { return include_once $path; } return []; }
/** * @param string $path * @param string $locale Uses current locale if not set * @return string * @author Rytis Grincevičius <*****@*****.**> */ function translation_path($path = '', $locale = '') { return Path::translation_path($path, $locale); }