LU504858B1 - Multilingual translation configuration method and device for dcs upper computer application - Google Patents

Multilingual translation configuration method and device for dcs upper computer application Download PDF

Info

Publication number
LU504858B1
LU504858B1 LU504858A LU504858A LU504858B1 LU 504858 B1 LU504858 B1 LU 504858B1 LU 504858 A LU504858 A LU 504858A LU 504858 A LU504858 A LU 504858A LU 504858 B1 LU504858 B1 LU 504858B1
Authority
LU
Luxembourg
Prior art keywords
file
translation
upper computer
application
language
Prior art date
Application number
LU504858A
Other languages
French (fr)
Inventor
Haiteng Liang
Xiaoyan Li
Jin Pan
Lei Guo
Weidong Zheng
Deyou Li
Ping Ji
Pu Du
Shuai Shao
Hanhua Li
Haiyang Li
Meiyan Song
Jindan Chen
Peiqiang Bai
Yuhua Wei
Lei Li
Haimin Zhou
Wei Xiong
Zebing Jia
Laichun Li
Xiaoxiao Li
Liu Yang
Zhicheng Xiong
Zhe Liu
Original Assignee
Huaneng Zhejiang Energy Sales Co Ltd
Huaneng Zhejiang Energy Dev Co Ltd Yuhuan Branch
Xian Thermal Power Res Inst Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaneng Zhejiang Energy Sales Co Ltd, Huaneng Zhejiang Energy Dev Co Ltd Yuhuan Branch, Xian Thermal Power Res Inst Co filed Critical Huaneng Zhejiang Energy Sales Co Ltd
Application granted granted Critical
Publication of LU504858B1 publication Critical patent/LU504858B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The present application discloses a multilingual translation configuration method and device for a DCS upper computer application. The method can realize the language translation of a real-time and non-interference synchronous update application during production through operations such as the generation of translation files on-line, the setting of configuration information of a language translation file, and the synchronous issuing of multi-node to ensure real-time and security during the update of a multilingual translation file of an application to a maximum extent, prompt usability of the application software of the upper computer and user experience, and greatly improve simplicity and real-time during a configuration of the language translation file on the premise of ensuring security.

Description

