summaryrefslogtreecommitdiff
path: root/framework/Exceptions/TException.php
diff options
context:
space:
mode:
authorxue <>2005-11-19 02:42:35 +0000
committerxue <>2005-11-19 02:42:35 +0000
commitbc1a7e1e3a67537189d30013ea6d5fa4bf98e8e4 (patch)
treecf4505fc457292ed5499b16d2412bd00ab14a0bd /framework/Exceptions/TException.php
parentc2b0b3123d351e1ec96203eb099e35c6d5c6bdc9 (diff)
Diffstat (limited to 'framework/Exceptions/TException.php')
-rw-r--r--framework/Exceptions/TException.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/Exceptions/TException.php b/framework/Exceptions/TException.php
index d920f373..84ff1b89 100644
--- a/framework/Exceptions/TException.php
+++ b/framework/Exceptions/TException.php
@@ -51,9 +51,7 @@ class TException extends Exception
protected function translateErrorMessage($key)
{
- $lang=array_shift(explode('-',array_shift(Prado::getUserLanguages())));
- if(!empty($lang) && !ctype_alpha($lang))
- $lang='';
+ $lang=Prado::getPreferredLanguage();
$msgFile=dirname(__FILE__).'/messages-'.$lang.'.txt';
if(!is_file($msgFile))
$msgFile=dirname(__FILE__).'/messages.txt';