mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
domains: unique i18n key for dyndns too many requests
This commit is contained in:
parent
ca1e088f29
commit
4a7b2b2cbf
2 changed files with 3 additions and 4 deletions
|
@ -397,7 +397,6 @@
|
|||
"downloading": "Downloading...",
|
||||
"dpkg_is_broken": "You cannot do this right now because dpkg/APT (the system package managers) seems to be in a broken state... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a` and/or `sudo dpkg --audit`.",
|
||||
"dpkg_lock_not_available": "This command can't be run right now because another program seems to be using the lock of dpkg (the system package manager)",
|
||||
"dyndns_availability_too_many_requests": "YunoHost's dyndns service received too many requests from you, wait 1 minute or so before trying again.",
|
||||
"dyndns_could_not_check_available": "Could not check if {domain} is available on {provider}.",
|
||||
"dyndns_domain_not_provided": "DynDNS provider {provider} cannot provide domain {domain}.",
|
||||
"dyndns_ip_update_failed": "Could not update IP address to DynDNS",
|
||||
|
@ -408,11 +407,11 @@
|
|||
"dyndns_provider_unreachable": "Unable to reach DynDNS provider {provider}: either your YunoHost is not correctly connected to the internet or the dynette server is down.",
|
||||
"dyndns_subscribed": "DynDNS domain subscribed",
|
||||
"dyndns_subscribe_failed": "Could not subscribe DynDNS domain: {error}",
|
||||
"dyndns_too_many_requests": "YunoHost's dyndns service received too many requests from you, wait 1 hour or so before trying again.",
|
||||
"dyndns_unsubscribe_failed": "Could not unsubscribe DynDNS domain: {error}",
|
||||
"dyndns_unsubscribed": "DynDNS domain unsubscribed",
|
||||
"dyndns_unsubscribe_denied": "Failed to unsubscribe domain: invalid credentials",
|
||||
"dyndns_unsubscribe_already_unsubscribed": "Domain is already unsubscribed",
|
||||
"dyndns_unsubscribe_too_many_requests": "YunoHost's dyndns service received too many requests from you, wait 1 hour or so before trying again.",
|
||||
"dyndns_set_recovery_password_denied": "Failed to set recovery password: invalid key",
|
||||
"dyndns_set_recovery_password_unknown_domain": "Failed to set recovery password: domain not registered",
|
||||
"dyndns_set_recovery_password_invalid_password": "Failed to set recovery password: password is not strong enough",
|
||||
|
|
|
@ -79,7 +79,7 @@ def _dyndns_available(domain):
|
|||
elif r.status_code == 409:
|
||||
return False
|
||||
elif r.status_code == 429:
|
||||
raise YunohostValidationError("dyndns_availability_too_many_requests")
|
||||
raise YunohostValidationError("dyndns_too_many_requests")
|
||||
else:
|
||||
raise YunohostError(
|
||||
"dyndns_could_not_check_available", domain=domain, provider=DYNDNS_PROVIDER
|
||||
|
@ -276,7 +276,7 @@ def dyndns_unsubscribe(operation_logger, domain, recovery_password=None):
|
|||
elif r.status_code == 409:
|
||||
raise YunohostValidationError("dyndns_unsubscribe_already_unsubscribed")
|
||||
elif r.status_code == 429:
|
||||
raise YunohostValidationError("dyndns_unsubscribe_too_many_requests")
|
||||
raise YunohostValidationError("dyndns_too_many_requests")
|
||||
else:
|
||||
raise YunohostError(
|
||||
"dyndns_unsubscribe_failed",
|
||||
|
|
Loading…
Add table
Reference in a new issue