fixed different use of engine option compared to Polyglot
[xboard.git] / xoptions.c
index 892ea55..7e1603e 100644 (file)
@@ -1370,7 +1370,7 @@ void SettingsCallback(w, client_data, call_data)
                    XtGetValues(currentCps->option[i].handle, args, 1);\r
                    if(strcmp(currentCps->option[i].textValue, val)) {\r
                        strcpy(currentCps->option[i].textValue, val);\r
                    XtGetValues(currentCps->option[i].handle, args, 1);\r
                    if(strcmp(currentCps->option[i].textValue, val)) {\r
                        strcpy(currentCps->option[i].textValue, val);\r
-                       sprintf(buf, _("option %s %s\n"), currentCps->option[i].name, val);\r
+                       sprintf(buf, "option %s=%s\n", currentCps->option[i].name, val);\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                    break;\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                    break;\r
@@ -1382,7 +1382,7 @@ void SettingsCallback(w, client_data, call_data)
                    if(j < currentCps->option[i].min) j = currentCps->option[i].min;\r
                    if(currentCps->option[i].value != j) {\r
                        currentCps->option[i].value = j;\r
                    if(j < currentCps->option[i].min) j = currentCps->option[i].min;\r
                    if(currentCps->option[i].value != j) {\r
                        currentCps->option[i].value = j;\r
-                       sprintf(buf, _("option %s %d\n"), currentCps->option[i].name, j);\r
+                       sprintf(buf, "option %s=%d\n", currentCps->option[i].name, j);\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                    break;\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                    break;\r
@@ -1392,14 +1392,14 @@ void SettingsCallback(w, client_data, call_data)
                    XtGetValues(currentCps->option[i].handle, args, 1);\r
                    if(currentCps->option[i].value != j) {\r
                        currentCps->option[i].value = j;\r
                    XtGetValues(currentCps->option[i].handle, args, 1);\r
                    if(currentCps->option[i].value != j) {\r
                        currentCps->option[i].value = j;\r
-                       sprintf(buf, _("option %s %d\n"), currentCps->option[i].name, j);\r
+                       sprintf(buf, "option %s=%d\n", currentCps->option[i].name, j);\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                    break;\r
                case ComboBox:\r
                    if(currentCps->option[i].value != values[i]) {\r
                        currentCps->option[i].value = values[i];\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                    break;\r
                case ComboBox:\r
                    if(currentCps->option[i].value != values[i]) {\r
                        currentCps->option[i].value = values[i];\r
-                       sprintf(buf, _("option %s %s\n"), currentCps->option[i].name, \r
+                       sprintf(buf, "option %s=%s\n", currentCps->option[i].name, \r
                                ((char**)currentCps->option[i].textValue)[values[i]]);\r
                        SendToProgram(buf, currentCps);\r
                    }\r
                                ((char**)currentCps->option[i].textValue)[values[i]]);\r
                        SendToProgram(buf, currentCps);\r
                    }\r
@@ -1407,13 +1407,13 @@ void SettingsCallback(w, client_data, call_data)
            }\r
        }\r
        if((int)client_data) { // send save-button command to engine\r
            }\r
        }\r
        if((int)client_data) { // send save-button command to engine\r
-           sprintf(buf, _("option %s\n"), name);\r
+           sprintf(buf, "option %s\n", name);\r
            SendToProgram(buf, currentCps);\r
        }\r
         SettingsPopDown();\r
         return;\r
     }\r
            SendToProgram(buf, currentCps);\r
        }\r
         SettingsPopDown();\r
         return;\r
     }\r
-    sprintf(buf, _("option %s\n"), name);\r
+    sprintf(buf, "option %s\n", name);\r
     SendToProgram(buf, currentCps);\r
 }\r
 \r
     SendToProgram(buf, currentCps);\r
 }\r
 \r