diff --git a/web/includes/functions.php b/web/includes/functions.php index 2933d6b73..7a562ca38 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2408,4 +2408,11 @@ function zm_random_bytes($length = 32) { } ZM\Error('No random_bytes function found.'); } + +function i18n() { + $string = explode('_', ZM_LANG_DEFAULT, 2); + $string[1] = strtoupper($string[1]); + + return implode('-', $string); +} ?> diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 964aec149..ea28acfb1 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -790,6 +790,7 @@ function getStatsTableHTML($eid, $fid, $row='') { $stats = dbFetchAll( $sql, NULL, array( $eid, $fid ) ); $result .= '
Id());