Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various #2276

Merged
merged 13 commits into from
Sep 18, 2023
28 changes: 28 additions & 0 deletions cli/paypal_payout_countries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import re
from time import sleep

import requests


sess = requests.Session()
r = sess.get('https://www.paypal.com/webapps/mpp/country-worldwide')
country_codes = set(re.findall(r"/([a-z]{2})/home", r.text))
for cc in sorted(country_codes):
print(f"Requesting info for country code {cc.upper()}")
r = sess.get(f"https://www.paypal.com/{cc}/home")
if "Please wait while we perform security check" in r.text:
raise Exception("PayPal blocked the request")
if f"/{cc}/webapps/" not in r.text:
raise Exception("PayPal's response doesn't seem to contain the expected information")
is_supported = (
f"/{cc}/webapps/mpp/accept-payments-online" in r.text or
f"/{cc}/business/accept-payments" in r.text
)
if not is_supported:
country_codes.remove(cc)
sleep(1.5)

country_codes.remove('uk')
country_codes.add('gb')
print(f"PayPal should be available to creators in the following {len(country_codes)} countries:")
print(' '.join(map(str.upper, sorted(country_codes))))
14 changes: 7 additions & 7 deletions i18n/core/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -4923,13 +4923,13 @@ msgstr "يدعم PayPal فقط {n_paypal_currencies} من العملات {n_libe

#, fuzzy, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "يتوفر PayPal للمبدعين في أكثر من 200 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[1] "يتوفر PayPal للمبدعين في أكثر من 200 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[2] "يتوفر PayPal للمبدعين في أكثر من 200 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[3] "يتوفر PayPal للمبدعين في أكثر من 200 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[4] "يتوفر PayPal للمبدعين في أكثر من 200 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[5] "يتوفر PayPal للمبدعين في أكثر من 200 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "يتوفر PayPal للمبدعين في أكثر من 100 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[1] "يتوفر PayPal للمبدعين في أكثر من 100 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[2] "يتوفر PayPal للمبدعين في أكثر من 100 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[3] "يتوفر PayPal للمبدعين في أكثر من 100 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[4] "يتوفر PayPal للمبدعين في أكثر من 100 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."
msgstr[5] "يتوفر PayPal للمبدعين في أكثر من 100 دولة ، بينما يدعم Stripe فقط البلدان {n} بطريقة مناسبة."

