@@ -1048,7 +1048,7 @@ static void show_chat_menu(GUIFormSpecMenu **cur_formspec,
1048
1048
FORMSPEC_VERSION_STRING
1049
1049
SIZE_TAG
1050
1050
" field[3,2.35;6,0.5;f_text;;" + text + " ]"
1051
- " button_exit[4,3;3,0.5;btn_send;" + wide_to_utf8 ( wstrgettext ( " Proceed" ) ) + " ]"
1051
+ " button_exit[4,3;3,0.5;btn_send;" + strgettext ( " Proceed" ) + " ]"
1052
1052
;
1053
1053
1054
1054
/* Create menu */
@@ -1088,56 +1088,56 @@ static void show_pause_menu(GUIFormSpecMenu **cur_formspec,
1088
1088
bool singleplayermode)
1089
1089
{
1090
1090
#ifdef __ANDROID__
1091
- std::string control_text = wide_to_utf8 ( wstrgettext (" Default Controls:\n "
1092
- " No menu visible:\n "
1093
- " - single tap: button activate\n "
1094
- " - double tap: place/use\n "
1095
- " - slide finger: look around\n "
1096
- " Menu/Inventory visible:\n "
1097
- " - double tap (outside):\n "
1098
- " -->close\n "
1099
- " - touch stack, touch slot:\n "
1100
- " --> move stack\n "
1101
- " - touch&drag, tap 2nd finger\n "
1102
- " --> place single item to slot\n "
1103
- ) );
1091
+ std::string control_text = strgettext (" Default Controls:\n "
1092
+ " No menu visible:\n "
1093
+ " - single tap: button activate\n "
1094
+ " - double tap: place/use\n "
1095
+ " - slide finger: look around\n "
1096
+ " Menu/Inventory visible:\n "
1097
+ " - double tap (outside):\n "
1098
+ " -->close\n "
1099
+ " - touch stack, touch slot:\n "
1100
+ " --> move stack\n "
1101
+ " - touch&drag, tap 2nd finger\n "
1102
+ " --> place single item to slot\n "
1103
+ );
1104
1104
#else
1105
- std::string control_text = wide_to_utf8 ( wstrgettext (" Default Controls:\n "
1106
- " - WASD: move\n "
1107
- " - Space: jump/climb\n "
1108
- " - Shift: sneak/go down\n "
1109
- " - Q: drop item\n "
1110
- " - I: inventory\n "
1111
- " - Mouse: turn/look\n "
1112
- " - Mouse left: dig/punch\n "
1113
- " - Mouse right: place/use\n "
1114
- " - Mouse wheel: select item\n "
1115
- " - T: chat\n "
1116
- ) );
1105
+ std::string control_text = strgettext (" Default Controls:\n "
1106
+ " - WASD: move\n "
1107
+ " - Space: jump/climb\n "
1108
+ " - Shift: sneak/go down\n "
1109
+ " - Q: drop item\n "
1110
+ " - I: inventory\n "
1111
+ " - Mouse: turn/look\n "
1112
+ " - Mouse left: dig/punch\n "
1113
+ " - Mouse right: place/use\n "
1114
+ " - Mouse wheel: select item\n "
1115
+ " - T: chat\n "
1116
+ );
1117
1117
#endif
1118
1118
1119
1119
float ypos = singleplayermode ? 0.5 : 0.1 ;
1120
1120
std::ostringstream os;
1121
1121
1122
1122
os << FORMSPEC_VERSION_STRING << SIZE_TAG
1123
1123
<< " button_exit[4," << (ypos++) << " ;3,0.5;btn_continue;"
1124
- << wide_to_utf8 ( wstrgettext ( " Continue" )) << " ]" ;
1124
+ << strgettext ( " Continue" ) << " ]" ;
1125
1125
1126
1126
if (!singleplayermode) {
1127
1127
os << " button_exit[4," << (ypos++) << " ;3,0.5;btn_change_password;"
1128
- << wide_to_utf8 ( wstrgettext ( " Change Password" ) ) << " ]" ;
1128
+ << strgettext ( " Change Password" ) << " ]" ;
1129
1129
}
1130
1130
1131
1131
#ifndef __ANDROID__
1132
1132
os << " button_exit[4," << (ypos++) << " ;3,0.5;btn_sound;"
1133
- << wide_to_utf8 ( wstrgettext ( " Sound Volume" ) ) << " ]" ;
1133
+ << strgettext ( " Sound Volume" ) << " ]" ;
1134
1134
os << " button_exit[4," << (ypos++) << " ;3,0.5;btn_key_config;"
1135
- << wide_to_utf8 ( wstrgettext ( " Change Keys" ) ) << " ]" ;
1135
+ << strgettext ( " Change Keys" ) << " ]" ;
1136
1136
#endif
1137
1137
os << " button_exit[4," << (ypos++) << " ;3,0.5;btn_exit_menu;"
1138
- << wide_to_utf8 ( wstrgettext ( " Exit to Menu" ) ) << " ]" ;
1138
+ << strgettext ( " Exit to Menu" ) << " ]" ;
1139
1139
os << " button_exit[4," << (ypos++) << " ;3,0.5;btn_exit_os;"
1140
- << wide_to_utf8 ( wstrgettext ( " Exit to OS" ) ) << " ]"
1140
+ << strgettext ( " Exit to OS" ) << " ]"
1141
1141
<< " textarea[7.5,0.25;3.9,6.25;;" << control_text << " ;]"
1142
1142
<< " textarea[0.4,0.25;3.5,6;;" << PROJECT_NAME_C " \n "
1143
1143
<< g_build_info << " \n "
0 commit comments