mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
autodns: i18n
This commit is contained in:
parent
6ea538a43b
commit
7ab9889521
3 changed files with 13 additions and 8 deletions
|
@ -313,12 +313,18 @@
|
||||||
"domain_dyndns_already_subscribed": "You have already subscribed to a DynDNS domain",
|
"domain_dyndns_already_subscribed": "You have already subscribed to a DynDNS domain",
|
||||||
"domain_dyndns_root_unknown": "Unknown DynDNS root domain",
|
"domain_dyndns_root_unknown": "Unknown DynDNS root domain",
|
||||||
"domain_exists": "The domain already exists",
|
"domain_exists": "The domain already exists",
|
||||||
"domain_property_unknown": "The property {property} doesn't exist",
|
|
||||||
"domain_hostname_failed": "Unable to set new hostname. This might cause an issue later (it might be fine).",
|
"domain_hostname_failed": "Unable to set new hostname. This might cause an issue later (it might be fine).",
|
||||||
"domain_name_unknown": "Domain '{domain}' unknown",
|
"domain_name_unknown": "Domain '{domain}' unknown",
|
||||||
"domain_registrar_unknown": "This registrar is unknown. Look for yours with the command `yunohost domain catalog`",
|
|
||||||
"domain_remove_confirm_apps_removal": "Removing this domain will remove those applications:\n{apps}\n\nAre you sure you want to do that? [{answers}]",
|
"domain_remove_confirm_apps_removal": "Removing this domain will remove those applications:\n{apps}\n\nAre you sure you want to do that? [{answers}]",
|
||||||
"domain_uninstall_app_first": "Those applications are still installed on your domain:\n{apps}\n\nPlease uninstall them using 'yunohost app remove the_app_id' or move them to another domain using 'yunohost app change-url the_app_id' before proceeding to domain removal",
|
"domain_uninstall_app_first": "Those applications are still installed on your domain:\n{apps}\n\nPlease uninstall them using 'yunohost app remove the_app_id' or move them to another domain using 'yunohost app change-url the_app_id' before proceeding to domain removal",
|
||||||
|
"domain_registrar_is_not_configured": "The registrar is not yet configured for domain {domain}.",
|
||||||
|
"domain_dns_push_not_applicable": "The DNS push feature is not applicable to domain {domain}",
|
||||||
|
"domain_config_auth_token": "Authentication token",
|
||||||
|
"domain_config_api_protocol": "API protocol",
|
||||||
|
"domain_config_auth_entrypoint": "API entry point",
|
||||||
|
"domain_config_auth_application_key": "Application key",
|
||||||
|
"domain_config_auth_application_secret": "Application secret key",
|
||||||
|
"domain_config_auth_consumer_key": "Consumer key",
|
||||||
"domains_available": "Available domains:",
|
"domains_available": "Available domains:",
|
||||||
"done": "Done",
|
"done": "Done",
|
||||||
"downloading": "Downloading...",
|
"downloading": "Downloading...",
|
||||||
|
@ -423,6 +429,7 @@
|
||||||
"log_domain_config_set": "Update configuration for domain '{}'",
|
"log_domain_config_set": "Update configuration for domain '{}'",
|
||||||
"log_domain_main_domain": "Make '{}' the main domain",
|
"log_domain_main_domain": "Make '{}' the main domain",
|
||||||
"log_domain_remove": "Remove '{}' domain from system configuration",
|
"log_domain_remove": "Remove '{}' domain from system configuration",
|
||||||
|
"log_domain_dns_push": "Push DNS records for domain '{}'",
|
||||||
"log_dyndns_subscribe": "Subscribe to a YunoHost subdomain '{}'",
|
"log_dyndns_subscribe": "Subscribe to a YunoHost subdomain '{}'",
|
||||||
"log_dyndns_update": "Update the IP associated with your YunoHost subdomain '{}'",
|
"log_dyndns_update": "Update the IP associated with your YunoHost subdomain '{}'",
|
||||||
"log_help_to_get_failed_log": "The operation '{desc}' could not be completed. Please share the full log of this operation using the command 'yunohost log share {name}' to get help",
|
"log_help_to_get_failed_log": "The operation '{desc}' could not be completed. Please share the full log of this operation using the command 'yunohost log share {name}' to get help",
|
||||||
|
@ -530,7 +537,6 @@
|
||||||
"pattern_password": "Must be at least 3 characters long",
|
"pattern_password": "Must be at least 3 characters long",
|
||||||
"pattern_password_app": "Sorry, passwords can not contain the following characters: {forbidden_chars}",
|
"pattern_password_app": "Sorry, passwords can not contain the following characters: {forbidden_chars}",
|
||||||
"pattern_port_or_range": "Must be a valid port number (i.e. 0-65535) or range of ports (e.g. 100:200)",
|
"pattern_port_or_range": "Must be a valid port number (i.e. 0-65535) or range of ports (e.g. 100:200)",
|
||||||
"pattern_positive_number": "Must be a positive number",
|
|
||||||
"pattern_username": "Must be lower-case alphanumeric and underscore characters only",
|
"pattern_username": "Must be lower-case alphanumeric and underscore characters only",
|
||||||
"permission_already_allowed": "Group '{group}' already has permission '{permission}' enabled",
|
"permission_already_allowed": "Group '{group}' already has permission '{permission}' enabled",
|
||||||
"permission_already_disallowed": "Group '{group}' already has permission '{permission}' disabled",
|
"permission_already_disallowed": "Group '{group}' already has permission '{permission}' disabled",
|
||||||
|
@ -569,7 +575,6 @@
|
||||||
"regenconf_would_be_updated": "The configuration would have been updated for category '{category}'",
|
"regenconf_would_be_updated": "The configuration would have been updated for category '{category}'",
|
||||||
"regex_incompatible_with_tile": "/!\\ Packagers! Permission '{permission}' has show_tile set to 'true' and you therefore cannot define a regex URL as the main URL",
|
"regex_incompatible_with_tile": "/!\\ Packagers! Permission '{permission}' has show_tile set to 'true' and you therefore cannot define a regex URL as the main URL",
|
||||||
"regex_with_only_domain": "You can't use a regex for domain, only for path",
|
"regex_with_only_domain": "You can't use a regex for domain, only for path",
|
||||||
"registrar_is_not_set": "The registrar for this domain has not been configured",
|
|
||||||
"restore_already_installed_app": "An app with the ID '{app}' is already installed",
|
"restore_already_installed_app": "An app with the ID '{app}' is already installed",
|
||||||
"restore_already_installed_apps": "The following apps can't be restored because they are already installed: {apps}",
|
"restore_already_installed_apps": "The following apps can't be restored because they are already installed: {apps}",
|
||||||
"restore_backup_too_old": "This backup archive can not be restored because it comes from a too-old YunoHost version.",
|
"restore_backup_too_old": "This backup archive can not be restored because it comes from a too-old YunoHost version.",
|
||||||
|
|
|
@ -518,7 +518,7 @@ def _get_registrar_config_section(domain):
|
||||||
|
|
||||||
|
|
||||||
@is_unit_operation()
|
@is_unit_operation()
|
||||||
def domain_registrar_push(operation_logger, domain, dry_run=False, force=False, purge=False):
|
def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=False):
|
||||||
"""
|
"""
|
||||||
Send DNS records to the previously-configured registrar of the domain.
|
Send DNS records to the previously-configured registrar of the domain.
|
||||||
"""
|
"""
|
||||||
|
@ -533,7 +533,7 @@ def domain_registrar_push(operation_logger, domain, dry_run=False, force=False,
|
||||||
registrar = settings["dns.registrar.registrar"].get("value")
|
registrar = settings["dns.registrar.registrar"].get("value")
|
||||||
|
|
||||||
if not registrar or registrar in ["None", "yunohost"]:
|
if not registrar or registrar in ["None", "yunohost"]:
|
||||||
raise YunohostValidationError("registrar_push_not_applicable", domain=domain)
|
raise YunohostValidationError("domain_dns_push_not_applicable", domain=domain)
|
||||||
|
|
||||||
base_dns_zone = _get_dns_zone_for_domain(domain)
|
base_dns_zone = _get_dns_zone_for_domain(domain)
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ def domain_registrar_push(operation_logger, domain, dry_run=False, force=False,
|
||||||
}
|
}
|
||||||
|
|
||||||
if not all(registrar_credentials.values()):
|
if not all(registrar_credentials.values()):
|
||||||
raise YunohostValidationError("registrar_is_not_configured", domain=domain)
|
raise YunohostValidationError("domain_registrar_is_not_configured", domain=domain)
|
||||||
|
|
||||||
# Convert the generated conf into a format that matches what we'll fetch using the API
|
# Convert the generated conf into a format that matches what we'll fetch using the API
|
||||||
# Makes it easier to compare "wanted records" with "current records on remote"
|
# Makes it easier to compare "wanted records" with "current records on remote"
|
||||||
|
|
|
@ -512,4 +512,4 @@ def domain_dns_suggest(domain):
|
||||||
|
|
||||||
def domain_dns_push(domain, dry_run, force, purge):
|
def domain_dns_push(domain, dry_run, force, purge):
|
||||||
import yunohost.dns
|
import yunohost.dns
|
||||||
return yunohost.dns.domain_registrar_push(domain, dry_run, force, purge)
|
return yunohost.dns.domain_dns_push(domain, dry_run, force, purge)
|
||||||
|
|
Loading…
Add table
Reference in a new issue