1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Caldav: use i18n calendar name as display name for iCal

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1488 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-10-01 21:26:55 +00:00
parent cb5530fcea
commit 0649996caf

View File

@ -437,7 +437,12 @@ public class CaldavConnection extends AbstractConnection {
}
if (request.hasProperty("displayname")) {
if (subFolder == null || subFolder.length() == 0) {
response.appendProperty("D:displayname", request.getLastPath());
// use i18n calendar name as display name
String displayname = request.getLastPath();
if ("calendar".equals(displayname)) {
displayname = folder.displayName;
}
response.appendProperty("D:displayname", displayname);
} else {
response.appendProperty("D:displayname", subFolder);
}