From: helge Date: Wed, 20 Jul 2005 08:19:11 +0000 (+0000) Subject: minor code cleanup X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b56ffb6f3ebe2871d6e60274a593dceb95ee5a;p=sope minor code cleanup git-svn-id: http://svn.opengroupware.org/SOPE/trunk@921 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- diff --git a/sope-appserver/WEExtensions/ChangeLog b/sope-appserver/WEExtensions/ChangeLog index 3d20e05d..92c5b43f 100644 --- a/sope-appserver/WEExtensions/ChangeLog +++ b/sope-appserver/WEExtensions/ChangeLog @@ -1,3 +1,7 @@ +2005-07-20 Helge Hess + + * JSStringTable.m: use -resourceLookupLanguages on context (v4.5.77) + 2005-07-19 Helge Hess * v4.5.76 diff --git a/sope-appserver/WEExtensions/JSStringTable.m b/sope-appserver/WEExtensions/JSStringTable.m index 082e299b..fac50ae3 100644 --- a/sope-appserver/WEExtensions/JSStringTable.m +++ b/sope-appserver/WEExtensions/JSStringTable.m @@ -137,10 +137,8 @@ if ([langs isKindOfClass:[NSString class]]) langs = [(NSString *)langs componentsSeparatedByString:@","]; } - else if ([_ctx hasSession]) - langs = [[_ctx session] languages]; else - langs = [[_ctx request] browserLanguages]; + langs = [_ctx resourceLookupLanguages]; if ((rm = [sComponent resourceManager]) == nil) rm = [[WOApplication application] resourceManager]; diff --git a/sope-appserver/WEExtensions/Version b/sope-appserver/WEExtensions/Version index 2a34764c..765ffcd9 100644 --- a/sope-appserver/WEExtensions/Version +++ b/sope-appserver/WEExtensions/Version @@ -1,6 +1,6 @@ # version file -SUBMINOR_VERSION:=76 +SUBMINOR_VERSION:=77 # v4.5.76 requires libNGObjWeb v4.5.176 # v4.5.75 requires libNGObjWeb v4.5.174