Results 1 to 9 of 9

Thread: Uk tel no and zimlets

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    14
    Rep Power
    9

    Default Uk tel no and zimlets

    I have just setup Zimbra and i am looking at the zimlets and noticed the one that recognizes telephone numbers only seems to work on US based numbers. Is there a version of pattern matching which works on UK numbers or is there anywhere I can configure it ?

    Thanks Nick

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You're correct, the zimlet only recognises the US phone number format. The only place to modify it would be in the zimlet code itself.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Sep 2006
    Posts
    14
    Rep Power
    9

    Default Access

    Thanks Bill, do you know how I can access the code ? what is the zimlet called ?Nick

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    You'll find the code for all the zimlets in /opt/zimbra/zimlets and the extra ones in /opt/zimbra/zimlets-extra - I suppose the most useful thing would be to add an option for the phone number format based on the browser language. You'll need to deploy the zimlet after you've modified it, have a look at these two articles in the wiki here and here

    HTH
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    It's the same for the day names when you have a non-english language...

  6. #6
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    3
    Rep Power
    9

    Thumbs up

    I have been using this regular expression to recognise UK telephone numbers.

    It will recognise telephone numbers in the following UK formats as well as the default US format;

    • (0nnnn) nnnnnn
    • 0nnnn nnnnnn
    • (0nnn) nnn nnnn
    • 0nnn nnn nnnn
    • 0nnnnnnnnnn
    • +ccnnnnnnnnnn (c = countrycode)
    • +cnnnnnnnnnn


    Code:
    (^|\W)(?:\+\d{12}|\+\d{11}|0\d{10}|(?:\+1\s+)?(?:(?:\((?:\d{3}|0\d{3}|0\d{4})\)[-.\s]?|(?:\d{3}|0\d{3}|0\d{4})[-.\s]))?(?:\d{6}|\d{3}[-.\s]\d{4}))(\W|$)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •