mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Proper locales
This commit is contained in:
parent
22fc36e16e
commit
d531f8e085
2 changed files with 3 additions and 2 deletions
|
@ -507,6 +507,7 @@
|
||||||
"migration_0018_failed_to_reset_legacy_rules": "Failed to reset legacy iptables rules: {error}",
|
"migration_0018_failed_to_reset_legacy_rules": "Failed to reset legacy iptables rules: {error}",
|
||||||
"migration_0019_add_new_attributes_in_ldap": "Add new attributes for permissions in LDAP database",
|
"migration_0019_add_new_attributes_in_ldap": "Add new attributes for permissions in LDAP database",
|
||||||
"migration_0019_slapd_config_will_be_overwritten": "It looks like you manually edited the slapd configuration. For this critical migration, YunoHost needs to force the update of the slapd configuration. The original files will be backuped in {conf_backup_folder}.",
|
"migration_0019_slapd_config_will_be_overwritten": "It looks like you manually edited the slapd configuration. For this critical migration, YunoHost needs to force the update of the slapd configuration. The original files will be backuped in {conf_backup_folder}.",
|
||||||
|
"migration_0021_venv_regen_failed": "The virtual environment '{venv}' failed to regenerate, you probably need to run the command `yunohost app upgrade --force`",
|
||||||
"migration_0021_start" : "Starting migration to Bullseye",
|
"migration_0021_start" : "Starting migration to Bullseye",
|
||||||
"migration_0021_patching_sources_list": "Patching the sources.lists...",
|
"migration_0021_patching_sources_list": "Patching the sources.lists...",
|
||||||
"migration_0021_main_upgrade": "Starting main upgrade...",
|
"migration_0021_main_upgrade": "Starting main upgrade...",
|
||||||
|
|
|
@ -85,11 +85,11 @@ def _rebuild_venvs():
|
||||||
os.system(f"python -m venv {venv}")
|
os.system(f"python -m venv {venv}")
|
||||||
status = os.system(f"bash -c 'source {venv}/bin/activate && pip install -r {venv}{VENV_REQUIREMENTS_SUFFIX} && deactivate'")
|
status = os.system(f"bash -c 'source {venv}/bin/activate && pip install -r {venv}{VENV_REQUIREMENTS_SUFFIX} && deactivate'")
|
||||||
if status != 0:
|
if status != 0:
|
||||||
logger.warning(m18n.n("venv_regen_failed", venv=venv))
|
logger.warning(m18n.n("migration_0021_venv_regen_failed", venv=venv))
|
||||||
else:
|
else:
|
||||||
rm(venv + VENV_REQUIREMENTS_SUFFIX)
|
rm(venv + VENV_REQUIREMENTS_SUFFIX)
|
||||||
else:
|
else:
|
||||||
logger.warning(m18n.n("venv_regen_failed", venv=venv))
|
logger.warning(m18n.n("migration_0021_venv_regen_failed", venv=venv))
|
||||||
|
|
||||||
|
|
||||||
class MyMigration(Migration):
|
class MyMigration(Migration):
|
||||||
|
|
Loading…
Add table
Reference in a new issue