Permalink
Browse files

proper setlocale()

  • Loading branch information...
serghey-rodin committed Apr 5, 2013
1 parent 23bed9e commit 4f7959ba25072d98faf87e362a96b02e26859972
Showing with 8 additions and 1 deletion.
  1. +8 −1 web/inc/main.php
View
@@ -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');
}
}

0 comments on commit 4f7959b

Please sign in to comment.