mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 07:18:39 +00:00
Since string freeze is still not in effect,
...commiting a little change in the parser messages:
This commit is contained in:
parent
f6cc29a092
commit
260899f5eb
@ -214,12 +214,10 @@ void parser::parse_variable()
|
||||
break;
|
||||
case ',':
|
||||
if(variables.back().empty()) {
|
||||
// FIXME: this error message is not really
|
||||
// appropriate, although a proper one should
|
||||
// wait after string freeze.
|
||||
error(_("Unexpected characters after variable name (expected , or =)"));
|
||||
error(_("Empty variable name"));
|
||||
} else {
|
||||
variables.push_back("");
|
||||
}
|
||||
variables.push_back("");
|
||||
break;
|
||||
default:
|
||||
error(_("Unexpected characters after variable name (expected , or =)"));
|
||||
@ -227,6 +225,8 @@ void parser::parse_variable()
|
||||
}
|
||||
tok_.next_token();
|
||||
}
|
||||
if(variables.back().empty())
|
||||
error(_("Empty variable name"));
|
||||
|
||||
std::vector<std::string>::const_iterator curvar = variables.begin();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user