diff options
Diffstat (limited to 'kresources/slox')
-rw-r--r-- | kresources/slox/kabc_ox.desktop | 1 | ||||
-rw-r--r-- | kresources/slox/kabc_slox.desktop | 1 | ||||
-rw-r--r-- | kresources/slox/kabcresourceslox.cpp | 11 | ||||
-rw-r--r-- | kresources/slox/kcal_ox.desktop | 1 | ||||
-rw-r--r-- | kresources/slox/kcal_slox.desktop | 1 | ||||
-rw-r--r-- | kresources/slox/kcalresourceslox.cpp | 2 |
6 files changed, 13 insertions, 4 deletions
diff --git a/kresources/slox/kabc_ox.desktop b/kresources/slox/kabc_ox.desktop index 4f4fb8c22..8388f0800 100644 --- a/kresources/slox/kabc_ox.desktop +++ b/kresources/slox/kabc_ox.desktop @@ -18,7 +18,6 @@ Name[gl]=Servidor OpenXchange Name[hu]=OpenXchange-kiszolgáló Name[is]=OpenXchange þjónn Name[ja]=OpenXchange サーバ -Name[ka]=Openexchange სერვერი Name[kk]=OpenXchange сервері Name[km]=ម៉ាស៊ីនបម្រើ OpenXchange Name[lt]=OpenXchange serveris diff --git a/kresources/slox/kabc_slox.desktop b/kresources/slox/kabc_slox.desktop index bdfce204e..5a0192caa 100644 --- a/kresources/slox/kabc_slox.desktop +++ b/kresources/slox/kabc_slox.desktop @@ -21,7 +21,6 @@ Name[hu]=SUSE LINUX Openexchange-kiszolgáló Name[is]=SUSE LINUX Openexchange þjónn Name[it]=Server SUSE LINUX Openexchange Name[ja]=SUSE LINUX Openexchange サーバ -Name[ka]= SUSE LINUX Openexchange სერვერი Name[kk]=SUSE LINUX Openexchange сервері Name[km]=ម៉ាស៊ីនបម្រើ Openexchange របស់ស៊ូស៊ីលីនីក Name[lt]=SUSE LINUX Openexchange serveris diff --git a/kresources/slox/kabcresourceslox.cpp b/kresources/slox/kabcresourceslox.cpp index 757bfae08..16d5aced5 100644 --- a/kresources/slox/kabcresourceslox.cpp +++ b/kresources/slox/kabcresourceslox.cpp @@ -49,6 +49,8 @@ ResourceSlox::ResourceSlox( const KConfig *config ) if ( config ) { readConfig( config ); + } else { + setResourceName( i18n( "OpenXchange Server" ) ); } } @@ -353,7 +355,11 @@ void ResourceSlox::parseContactAttribute( const TQDomElement &e, Addressee &a ) } else if ( tag == fieldName( Organization ) ) { a.setOrganization( text ); } else if ( tag == fieldName( Department ) ) { +#if KDE_IS_VERSION(3,5,8) + a.setDepartment( text ); +#else a.insertCustom( "KADDRESSBOOK", "X-Department", text ); +#endif } else if ( tag == fieldName( FamilyName ) ) { a.setFamilyName( text ); } else if ( tag == fieldName( GivenName) ) { @@ -542,8 +548,13 @@ void ResourceSlox::createAddresseeFields( TQDomDocument &doc, TQDomElement &prop else WebdavHandler::addSloxElement( this, doc, prop, fieldName( Birthday ) ); WebdavHandler::addSloxElement( this, doc, prop, fieldName( Role ), a.role() ); +#if KDE_IS_VERSION(3,5,8) + WebdavHandler::addSloxElement( this, doc, prop, fieldName( Department ), + a.department( ) ); +#else WebdavHandler::addSloxElement( this, doc, prop, fieldName( Department ), a.custom( "KADDRESSBOOK", "X-Department" ) ); +#endif if ( type() == "ox" ) { // OX only fields WebdavHandler::addSloxElement( this, doc, prop, fieldName( DisplayName ), a.formattedName() ); WebdavHandler::addSloxElement( this, doc, prop, fieldName( SecondName ), a.additionalName() ); diff --git a/kresources/slox/kcal_ox.desktop b/kresources/slox/kcal_ox.desktop index e0eaa9224..5bc7600ae 100644 --- a/kresources/slox/kcal_ox.desktop +++ b/kresources/slox/kcal_ox.desktop @@ -18,7 +18,6 @@ Name[gl]=Servidor OpenXchange Name[hu]=OpenXchange-kiszolgáló Name[is]=OpenXchange þjónn Name[ja]=OpenXchange サーバ -Name[ka]=Openexchange სერვერი Name[kk]=OpenXchange сервері Name[km]=ម៉ាស៊ីនបម្រើ OpenXchange Name[lt]=OpenXchange serveris diff --git a/kresources/slox/kcal_slox.desktop b/kresources/slox/kcal_slox.desktop index 0daca0b2c..b4fe8e7a8 100644 --- a/kresources/slox/kcal_slox.desktop +++ b/kresources/slox/kcal_slox.desktop @@ -21,7 +21,6 @@ Name[hu]=SUSE LINUX Openexchange-kiszolgáló Name[is]=SUSE LINUX Openexchange þjónn Name[it]=Server SUSE LINUX Openexchange Name[ja]=SUSE LINUX Openexchange サーバ -Name[ka]= SUSE LINUX Openexchange სერვერი Name[kk]=SUSE LINUX Openexchange сервері Name[km]=ម៉ាស៊ីនបម្រើ Openexchange របស់ស៊ូស៊ីលីនីក Name[lt]=SUSE LINUX Openexchange serveris diff --git a/kresources/slox/kcalresourceslox.cpp b/kresources/slox/kcalresourceslox.cpp index 2fcb0baa3..edd13e6f9 100644 --- a/kresources/slox/kcalresourceslox.cpp +++ b/kresources/slox/kcalresourceslox.cpp @@ -70,6 +70,8 @@ KCalResourceSlox::KCalResourceSlox( const KConfig *config ) if ( config ) { readConfig( config ); + } else { + setResourceName( i18n( "OpenXchange Server" ) ); } } |