Author: soliton
Date: Mon Apr 28 00:47:18 2008
New Revision: 26197

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26197&view=rev
Log:
* default to the current directory for translations rather than cwd + /data

Modified:
    trunk/data/tools/wmlunits

Modified: trunk/data/tools/wmlunits
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=26197&r1=26196&r2=26197&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Mon Apr 28 00:47:18 2008
@@ -843,7 +843,8 @@
         help = "Specify user data dir to use, which is automatically scanned 
"+\
         "for addons. For example -u ~/.wesnoth/data")
     op.add_option("-t", "--transdir",
-        help = "Specify directory which has a po subfolder for translations.")
+        help = "Specify the directory which has a po subfolder for 
translations."+\
+        "(Defaults to the current directory.)")
     options, args = op.parse_args()
 
     if not options.output:
@@ -862,7 +863,7 @@
     if options.transdir:
         transdir = options.transdir
     else:
-        transdir = os.path.dirname(datadir)
+        transdir = os.path.dirname(os.getcwd())
     
     if options.language == "all":
         languages = find_languages().keys()


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to