added/updated some .cvsignores
authorMatthias Braun <matze@braunis.de>
Sun, 5 Dec 2004 17:19:35 +0000 (17:19 +0000)
committerMatthias Braun <matze@braunis.de>
Sun, 5 Dec 2004 17:19:35 +0000 (17:19 +0000)
SVN-Revision: 2243

data/levels/bonus1/.cvsignore [new file with mode: 0644]
data/levels/contribs/.cvsignore [new file with mode: 0644]
data/levels/misc/.cvsignore [new file with mode: 0644]
data/levels/test/.cvsignore [new file with mode: 0644]
data/levels/world1/.cvsignore [new file with mode: 0644]
data/levels/world2/.cvsignore [new file with mode: 0644]
data/locale/.cvsignore [new file with mode: 0644]
lib/lisp/.cvsignore [new file with mode: 0644]
lib/lisp/writer.cpp
lib/lisp/writer.h
src/level.cpp

diff --git a/data/levels/bonus1/.cvsignore b/data/levels/bonus1/.cvsignore
new file mode 100644 (file)
index 0000000..76b6af9
--- /dev/null
@@ -0,0 +1,2 @@
+messages.pot
+
diff --git a/data/levels/contribs/.cvsignore b/data/levels/contribs/.cvsignore
new file mode 100644 (file)
index 0000000..76b6af9
--- /dev/null
@@ -0,0 +1,2 @@
+messages.pot
+
diff --git a/data/levels/misc/.cvsignore b/data/levels/misc/.cvsignore
new file mode 100644 (file)
index 0000000..76b6af9
--- /dev/null
@@ -0,0 +1,2 @@
+messages.pot
+
diff --git a/data/levels/test/.cvsignore b/data/levels/test/.cvsignore
new file mode 100644 (file)
index 0000000..76b6af9
--- /dev/null
@@ -0,0 +1,2 @@
+messages.pot
+
diff --git a/data/levels/world1/.cvsignore b/data/levels/world1/.cvsignore
new file mode 100644 (file)
index 0000000..76b6af9
--- /dev/null
@@ -0,0 +1,2 @@
+messages.pot
+
diff --git a/data/levels/world2/.cvsignore b/data/levels/world2/.cvsignore
new file mode 100644 (file)
index 0000000..76b6af9
--- /dev/null
@@ -0,0 +1,2 @@
+messages.pot
+
diff --git a/data/locale/.cvsignore b/data/locale/.cvsignore
new file mode 100644 (file)
index 0000000..6394bdd
--- /dev/null
@@ -0,0 +1,2 @@
+supertux.pot
+
diff --git a/lib/lisp/.cvsignore b/lib/lisp/.cvsignore
new file mode 100644 (file)
index 0000000..f8d9fd4
--- /dev/null
@@ -0,0 +1 @@
+.sconsign
index a8c5c24..e4a810a 100644 (file)
@@ -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
index 842efc3..ad2ffea 100644 (file)
@@ -39,7 +39,8 @@ namespace lisp
 
       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);
index c159d22..8e572a0 100644 (file)
@@ -141,7 +141,7 @@ Level::save(const std::string& filename)
   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",