Skip to content

Commit 21814be

Browse files
committed
Update translations
1 parent 793c1a1 commit 21814be

4 files changed

Lines changed: 56 additions & 32 deletions

File tree

omodsim/translations/omodsim_ru.qm

2.24 KB
Binary file not shown.

omodsim/translations/omodsim_ru.ts

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ MODBUS Point Type:
21772177
<message>
21782178
<location filename="../modbusmultiserver.cpp" line="474"/>
21792179
<source>An incorrect device id was specified (%1)</source>
2180-
<translation type="unfinished"></translation>
2180+
<translation>Некорректно знаяение номера устройства (%1)</translation>
21812181
</message>
21822182
<message>
21832183
<location filename="../modbusmultiserver.cpp" line="951"/>
@@ -2190,7 +2190,7 @@ MODBUS Point Type:
21902190
<message>
21912191
<location filename="../modbustcpserver.cpp" line="220"/>
21922192
<source>Invalid connection settings for TCP communication specified.</source>
2193-
<translation type="unfinished"></translation>
2193+
<translation>Указаны некорректные настройки для TCP соединения.</translation>
21942194
</message>
21952195
</context>
21962196
<context>
@@ -2234,73 +2234,73 @@ MODBUS Point Type:
22342234
<message>
22352235
<location filename="../modbusrtuserialserver.cpp" line="391"/>
22362236
<source>Referenced serial device does not exist.</source>
2237-
<translation type="unfinished"></translation>
2237+
<translation>Указанное устройство не существует.</translation>
22382238
</message>
22392239
<message>
22402240
<location filename="../modbusrtuserialserver.cpp" line="394"/>
22412241
<source>Cannot open serial device due to permissions.</source>
2242-
<translation type="unfinished"></translation>
2242+
<translation>Невозможно открыть устройство из-за разрешений доступа.</translation>
22432243
</message>
22442244
<message>
22452245
<location filename="../modbusrtuserialserver.cpp" line="398"/>
22462246
<source>Cannot open serial device.</source>
2247-
<translation type="unfinished"></translation>
2247+
<translation>Невозможно открыть устройство.</translation>
22482248
</message>
22492249
<message>
22502250
<location filename="../modbusrtuserialserver.cpp" line="401"/>
22512251
<source>Write error.</source>
2252-
<translation type="unfinished"></translation>
2252+
<translation>Ошибка записи.</translation>
22532253
</message>
22542254
<message>
22552255
<location filename="../modbusrtuserialserver.cpp" line="404"/>
22562256
<source>Read error.</source>
2257-
<translation type="unfinished"></translation>
2257+
<translation>Ошибка чтения.</translation>
22582258
</message>
22592259
<message>
22602260
<location filename="../modbusrtuserialserver.cpp" line="407"/>
22612261
<source>Resource error.</source>
2262-
<translation type="unfinished"></translation>
2262+
<translation>Ошибка ресурса.</translation>
22632263
</message>
22642264
<message>
22652265
<location filename="../modbusrtuserialserver.cpp" line="410"/>
22662266
<source>Device operation is not supported error.</source>
2267-
<translation type="unfinished"></translation>
2267+
<translation>Работа устройства не поддерживается.</translation>
22682268
</message>
22692269
<message>
22702270
<location filename="../modbusrtuserialserver.cpp" line="414"/>
22712271
<source>Timeout error.</source>
2272-
<translation type="unfinished"></translation>
2272+
<translation>Время ожидания истекло.</translation>
22732273
</message>
22742274
<message>
22752275
<location filename="../modbusrtuserialserver.cpp" line="417"/>
22762276
<source>Unknown error.</source>
2277-
<translation type="unfinished"></translation>
2277+
<translation>Неизвестная ошибка.</translation>
22782278
</message>
22792279
</context>
22802280
<context>
22812281
<name>QModbusRtuSerialServer</name>
22822282
<message>
22832283
<location filename="../modbusrtuserialserver.cpp" line="302"/>
22842284
<source>Requesting serial port is closed</source>
2285-
<translation type="unfinished"></translation>
2285+
<translation>Запрашиваемый последовательный порт закрыт</translation>
22862286
</message>
22872287
<message>
22882288
<location filename="../modbusrtuserialserver.cpp" line="311"/>
22892289
<source>Could not write response to client</source>
2290-
<translation type="unfinished"></translation>
2290+
<translation>Не удалось создать ответ клиенту</translation>
22912291
</message>
22922292
</context>
22932293
<context>
22942294
<name>QModbusTcpServer</name>
22952295
<message>
22962296
<location filename="../modbustcpserver.cpp" line="149"/>
22972297
<source>Requesting socket is closed</source>
2298-
<translation type="unfinished"></translation>
2298+
<translation>Запрашивающий сокет закрыт</translation>
22992299
</message>
23002300
<message>
23012301
<location filename="../modbustcpserver.cpp" line="157"/>
23022302
<source>Could not write response to client</source>
2303-
<translation type="unfinished"></translation>
2303+
<translation>Не удалось создать ответ клиенту</translation>
23042304
</message>
23052305
</context>
23062306
<context>
@@ -2388,7 +2388,19 @@ Script.onInit(()=&gt;{
23882388

23892389
/* write your init code here */
23902390
});</source>
2391-
<translation type="unfinished"></translation>
2391+
<translation>Server.addressBase = AddressBase.Base1;
2392+
2393+
let deviceId = 1;
2394+
let address = 1;
2395+
2396+
Script.onInit(()=&gt;{
2397+
Server.onChange(deviceId, Register.Holding, address, (value)=&gt;
2398+
{
2399+
/* здесь должен быть код реакции на изменение значения регистра */
2400+
});
2401+
2402+
/* здесь должен быть ваш код инициализации */
2403+
});</translation>
23922404
</message>
23932405
</context>
23942406
<context>

