From 352f7678612c28a8c1fb42cab4eb4a1e0caa1843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 9 Jan 2025 17:20:42 +0100 Subject: [PATCH] I18N: Annotate indentation of the transaction summary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Translators are recommend to align the messages to prevent from a broken table: Podsumowanie transakcji: Instalowanie: 6 pakietów Aktualizowanie: 33 pakietów Zastępowanie: 48 pakietów Usuwanie: 199 pakietów Relates: https://bugzilla.redhat.com/show_bug.cgi?id=2336561 --- libdnf5-cli/output/transaction_table.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libdnf5-cli/output/transaction_table.cpp b/libdnf5-cli/output/transaction_table.cpp index 5ed82df86..370815970 100644 --- a/libdnf5-cli/output/transaction_table.cpp +++ b/libdnf5-cli/output/transaction_table.cpp @@ -128,6 +128,7 @@ class TransactionSummary { if (installs != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Installing: {:4} package\n", " Installing: {:4} packages\n", installs), installs) .c_str(), fd); @@ -135,6 +136,7 @@ class TransactionSummary { if (reinstalls != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Reinstalling: {:4} package\n", " Reinstalling: {:4} packages\n", reinstalls), reinstalls) .c_str(), fd); @@ -142,6 +144,7 @@ class TransactionSummary { if (upgrades != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Upgrading: {:4} package\n", " Upgrading: {:4} packages\n", upgrades), upgrades) .c_str(), fd); @@ -149,6 +152,7 @@ class TransactionSummary { if (replaced != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Replacing: {:4} package\n", " Replacing: {:4} packages\n", replaced), replaced) .c_str(), fd); @@ -156,6 +160,7 @@ class TransactionSummary { if (removes != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Removing: {:4} package\n", " Removing: {:4} packages\n", removes), removes) .c_str(), fd); @@ -163,6 +168,7 @@ class TransactionSummary { if (downgrades != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Downgrading: {:4} package\n", " Downgrading: {:4} packages\n", downgrades), downgrades) .c_str(), fd); @@ -170,6 +176,7 @@ class TransactionSummary { if (reason_changes != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Changing reason: {:4} package\n", " Changing reason: {:4} packages\n", reason_changes), reason_changes) .c_str(), @@ -178,6 +185,7 @@ class TransactionSummary { if (skips != 0) { std::fputs( libdnf5::utils::sformat( + // Keep the replaceble number aligned across all messages. P_(" Skipping: {:4} package\n", " Skipping: {:4} packages\n", skips), skips) .c_str(), fd);