Version 1.1

* remove warning about not using Python interface
* messages translate into English as fcitx supports more and more languages
This commit is contained in:
lilydjwg 2012-05-17 00:00:00 +00:00 committed by Able Scraper
parent 748342ed76
commit f83971b7f4
3 changed files with 21 additions and 18 deletions

View file

@ -16,7 +16,7 @@ def fcitxtalk(command=None):
try:
sock.connect(fcitxsocketfile)
except socket.error:
vim.command('echohl WarningMsg | echo "fcitx.vim: socket 连接出错" | echohl NONE')
vim.command('echohl WarningMsg | echo "fcitx.vim: socket connection error" | echohl NONE')
return
try:
if not command:
@ -27,7 +27,7 @@ def fcitxtalk(command=None):
elif command == 'o':
sock.send(FCITX_OPEN)
else:
raise ValueError('未知命令')
raise ValueError('unknown fcitx command')
finally:
sock.close()