-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
220 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
exclude .gitignore | ||
exclude check-translations | ||
prune .github | ||
include phonenumber_field/locale/*/LC_MESSAGES/django.mo |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Handling phone numbers | ||
====================== | ||
|
||
`Google’s libphonenumber “Falsehoods Programmers Believe About Phone Numbers” | ||
<https://github.com/google/libphonenumber/blob/master/FALSEHOODS.md>`_ are | ||
worth keeping in mind, especially since this library relies heavily on | ||
`libphonenumber <https://github.com/google/libphonenumber/>`_. | ||
|
||
About phone numbers extensions | ||
------------------------------ | ||
|
||
An extension is an additional phone line added to an existing phone system, | ||
making it possible to reach a specific employee or department within an | ||
organization. An extension is defined in the following manner: | ||
|
||
.. doctest:: extensions | ||
|
||
>>> import phonenumbers | ||
>>> phonenumbers.parse("+1 604-401-1234 ext. 987") | ||
PhoneNumber(country_code=1, national_number=6044011234, extension='987', italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=0, preferred_domestic_carrier_code=None) | ||
>>> phonenumbers.parse("+1 604-401-1234,987") | ||
PhoneNumber(country_code=1, national_number=6044011234, extension='987', italian_leading_zero=None, number_of_leading_zeros=None, country_code_source=0, preferred_domestic_carrier_code=None) | ||
|
||
The library primarily focuses on public phone numbers, its default format and | ||
database representation are using `E.164 | ||
<https://en.wikipedia.org/wiki/E.164>`_, which has no support for extensions. | ||
|
||
Projects that need to handle phone number extensions must set **both** | ||
:setting:`PHONENUMBER_DEFAULT_FORMAT` and :setting:`PHONENUMBER_DB_FORMAT` to | ||
an extension-compatible format, as described in | ||
:ref:`settings-format-choices`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
django | ||
djangorestframework | ||
phonenumberslite | ||
sphinx-rtd-theme |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,47 @@ | ||
# Copyright (C) 2013-2018 | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# | ||
# Francesco Facconi <[email protected]>, 2013-2017. | ||
# Paolo Melchiorre <[email protected]>, 2018. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2019-05-28 13:04-0700\n" | ||
"PO-Revision-Date: 2018-02-28 20:23+0100\n" | ||
"Last-Translator: Paolo Melchiorre <[email protected]>\n" | ||
"Language-Team: Italian <[email protected]>\n" | ||
"Language: it\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
"X-Generator: Poedit 2.0.4\n" | ||
|
||
#: formfields.py:27 | ||
#, python-brace-format | ||
msgid "" | ||
"Enter a valid phone number (e.g. {example_number}) or a number with an " | ||
"international call prefix." | ||
msgstr "" | ||
|
||
#. Translators: {example_number} is an international phone number. | ||
#: formfields.py:33 | ||
#, fuzzy, python-brace-format | ||
#| msgid "Enter a valid phone number." | ||
msgid "Enter a valid phone number (e.g. {example_number})." | ||
msgstr "Inserire un numero di telefono valido." | ||
|
||
#: modelfields.py:51 | ||
msgid "Phone number" | ||
msgstr "Numero di telefono" | ||
|
||
#: serializerfields.py:9 | ||
msgid "Enter a valid phone number." | ||
msgstr "Inserire un numero di telefono valido." | ||
|
||
#: validators.py:11 | ||
msgid "The phone number entered is not valid." | ||
msgstr "Il numero di telefono inserito non è valido." | ||
# Copyright (C) 2013-2018 | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# | ||
# Francesco Facconi <[email protected]>, 2013-2017. | ||
# Paolo Melchiorre <[email protected]>, 2018. | ||
# Ruggero Fabbiano <[email protected]>, 2023. | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: \n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-12-28 15:43+0100\n" | ||
"PO-Revision-Date: 2018-02-28 20:23+0100\n" | ||
"Last-Translator: Paolo Melchiorre <[email protected]>\n" | ||
"Language-Team: Italian <[email protected]>\n" | ||
"Language: it\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
"X-Generator: Poedit 2.0.4\n" | ||
|
||
#: .\formfields.py:43 | ||
#, python-brace-format | ||
msgid "" | ||
"Enter a valid phone number (e.g. {example_number}) or a number with an " | ||
"international call prefix." | ||
msgstr "" | ||
"Inserisci un numero di telefono valido (esempio: {example_number}) o un " | ||
"numero con un prefisso internazionale." | ||
|
||
#. Translators: {example_number} is an international phone number. | ||
#: .\formfields.py:49 | ||
#, python-brace-format | ||
msgid "Enter a valid phone number (e.g. {example_number})." | ||
msgstr "Inserisci un numero di telefono valido (esempio: {example_number})." | ||
|
||
#: .\modelfields.py:53 | ||
msgid "Phone number" | ||
msgstr "Numero di telefono" | ||
|
||
#: .\serializerfields.py:10 | ||
msgid "Enter a valid phone number." | ||
msgstr "Inserisci un numero di telefono valido." | ||
|
||
#: .\validators.py:11 | ||
msgid "The phone number entered is not valid." | ||
msgstr "Il numero di telefono inserito non è valido." |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.