}
void
-Writer::write_string(const std::string& name, const std::string& value)
+Writer::write_string(const std::string& name, const std::string& value,
+ bool translatable)
{
indent();
- out << '(' << name << " \"" << value << "\")\n";
+ out << '(' << name;
+ if(translatable) {
+ out << " (_ \"" << value << "\"))\n";
+ } else {
+ out << " \"" << value << "\")\n";
+ }
}
void
void write_int(const std::string& name, int value);
void write_float(const std::string& name, float value);
- void write_string(const std::string& name, const std::string& value);
+ void write_string(const std::string& name, const std::string& value,
+ bool translatable = false);
void write_bool(const std::string& name, bool value);
void write_int_vector(const std::string& name, const std::vector<int>& value);
void write_int_vector(const std::string& name, const std::vector<unsigned int>& value);
int version = 2;
writer->write_int("version", version);
- writer->write_string("name", name);
+ writer->write_string("name", name, true);
writer->write_string("author", author);
writer->write_int("time", timelimit);
writer->write_string("end-sequence-animation",