MULTILINGUAL TRANSLATION CONFIGURATION METHOD AND DEVICE FOR 904858
DCS UPPER COMPUTER APPLICATION
TECHNICAL FIELD
The present application belongs to the field of DCS upper computer application software, and mainly relates to updating a translation file of an application of a designated node of an upper computer, in particular to a multilingual translation configuration method and device for a
DCS upper computer application.
BACKGROUND
At present, an industrial control system software is realized using programming language, and the programming language has poor support for languages other than English, which often leads to garbled codes when a DCS upper computer application software displays languages other than English. At present, mainstream solutions generally require a user to set different character encoding formats for languages in order to display correctly, which leads to poor usability of the software and poor user experience, and cannot solve language translation problems of the upper computer application software from the root of program compilation. In addition, Chinese and English technical terms are not invariable. A traditional method can only modify the translation between languages through a code writer in a program, and an on-site upper computer application software needs to be updated after each modification; however, an on-site update operation often needs to be performed in a shutdown state, which will lead to real-time and certain security problems. Based on this, the present application provides a multilingual translation configuration method for DCS upper computer application. The language translation of a real-time and non-interference synchronous update application during production can be realized through operations such as the generation of translation files on-line, the setting of configuration information of a language translation file, and the synchronous issuing of multi-node to ensure real-time and security during the update of a multilingual translation file of an application to a maximum extent, prompt usability of the application software of the upper computer and user experience, and greatly improve simplicity and real-time during a configuration of the language translation file on the premise of ensuring security.
SUMMARY
The poor support of programming languages for languages other than English in the related” 504858 art often leads to garbled codes when a DCS upper computer application software displays languages other than English. According to unsolved problems in the related art, the present application provides a multilingual translation configuration method and device for DCS upper computer application.
A multilingual translation configuration method for a DCS upper computer application includes:
A currently operating upper computer node is set as a master node.
Specifically, the master node capable of performing a synchronous issuing operation of the translation file must meet a permission requirement of an engineer node, and if not, a current node needs to be modified as an engineer node permission in the terminal command window, otherwise, subsequent steps cannot be performed.
A terminal command window is opened using a user end, a directory location where an application is located is switched to, and a .pro file in the application is updated.
Specifically, the .pro file needs to include a code source file and a header file corresponding to an upper computer application, indicating a relationship list defined by a preprocessing program required by the upper computer application, a directory for placing an executable application of the upper computer and a search path that the application depends on, and needs to include configuration file information included in the upper computer application.
A language translation file corresponding to each language in the application is modified and a corresponding xml language file is generated.
A language category pointed by a language attribute in the file is acquired by parsing the xml language file generated by the application.
Configuration information of the language translation file is set using the user end.
Specifically, a user sets the configuration information of the language translation file in custom translation configuration parameters at the user end, and includes the number of applications, upper computer nodes and language translation files. If the user does not set the custom translation configuration parameters, the number of upper computer programs and the language translation files is 1 by default, and an upper limit of a set threshold is 100; and the upper computer node is empty by default.
An application needing to configure a translation file is selected according to the 904898 configuration information, then language translation files are added in batches, and an upper computer node needing to be synchronized is selected.
Specifically, when the number of selected applications exceeds a set number N, by default, the method only synchronizes translation files to first N added applications; when the number of the translation files exceeds a set number K, by default, the method only selects first K translation files to configure the application; and if a user does not select the upper computer node, a translation configuration file of the application is unable to complete an update operation to ensure that the user is capable of identifying an operated upper computer node each time the translation file is updated.
The set configuration information is saved and stored into a database, and the translation file is transmitted to other selected nodes of the upper computer.
A database agent stores the configuration information into the database in a form of a binary file, a file synchronization service agent transmits the translation file to the other selected nodes of the upper computer to check a user permission, a file synchronization operation is performed only when an operating user has a file synchronization service permission, otherwise, a file synchronization service operation is unable to be completed, and subsequent operations are terminated.
An issuing operation of the translation file is executed in the terminal command window to complete a multilingual translation configuration of an application of the selected nodes of the upper computer.
When the execution of the translation file in the terminal command window includes the execution of updating and issuing operations of the translation file, a system checks whether a node translation file to be synchronized completes transmission, and if the transmission is completed, set application parameters are checked and the translation file is updated to a path corresponding to the application to complete the multilingual translation configuration of the application of the selected nodes of the upper computer.
A multilingual translation device for a DCS upper computer application includes: an initial module, determining whether a currently operating upper computer node is a master node, if not, the currently operating node being set as the master node;
a processing module, updating a .pro file in an application according to an input instruction 04858 modifying a language translation file corresponding to the application to generate an xml file, acquiring a language category pointed by a language attribute in a language file according to the xml file generated by parsing, and ensuring that a user sets configuration information of the language translation file in custom translation configuration parameters, the configuration information including the number of applications, upper computer nodes and language translation files, the setting of the configuration information of the language translation file being to select a language translation file needing to be configured, the language translation files being added in batches, and then an upper computer node needing to be synchronized being selected to ensure that a translation file is updated to a corresponding application in a selected upper computer node; a storage module, saving the configuration information, storing the configuration information into a database, and transmitting a same to other selected nodes of an upper computer by a file synchronization service agent; and an update module, inputting an update instruction in a terminal command window and executing the issuing operation of the translation file to complete a multilingual configuration of the application of the upper computer node.
The present application realizes language translation of a real-time and non-interference synchronous update application during production to ensure real-time and security during the update of a multilingual translation file of an application to a maximum extent, prompt usability of the application software of the upper computer and user experience, and greatly improve simplicity and real-time during a configuration of the language translation file on the premise of ensuring security.
BRIEF DESCRIPTION OF THE DRAWINGS
In order to explain technical solutions in examples of the present application more clearly, the following will briefly introduce the attached drawings needed in the description of the examples. Obviously, the attached drawings in the following description are only some examples of the present application. For those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 shows a flow chart of a multilingual translation configuration method for a DCS upper computer application; and 0506858
FIG. 2 shows a schematic diagram of a multilingual translation device for a DCS upper computer application.
DETAILED DESCRIPTION
5 Technical solutions in examples of the present application will be described clearly and completely in the following with reference to the attached drawings in the examples of the present application. Obviously, all the described examples are only some, rather than all examples of the present application. Based on the examples in the present application, all other examples obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
In the following description, numerous specific details are set forth to facilitate a thorough understanding of the present application, but the present application can be practiced in other ways than those described herein. Those skilled in the art can make similar promotion without violating the connotation of the present application, so the present application is not limited by the specific examples disclosed below.
Example 1:
A multilingual translation configuration method for a DCS upper computer application includes, as shown in FIG. 1:
At step S101, a currently operating upper computer node is set as a master node.
Specifically, the master node capable of performing a synchronous issuing operation of the translation file must meet a permission requirement of an engineer node, and if not, a current node needs to be modified as an engineer node permission in the terminal command window, otherwise, subsequent steps cannot be performed.
At step S102, a terminal command window is opened using a user end, and a directory location where an application 1s located 1s switched to. Specifically, the terminal command window is opened by a user, the directory location where the application is located is switched to, a "lupdate" command is inputted, and a. pro file in the application is updated. The .pro file needs to include a code source file and a header file corresponding to an upper computer application, indicating a relationship list defined by a preprocessing program required by the upper computer application, a directory for placing an executable application of the upper computer and a search path that the application depends on, and needs to include configuration file information 904898 included in the upper computer application.
At step S103, a language translation file corresponding to each language in the application is modified and a corresponding xml language file is generated.
Specifically, a "linguist" command is inputted, the language translation file corresponding to the application is opened for modification, and a corresponding language xml file is generated.
At step S104, a language category pointed by a language attribute in the file is acquired by parsing the xml language file generated by the application.
At step S105, configuration information of the language translation file is set using the user end.
Specifically, a user sets the configuration information of the language translation file in custom translation configuration parameters at the user end, and includes the number of applications, upper computer nodes and language translation files. If the user does not set the custom translation configuration parameters, the number of upper computer programs and the language translation files is 1 by default, and an upper limit of a set threshold is 100; and the upper computer node is empty by default.
At step S106, an application needing to configure a translation file is selected according to the configuration information, then language translation files are added in batches, and an upper computer node needing to be synchronized is selected.
Specifically, when the number of selected applications exceeds a set number N, by default, the method only synchronizes translation files to first N added applications; when the number of the translation files exceeds a set number K, by default, the method only selects first K translation files to configure the application; and if a user does not select the upper computer node, a translation configuration file of the application is unable to complete an update operation to ensure that the user is capable of identifying an operated upper computer node each time the translation file is updated.
At step S107, the set configuration information is saved and stored into a database, and the translation file is transmitted to other selected nodes of the upper computer.
Specifically, a database agent stores the configuration information into the database in a form of a binary file, a file synchronization service agent transmits the translation file to the other selected nodes of the upper computer to check a user permission, a file synchronization 504858 operation is performed only when an operating user has a file synchronization service permission, otherwise, a file synchronization service operation is unable to be completed, and subsequent operations are terminated.
At step S108, an issuing operation of the translation file is executed in the terminal command window to complete a multilingual translation configuration of an application of the selected nodes of the upper computer.
When the execution of the translation file in the terminal command window includes the execution of updating and issuing operations of the translation file, a system checks whether a node translation file to be synchronized completes transmission, and if the transmission is completed, set application parameters are checked and the translation file is updated to a path corresponding to the application to complete the multilingual translation configuration of the application of the selected nodes of the upper computer.
Example 2:
A multilingual translation device for a DCS upper computer application includes a memory, a processor and a computer program stored in the memory and executable on the processor, as shown in FIG. 2. The device specifically includes: an initial module, a processing module, a storage module and an update module.
A module S201, an initial module, determines in advance whether a currently operating upper computer node is a master node, and if the currently operating upper computer node is the master node, a processing module is entered; if not, the currently operating node is set as the master node.
A module S202, a processing module, updates a .pro file in an application according to an input instruction, modifies a language translation file corresponding to the application to generate an xml file, acquires a language category pointed by a language attribute in a language file according to the xml file generated by parsing, and ensures that a user sets configuration information of the language translation file in custom translation configuration parameters.
The configuration information includes the number of applications, upper computer nodes and language translation files. The setting of the configuration information of the language translation file is to select a language translation file needing to be configured, the language translation files are added in batches, and then an upper computer node needing to be 504858 synchronized is selected to ensure that a translation file is updated to a corresponding application in a selected upper computer node.
A storage module S203, a storage module, saves the configuration information, stores the configuration information into a database, transmits a same to other selected nodes of an upper computer by a file synchronization service agent, and then executes an issuing operation of the translation file to complete a multilingual translation configuration of the application of the selected nodes of the upper computer.
A module S204, an update module, inputs an “update” instruction in a terminal command window and executes the issuing operation of the translation file to complete a multilingual configuration of the application of the upper computer node.
The present application improves the technical problem of modifying the translation between languages only by a code writer in a program in the related art, realizes language translation of a real-time and non-interference synchronous update application during production to ensure real-time and security during the update of a multilingual translation file of an application to a maximum extent, prompt usability of the application software of the upper computer and user experience, and greatly improve simplicity and real-time during a configuration of the language translation file on the premise of ensuring security.

