File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
PokemonSV/Programs/Sandwiches Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -84,5 +84,11 @@ Language language_code_to_enum(const std::string& language){
8484 return iter->second ;
8585}
8686
87+ std::string language_warning (Language language){
88+ return " Please ensure that you have set the correct Game Language in the program settings.\n "
89+ " Current language set: " + language_data (language).name ;
90+
91+ }
92+
8793
8894}
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class LanguageSet{
6060
6161const LanguageData& language_data (Language language);
6262Language language_code_to_enum (const std::string& language);
63+ std::string language_warning (Language language);
6364
6465
6566
Original file line number Diff line number Diff line change @@ -1105,8 +1105,7 @@ void run_sandwich_maker(
11051105 stream.log (" Read nothing on center plate label." );
11061106 OperationFailedException::fire (
11071107 ErrorReport::SEND_ERROR_REPORT,
1108- " run_sandwich_maker: No ingredient found on center plate label.\n "
1109- " Please make sure that you have set the correct Game Language in the program settings." ,
1108+ " run_sandwich_maker: No ingredient found on center plate label.\n " + language_warning (language),
11101109 stream,
11111110 std::move (screen)
11121111 );
You can’t perform that action at this time.
0 commit comments