Permalink
Browse files

Move translations scripts to a new folder

  • Loading branch information...
1 parent 5778417 commit 098a260c64c961a32049023be2840cd61f4852bc @eduramiba eduramiba committed Oct 10, 2012
@@ -64,7 +64,7 @@ def recurseDirs(dir,langPO):
containsPOT=True
if filename == langPO:
containsLangPO=True
- elif os.path.isdir(fullpath):
+ elif os.path.isdir(fullpath) and dir.find("target") == -1: #Only search pot files in code, not build:
recurseDirs(fullpath,langPO)
if containsPOT and not containsLangPO:
@@ -74,4 +74,4 @@ def recurseDirs(dir,langPO):
file.write("")
file.close()
-recurseDirs(".", sys.argv[1] + ".po")
+recurseDirs("../modules", sys.argv[1] + ".po")
@@ -72,5 +72,5 @@ done
IFS=$oldIFS
}
-RecurseDirs .
+RecurseDirs "../modules"
File renamed without changes.
@@ -96,5 +96,5 @@ done
IFS=$oldIFS
}
-RecurseDirs "./modules"
+RecurseDirs "../modules"
@@ -62,7 +62,7 @@
#To update .po translations from Transifex website you have to execute tx pull
-directories = ["."]
+directories = [".."]
while len(directories) > 0:
directory = directories.pop()
for name in os.listdir(directory):

0 comments on commit 098a260

Please sign in to comment.