|
|
|
@ -35,7 +35,10 @@ def main():
|
|
|
|
|
if not path.exists("l10n"):
|
|
|
|
|
makedirs("l10n")
|
|
|
|
|
|
|
|
|
|
for directory in getdirectories(sys.argv[1:]):
|
|
|
|
|
with open("post-list") as posts:
|
|
|
|
|
for directory in posts:
|
|
|
|
|
directory = directory.strip("\n")
|
|
|
|
|
if path.exists(directory + "/info.yaml"):
|
|
|
|
|
info = open(directory + "/info.yaml", "r", encoding="utf-8")
|
|
|
|
|
infoyaml = yaml.load(info, Loader=yaml.CSafeLoader)
|
|
|
|
|
info.close()
|
|
|
|
@ -43,6 +46,7 @@ def main():
|
|
|
|
|
slugdir = "l10n/" + infoyaml["slug"] + "/"
|
|
|
|
|
if not path.exists(slugdir):
|
|
|
|
|
makedirs(slugdir)
|
|
|
|
|
if "l10n" in infoyaml:
|
|
|
|
|
for lang in infoyaml["l10n"]:
|
|
|
|
|
if not path.exists(slugdir + lang):
|
|
|
|
|
makedirs(slugdir + lang)
|
|
|
|
|