Skip to content

Commit

Permalink
修复翻译错误, 流量统计乱码
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Mar 21, 2019
1 parent b06cd28 commit f23e286
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion v2ray_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.0.7'
__version__ = '3.1.0'

from .util_core.utils import i18n_create

Expand Down
2 changes: 1 addition & 1 deletion v2ray_util/global_setting/stats_ctr.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def manage():

group_list = profile.group_list

print("{}: {}".format(_("V2ray Traffic Statistics"), profile.stats.status))
print("{}: {}".format(_("V2ray Traffic Statistics Status"), profile.stats.status))

print("")
print(_("1.open statistics"))
Expand Down
Binary file modified v2ray_util/locale_i18n/zh_CH/LC_MESSAGES/lang.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions v2ray_util/locale_i18n/zh_CH/LC_MESSAGES/lang.po
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ msgstr "是否禁止BT(y/n):"

### iptables_ctr.py start ###

msgid "Iptables Traffic Statistics"
msgid "Iptables Port Traffic Statistics"
msgstr "Iptables 端口流量统计"

msgid "1.check statistics result"
Expand All @@ -262,7 +262,7 @@ msgstr "重置成功!"
msgid "no data traffic now!"
msgstr "当前无流量数据, 请使用流量片刻再来查看统计!"

msgid "V2ray Traffic Statistics"
msgid "V2ray Traffic Statistics Status"
msgstr "当前V2ray流量统计状态"

msgid "1.open statistics"
Expand Down
8 changes: 6 additions & 2 deletions v2ray_util/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def user_manage():
for index, text in enumerate(show_text):
print("{}.{}".format(index + 1, text))
choice = loop_input_choice_number(_("please select: "), len(show_text))
if choice == 1:
if not choice:
return
elif choice == 1:
multiple.new_user()
elif choice == 2:
multiple.new_port()
Expand All @@ -172,7 +174,9 @@ def profile_alter():
for index, text in enumerate(show_text):
print("{}.{}".format(index + 1, text))
choice = loop_input_choice_number(_("please select: "), len(show_text))
if choice == 1:
if not choice:
return
elif choice == 1:
base.new_email()
elif choice == 2:
base.new_uuid()
Expand Down

0 comments on commit f23e286

Please sign in to comment.