mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Translate regenconf messages in English and French
+ use the new {variable:s} format
This commit is contained in:
parent
947082db06
commit
b72c8563c3
3 changed files with 13 additions and 4 deletions
|
@ -117,6 +117,11 @@
|
||||||
"service_status_failed" : "Unable to determine status of service '{:s}'",
|
"service_status_failed" : "Unable to determine status of service '{:s}'",
|
||||||
"service_no_log" : "No log to display for service '{:s}'",
|
"service_no_log" : "No log to display for service '{:s}'",
|
||||||
"service_cmd_exec_failed" : "Unable to execute command '{:s}'",
|
"service_cmd_exec_failed" : "Unable to execute command '{:s}'",
|
||||||
|
"services_configured": "Configuration successfully generated",
|
||||||
|
"service_configuration_conflict": "The file {file:s} has been changed since its last generation. Please apply the modifications manually or use the option --force (it will erase all the modifications previously done to the file)",
|
||||||
|
"no_such_conf_file": "Unable to copy the file {file:s}: the file does not exist",
|
||||||
|
"service_add_configuration": "Adding the configuration file {file:s}",
|
||||||
|
|
||||||
|
|
||||||
"network_check_smtp_ok" : "Outbound mail (SMTP port 25) is not blocked",
|
"network_check_smtp_ok" : "Outbound mail (SMTP port 25) is not blocked",
|
||||||
"network_check_smtp_ko" : "Outbound mail (SMTP port 25) seems to be blocked by your network",
|
"network_check_smtp_ko" : "Outbound mail (SMTP port 25) seems to be blocked by your network",
|
||||||
|
|
|
@ -149,6 +149,10 @@
|
||||||
"service_stop_failed": "Impossible d'arrêter le service '{:s}'",
|
"service_stop_failed": "Impossible d'arrêter le service '{:s}'",
|
||||||
"service_stopped": "Service '{:s}' arrêté avec succès",
|
"service_stopped": "Service '{:s}' arrêté avec succès",
|
||||||
"service_unknown": "Service '{:s}' inconnu",
|
"service_unknown": "Service '{:s}' inconnu",
|
||||||
|
"services_configured": "La configuration a été générée avec succès",
|
||||||
|
"service_configuration_conflict": "Le fichier {file:s} a été modifié depuis sa dernière génération. Veuillez y appliquer les modifications manuellement ou utiliser l’option --force (ce qui écrasera toutes les modifications effectuées sur le fichier)",
|
||||||
|
"no_such_conf_file": "Le fichier {file:s} n’existe pas, il ne peut pas être copié",
|
||||||
|
"service_add_configuration": "Ajout du fichier de configuration {file:s}",
|
||||||
"ssowat_conf_generated": "Configuration de SSOwat générée avec succès",
|
"ssowat_conf_generated": "Configuration de SSOwat générée avec succès",
|
||||||
"ssowat_conf_updated": "Configuration persistante de SSOwat mise à jour avec succès",
|
"ssowat_conf_updated": "Configuration persistante de SSOwat mise à jour avec succès",
|
||||||
"system_upgraded": "Système mis à jour avec succès",
|
"system_upgraded": "Système mis à jour avec succès",
|
||||||
|
|
|
@ -470,7 +470,7 @@ def service_saferemove(service, conf_file, force=False):
|
||||||
if os.isatty(1) and \
|
if os.isatty(1) and \
|
||||||
(len(previous_hash) == 32 or previous_hash[-32:] != current_hash):
|
(len(previous_hash) == 32 or previous_hash[-32:] != current_hash):
|
||||||
msignals.display(
|
msignals.display(
|
||||||
m18n.n('service_configuration_changed', conf_file),
|
m18n.n('service_configuration_conflict', file=conf_file),
|
||||||
'warning'
|
'warning'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -495,7 +495,7 @@ def service_safecopy(service, new_conf_file, conf_file, force=False):
|
||||||
services = _get_services()
|
services = _get_services()
|
||||||
|
|
||||||
if not os.path.exists(new_conf_file):
|
if not os.path.exists(new_conf_file):
|
||||||
raise MoulinetteError(errno.EIO, m18n.n('no_such_conf_file', new_conf_file))
|
raise MoulinetteError(errno.EIO, m18n.n('no_such_conf_file', file=new_conf_file))
|
||||||
|
|
||||||
with open(new_conf_file, 'r') as f:
|
with open(new_conf_file, 'r') as f:
|
||||||
new_conf = ''.join(f.readlines()).rstrip()
|
new_conf = ''.join(f.readlines()).rstrip()
|
||||||
|
@ -509,7 +509,7 @@ def service_safecopy(service, new_conf_file, conf_file, force=False):
|
||||||
)
|
)
|
||||||
process.wait()
|
process.wait()
|
||||||
else:
|
else:
|
||||||
msignals.display(m18n.n('service_add_configuration', conf_file),
|
msignals.display(m18n.n('service_add_configuration', file=conf_file),
|
||||||
'info')
|
'info')
|
||||||
|
|
||||||
# Add the service if it does not exist
|
# Add the service if it does not exist
|
||||||
|
@ -540,7 +540,7 @@ def service_safecopy(service, new_conf_file, conf_file, force=False):
|
||||||
new_hash = previous_hash
|
new_hash = previous_hash
|
||||||
if (len(previous_hash) == 32 or previous_hash[-32:] != current_hash):
|
if (len(previous_hash) == 32 or previous_hash[-32:] != current_hash):
|
||||||
msignals.display(
|
msignals.display(
|
||||||
m18n.n('service_configuration_conflict', conf_file),
|
m18n.n('service_configuration_conflict', file=conf_file),
|
||||||
'warning'
|
'warning'
|
||||||
)
|
)
|
||||||
print('\n' + conf_file)
|
print('\n' + conf_file)
|
||||||
|
|
Loading…
Add table
Reference in a new issue