shiguanghuxian / etcd-manage

一个现代的etcd v3管理ui
http://140.143.234.132:10280/ui/#/key/kv
MIT License
244 stars 61 forks source link

Eng version #9

Closed M1k13 closed 5 years ago

M1k13 commented 5 years ago

Hey!

Thank you for your etcd-manage it works great. Im trying the English version/option but it doesn't translate everything. I used some sed commands(on RHEL7) to change the Chinese to English and it worked fine for the most part. Only the "filter"(筛选) button on the LOGS tab and the "repair directory"(修复目录) button on the SERVER tab dont translate for me. These are the sed command I used before I compiled the binary.

`sed -i 's/确定删除/Confirm delete/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/key不能为空/key can not be empty/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/添加成功!/Added successfully!/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/保存成功!/Successfully saved!/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/确定删除/Confirm delete/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/日期/Date/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/请选择日期/Please select a date/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/用户/User/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/类型/Types of/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/筛选/Filter/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/选择日期查看日志/Select date to view the log/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/请选择日期/Please select date/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Logs.vue

sed -i 's/docker方式etcd非集群方式/Docker mode etcd cluster mode/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/bin/config/cfg.toml

sed -i 's/本地etcd/Local etcd/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/bin/config/cfg.toml

sed -i 's/本机环境/Native environment/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/bin/config/cfg.toml

sed -i 's/docker方式etcd集群方式/Docker mode etcd cluster mode/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/bin/config/cfg.toml

sed -i 's/docker方式etcd非集群方式/Docker mode etcd cluster mode/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/config/cfg.toml

sed -i 's/本地etcd/Local etcd/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/config/cfg.toml

sed -i 's/本机环境/Native environment/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/config/cfg.toml

sed -i 's/程序退出/Program exit/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/main.go

sed -i 's/启动HTTP服务/Start HTTP the service/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/http.go

sed -i 's/启用tls必须配置证书文件路径/Enable tls must configure certificate file path/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/http.go

sed -i 's/域名列表不能为空/The domain name list cannot be empty/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/http.go

sed -i 's/etcd服务不存在/The etcd service does not exist/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/http.go

sed -i 's/无权限访问/No access/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/http.go

sed -i 's/修复目录/Repair directory/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/EtcdServer.vue

sed -i 's/确定修复etcd key的目录问题/Determine the directory problem for repairing the etcd key/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/EtcdServer.vue

sed -i 's/获取列表/Get list/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取key列表错误/Get key list error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取key列表错误/Get the value of the key/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取key值的值错误/Get the value of the key value incorrectly/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取etcd集群信息/Get etcd cluster information/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取服务节点错误/Get service node error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/删除key/Delete key/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/删除key错误/Delete key error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/保存key/Save key/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/保存key错误/Save key error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/参数错误/Parameter error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/目录不能修改/Directory cannot be modified/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/格式化显示key/Format display key/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/key不能为空/Key cannot be empty/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/不支持的格式/Unsupported format/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取etcd服务列表/Get the etcd service column table/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/配置为nil/Configured as nil/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/解析日志文件错误/Parse log file error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/读取日志文件错误/Read log file error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/没有日志/No log/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/查看日志错误/View log errors/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/获取key的值/Get the value of the key/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/配置为nil/Configured as nil/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/修复数据错误/Fix data error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/解析日志文件错误/Parse log file error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/读取日志文件错误/Read log file error/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/program/v1/v1.go

sed -i 's/路径文本框/Path text box/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/语言/Language/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/展示方式切换/Display mode switching/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue

sed -i 's/方式展示/way display/g' /root/go/src/github.com/shiguanghuxian/etcd-manage/static/src/views/Keys.vue`

shiguanghuxian commented 5 years ago

谢谢你的反馈,英语比较差,你提到的提示文字翻译问题,我会在下一版解决,谢谢你细心找到这些提示,万分感谢

Thank you for your feedback. English is poor. The problem of text translation of tips mentioned by you will be solved in the next edition. Thank you for finding these tips carefully. Thank you very much.

M1k13 commented 5 years ago

Ah great! do you have an indication(around what date) when that will be released?

shiguanghuxian commented 5 years ago

现在在家过中国年,放假结束就会发布新版本。 如果你着急可以先本地编译一下,如果没有go语言环境可以和我说,我来编译。

Now celebrate the Chinese New Year at home, and a new version will be released at the end of the holiday. If you are in a hurry, you can compile it locally. If there is no go language environment, you can tell me, I will compile it.

M1k13 commented 5 years ago

Thank you for the fast reply. Ill wait until you are back. Enjoy the holiday! 恭喜发财 / 恭喜發財

shiguanghuxian commented 5 years ago

Thank you for your attention. Happy New Year

shiguanghuxian commented 5 years ago

已经将提示的中文改为了英文,但是注释中的中文没有修改,UI的使用中避免了中文提示。 The Chinese prompt has been changed to English, but the Chinese in the commentary has not been changed, and the Chinese prompt has been avoided in the use of UI.

M1k13 commented 5 years ago

Thank you! I'm going to test it out!

shiguanghuxian commented 5 years ago

好的,有任何问题都可以联系我 Okay, you can contact me if you have any questions.

M1k13 commented 5 years ago

It works perfect and everything seems to be translated! I did notice that if you are in the "Keys tab" and you go to "Local Screening search bar" and you press enter you'll get a HTTP ERROR 404.

Thank you for your work

shiguanghuxian commented 5 years ago

好的,我看下这个问题,解决了会和你说,谢谢你的反馈 Okay, I'll take a look at the problem and I'll tell you that. Thank you for your feedback.