summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/util
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-xcrawl-ref/source/util/txc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/util/txc b/crawl-ref/source/util/txc
index 6b1dcdba09..3996d9b519 100755
--- a/crawl-ref/source/util/txc
+++ b/crawl-ref/source/util/txc
@@ -355,6 +355,8 @@ class ResourceIndex():
self.default_resources.append(basename)
elif os.path.isdir(f) and lang_re.match(f):
self.default_languages.append(f)
+ if not os.path.exists(f[:2]):
+ os.makedirs(f[:2])
if options.source:
self.languages = ['en']
@@ -707,7 +709,7 @@ class TxtFile(ResourceFile):
if lang:
self.entries = dict()
self.source_res = txt_files[('', res)]
- self.lang_dir = 'en' if lang == 'en' else lang[:2]
+ self.lang_dir = lang[:2]
else:
self.entries = OrderedDict()
self.source_res = self