@@ -976,7 +976,7 @@ static void show_chat_menu(FormspecFormSource* current_formspec,
976
976
std::string formspec =
977
977
" size[11,5.5,true]"
978
978
" field[3,2.35;6,0.5;f_text;;" + text + " ]"
979
- " button_exit[4,3;3,0.5;btn_send;" + std::string ( gettext (" Proceed" )) + " ]"
979
+ " button_exit[4,3;3,0.5;btn_send;" + wide_to_narrow ( wstrgettext (" Proceed" )) + " ]"
980
980
;
981
981
982
982
/* Create menu */
@@ -998,7 +998,8 @@ static void show_pause_menu(FormspecFormSource* current_formspec,
998
998
TextDest* current_textdest, IWritableTextureSource* tsrc,
999
999
IrrlichtDevice * device)
1000
1000
{
1001
- const char * control_text = gettext (" Default Controls:\n "
1001
+
1002
+ std::string control_text = wide_to_narrow (wstrgettext (" Default Controls:\n "
1002
1003
" - WASD: move\n "
1003
1004
" - Space: jump/climb\n "
1004
1005
" - Shift: sneak/go down\n "
@@ -1009,7 +1010,7 @@ static void show_pause_menu(FormspecFormSource* current_formspec,
1009
1010
" - Mouse right: place/use\n "
1010
1011
" - Mouse wheel: select item\n "
1011
1012
" - T: chat\n "
1012
- );
1013
+ )) ;
1013
1014
1014
1015
std::ostringstream os;
1015
1016
os<<" Minetest\n " ;
@@ -1018,11 +1019,11 @@ static void show_pause_menu(FormspecFormSource* current_formspec,
1018
1019
1019
1020
std::string formspec =
1020
1021
" size[11,5.5,true]"
1021
- " button_exit[4,1;3,0.5;btn_continue;" + std::string ( gettext (" Continue" )) + " ]"
1022
- " button_exit[4,2;3,0.5;btn_sound;" + std::string ( gettext (" Sound Volume" )) + " ]"
1023
- " button_exit[4,3;3,0.5;btn_exit_menu;" + std::string ( gettext (" Exit to Menu" )) + " ]"
1024
- " button_exit[4,4;3,0.5;btn_exit_os;" + std::string ( gettext (" Exit to OS" )) + " ]"
1025
- " textarea[7.5,0.25;3.75,6;;" + std::string ( control_text) + " ;]"
1022
+ " button_exit[4,1;3,0.5;btn_continue;" + wide_to_narrow ( wstrgettext (" Continue" )) + " ]"
1023
+ " button_exit[4,2;3,0.5;btn_sound;" + wide_to_narrow ( wstrgettext (" Sound Volume" )) + " ]"
1024
+ " button_exit[4,3;3,0.5;btn_exit_menu;" + wide_to_narrow ( wstrgettext (" Exit to Menu" )) + " ]"
1025
+ " button_exit[4,4;3,0.5;btn_exit_os;" + wide_to_narrow ( wstrgettext (" Exit to OS" )) + " ]"
1026
+ " textarea[7.5,0.25;3.75,6;;" + control_text + " ;]"
1026
1027
" textarea[0.4,0.25;3.5,6;;" + os.str () + " ;]"
1027
1028
;
1028
1029
0 commit comments