Claims (9)

1. À multilingual translation configuration method for a DCS upper computer application, comprising: (1) setting a currently operating upper computer node as a master node; (2) opening a terminal command window using a user end, switching to a directory location where an application 1s located, and updating a .pro file in the application; (3) modifying a language translation file corresponding to each language in the application and generating a corresponding xml language file; (4) acquiring a language category pointed by a language attribute in the file by parsing the xml language file generated by the application; (5) setting configuration information of the language translation file using the user end; (6) selecting an application needing to configure a translation file according to the configuration information, then adding language translation files in batches, and selecting an upper computer node needing to be synchronized; (7) saving and storing the configuration information set in step (6) into a database, and transmitting the translation file to other selected nodes of the upper computer; and (8) executing an issuing operation of the translation file in the terminal command window to complete a multilingual translation configuration of an application of the selected nodes of the upper computer.
2. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein the master node is capable of performing a synchronous issuing operation of the translation file after meeting a permission requirement of an engineer node, and for a master node which does not meet the permission requirement of the engineer node, a current node needs to be modified as an engineer node permission in the terminal command window first.
3. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein the .pro file needs to comprise a code source file and a header file corresponding to an upper computer application, indicating a relationship list defined by a preprocessing program required by the upper computer application, a directory for placing an executable application of the upper computer and a search path that the application depends on,
and needs to comprise configuration file information comprised in the upper computer 504858 application.
4. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein when contents of the language translation file corresponding to the upper computer application is modified, the language category corresponding to the language attribute is designated, and if not designated, an English mode is defaulted.
5. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein the configuration information of the language translation file needs to be set in custom translation configuration parameters using the user end and comprises the number of applications, upper computer nodes and language translation files; if the custom translation configuration parameters are not set at the user end, the number of upper computer programs and language translation files is 1 by default, an upper limit of a set threshold is 100, and the upper computer node is empty by default.
6. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein when the number of selected applications exceeds a set number N, by default, the method only synchronizes translation files to first N added applications; when the number of the translation files exceeds a set number K, by default, the method only selects first K translation files to configure the application; and if a user does not select the upper computer node, a translation configuration file of the application is unable to complete an update operation to ensure that the user is capable of identifying an operated upper computer node each time the translation file is updated.
7. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein a database agent stores the configuration information into the database in a form of a binary file, a file synchronization service agent transmits the translation file to the other selected nodes of the upper computer to check a user permission, a file synchronization operation is performed only when an operating user has a file synchronization service permission, otherwise, a file synchronization service operation is unable to be completed, and subsequent operations are terminated.
8. The multilingual translation configuration method for a DCS upper computer application according to claim 1, wherein when the execution of the translation file in the terminal command window comprises the execution of updating and issuing operations of the translation file, 2 504858 system checks whether a node translation file to be synchronized completes transmission, and if the transmission is completed, set application parameters are checked and the translation file is updated to a path corresponding to the application to complete the multilingual translation configuration of the application of the selected nodes of the upper computer.
9. A multilingual translation device for a DCS upper computer application, comprising: an initial module, configured to determine whether a currently operating upper computer node is a master node, if not, the currently operating node being set as the master node; a processing module, configured to update a .pro file in an application according to an input instruction, modify a language translation file corresponding to the application to generate an xml file, acquire a language category pointed by a language attribute in a language file according to the xml file generated by parsing, and ensure that a user sets configuration information of the language translation file in custom translation configuration parameters, the configuration information comprising the number of applications, upper computer nodes and language translation files, the setting of the configuration information of the language translation file being to select a language translation file needing to be configured, the language translation files being added in batches, and then an upper computer node needing to be synchronized being selected to ensure that a translation file is updated to a corresponding application in a selected upper computer node; a storage module, configured to save the configuration information, store the configuration information into a database, transmit a same to other selected nodes of an upper computer by a file synchronization service agent, and then execute an issuing operation of the translation file; and an update module, configured to input an update instruction in a terminal command window and execute the issuing operation of the translation file to complete a multilingual configuration of the application of the upper computer node.
LU504858A 2022-08-03 2023-08-03 Multilingual translation configuration method and device for dcs upper computer application LU504858B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210928975.5A CN115421805A (en) 2022-08-03 2022-08-03 DCS upper computer application program multi-language translation configuration method and equipment