#, fuzzy, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
6 changes: 3 additions & 3 deletions i18n/core/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -4184,9 +4184,9 @@ msgstr "PayPal només admet {n_paypal_currencies} de les {n_liberapay_currencies

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal està disponible per als creadors de més de 200 països, mentre que Stripe només admet {n} país d'una manera adequada."
msgstr[1] "PayPal està disponible per als creadors de més de 200 països, mentre que Stripe només admet {n} països d'una manera adequada."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal està disponible per als creadors de més de 100 països, mentre que Stripe només admet {n} país d'una manera adequada."
msgstr[1] "PayPal està disponible per als creadors de més de 100 països, mentre que Stripe només admet {n} països d'una manera adequada."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
8 changes: 4 additions & 4 deletions i18n/core/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -4227,10 +4227,10 @@ msgstr "Služba PayPal podporuje pouze {n_paypal_currencies} z {n_liberapay_curr

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "Služba PayPal je k dispozici tvůrcům ve více než 200 zemích, zatímco Stripe vhodným způsobem podporuje pouze {n} zemi."
msgstr[1] "Služba PayPal je k dispozici tvůrcům ve více než 200 zemích, zatímco Stripe vhodným způsobem podporuje pouze {n} země."
msgstr[2] "Služba PayPal je k dispozici tvůrcům ve více než 200 zemích, zatímco Stripe vhodným způsobem podporuje pouze {n} zemí."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "Služba PayPal je k dispozici tvůrcům ve více než 100 zemích, zatímco Stripe vhodným způsobem podporuje pouze {n} zemi."
msgstr[1] "Služba PayPal je k dispozici tvůrcům ve více než 100 zemích, zatímco Stripe vhodným způsobem podporuje pouze {n} země."
msgstr[2] "Služba PayPal je k dispozici tvůrcům ve více než 100 zemích, zatímco Stripe vhodným způsobem podporuje pouze {n} zemí."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
6 changes: 3 additions & 3 deletions i18n/core/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -4183,9 +4183,9 @@ msgstr "PayPal understøtter kun {n_paypal_currencies} af de {n_liberapay_curren

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal er tilgængelig for skabere i mere end 200 lande, hvorimod Stripe kun understøtter {n} land på en passende måde."
msgstr[1] "PayPal er tilgængelig for skabere i mere end 200 lande, hvorimod Stripe kun understøtter {n} lande på en passende måde."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal er tilgængelig for skabere i mere end 100 lande, hvorimod Stripe kun understøtter {n} land på en passende måde."
msgstr[1] "PayPal er tilgængelig for skabere i mere end 100 lande, hvorimod Stripe kun understøtter {n} lande på en passende måde."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -4184,9 +4184,9 @@ msgstr "Paypal unterstützt nur {n_paypal_currencies} von {n_liberapay_currencie

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgstr[1] "Paypal ist für Erstellende in mehr als 200 Ländern verfügbar, während Stripe nur {n} Länder adäquat unterstützt."
msgstr[1] "Paypal ist für Erstellende in mehr als 100 Ländern verfügbar, während Stripe nur {n} Länder adäquat unterstützt."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/el.po
Original file line number Diff line number Diff line change
Expand Up @@ -4183,9 +4183,9 @@ msgstr "Το PayPal υποστηρίζει μόνο το {n_paypal_currencies}

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgstr[1] "Το PayPal είναι διαθέσιμο σε δημιουργούς σε περισσότερες από 200 χώρες, ενώ το Stripe υποστηρίζει μόνο τις χώρες {n} με κατάλληλο τρόπο."
msgstr[1] "Το PayPal είναι διαθέσιμο σε δημιουργούς σε περισσότερες από 100 χώρες, ενώ το Stripe υποστηρίζει μόνο τις χώρες {n} με κατάλληλο τρόπο."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/eo.po
Original file line number Diff line number Diff line change
Expand Up @@ -4183,9 +4183,9 @@ msgstr "PayPal nur subtenas {n_paypal_currencies} el la {n_liberapay_currencies}

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgstr[1] "PayPal estas disponebla al kreantoj en pli ol 200 landoj, dum Stripe nur taŭge subtenas {n} landojn."
msgstr[1] "PayPal estas disponebla al kreantoj en pli ol 100 landoj, dum Stripe nur taŭge subtenas {n} landojn."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -4184,9 +4184,9 @@ msgstr "PayPal solo soporta {n_paypal_currencies} de las {n_liberapay_currencies

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgstr[1] "PayPal está disponible para los creadores de más de 200 países, mientras que Stripe sólo admite {n} países de forma adecuada."
msgstr[1] "PayPal está disponible para los creadores de más de 100 países, mientras que Stripe sólo admite {n} países de forma adecuada."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/et.po
Original file line number Diff line number Diff line change
Expand Up @@ -4864,8 +4864,8 @@ msgstr "PayPal toetab ainult {n_paypal_currencies} {n_liberapay_currencies} valu

#, fuzzy, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal on kättesaadav enam kui 200 riigi loojatele, samas kui Stripe toetab sobival viisil ainult {n} riike."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal on kättesaadav enam kui 100 riigi loojatele, samas kui Stripe toetab sobival viisil ainult {n} riike."
msgstr[1] ""

