nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
569 stars 173 forks source link

Better format tel with country suggestion and spacing #128

Open cptechnik opened 7 years ago

cptechnik commented 7 years ago

Can we/i configure the separation-sign, on wich place in phone number it appears? In my Phonebook exists 02243 82566 , and the nextcloud phonebook displays it like 022-438-2566 ...Its only a matter of displaying... not a matter of saving in database... +49-numbers are not affected, only if the country-numbers are missing... It seems the display-script cut the city-number into two pieces, if there isnt a country-number in front of.

Or is it just possible to switch off the separation-sign?


Kann man die Trennungszeichen konfigurieren, an welcher Stelle es erscheint? aus 02243 82566 wird im Nextcloud phonebook 022-438-2566 draus... In der Datenbank wird es korrekt gespeichert, also nur eine Darstellungsfrage... Nummern mit +49 am Anfang sind anscheinend nicht betroffen, anscheinend versucht das Darstellungs-script mit Gewalt aus einer Rufnummer eine internationale zu machen ... Also aus Vorwahl und Durchwahl eine Landeswahl, Vorwahl und durchwahl, und schneidet dafür die Vorwahl in zwei stücke...

Oder kann man einfach das Trennungszeichen ausschalten?


NC 11.0.1 on webspace with php5.6 ; sync works fine with android PS: https://help.nextcloud.com/t/question-suggestion-separation-sign-in-phonenumbers-trennungszeichen-in-telefonnummern/8760/3?u=cptechnik

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/41892461-better-format-tel-with-country-suggestion-and-spacing?utm_campaign=plugin&utm_content=tracker%2F46751899&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F46751899&utm_medium=issues&utm_source=github).
skjnldsv commented 7 years ago

@irgendwie @Henni what do you think? I think this could be a great idea for readability. We could let the user choose between spaces or dash (or condensed)?

Various layouts: (?)

0123456789
012-345-6789
0099-012-345-6789
01 23 45 67 89
0099 01 23 45 67 89
01234 56789
cptechnik commented 7 years ago

There are much variants of numberstructures... (also countrycodes with 2 or 1 number) In the first, maybe its possible to switch it of (0123456789)

skjnldsv commented 5 years ago

Ref: https://www.npmjs.com/package/libphonenumber-js https://www.npmjs.com/package/vue-tel-input

spoorun commented 4 years ago

Great enhancement, but it would be helpful if any auto-presentation-formatting of phone numbers was accompanied by at least a setting to switch it off - to ensure those who don't want it, or whose details don't fit well with the formatting don't have their workflow and aesthetics disrupted.