Bug 224030

Summary: distinguish between country code, regional code, phone no and phone-extension
Product: [Applications] kaddressbook Reporter: m.wege
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: dev, eduversum, jjm, shadow.walker, tokoe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: phone number format dialog on mac os x
Patch
Patch v2 (tar.gz file)
Screenshot 1 for patch v2
Screenshot 2 for patch v2

Description m.wege 2010-01-24 13:50:51 UTC
Version:           4.4 rc2 (using 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2)), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-18-generic

Would be good, if Kaddressbook allowed to distinguish between country code, regional code, phone no and phone-extension. This could help to create different export formats (e.g. without country code or regional code) or suggest city and country in the address fields.
Comment 1 eduversum 2010-12-27 00:13:24 UTC
Created attachment 55272 [details]
phone number format dialog on mac os x
Comment 2 eduversum 2010-12-27 00:15:37 UTC
It would be great if you could add this feature. I wait since long time for this. 

In the attachment you can find a screenshot of how mac is handling this issue.

Thanks a lot
Comment 3 wuertz 2010-12-28 00:50:01 UTC
In fact the problem is not trivial, because not all country codes have the same length. For example Germany has +41 and the US had +1 and Ethiopia has +251. Another problem is, that the countries have different number lengths. That means we can not use the same format for all countries.

However I have written a small patch that solves these problems. The patch is not finish yet but it is still working. In the attachment you can find this first version.
Comment 4 wuertz 2010-12-28 00:51:33 UTC
Created attachment 55305 [details]
Patch

This is a patch for kdepimlibs 4.5.3
Comment 5 wuertz 2010-12-29 21:24:29 UTC
Created attachment 55358 [details]
Patch v2 (tar.gz file)

I have updated the patch. The patch is now ready for testing. I am looking forward to get some feedbacks.

The patch updates the packages kdepim (4.4.9) and kdepimlibs (4.5.3).
Comment 6 wuertz 2010-12-29 21:27:35 UTC
Created attachment 55359 [details]
Screenshot 1 for patch v2
Comment 7 wuertz 2010-12-29 21:29:21 UTC
Created attachment 55360 [details]
Screenshot 2 for patch v2
Comment 8 Christophe Marin 2011-12-22 23:18:29 UTC
I didn't check the patch but I don't think kaddressbook is the right place for this.

kdelibs is a better place for language specific stuff (kdelibs/kdecore/localization).
Comment 9 m.wege 2011-12-22 23:24:56 UTC
I do not think this language specific. As far as I know countrycodes are always the same line +49 for Germany, +33 for France, +34 for Spain. The wish is to be able to distinguish them, so that they can be used and handled for different purposes. So I would assume Kaddressbook or may Akonadi is the right place.
Comment 10 Justin Zobel 2021-03-09 02:34:21 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.