[fix] Remove the last _()

This commit is contained in:
Kload 2014-05-18 11:12:36 +02:00
parent 7a34e267c0
commit 1a6289d115
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ def dyndns_subscribe(subscribe_host="dyndns.yunohost.org", domain=None, key=None
if key is None: if key is None:
if len(glob.glob('/etc/yunohost/dyndns/*.key')) == 0: if len(glob.glob('/etc/yunohost/dyndns/*.key')) == 0:
os.makedirs('/etc/yunohost/dyndns') os.makedirs('/etc/yunohost/dyndns')
print(_("DNS key is being generated, it may take a while...")) print(m18n.n('dyndns_key_generating'))
os.system('cd /etc/yunohost/dyndns && dnssec-keygen -a hmac-md5 -b 128 -n USER %s' % domain) os.system('cd /etc/yunohost/dyndns && dnssec-keygen -a hmac-md5 -b 128 -n USER %s' % domain)
os.system('chmod 600 /etc/yunohost/dyndns/*.key /etc/yunohost/dyndns/*.private') os.system('chmod 600 /etc/yunohost/dyndns/*.key /etc/yunohost/dyndns/*.private')

View file

@ -49,6 +49,7 @@
"domain_deletion_failed" : "Unable to delete domain", "domain_deletion_failed" : "Unable to delete domain",
"domain_deleted" : "Domain successfully deleted", "domain_deleted" : "Domain successfully deleted",
"dyndns_key_generating" : "DNS key is being generated, it may take a while...",
"dyndns_unavailable" : "Unavailable DynDNS subdomain", "dyndns_unavailable" : "Unavailable DynDNS subdomain",
"dyndns_registration_failed" : "Unable to register DynDNS domain: %s", "dyndns_registration_failed" : "Unable to register DynDNS domain: %s",
"dyndns_registered" : "DynDNS domain successfully registered", "dyndns_registered" : "DynDNS domain successfully registered",