代码拉取完成,页面将自动刷新
# Meant to be used with pybabel like so (this file is babel_gateone_js.cfg):
# Create a gateone_js.pot file by extracting gettext() strings from all the JavaScript files (*.js)"
# $ pybabel extract -o gateone/i18n/gateone_js.pot -F ./babel_gateone_js.cfg gateone
# Then you can create a translation for, say, Portuguese (creates a fresh/empty .po file):
# $ pybabel init -D gateone_js -i gateone/i18n/gateone_js.pot -d gateone/i18n/ -l pt_PT
# Edit the resulting .po file (adding your translations) and lastly, convert it to JSON using pojson (sudo pip install pojson):
# $ pojson gateone/i18n/pt_PT/LC_MESSAGES/gateone_js.po > gateone/i18n/pt_PT/LC_MESSAGES/gateone_js.json
# Now Gate One will automatically use your translation on the client-side, awesome!
# If gateone_js.pot changed, you'll need to update your translation with the new changes:
# $ pybabel update -d gateone/i18n -l pt_PT -i gateone/i18n/gateone_js.pot -D gateone_js
# $ pojson gateone/i18n/pt_PT/LC_MESSAGES/gateone_js.po > gateone/i18n/pt_PT/LC_MESSAGES/gateone_js.json
# That will update the line numbers, comment out any obsolete translations, and add any new untranslated text.
# Extraction from JavaScript files
[javascript: **.js]
extract_messages = gettext
input_encoding = utf-8
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。