src/strgen/strgen.cpp
branchcpp_gui
changeset 6308 646711c5feaa
parent 6298 c30fe89622df
child 9911 0b8b245a2391
equal deleted inserted replaced
6307:f40e88cff863 6308:646711c5feaa
   728 
   728 
   729 static bool CheckCommandsMatch(char *a, char *b, const char *name)
   729 static bool CheckCommandsMatch(char *a, char *b, const char *name)
   730 {
   730 {
   731 	ParsedCommandStruct templ;
   731 	ParsedCommandStruct templ;
   732 	ParsedCommandStruct lang;
   732 	ParsedCommandStruct lang;
   733 	int i,j;
   733 	int i, j;
   734 	bool result = true;
   734 	bool result = true;
   735 
   735 
   736 	ExtractCommandString(&templ, b, true);
   736 	ExtractCommandString(&templ, b, true);
   737 	ExtractCommandString(&lang, a, true);
   737 	ExtractCommandString(&lang, a, true);
   738 
   738 
   912 	// derive some strings from english....
   912 	// derive some strings from english....
   913 
   913 
   914 	in = fopen(file, "r");
   914 	in = fopen(file, "r");
   915 	if (in == NULL) fatal("Cannot open file");
   915 	if (in == NULL) fatal("Cannot open file");
   916 	_cur_line = 1;
   916 	_cur_line = 1;
   917 	while (fgets(buf, sizeof(buf),in) != NULL) {
   917 	while (fgets(buf, sizeof(buf), in) != NULL) {
   918 		rstrip(buf);
   918 		rstrip(buf);
   919 		HandleString(buf, english);
   919 		HandleString(buf, english);
   920 		_cur_line++;
   920 		_cur_line++;
   921 	}
   921 	}
   922 	fclose(in);
   922 	fclose(in);