X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Flisp%2Fwriter.cpp;h=e4a810af33a202a9b16563accba88045889677c0;hb=8e0bad9f82ccbc811a18edd7ce6c6f69c5bca082;hp=a8c5c2443ce709f271117673a8a3688c1ce3bd8b;hpb=ef57479f613b900b73eba8e8f4d026aae0de25cc;p=supertux.git diff --git a/lib/lisp/writer.cpp b/lib/lisp/writer.cpp index a8c5c2443..e4a810af3 100644 --- a/lib/lisp/writer.cpp +++ b/lib/lisp/writer.cpp @@ -89,10 +89,16 @@ Writer::write_float(const std::string& name, float value) } 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