From 7f44c5808d6b3d3135f9541a33a697fc8167d7a2 Mon Sep 17 00:00:00 2001 From: casswedson <58050969+casswedson@users.noreply.github.com> Date: Mon, 10 Jul 2023 20:51:52 -0500 Subject: [PATCH] fix: missing spaces (#66797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: missing spaces * Update src/item_pocket.cpp Co-authored-by: Jianxiang Wang (王健翔) * Update src/item_pocket.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: casswedson Co-authored-by: Jianxiang Wang (王健翔) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/item_pocket.cpp | 3 ++- src/melee.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/item_pocket.cpp b/src/item_pocket.cpp index a3037654bf90b..0ec4973152e2d 100644 --- a/src/item_pocket.cpp +++ b/src/item_pocket.cpp @@ -1196,7 +1196,8 @@ void item_pocket::contents_info( std::vector &info, int pocket_number, const std::vector &all_ablate = damage_info_order::get_all( damage_info_order::info_type::ABLATE ); for( const damage_info_order &dio : all_ablate ) { - std::string label = string_format( idx == 0 ? _( "Protection: %s: " ) : "%s: ", + std::string label = string_format( idx == 0 ? _( "Protection: %s: " ) : + pgettext( "protection info", " %s: " ), uppercase_first_letter( dio.dmg_type->name.translated() ) ); iteminfo::flags flgs = idx == all_ablate.size() - 1 ? iteminfo::is_decimal : iteminfo::no_newline | iteminfo::is_decimal; diff --git a/src/melee.cpp b/src/melee.cpp index 35bcfd7463a03..397b465ffa56e 100644 --- a/src/melee.cpp +++ b/src/melee.cpp @@ -2641,7 +2641,7 @@ void player_hit_message( Character *attacker, const std::string &message, //Player won't see exact numbers of damage dealt by NPC unless player has DEBUG_NIGHTVISION trait if( attacker->is_npc() && !player_character.has_trait( trait_DEBUG_NIGHTVISION ) ) { //~ NPC hits something (critical) - msg = string_format( _( "%s. Critical!" ), message ); + msg = string_format( _( "%s. Critical!" ), message ); } else if( technique && !wp_hit.empty() ) { //~ %1$s: "someone hits something", %2$d: damage dealt, %3$s: the weakpoint hit msg = string_format( _( "%1$s for %2$d damage, and hit it in %3$s. Critical!" ), message, dam,