projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUGFIX: use english language as default in set_language
[e-DoKo.git]
/
include
/
functions.php
diff --git
a/include/functions.php
b/include/functions.php
index d7ff0658bc042e6fb27448956cc5092db016d615..a332347d38213a4c93c6756061d48e8ce6adbf6d 100644
(file)
--- a/
include/functions.php
+++ b/
include/functions.php
@@
-1726,16
+1726,19
@@
function set_language($l,$type='lang')
case 'de':
putenv("LC_ALL=de_DE");
setlocale(LC_ALL, "de_DE");
case 'de':
putenv("LC_ALL=de_DE");
setlocale(LC_ALL, "de_DE");
- // Specify location of translation tables
- bindtextdomain("edoko", "./locale");
- bind_textdomain_codeset("edoko", 'UTF-8');
- // Choose domain
- textdomain("edoko");
break;
default:
break;
default:
- /* do nothing */
+ putenv("LC_ALL=en_US");
+ setlocale(LC_ALL, "en_US");
+ break;
}
}
+ // Specify location of translation tables
+ bindtextdomain("edoko", "./locale");
+ bind_textdomain_codeset("edoko", 'UTF-8');
+ // Choose domain
+ textdomain("edoko");
+
return;
}
return;
}