> Calendar shows the first email account, even if there is no "Calendar"
> subfolder in it. It doesn't show the second account at all.
>
> Contacts shows the first email account and the contacts in the "Contacts"
> folder. It does not show any subfolders even if they are visible in KMail,
> nor any contacts in those subfolders. It does not show the second email
> account at all.
>
> I have a strong idea why the second account does not show up: it was
> created with an early version of KMail2 and has the contact and calendar
> folders created with their German names. This is no problems for the
> desktop version where I can change what KMail/Calendar/akonadi thinks what
> is in this folders. But I found no way to change that in the mobile
> version. And neither in the desktop nor mobile version Kontact get's it
> that if there is a folder "Contacts" that has contacts all of it's
> subfolders contain contacts, too. A confirmation dialog is ok, but the
> default assumption should be that whatever a folder contains this will
> also be in all subfolders.

I have a strong guess on why the German localized folders do not get
detected. I don't see any call to KGlobal::locale()->insertCatalog in
kdepim-runtime::resources/kolabproxy/*, so the call to i18n() in
Kolab::guessFolderTypeFromName (resources/kolabproxy/kolabdefs.cpp) maybe
just returns the default string.

Something like the attached patch should help.

Eike
>From 8a2fac84ff250473625f9a16c9cd68bdc4a9b49b Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer <[email protected]>
Date: Thu, 15 Dec 2011 13:55:44 +0100
Subject: [PATCH] load the language catalog for Kolab proxy resource

This should get autodetection of folder contents working when the folder was
created by a localized version of Kontact.
---
 resources/kolabproxy/kolabproxyresource.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/resources/kolabproxy/kolabproxyresource.cpp b/resources/kolabproxy/kolabproxyresource.cpp
index 0ddf153..528acef 100644
--- a/resources/kolabproxy/kolabproxyresource.cpp
+++ b/resources/kolabproxy/kolabproxyresource.cpp
@@ -145,6 +145,8 @@ KolabProxyResource::KolabProxyResource( const QString &id )
 
   setName( i18n("Kolab") );
 
+  KGlobal::locale()->insertCatalog( "akonadi_kolabproxy_resource" );
+
   // among other things, this ensures that m_root actually exists when a new imap folder is added
   synchronizeCollectionTree();
 }
-- 
1.7.7.3
_______________________________________________
Kde-mobile-users mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-mobile-users

Reply via email to