mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-30 10:36:41 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user