Monotone-Parent: fd6739c8912ccda074f93108e73623ee0dcc2d1b
Monotone-Revision: f1a1a7d4fd101844877061fca124817c04fb68bb

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-10-17T23:41:27
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-10-17 23:41:27 +00:00
parent 0b09c1b52b
commit 5bb2c38326
4 changed files with 21 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
2008-10-17 Francis Lachapelle <flachapelle@inverse.ca>
* UI/Common/UIxPageFrame.m ([NSString userLanguage]): returns the
user's language. Used to make this information available through
JavaScript.
2008-10-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoObject.m ([SOGoObject -davURL])
+2
View File
@@ -67,6 +67,8 @@
- (BOOL) isSuperUser;
- (NSString *) userLanguage;
- (BOOL) isCompatibleBrowser;
@end
+11
View File
@@ -386,6 +386,17 @@
return [user canAccessModule: @"Mail"];
}
- (NSString *) userLanguage
{
NSString *language;
language = [[context activeUser] language];
if (!language)
language = [SOGoUser language];
return language;
}
/* browser/os identification */
- (BOOL) isCompatibleBrowser
+2 -1
View File
@@ -109,7 +109,8 @@
<var:if condition="shortUserNameForDisplay" const:value="anonymous"
const:negate="YES"
>var UserFolderURL = '<var:string value="userFolderPath" />';
var UserLogin = '<var:string value="shortUserNameForDisplay" />';</var:if>
var UserLogin = '<var:string value="shortUserNameForDisplay" />';
var UserLanguage = '<var:string value="userLanguage" />';</var:if>
<var:string value="commonLocalizableStrings" const:escapeHTML="NO"/>
<var:string value="productLocalizableStrings" const:escapeHTML="NO"/>
</script>