Skip to content

Commit

Permalink
Move translations scripts to a new folder
Browse files Browse the repository at this point in the history
  • Loading branch information
eduramiba committed Oct 10, 2012
1 parent 5778417 commit 098a260
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions add_language.py → translations/add_language.py
Expand Up @@ -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:
Expand All @@ -74,4 +74,4 @@ def recurseDirs(dir,langPO):
file.write("")
file.close()

recurseDirs(".", sys.argv[1] + ".po")
recurseDirs("../modules", sys.argv[1] + ".po")
2 changes: 1 addition & 1 deletion po2properties.sh → translations/po2properties.sh
Expand Up @@ -72,5 +72,5 @@ done
IFS=$oldIFS
}

RecurseDirs .
RecurseDirs "../modules"

File renamed without changes.
2 changes: 1 addition & 1 deletion properties2pot.sh → translations/properties2pot.sh
Expand Up @@ -96,5 +96,5 @@ done
IFS=$oldIFS
}

RecurseDirs "./modules"
RecurseDirs "../modules"

2 changes: 1 addition & 1 deletion set_transifex.py → translations/set_transifex.py
Expand Up @@ -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):
Expand Down

0 comments on commit 098a260

Please sign in to comment.