@@ -0,0 +1,1753 @@
+#!/usr/bin/env python%0A# coding=utf-8%0A'''%0AThis script will help you take out all strings.xml(Placed in a language-region folder) from an Android projectDir%0AWe now use it to provide the strings and upload them to Crowdin.%0A%0A%0A%0A'''%0Afrom os import system,listdir,path%0Afrom sys import argv%0A%0Adef takeoutStrings(resPath):%0A    for item in listdir(resPath):%0A        itemPath = resPath + '/' + item%0A        print item%0A        if (not 'values' in item) :%0A            rmUnused = 'rm -rf %25s'%25(itemPath)%0A            print rmUnused%0A            system(rmUnused)%0A            continue%0A%0A        if ('large' in item or 'dpi' in item):%0A            rmLayout = 'rm -rf %25s'%25(itemPath)%0A            print rmLayout%0A            system(rmLayout)%0A            continue%0A%0A%0A        if (not path.isdir(itemPath)):%0A            rmFile = 'rm -rf %25s'%25(itemPath)%0A            print rmFile%0A            system(rmFile)%0A            continue%0A%0A        for subItem in listdir(itemPath):%0A            subItemPath = itemPath + '/' + subItem%0A            if (not 'strings.xml' == subItem):%0A                rmNotStrings = 'rm -rf %25s'%25(subItemPath)%0A                print rmNotStrings%0A                system(rmNotStrings)%0A        %0A        if (len(listdir(itemPath)) == 0):%0A            removeEmptyFolder = 'rm -rf %25s'%25(itemPath)%0A            print 'Removing empty folder %25s'%25(itemPath)%0A            system(removeEmptyFolder)%0A%0A%0Adef main():%0A    '''%0A    Usage: takeoutStrings.py projectPath%0A    '''%0A    if (len(argv) %3C 2) :%0A        print main.__doc__%0A        return%0A    projectDir = argv%5B1%5D%0A    projResDir = projectDir + '/res/'%0A    destBaseDir = '/tmp/'%0A    destDir = '/tmp/res/'%0A    cpRes = 'cp %25s %25s -rf '%25(projResDir, destBaseDir)%0A    print cpRes%0A    system(cpRes)%0A    takeoutStrings(destDir)%0A%0Amain()%0A%0A        %0A%0A%0A

Add script for Taking out of strings.xml files