Skip to content

Commit

Permalink
proper setlocale()
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Apr 5, 2013
1 parent 23bed9e commit 4f7959b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/inc/main.php
Expand Up @@ -65,8 +65,15 @@ function _translate() {
switch ($_SESSION['language']) {
case 'ru':
setlocale(LC_ALL, 'ru_RU.utf8');
break;
case 'ua':
setlocale(LC_ALL, 'uk_UA.utf8');
break;
case 'es':
setlocale(LC_ALL, 'es_ES.utf8');
break;
default:
setlocale(LC_ALL, 'en_EN.utf8');
setlocale(LC_ALL, 'en_US.utf8');
}
}

Expand Down

0 comments on commit 4f7959b

Please sign in to comment.