omodsim/translations/omodsim_zh.qm

1.51 KB
Binary file not shown.

omodsim/translations/omodsim_zh.ts

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,7 +2185,7 @@ MODBUS Point Type:
21852185
<message>
21862186
<location filename="../modbusmultiserver.cpp" line="474"/>
21872187
<source>An incorrect device id was specified (%1)</source>
2188-
<translation type="unfinished"></translation>
2188+
<translation>指定了錯誤的設備 ID(%1)</translation>
21892189
</message>
21902190
<message>
21912191
<location filename="../modbusmultiserver.cpp" line="951"/>
@@ -2198,7 +2198,7 @@ MODBUS Point Type:
21982198
<message>
21992199
<location filename="../modbustcpserver.cpp" line="220"/>
22002200
<source>Invalid connection settings for TCP communication specified.</source>
2201-
<translation type="unfinished"></translation>
2201+
<translation>指定的 TCP 通訊連線設定無效。</translation>
22022202
</message>
22032203
</context>
22042204
<context>
@@ -2242,73 +2242,73 @@ MODBUS Point Type:
22422242
<message>
22432243
<location filename="../modbusrtuserialserver.cpp" line="391"/>
22442244
<source>Referenced serial device does not exist.</source>
2245-
<translation type="unfinished"></translation>
2245+
<translation>引用的串行設備不存在。</translation>
22462246
</message>
22472247
<message>
22482248
<location filename="../modbusrtuserialserver.cpp" line="394"/>
22492249
<source>Cannot open serial device due to permissions.</source>
2250-
<translation type="unfinished"></translation>
2250+
<translation>由於權限問題,無法開啟串行設備。</translation>
22512251
</message>
22522252
<message>
22532253
<location filename="../modbusrtuserialserver.cpp" line="398"/>
22542254
<source>Cannot open serial device.</source>
2255-
<translation type="unfinished"></translation>
2255+
<translation>無法開啟串行設備。</translation>
22562256
</message>
22572257
<message>
22582258
<location filename="../modbusrtuserialserver.cpp" line="401"/>
22592259
<source>Write error.</source>
2260-
<translation type="unfinished"></translation>
2260+
<translation>寫入錯誤。</translation>
22612261
</message>
22622262
<message>
22632263
<location filename="../modbusrtuserialserver.cpp" line="404"/>
22642264
<source>Read error.</source>
2265-
<translation type="unfinished"></translation>
2265+
<translation>讀取錯誤。</translation>
22662266
</message>
22672267
<message>
22682268
<location filename="../modbusrtuserialserver.cpp" line="407"/>
22692269
<source>Resource error.</source>
2270-
<translation type="unfinished"></translation>
2270+
<translation>資源錯誤。</translation>
22712271
</message>
22722272
<message>
22732273
<location filename="../modbusrtuserialserver.cpp" line="410"/>
22742274
<source>Device operation is not supported error.</source>
2275-
<translation type="unfinished"></translation>
2275+
<translation>設備操作不支援錯誤。</translation>
22762276
</message>
22772277
<message>
22782278
<location filename="../modbusrtuserialserver.cpp" line="414"/>
22792279
<source>Timeout error.</source>
2280-
<translation type="unfinished"></translation>
2280+
<translation>超時錯誤。</translation>
22812281
</message>
22822282
<message>
22832283
<location filename="../modbusrtuserialserver.cpp" line="417"/>
22842284
<source>Unknown error.</source>
2285-
<translation type="unfinished"></translation>
2285+
<translation>未知錯誤。</translation>
22862286
</message>
22872287
</context>
22882288
<context>
22892289
<name>QModbusRtuSerialServer</name>
22902290
<message>
22912291
<location filename="../modbusrtuserialserver.cpp" line="302"/>
22922292
<source>Requesting serial port is closed</source>
2293-
<translation type="unfinished"></translation>
2293+
<translation>請求串口已關閉</translation>
22942294
</message>
22952295
<message>
22962296
<location filename="../modbusrtuserialserver.cpp" line="311"/>
22972297
<source>Could not write response to client</source>
2298-
<translation type="unfinished"></translation>
2298+
<translation>無法寫入對客戶端的回應</translation>
22992299
</message>
23002300
</context>
23012301
<context>
23022302
<name>QModbusTcpServer</name>
23032303
<message>
23042304
<location filename="../modbustcpserver.cpp" line="149"/>
23052305
<source>Requesting socket is closed</source>
2306-
<translation type="unfinished"></translation>
2306+
<translation>請求套接字已關閉</translation>
23072307
</message>
23082308
<message>
23092309
<location filename="../modbustcpserver.cpp" line="157"/>
23102310
<source>Could not write response to client</source>
2311-
<translation type="unfinished"></translation>
2311+
<translation>無法寫入對客戶端的回應</translation>
23122312
</message>
23132313
</context>
23142314
<context>
@@ -2396,7 +2396,19 @@ Script.onInit(()=&gt;{
23962396

23972397
/* write your init code here */
23982398
});</source>
2399-
<translation type="unfinished"></translation>
2399+
<translation>Server.addressBase = AddressBase.Base1;
2400+
2401+
let deviceId = 1;
2402+
let address = 1;
2403+
2404+
Script.onInit(()=&gt;{
2405+
Server.onChange(deviceId, Register.Holding, address, (value)=&gt;
2406+
{
2407+
/* 在暫存器值改變時編寫程式碼 */
2408+
});
2409+
2410+
/* 在這裡寫入你的初始化程式碼 */
2411+
});</translation>
24002412
</message>
24012413
</context>
24022414
<context>

0 commit comments

Comments
 (0)