-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I18N: Mark messages in "dnf install" output for a translation
Many texts were always in English because the code did not internatialinze them. This patch fixes it. fmt::format() calls were replaced with libdnf5::utils::sformat() calls to be able to pass a localized string as a formatting string. Sentences glued from words, e.g. "Installing dependencies:" in a transaction table, were changed to a single-string sentences in the code. Having a full sentece is important for the translators. I fixed spelling at few places, especially around importing PGP keys. I used internatinoalized plural forms in the transaction summary ("Installing: 1 package" vs "Installing: 2 packages"). I also internationalized output to DNF log. At the end, it's a human-oriented text. I intentionally left out libdnf_throw_assertion() arguments from the internationalization because that function needs changing its implmentation to accept nonconst-literal formatting string. That will be implemented in a separate patch. I manully tested significant parts of the output to be sure the messages propetly undergo localization. Resolves: #1688
- Loading branch information
Showing
3 changed files
with
154 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.