X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMsgcat.pm;h=e1bde8b51123f6b14dcb8e414f5ee4956a9cc932;hb=1f551554a6237be1e70573d04ee333f3ccc93c96;hp=1978aa789f78f37554c028b77856737286444e43;hpb=3893d4aa23fe206ed319389617c798c053692b78;p=freeside.git diff --git a/FS/FS/Msgcat.pm b/FS/FS/Msgcat.pm index 1978aa789..e1bde8b51 100644 --- a/FS/FS/Msgcat.pm +++ b/FS/FS/Msgcat.pm @@ -62,7 +62,7 @@ sub _gettext { return '' unless defined($msgcode) && length($msgcode) > 0; my $locale = (@_ && shift) - || $FS::CurrentUser::CurrentUser->option('locale') + || $FS::CurrentUser::CurrentUser->locale || $def_locale; return $cache{$locale}->{$msgcode} if exists $cache{$locale}->{$msgcode};