Publications (1)

Publication Number Publication Date
LU504858B1 true LU504858B1 (en) 2024-02-08

Family

ID=84196912

Family Applications (1)

Application Number Title Priority Date Filing Date
LU504858A LU504858B1 (en) 2022-08-03 2023-08-03 Multilingual translation configuration method and device for dcs upper computer application

Country Status (2)

Country Link
CN (1) CN115421805A (en)
LU (1) LU504858B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077184B (en) * 2023-10-17 2024-01-30 西安热工研究院有限公司 Method, system, equipment and medium for authorizing and keeping secret of upper computer software of DCS (distributed control system)

Also Published As

Publication number Publication date
CN115421805A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
US10824691B2 (en) Page rendering method, device, and data storage medium
LU504858B1 (en) Multilingual translation configuration method and device for dcs upper computer application
US20140156282A1 (en) Method and system for controlling target applications based upon a natural language command string
CN112860798B (en) Data processing method and device, electronic equipment and storage medium
CN102096588A (en) Control-containing page establishing method
JPS6120129A (en) Information processing method of plural code systems
JP2001084147A (en) Device and method for converting character string, and recording medium
CN101566946A (en) Method for flexibly supporting software multi-language version
CN113419969B (en) Interface automatic formation power guarantee method based on browser plug-in
CN111950300B (en) Translation management method and device for universal software entries, storage medium and server
CN102364437A (en) Multi-language site development system and implementation method thereof
CN103809983A (en) Method for modifying BIOS SETUP interface
CN111026404A (en) Method and device for generating parameter configuration code, electronic product and storage medium
CN110705219A (en) Game data processing method and device, storage medium and electronic equipment
CN114064601A (en) Storage process conversion method, device, equipment and storage medium
CN116955314A (en) Unified maintenance management and control method, device, equipment and storage medium for database
US11429358B2 (en) Representing asynchronous state machine in intermediate code
CN111857782B (en) Interface updating method and device, computer equipment and storage medium
CN113961300A (en) iOS APP character string resource file translation method and system
CN112948529A (en) Dynamic text reading and writing method and device, electronic equipment and medium
CN111726390A (en) Interface data interaction method, device, equipment and storage medium based on Teamcenter
WO2019136988A1 (en) Terminal control method, apparatus, computer device and storage medium
CN113568692B (en) Multilingual display method, device, electronic equipment and storage medium
CN105335153A (en) Dynamic script automatic-generating method
CN112784027B (en) Natural language interaction system and method in intelligent networking

Legal Events

Date Code Title Description
FG Patent granted

Effective date: 20240208