Skip to content

Commit

Permalink
Suppress translation warning for error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytheway authored and kevingranade committed Jan 21, 2022
1 parent dd6a40a commit 0f101a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mapgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2532,11 +2532,14 @@ class jmapgen_terrain : public jmapgen_piece
std::string error;
trap_str_id trap_here = dat.m.tr_at( tp ).id;
if( dat.m.furn( p ) != f_null ) {
// NOLINTNEXTLINE(cata-translate-string-literal)
error = string_format( "furniture was %s", dat.m.furn( p ).id().str() );
} else if( !dat.m.i_at( p ).empty() ) {
// NOLINTNEXTLINE(cata-translate-string-literal)
error = string_format( "item %s existed",
dat.m.i_at( p ).begin()->typeId().str() );
} else if( !trap_here.is_null() && trap_here.id() != terrain_here->trap ) {
// NOLINTNEXTLINE(cata-translate-string-literal)
error = string_format( "trap %s existed", trap_here.str() );
}
if( !error.empty() ) {
Expand Down

0 comments on commit 0f101a6

Please sign in to comment.