Browse Source

Don't walk in files and backups folder for translate

version-14
Anand Doshi 11 years ago
parent
commit
852d37c724
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      webnotes/translate.py

+ 3
- 0
webnotes/translate.py View File

@@ -277,6 +277,9 @@ def export_messages(lang, outfile):
messages = {}
# extract messages
for (basepath, folders, files) in os.walk('.'):
if 'files' in folders: folders.remove('files')
if 'backups' in folders: folders.remove('backups')
def _get_messages(messages, basepath, mtype):
mlist = get_messages(basepath, mtype)
if not mlist:


Loading…
Cancel
Save