Update of /cvsroot/super-tux/supertux/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv539/src
Modified Files:
worldmap.cpp
Log Message:
Made lispfiles translatable. This time the translations are stored externally
in .po files in the same directory as the lisp files. So you can have
translation files for complete level subsets now.
Because Ricardo added a hacked solution before and because people already used
that, someone has to go over all the maps now, extract the translations and put
them into separate files, I'm too lazy to do that now, I just translated some
files for testing.
Translation-Patches are always welcome ;-)
Index: worldmap.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/src/worldmap.cpp,v
retrieving revision 1.137
retrieving revision 1.138
diff -u -d -r1.137 -r1.138
--- worldmap.cpp 2 Dec 2004 00:25:27 -0000 1.137
+++ worldmap.cpp 2 Dec 2004 01:41:57 -0000 1.138
@@ -368,11 +368,7 @@
void
WorldMap::load_map()
{
- std::string::size_type p = map_filename.find_last_of('/');
- if(p == std::string::npos)
- levels_path = "";
- else
- levels_path = map_filename.substr(0, p+1);
+ levels_path = FileSystem::dirname(map_filename);
try {
lisp::Parser parser;
|