Merge develop: combine the i18n test fixture with #363

Both message batches seeded locale copies at the same point of
test_command_descriptions.py. The two blocks are independent — one
seeds the backup messages, the other the storage ones — so they are
merged into a single block that reads and writes the fixture once.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
MacRimi
2026-09-22 16:46:04 +02:00
co-authored by Claude Opus 5
23 changed files with 1206 additions and 64 deletions
+12 -2
View File
@@ -919,7 +919,11 @@ _bk_manage_extra_paths() {
if (( count == 0 )); then
preview="$(hb_translate "You haven't added any custom paths yet.")"
else
preview="$(hb_translate "Currently"): \Zb\Z4${count}\Zn $(hb_translate "custom path(s) saved.")"
preview="$(hb_translate "Custom paths currently saved: {count}.")"
if [[ "$preview" != *'{count}'* ]]; then
preview="Custom paths currently saved: {count}."
fi
preview="${preview//\{count\}/"\Zb\Z4${count}\Zn"}"
fi
preview+=$'\n\n'"$(hb_translate "Custom paths are included in BOTH default and custom backup profiles.")"
@@ -3878,7 +3882,13 @@ _rs_run_complete_extras() {
"${installable[@]}" >>"$apt_log" 2>&1
local apt_rc=$?
if (( apt_rc == 0 )); then
msg_ok "$(translate "Installed:") ${#installable[@]} $(translate "packages.")"
local installed_message
installed_message="$(translate "Packages installed: {count}.")"
if [[ "$installed_message" != *'{count}'* ]]; then
installed_message="Packages installed: {count}."
fi
installed_message="${installed_message//\{count\}/${#installable[@]}}"
msg_ok "$installed_message"
else
msg_warn "$(translate "apt-get exited") ${apt_rc} — $(translate "see log:") $apt_log"
fi
+8 -1
View File
@@ -694,7 +694,14 @@ apply_assignment() {
echo -e "${TAB}${BL}Log: ${LOG_FILE}${CL}"
if [[ "$assigned_count" -gt 0 ]]; then
msg_ok "$(translate "Completed.") $assigned_count $(translate "device(s) added to VM") ${SELECTED_VMID}."
local completed_message
completed_message="$(translate "Completed. Devices added to VM {vmid}: {count}.")"
if [[ "$completed_message" != *'{vmid}'* || "$completed_message" != *'{count}'* ]]; then
completed_message="Completed. Devices added to VM {vmid}: {count}."
fi
completed_message="${completed_message//\{vmid\}/$SELECTED_VMID}"
completed_message="${completed_message//\{count\}/$assigned_count}"
msg_ok "$completed_message"
else
msg_warn "$(translate "No new Controller/NVMe entries were added.")"
fi