Skip to content

Instantly share code, notes, and snippets.

@the5fire
Created May 8, 2014 03:16
Show Gist options
  • Save the5fire/bbad767a1b8f5ba45ee0 to your computer and use it in GitHub Desktop.
Save the5fire/bbad767a1b8f5ba45ee0 to your computer and use it in GitHub Desktop.
cp lang dir
import os
import shutil
l = "ar, bg, bn, br, bs, ca, ckb, cs, csb, cy, da, de, el, en, en_AU, en_CA, en_GB, eo, es, et, eu, fa, fi, fil, fo, fr, fy, ga, gl, gu, he, hi, hr, hu, id, is, it, ja, ka, kk, ko, ku, lt, lv, mk, ml, mr, ms, nb, nds, ne, nl, nn, oc, pa, pl, pt, pt_BR, ro, ru, si, sk, sl, sq, sr, sv, ta, te, th, tl, tr, uk, ur, vi, zh_CN, zh_HK, zh_TW, zu"
for la in l.split(', '):
la = la.strip()
if not os.path.exists(la):
shutil.copytree('gl', la)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment