https://bugs.kde.org/show_bug.cgi?id=465496

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |[email protected]
             Status|REPORTED                    |CONFIRMED
           Severity|wishlist                    |normal
            Summary|nonstandard phone number    |Local phone number in
                   |formats                     |example text is invalid for
                   |                            |en_US locale (and possibly
                   |                            |others)

--- Comment #1 from Nate Graham <[email protected]> ---
Looks like this is a bug in exampleutility.cpp:

QString Utility::phoneNumbersExample(const QLocale &locale)
{
    const QHash<QChar, QString> map = {
        {'a', "123"}, // Area code without nationwide prefix
        {'A', "0123"}, // Area code with nationwide prefix
        {'l', "1234567"}, // Local number within area code
        {'e', "321"}, // Extension to local number
        {'c', getLocaleInfo(_NL_TELEPHONE_INT_PREFIX, LC_TELEPHONE, locale)},
// Country code
        {'C', "01"}, // Alternate carrier service code used for dialling abroad
        {'t', ki18nc("Whitespace for telephone style example", "
").toString(getLangCodeFromLocale(locale))}, // Insert space
    };

    return resolveFieldDescriptors(map, _NL_TELEPHONE_TEL_INT_FMT,
LC_TELEPHONE, locale);
}

It always returns "1234567" for the local phone number, despite the fact that
this may not be accurate for the locale.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to