X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FMsgcat.pm;fp=FS%2FFS%2FMsgcat.pm;h=b6f36bf95d14ed6a2599eab137e4e2f1efec64dd;hp=ce0fa78af702e9272781fe36490312780a11c0ae;hb=5fd8c24bf8752b0198ff3daf9f1290332e53caf2;hpb=c90a529450dd85902449788fd83940471be50377 diff --git a/FS/FS/Msgcat.pm b/FS/FS/Msgcat.pm index ce0fa78af..b6f36bf95 100644 --- a/FS/FS/Msgcat.pm +++ b/FS/FS/Msgcat.pm @@ -61,7 +61,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};