Author: sytyi
Date: Tue Aug 30 20:35:10 2011
New Revision: 50954
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50954&view=rev
Log:
Updated error prinitng part
Modified:
trunk/src/serialization/schema_validator.cpp
Modified: trunk/src/serialization/schema_validator.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/serialization/schema_validator.cpp?rev=50954&r1=50953&r2=50954&view=diff
==============================================================================
--- trunk/src/serialization/schema_validator.cpp (original)
+++ trunk/src/serialization/schema_validator.cpp Tue Aug 30 20:35:10 2011
@@ -18,6 +18,7 @@
#include "filesystem.hpp"
#include "foreach.hpp"
+#include "gettext.hpp"
#include "log.hpp"
#include "serialization/preprocessor.hpp"
#include "wml_exception.hpp"
@@ -55,7 +56,7 @@
const std::string &
parent, bool flag_exception){
std::ostringstream ss;
ss <<at(file,line) << ": extra tag [" << name << "]; there may
only be "
- << n << " ["<< name <<"]s in [" << parent <<"]\n";
+ << n << " ["<< sngettext (name.c_str (),
std::string(name + "s").c_str() ,n)<<"] in [" << parent <<"]\n";
print_output (ss.str (),flag_exception);
}
@@ -73,7 +74,7 @@
const std::string &
parent, bool flag_exception){
std::ostringstream ss;
ss <<at(file,line) << ": missing tag [" << name << "]; there must
be "
- << n << " ["<< name <<"]s in [" << parent <<"]\n";
+ << n << " ["<< sngettext (name.c_str (),
std::string(name + "s").c_str() ,n) <<"]s in [" << parent <<"]\n";
print_output (ss.str (),flag_exception);
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits