From e1606a91b988f3939b31ac3571755cafdec0b7df Mon Sep 17 00:00:00 2001 From: Krzysztof Rewak Date: Fri, 15 Oct 2021 20:29:24 +0200 Subject: [PATCH 1/4] Polish countries and continents added --- packages/continents-pl/composer.json | 45 ++++ packages/continents-pl/resources/data.csv | 8 + .../src/ContinentsPlServiceProvider.php | 14 + packages/countries-pl/composer.json | 45 ++++ packages/countries-pl/resources/data.csv | 251 ++++++++++++++++++ .../src/CountriesPlServiceProvider.php | 14 + 6 files changed, 377 insertions(+) create mode 100644 packages/continents-pl/composer.json create mode 100644 packages/continents-pl/resources/data.csv create mode 100644 packages/continents-pl/src/ContinentsPlServiceProvider.php create mode 100644 packages/countries-pl/composer.json create mode 100644 packages/countries-pl/resources/data.csv create mode 100644 packages/countries-pl/src/CountriesPlServiceProvider.php diff --git a/packages/continents-pl/composer.json b/packages/continents-pl/composer.json new file mode 100644 index 0000000..cec13d0 --- /dev/null +++ b/packages/continents-pl/composer.json @@ -0,0 +1,45 @@ +{ + "name": "squirephp/continents-pl", + "description": "A library containing the Polish translation of Squire's Continent model.", + "keywords": [ + "squire" + ], + "license": "MIT", + "homepage": "https://github.com/squirephp", + "support": { + "issues": "https://github.com/squirephp/squire/issues", + "source": "https://github.com/squirephp/squire" + }, + "authors": [ + { + "name": "Dan Harrin", + "email": "dan@danharrin.com" + }, + { + "name": "Krzysztof Rewak", + "email": "krzysztof.rewak@gmail.com" + } + ], + "require": { + "php": "^8.0", + "illuminate/support": "^8.0", + "squirephp/continents": "self.version", + "squirephp/repository": "self.version" + }, + "autoload": { + "psr-4": { + "Squire\\": "src" + } + }, + "extra": { + "laravel": { + "providers": [ + "Squire\\ContinentsPlServiceProvider" + ] + } + }, + "config": { + "sort-packages": true + }, + "minimum-stability": "dev" +} diff --git a/packages/continents-pl/resources/data.csv b/packages/continents-pl/resources/data.csv new file mode 100644 index 0000000..373c8bb --- /dev/null +++ b/packages/continents-pl/resources/data.csv @@ -0,0 +1,8 @@ +id,code,name +af,af,Afryka +an,an,Antarktyda +as,as,Azja +eu,eu,Europa +na,na,Ameryka Północna +oc,oc,Oceania +sa,sa,Ameryka Południowa \ No newline at end of file diff --git a/packages/continents-pl/src/ContinentsPlServiceProvider.php b/packages/continents-pl/src/ContinentsPlServiceProvider.php new file mode 100644 index 0000000..f09ad74 --- /dev/null +++ b/packages/continents-pl/src/ContinentsPlServiceProvider.php @@ -0,0 +1,14 @@ + Date: Fri, 15 Oct 2021 20:30:44 +0200 Subject: [PATCH 2/4] readme++ --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ea299f2..9070d3e 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr |--|--| | German | `composer require squirephp/continents-de` | | English | `composer require squirephp/continents-en` | +| Polish | `composer require squirephp/continents-pl` | #### Schema @@ -149,6 +150,7 @@ Country::where('name', 'like', 'a%')->get(); // Get information about all countr | English | `composer require squirephp/countries-en` | | French | `composer require squirephp/countries-fr` | | German | `composer require squirephp/countries-de` | +| Polish | `composer require squirephp/countries-pl` | | Spanish | `composer require squirephp/countries-es` | #### Schema From b2799f28f2b07b59f259c9ac353464d147446d00 Mon Sep 17 00:00:00 2001 From: Krzysztof Rewak Date: Fri, 15 Oct 2021 20:33:57 +0200 Subject: [PATCH 3/4] EOFs --- packages/continents-pl/src/ContinentsPlServiceProvider.php | 2 +- packages/countries-pl/src/CountriesPlServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/continents-pl/src/ContinentsPlServiceProvider.php b/packages/continents-pl/src/ContinentsPlServiceProvider.php index f09ad74..f31a3dd 100644 --- a/packages/continents-pl/src/ContinentsPlServiceProvider.php +++ b/packages/continents-pl/src/ContinentsPlServiceProvider.php @@ -11,4 +11,4 @@ public function boot(): void { Repository::registerSource(Continent::class, 'pl', __DIR__ . '/../resources/data.csv'); } -} \ No newline at end of file +} diff --git a/packages/countries-pl/src/CountriesPlServiceProvider.php b/packages/countries-pl/src/CountriesPlServiceProvider.php index 782c64f..749242e 100644 --- a/packages/countries-pl/src/CountriesPlServiceProvider.php +++ b/packages/countries-pl/src/CountriesPlServiceProvider.php @@ -11,4 +11,4 @@ public function boot(): void { Repository::registerSource(Country::class, 'pl', __DIR__ . '/../resources/data.csv'); } -} \ No newline at end of file +} From 080cbb2e2e1fed5229b996bc0d6ceb4ff1456a19 Mon Sep 17 00:00:00 2001 From: Krzysztof Rewak Date: Fri, 15 Oct 2021 20:43:23 +0200 Subject: [PATCH 4/4] Astana -> Nur-Sultan --- packages/countries-de/resources/data.csv | 2 +- packages/countries-en/resources/data.csv | 2 +- packages/countries-es/resources/data.csv | 2 +- packages/countries-fr/resources/data.csv | 2 +- packages/countries-pl/resources/data.csv | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/countries-de/resources/data.csv b/packages/countries-de/resources/data.csv index ed01a8e..1145587 100644 --- a/packages/countries-de/resources/data.csv +++ b/packages/countries-de/resources/data.csv @@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Nordkorea kr,82,Seoul,kr,kor,as,krw,🇰🇷,Südkorea kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Kuwait ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Kaimaninseln -kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kasachstan +kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kasachstan la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Libanon lc,1758,Castries,lc,lca,na,xcd,🇱🇨,St. Lucia diff --git a/packages/countries-en/resources/data.csv b/packages/countries-en/resources/data.csv index ea7622e..2ecc3d7 100644 --- a/packages/countries-en/resources/data.csv +++ b/packages/countries-en/resources/data.csv @@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,North Korea kr,82,Seoul,kr,kor,as,krw,🇰🇷,South Korea kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Kuwait ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Cayman Islands -kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazakhstan +kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kazakhstan la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Lebanon lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Saint Lucia diff --git a/packages/countries-es/resources/data.csv b/packages/countries-es/resources/data.csv index d29d839..bd19130 100644 --- a/packages/countries-es/resources/data.csv +++ b/packages/countries-es/resources/data.csv @@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Corea del Norte kr,82,Seoul,kr,kor,as,krw,🇰🇷,Corea del Sur kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Kuwait ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Islas Caimán -kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazajistán +kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kazajistán la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Líbano lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Santa Lucía diff --git a/packages/countries-fr/resources/data.csv b/packages/countries-fr/resources/data.csv index a5abbd4..1ffcf52 100644 --- a/packages/countries-fr/resources/data.csv +++ b/packages/countries-fr/resources/data.csv @@ -123,7 +123,7 @@ kp,850,Pyongyang,kp,prk,as,kpw,🇰🇵,Corée du Nord kr,82,Seoul,kr,kor,as,krw,🇰🇷,Corée du Sud kw,965,Kuwait City,kw,kwt,as,kwd,🇰🇼,Koweït ky,1345,George Town,ky,cym,na,kyd,🇰🇾,Îles Caïmans -kz,7,Astana,kz,kaz,as,kzt,🇰🇿,Kazakhstan +kz,7,Nur-Sultan,kz,kaz,as,kzt,🇰🇿,Kazakhstan la,856,Vientiane,la,lao,as,lak,🇱🇦,Laos lb,961,Beirut,lb,lbn,as,lbp,🇱🇧,Liban lc,1758,Castries,lc,lca,na,xcd,🇱🇨,Sainte-Lucie diff --git a/packages/countries-pl/resources/data.csv b/packages/countries-pl/resources/data.csv index 8dcc0bc..6ec5b10 100644 --- a/packages/countries-pl/resources/data.csv +++ b/packages/countries-pl/resources/data.csv @@ -24,7 +24,7 @@ bg,359,Sofia,bg,bgr,eu,bgn,🇧🇬,Bułgaria bh,973,Manama,bh,bhr,as,bhd,🇧🇭,Bahrajn bi,257,Bużumbura,bi,bdi,af,bif,🇧🇮,Burundi bj,229,Porto-Novo,bj,ben,af,xof,🇧🇯,Benin -bl,590,Gustavia,bl,blm,na,eur,🇧🇱,Saint-Barthelemy +bl,590,Gustavia,bl,blm,na,eur,🇧🇱,Saint-Barthélemy bm,1441,Hamilton,bm,bmu,na,bmd,🇧🇲,Bermudy bn,673,Bandar Seri Begawan,bn,brn,as,bnd,🇧🇳,Brunei bo,591,Sucre,bo,bol,sa,bob,🇧🇴,Boliwia @@ -93,7 +93,7 @@ gt,502,Gwatemala,gt,gtm,na,gtq,🇬🇹,Gwatemala gu,1671,Hagatna,gu,gum,oc,usd,🇬🇺,Guam gw,245,Bissau,gw,gnb,af,xof,🇬🇼,Gwinea Bissau gy,592,Georgetown,gy,guy,sa,gyd,🇬🇾,Gujana -hk,852,Hong Kong,hk,hkg,as,hkd,🇭🇰,Hongkong +hk,852,Hongkong,hk,hkg,as,hkd,🇭🇰,Hongkong hm,672,,hm,hmd,oc,,🇦🇺,Wyspy Heard i McDonalda hn,504,Tegucigalpa,hn,hnd,na,hnl,🇭🇳,Honduras hr,385,Zagrzeb,hr,hrv,eu,hrk,🇭🇷,Chorwacja