Proper locales

This commit is contained in:
theo@manjaro 2022-07-22 16:22:04 +02:00
parent 22fc36e16e
commit d531f8e085
2 changed files with 3 additions and 2 deletions

View file

@ -507,6 +507,7 @@
"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_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_patching_sources_list": "Patching the sources.lists...",
"migration_0021_main_upgrade": "Starting main upgrade...",

View file

@ -85,11 +85,11 @@ def _rebuild_venvs():
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'")
if status != 0:
logger.warning(m18n.n("venv_regen_failed", venv=venv))
logger.warning(m18n.n("migration_0021_venv_regen_failed", venv=venv))
else:
rm(venv + VENV_REQUIREMENTS_SUFFIX)
else:
logger.warning(m18n.n("venv_regen_failed", venv=venv))
logger.warning(m18n.n("migration_0021_venv_regen_failed", venv=venv))
class MyMigration(Migration):