mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] i18n keys
This commit is contained in:
parent
6fb1c636fe
commit
c506477551
4 changed files with 5 additions and 5 deletions
|
@ -312,7 +312,7 @@
|
||||||
"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_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_unknown": "Domain '{domain}' unknown",
|
||||||
"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_registrar_is_not_configured": "The registrar is not yet configured for domain {domain}.",
|
||||||
|
|
|
@ -102,7 +102,7 @@ def domain_list(exclude_subdomains=False):
|
||||||
|
|
||||||
def _assert_domain_exists(domain):
|
def _assert_domain_exists(domain):
|
||||||
if domain not in domain_list()["domains"]:
|
if domain not in domain_list()["domains"]:
|
||||||
raise YunohostValidationError("domain_name_unknown", domain=domain)
|
raise YunohostValidationError("domain_unknown", domain=domain)
|
||||||
|
|
||||||
|
|
||||||
def _list_subdomains_of(parent_domain):
|
def _list_subdomains_of(parent_domain):
|
||||||
|
|
|
@ -221,7 +221,7 @@ def test_create_user_already_exists(mocker):
|
||||||
|
|
||||||
|
|
||||||
def test_create_user_with_domain_that_doesnt_exists(mocker):
|
def test_create_user_with_domain_that_doesnt_exists(mocker):
|
||||||
with raiseYunohostError(mocker, "domain_name_unknown"):
|
with raiseYunohostError(mocker, "domain_unknown"):
|
||||||
user_create("alice", "Alice", "White", "doesnt.exists", "test123Ynh")
|
user_create("alice", "Alice", "White", "doesnt.exists", "test123Ynh")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -220,9 +220,9 @@ class ConfigPanel:
|
||||||
self.new_values = {}
|
self.new_values = {}
|
||||||
|
|
||||||
if self.save_path and not creation and not os.path.exists(self.save_path):
|
if self.save_path and not creation and not os.path.exists(self.save_path):
|
||||||
raise YunohostError(f"{self.entity_type}_doesnt_exists", name=entity)
|
raise YunohostError(f"{self.entity_type}_unknown", name=entity)
|
||||||
if self.save_path and creation and os.path.exists(self.save_path):
|
if self.save_path and creation and os.path.exists(self.save_path):
|
||||||
raise YunohostError(f"{self.entity_type}_already_exists", name=entity)
|
raise YunohostError(f"{self.entity_type}_exists", name=entity)
|
||||||
|
|
||||||
# Search for hooks in the config panel
|
# Search for hooks in the config panel
|
||||||
self.hooks = {func: getattr(self, func)
|
self.hooks = {func: getattr(self, func)
|
||||||
|
|
Loading…
Add table
Reference in a new issue