#!/usr/bin/env python 
#-*- coding: utf-8 -*- 

import sys 
reload(sys) 
sys.setdefaultencoding('UTF-8')
sys.path.append("..")

from data_processor import transcoder

def _main(url, trans):
    print transcoder.convert('en', '123 test', url, trans, 'test')

if __name__ == "__main__":
    url = sys.argv[1]

    trans = "chengdujin"
    if len(sys.argv) > 2:
        trans = sys.argv[2]
    _main(url, trans)


@@ -166,24 +166,34 @@
 %0A%0Adef _main(
+language, 
 url, trans):
@@ -226,12 +226,16 @@
 ert(
-'en'
+language
 , '1
@@ -398,22 +398,109 @@
 %5B2%5D%0A    
-_main(
+language = 'en'%0A    if len(sys.argv) %3E 3:%0A        language = sys.argv%5B3%5D%0A    _main(language, 
 url, tra

support indicating language in testing