1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Merge pull request #100 from EmanueleMinotto/master

it_IT update
This commit is contained in:
Francois Zaninotto 2013-01-10 15:03:08 -08:00
commit f5a9a4f78d
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,10 @@
<?php
namespace Faker\Provider\it_IT;
class Internet extends \Faker\Provider\Internet
{
protected static $safeEmailTld = array('org', 'com', 'net', 'it');
protected static $freeEmailDomain = array('gmail.com', 'yahoo.com', 'hotmail.com', 'email.it', 'libero.it', 'yahoo.it');
protected static $tld = array('com', 'com', 'com', 'net', 'org', 'it', 'it', 'it');
}

View File

@ -62,7 +62,7 @@ class Person extends \Faker\Provider\Person
'Milani', 'Pagano', 'Ruggiero', 'Sorrentino', 'D\'amico', 'Orlando', 'Damico', 'Negri'
);
private static $prefix = array('Sig.', 'Dott.');
private static $prefix = array('Sig.', 'Dott.', 'Dr.', 'Ing.');
private static $suffix = array();

View File

@ -13,6 +13,11 @@ class PhoneNumber extends \Faker\Provider\PhoneNumber
'+## ### #######',
'+## ### ########',
'+## #### #######',
'+## #### ########'
'+## #### ########',
// According to http://it.wikipedia.org/wiki/Prefisso_telefonico#Elenco_degli_indicativi_in_Italia.2C_a_San_Marino_e_nel_Vaticano
'0## ### ####',
'+39 0## ### ###',
'3## ### ###',
'+39 3## ### ###'
);
}