Skip to content

Commit

Permalink
xstr the boolean default on/off as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MjnMixael committed Sep 23, 2023
1 parent aa997dd commit ba2c37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/options/Option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bool boolean_deserializer(const json_t* value)
return b != 0;
}
json_t* boolean_serializer(bool value) { return json_pack("b", value ? 1 : 0); }
SCP_string boolean_display(bool value) { return value ? "On" : "Off"; }
SCP_string boolean_display(bool value) { return value ? XSTR("On", 1285) : XSTR("Off", 1286); }
template<>
void set_defaults<bool>(Option<bool>& opt) {
opt.setDeserializer(boolean_deserializer);
Expand Down

0 comments on commit ba2c37a

Please sign in to comment.