-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[FEATURE] New providers de_CH, fr_CH, it_CH #739
Conversation
Fixed the error. Now passing unit test on my local development environment. |
protected static $postcode = array('####'); | ||
|
||
protected static $cityNames = array( | ||
'Aarau', 'Aarberg', 'Aarburg', 'Agno', 'Aigle VD', 'Altdorf', 'Altstätten', 'Appenzell', 'Arbon', 'Ascona', 'Aubonne', 'Avenches', 'Baden', 'Bad Zurzach', 'Bâle', 'Bellinzone', 'Berne', 'Beromünster', 'Berthoud', 'Biasca', 'Bienne', 'Bischofszell', 'Boudry', 'Bourg-Saint-Pierre', 'Bremgarten AG', 'Brigue', 'Brugg', 'Bulle', 'Bülach', 'Cerlier', 'Châtel-Saint-Denis', 'Coire', 'Conthey', 'Coppet', 'Cossonay', 'Croglio', 'Cudrefin', 'Cully', 'Delémont', 'Diessenhofen', 'Échallens', 'Eglisau', 'Elgg', 'Estavayer-le-Lac', 'Frauenfeld', 'Fribourg', 'Genève', 'Glaris', 'Gordola', 'Grandcour', 'Grandson', 'Greifensee', 'Grüningen', 'Gruyères', 'Hermance', 'Huttwil', 'Ilanz', 'Kaiserstuhl', 'Klingnau', 'La Chaux-de-Fonds', 'La Neuveville', 'La Sarraz', 'La Tour-de-Peilz', 'La Tour-de-Trême', 'Le Landeron', 'Les Clées', 'Lachen', 'Langenthal', 'Laufon', 'Laufenburg', 'Laupen', 'Lausanne', 'Lenzburg', 'Loèche', 'Lichtensteig', 'Liestal', 'Locarno', 'Losone', 'Lugano', 'Lutry', 'Lucerne', 'Maienfeld', 'Martigny', 'Mellingen', 'Mendrisio', 'Monthey', 'Morat', 'Morcote', 'Morges', 'Moudon', 'Moutier', 'Münchenstein', 'Neuchâtel', 'Neunkirch', 'Nidau', 'Nyon', 'Olten', 'Orbe', 'Orsières', 'Payerne', 'Porrentruy', 'Rapperswil', 'Regensberg', 'Rheinau', 'Rheineck', 'Rheinfelden', 'Riva San Vitale', 'Rolle', 'Romainmôtier', 'Romont FR', 'Rorschach', 'Rue', 'Saillon', 'Saint-Maurice', 'Saint-Prex', 'Saint-Ursanne', 'Sala', 'Saint-Gall', 'Sargans', 'Sarnen', 'Schaffhouse', 'Schwytz', 'Sembrancher', 'Sempach', 'Sion', 'Soleure', 'Splügen', 'Stans', 'Steckborn', 'Stein am Rhein', 'Sursee', 'Thoune', 'Thusis', 'Unterseen', 'Uznach', 'Valangin', 'Vevey', 'Villeneuve', 'Viège', 'Waldenburg', 'Walenstadt', 'Wangen an der Aare', 'Werdenberg', 'Wiedlisbach', 'Wil', 'Willisau', 'Winterthour', 'Yverdon-les-Bains', 'Zofingue', 'Zoug', 'Zurich' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you split this line for easier reading? Also, what's the datasource?
Code splitted to lines for easier reading. Add missing static method for streetPrefix. I choosed a format with "short" and "name" key for accessing the values more easy for a canton name and short name pair. If you prefer the key => value pair, I will change that. |
For the text providers, please extend the providers from other locales rather than copying them. |
'Zdenka', 'Zehra', 'Zenta', 'Zeynep', 'Zita', 'Zofia', | ||
); | ||
|
||
protected static $lastName = array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing datasource
yes, please switch to key/value paris for cantons |
|
Should I do still some changes to the code? |
[FEATURE] New providers de_CH, fr_CH, it_CH
This is a very first release of providers for Switzerland.