#, fuzzy, python-brace-format
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -4184,9 +4184,9 @@ msgstr "Liberapayn ja Stripen tukemista {n_liberapay_currencies} valuutasta vain

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "mörgö"
msgstr[1] "PayPal on sisällöntuottajien saatavilla yli 200 maassa, mutta Stripe tukee vain {n} maata soveltuvalla tavalla."
msgstr[1] "PayPal on sisällöntuottajien saatavilla yli 100 maassa, mutta Stripe tukee vain {n} maata soveltuvalla tavalla."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4184,9 +4184,9 @@ msgstr "PayPal ne prend en charge que {n_paypal_currencies} des {n_liberapay_cur

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgstr[1] "PayPal est disponible pour les créateurs dans plus de 200 pays, alors que Stripe ne prend en charge de manière appropriée que {n} pays."
msgstr[1] "PayPal est disponible pour les créateurs dans plus de 100 pays, alors que Stripe ne prend en charge de manière appropriée que {n} pays."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/fy.po
Original file line number Diff line number Diff line change
Expand Up @@ -4879,8 +4879,8 @@ msgstr "PayPal stipet allinich {n_paypal_currencies} fan 'e {n_liberapay_currenc

#, fuzzy, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal is beskikber foar makkers yn mear dan 200 lannen, wylst Stripe allinich {n} lannen op in gaadlike manier stipet."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal is beskikber foar makkers yn mear dan 100 lannen, wylst Stripe allinich {n} lannen op in gaadlike manier stipet."
msgstr[1] ""

#, fuzzy, python-brace-format
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/ga.po
Original file line number Diff line number Diff line change
Expand Up @@ -4951,8 +4951,8 @@ msgstr "Ní thacaíonn PayPal ach le {n_paypal_currencies} de na hairgeadraí {n

#, fuzzy, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "Tá PayPal ar fáil do chruthaitheoirí i níos mó ná 200 tír, ach ní thacaíonn Stripe ach le {n} tíortha ar bhealach oiriúnach."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "Tá PayPal ar fáil do chruthaitheoirí i níos mó ná 100 tír, ach ní thacaíonn Stripe ach le {n} tíortha ar bhealach oiriúnach."
msgstr[1] ""
msgstr[2] ""

Expand Down
4 changes: 2 additions & 2 deletions i18n/core/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -4353,8 +4353,8 @@ msgstr "A PayPal csak a {n_paypal_currencies} a {n_liberapay_currencies} pénzne

#, fuzzy, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "A PayPal több mint 200 országban áll az alkotók rendelkezésére, míg a Stripe csak a {n} országokat támogatja megfelelő módon."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "A PayPal több mint 100 országban áll az alkotók rendelkezésére, míg a Stripe csak a {n} országokat támogatja megfelelő módon."

#, fuzzy, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/id.po
Original file line number Diff line number Diff line change
Expand Up @@ -4160,8 +4160,8 @@ msgstr "PayPal hanya mendukung {n_paypal_currencies} dari {n_liberapay_currencie

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal tersedia bagi para pembuat konten di lebih dari 200 negara, sedangkan Stripe hanya mendukung {n} negara dengan cara yang sesuai."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "PayPal tersedia bagi para pembuat konten di lebih dari 100 negara, sedangkan Stripe hanya mendukung {n} negara dengan cara yang sesuai."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
4 changes: 2 additions & 2 deletions i18n/core/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -4184,9 +4184,9 @@ msgstr "PayPal supporta solo {n_paypal_currencies} delle {n_liberapay_currencies

#, python-brace-format
msgid "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgid_plural "PayPal is available to creators in more than 200 countries, whereas Stripe only supports {n} countries in a suitable way."
msgid_plural "PayPal is available to creators in more than 100 countries, whereas Stripe only supports {n} countries in a suitable way."
msgstr[0] "<unused singular (hash=901d1e29a8c2a0e16ff208c9a8fda012)>"
msgstr[1] "PayPal è disponibile per i creatori in più di 200 Paesi, mentre Stripe supporta in modo adeguato solo {n} Paesi."
msgstr[1] "PayPal è disponibile per i creatori in più di 100 Paesi, mentre Stripe supporta in modo adeguato solo {n} Paesi."

#, python-brace-format
msgid "You can find more information on supported countries and currencies in {link_start}the “{page_name}” page{link_end}."
Expand Down
Loading