Skip to content

Commit 58fd9f4

Browse files
committed
feat: translated to English
1 parent bad3c46 commit 58fd9f4

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# 1.0.1版本
1+
# Version 1.0.1
22

3-
1. 将模块的图标文件信息,改为完整路径字符串
3+
1. Change the icon file information of the module to the full path string

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# VeighNa框架的Excel RTD应用模块
1+
# Excel RTD application module for VeighNa Framework
22

33
<p align="center">
44
<img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
@@ -11,25 +11,25 @@
1111
<img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
1212
</p>
1313

14-
## 说明
14+
## Description
1515

16-
RTD全称是RealTimeData,是微软提供的主要面向金融行业中实时数据需求设计的Excel数据对接方案.
16+
RTD is the full name of RealTimeData, which is an Excel data interfacing program provided by Microsoft mainly designed for real-time data needs in the financial industry.
1717

18-
ExcelRtd模块则是VeighNa官方提供的用于实现在Excel中访问VeighNa程序内任意数据信息的功能模块。
18+
The ExcelRtd module is a functional module provided by VeighNa for accessing any data information in the VeighNa program in Excel.
1919

20-
## 安装
20+
## Installation
2121

22-
安装环境推荐基于3.0.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。
22+
The recommended installation environment is based on version 3.0.0 or higher of [[**VeighNa Studio**](https://edarchimbaud.com/veighna-website)].
2323

24-
直接使用pip命令:
24+
Use the pip command directly:
2525

26-
```
26+
```bash
2727
pip install vnpy_excelrtd
2828
```
2929

3030

31-
或者下载源代码后,解压后在cmd中运行:
31+
Or download the source code, unzip it and run it in cmd:
3232

33-
```
33+
```bash
3434
pip install .
3535
```

vnpy_excelrtd/ui/widget.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
class RtdManager(QtWidgets.QWidget):
1111
""""""
12+
1213
signal_log: QtCore.pyqtSignal = QtCore.pyqtSignal(Event)
1314

1415
def __init__(self, main_engine: MainEngine, event_engine: EventEngine) -> None:
@@ -34,14 +35,14 @@ def init_ui(self) -> None:
3435
self.client_line: QtWidgets.QLineEdit = QtWidgets.QLineEdit(str(client_path))
3536
self.client_line.setReadOnly(True)
3637

37-
copy_button: QtWidgets.QPushButton = QtWidgets.QPushButton("复制")
38+
copy_button: QtWidgets.QPushButton = QtWidgets.QPushButton("Copy")
3839
copy_button.clicked.connect(self.copy_client_path)
3940

4041
self.log_monitor: QtWidgets.QTextEdit = QtWidgets.QTextEdit()
4142
self.log_monitor.setReadOnly(True)
4243

4344
self.port_label: QtWidgets.QLabel = QtWidgets.QLabel(
44-
"使用Socket端口:请求回应9001、广播推送9002"
45+
"Using socket ports: request response 9001, broadcast push 9002"
4546
)
4647

4748
hbox: QtWidgets.QHBoxLayout = QtWidgets.QHBoxLayout()

vnpy_excelrtd/vnpy_rtd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def add_rtd(self, rtd: ObjectRtd) -> None:
7777
"""
7878
buf: Set[ObjectRtd] = self.rtds[rtd.name]
7979
buf.add(rtd)
80-
self.write_log(f"新增RTD连接:{rtd.name} {rtd.field}")
80+
self.write_log(f"Add RTD connection: {rtd.name} {rtd.field}")
8181

8282
# Auto subscribe tick data
8383
self.subscribe(rtd.name)
@@ -89,7 +89,7 @@ def remove_rtd(self, rtd: ObjectRtd) -> None:
8989
buf: Set[ObjectRtd] = self.rtds[self.name]
9090
if self in buf:
9191
buf.remove(rtd)
92-
self.write_log(f"移除RTD连接:{rtd.name} {rtd.field}")
92+
self.write_log(f"Remove RTD connection: {rtd.name} {rtd.field}")
9393

9494

9595
def init_client() -> None:

0 commit comments

Comments
 (0)