-
大小: 45.91MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-07-05
- 语言: 其他
- 标签: extjs-4.1.1
资源简介
extjs-4.1.1 ExtJs所有文档及库文件,在官网下的,这个版本很好,放在这方便大家下载!
代码片段和文件信息
#!/usr/bin/env python
import sys os re
try:
import chardet
except ImportError:
print “You need universal encoding detector for this script“
print “ http://chardet.feedparser.org or apt-get install python-chardet“
sys.exit()
regexp_language = re.compile(“\* +(.+) +translation“ re.IGNORECASE)
js_template = “““/* This file is automaticly generated by create_language_js.py */
// some data used in the examples
Ext.namespace(‘Ext.exampledata‘);
// TODO: complete and sort the list
Ext.exampledata.languages = [
%s
];
“““
lang_dubs = {}
def lang_name(file):
language = os.path.basename(file)
m = regexp_language.search(open(file).read(512))
if m:
language = m.groups()[0]
if not lang_dubs.has_key(language):
lang_dubs[language] = file
else:
raise Exception(‘Duplicate language ‘+language+‘ for file ‘+file)
return language
def print_locale(lang_code):
print lang_code
sys.stdout.flush()
return True
def main():
base_dir = “../../src/locale“
base_file = lambda f: os.path.join(base_dir f)
try:
locales = os.listdir(base_dir)
except IOError:
print “Cannot find source locale directory: %s ... exiting“ % base_dir
sys.exit()
valid_file = lambda e: e.endswith(“.js“) and e.startswith(“ext-lang-“)
char_set = lambda f: chardet.detect(open(f).read())[‘encoding‘]
lang_code = lambda f: f[9:f.rfind(“.js“)]
info_set = lambda f: (lang_name(base_file(f)) (lang_code(f) char_set(base_file(f))))
locales = dict(info_set(file) for file in locales if valid_file(file) and print_locale(lang_code(file)))
print “... done“
locale_strarray = ‘\n‘.join([“\t[%r %r %r]“ % (code name charset) \
for name (code charset) in sorted(locales.items())])
# create languages.js
open(“languages.js“ “w“).write(js_template % locale_strarray)
print “saved %d languages to languages.js“ % len(locales)
if __name__==“__main__“:
main()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-07-04 21:15 extjs-4.1.1\
目录 0 2012-07-04 21:13 extjs-4.1.1\builds\
目录 0 2012-07-04 21:15 extjs-4.1.1\docs\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\boundlist\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\box\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\btn\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\btn-group\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\button\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\datepicker\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\dd\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\editor\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\form\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\form-invalid-tip\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\grid\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\layout\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\menu\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\panel\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\panel-header\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\progress\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\shared\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\sizer\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\slider\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\tab\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\tab-bar\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\tip\
目录 0 2012-07-04 21:14 extjs-4.1.1\docs\extjs\resources\themes\images\default\toolbar\
............此处省略5726个文件信息
评论
共有 条评论