diff --git a/add_language.py b/translations/add_language.py similarity index 95% rename from add_language.py rename to translations/add_language.py index b2a4f5022..3f9022475 100644 --- a/add_language.py +++ b/translations/add_language.py @@ -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") \ No newline at end of file +recurseDirs("../modules", sys.argv[1] + ".po") \ No newline at end of file diff --git a/po2properties.sh b/translations/po2properties.sh similarity index 98% rename from po2properties.sh rename to translations/po2properties.sh index ad5cb4aa5..a8f23fe50 100644 --- a/po2properties.sh +++ b/translations/po2properties.sh @@ -72,5 +72,5 @@ done IFS=$oldIFS } -RecurseDirs . +RecurseDirs "../modules" diff --git a/pot-header.txt b/translations/pot-header.txt similarity index 100% rename from pot-header.txt rename to translations/pot-header.txt diff --git a/properties2pot.sh b/translations/properties2pot.sh similarity index 99% rename from properties2pot.sh rename to translations/properties2pot.sh index 3e291f2af..b24faa297 100644 --- a/properties2pot.sh +++ b/translations/properties2pot.sh @@ -96,5 +96,5 @@ done IFS=$oldIFS } -RecurseDirs "./modules" +RecurseDirs "../modules" diff --git a/set_transifex.py b/translations/set_transifex.py similarity index 99% rename from set_transifex.py rename to translations/set_transifex.py index 20927d86e..a54ba25f1 100644 --- a/set_transifex.py +++ b/translations/set_transifex.py @@ -62,7 +62,7 @@ project = "gephi" #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):