Aegisub/aegisub/po/mkwin32layout.py
Amar Takhar 91d73ec8ea SVN Transition Step 3/7
1. cd aegisub/
  2. svn mv *cpp *h src/
  3. svn mv Makefile.am MatroskaParser.c auto4_perldata.inc bitmaps boost \
     changelog.txt config gl include libosxutil libresrc md5.c msvc mythes.cxx \
     mythes.hxx res.rc src/
  4. cd ..
  5. svn mv FFmpegSource2/ INSTALL Makefile.am README  acinclude.m4 \
     autogen.sh automation/ bin build configure.in desktop dummy.txt lib \
     libass/ m4macros/ packages/ po/ scripts/ universalchardet/ aegisub/
  6. mkdir -p docs/wiki_convert
  7. svn add docs/wiki_convert
  8. cd docs
  9. svn mv aegisub_convert_docs.pl convert.bat output wiki_convert/

* See r2749 for full description.

Originally committed to SVN as r2752.
2009-03-08 08:30:39 +00:00

19 lines
522 B
Python

import shutil
import os
destpath = "../locale"
os.mkdir(destpath)
for lang in file("LINGUAS").readlines():
lang = lang.strip()
langpath = destpath + "/" + lang
os.mkdir(langpath)
shutil.copyfile(lang + ".po", langpath + "/aegisub.po")
if os.access("wxstd-" + lang + ".mo", os.R_OK):
shutil.copyfile("wxstd-" + lang + ".mo", langpath + "/wxstd.mo")
if os.access(lang + ".gmo", os.R_OK):
shutil.copyfile(lang + ".gmo", langpath + "/aegisub.mo")
else:
shutil.copyfile(lang + ".mo", langpath + "/aegisub.mo")