Multi-language implementation method and system for relay protection device
By implementing a many-to-many mapping between term key values and optional functions in relay protection devices, the problem of dynamic selection of term semantics under different optional functions is solved, improving the versatility and flexibility of the device and reducing development and maintenance costs.
Patent Information
- Application Number
- CN202511617494.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-06
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2045-11-06
AI Technical Summary
Existing multilingual solutions cannot support the dynamic selection of term semantics for relay protection devices under different optional function scenarios, resulting in limited device versatility and flexibility.
By acquiring the optional functions supported by the relay protection device and their identifiers, a many-to-many mapping between term key values and optional functions is formed. A term file template is generated and translated according to the language type, so as to realize the dynamic selection of multilingual semantics under the optional functions.
It improves the versatility and flexibility of relay protection device software, reduces the workload of development and maintenance, and supports dynamic selection of term semantics in different scenarios.
Smart Images

Figure CN121070508A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power system relay protection, and in particular to a multi-language implementation method and system for a relay protection device. BACKGROUND
[0002] At present, the support of multi-language by a relay protection device is increasingly important. The current mainstream multi-language implementation scheme of a relay protection device is to manage a multi-language term file by using a key:value pair, wherein the key is a term key value, which is a unique identifier, and the value is the translation content of the term in each language. In the term file of each language, the key and the value correspond to each other, and the translated content can be obtained according to the key in the term file of the corresponding language.
[0003] The existing multi-language scheme uses one key to correspond to one fixed value, which is suitable for the case where the semantics of a term to be translated is determined to be unchanged. For a relay protection device, in order to improve the universality and flexibility of the relay protection device, the software program of the relay protection device supports the maximum functions in various application scenarios. In actual application, the functions need to be selected and matched according to the engineering requirements and application scenarios, and the running functions need to be configured or trimmed. In different selected functions, the meaning of the same data is different, and the semantics such as the name description displayed externally is also different. For example, the same sampling current analog quantity may have different semantics such as A-phase current, high-voltage side A-phase current, medium-voltage side A-phase current, and low-voltage side A-phase current in different selected functions. The current multi-language scheme cannot support the dynamic selection of the application scenario of the term semantics. If the existing multi-language scheme is used, each selected scenario needs to be set as an independent program version for management, and the universality and flexible expansion of the relay protection device are greatly limited. SUMMARY
[0004] The present application aims to solve at least one of the technical problems in the background art, and provides a multi-language implementation method and system for a relay protection device.
[0005] To achieve the above-mentioned purpose, the present application provides a multi-language implementation method for a relay protection device, comprising:
[0006] obtaining the total number of selected functions supported by the relay protection device and the identifier of each selected function;
[0007] determining the term semantics of each term to be translated under each selected function according to the application scenario of each selected function, forming a list of the identifiers of all selected functions and the corresponding term semantics under the same term key value, and generating a term file template according to the format corresponding to the term key value of the term to be translated and the list;
[0008] According to the language type supported by the relay protection device, the term semantic in the term file template is replaced by the term translation value to generate a term file;
[0009] When the relay protection device is running, the corresponding term file is parsed according to the current language type of the relay protection device to obtain the corresponding term translation value, thereby realizing the dynamic selection of the multi-language semantic under the selected function.
[0010] According to an aspect of the present application, the identification of the selected function supported by the term key value in the term file is one-to-one corresponding to the term translation value under the selected function;
[0011] The term key value and the identification of the selected function and its term translation value are in a one-to-many relationship, and one term key value corresponds to multiple identifications of the selected function and its term translation value.
[0012] According to an aspect of the present application, the selected function configured in the term file includes all selected functions in the relay protection device, and also includes a default selected function and its corresponding term translation value;
[0013] The default selected function is used when the relay protection device is not set with a selected function or the set selected function is not matched.
[0014] According to an aspect of the present application, when the relay protection device is running, the corresponding term file is parsed according to the current language type of the relay protection device to obtain the corresponding term translation value, thereby realizing the dynamic selection of the multi-language semantic under the selected function.
[0015] When the relay protection device is running, the corresponding term file is parsed according to the current language type of the relay protection device, then the list corresponding to the term key value is obtained from the term file according to the term key value of the term to be translated, and the corresponding term translation value is searched and obtained from the list according to the identification of the selected function set by the current relay protection device, thereby realizing the dynamic selection of the multi-language semantic under the selected function.
[0016] To achieve the above object, the present application further provides a multi-language implementation system for a relay protection device, comprising:
[0017] The selected function and its identification obtaining module obtains the total number of selected functions supported by the relay protection device and the identification of each selected function;
[0018] The term file template generating module determines the term semantic of each term to be translated under each selected function according to the application scene of each selected function, forms a list of the identification of all selected functions and the corresponding term semantic under the same term key value, and generates a term file template according to the format corresponding to the term key value of the term to be translated and the list.
[0019] The term file generation module replaces the term semantic in the term file template with the term translation value according to the language type supported by the relay protection device to generate a term file; one independent term file is generated for each language type;
[0020] The multi-language semantic selection module parses the corresponding term file according to the current language type of the relay protection device to obtain the corresponding term translation value to realize the dynamic selection of multi-language semantics under the matching function when the relay protection device is running.
[0021] To achieve the above object, the application further provides an electronic device, comprising a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program is executed by the processor to realize the multi-language implementation method for the relay protection device.
[0022] To achieve the above object, the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the multi-language implementation method for the relay protection device.
[0023] According to the scheme of the application and the above scheme of the application, the application binds the multi-language term semantic with the matching function to realize the one-to-many mapping of the multi-language term key value and the term translation value, meets the requirement that the same version of software program supports the translation of the term key value into different semantics in different scenarios, improves the versatility and flexibility of the relay protection device software, and reduces the workload of the development and maintenance of the relay protection device.
[0024] The application can support the requirement of the matching function of the relay protection device, support the dynamic selection of the term semantic, improve the versatility of the relay protection device software program and the flexibility of the function expansion, and reduce the workload and cost of the development and maintenance of the relay protection device. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 The flow chart schematically shows the multi-language implementation method for the relay protection device according to an embodiment of the application. DETAILED DESCRIPTION
[0026] The application will now be discussed with reference to the example embodiments. It should be understood that the discussed embodiments are only for better understanding and thus realizing the content of the application by those of ordinary skill in the art, and are not intended to imply any limitation on the scope of the application.
[0027] As used herein, the term "includes" and its variants are to be read as open-ended terms that mean "includes, but is not limited to." The term "based on" is to be construed as "based at least in part on." The terms "one implementation" and "an implementation" are to be construed as "at least one implementation."
[0028] Figure 1 A flow chart schematically representing a method for implementing a multi-lingual relay protection device according to an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, in this embodiment, the method for implementing a multi-lingual relay protection device includes: Figure 1
[0029] Obtaining the total number of optional functions supported by the relay protection device and the identification of each optional function;
[0030] Determining the key value of each word entry under each optional function according to the application scenario of each optional function, forming a list of the identification of all optional functions and the corresponding word semantics under the same word entry key value, and generating a word entry file template according to the format corresponding to the list of the word entry key value of the word entry to be translated;
[0031] According to the language type required to be supported by the relay protection device, the word semantics in the word entry file template is replaced by the word translation value to generate a word entry file; one independent word entry file is generated for each language type;
[0032] When the relay protection device is running, the corresponding word entry file is parsed according to the current language type of the relay protection device to obtain the corresponding word translation value, and the multi-lingual semantic dynamic selection function under the optional function is realized.
[0033] In this embodiment, the optional function is to use the same set of programs to realize the functions of different models of relay protection devices, to adapt to various application scenarios, and to tailor and display the functions of the programs accordingly. Each optional function corresponds to an application scenario, and the optional function is identified by letters A, B, C, etc. For example, for the same current channel, its physical meaning is different in different optional functions (application scenarios), and the semantics of its word entry is also different:
[0034] Without optional function, the name is "A-phase current";
[0035] With optional functions B and E, the name is "high-voltage side A-phase current";
[0036] With optional function D, the name is "medium-voltage side A-phase current";
[0037] With optional function G, the resource tailoring is not used;
[0038] With optional function F, the name is "low-voltage side A-phase current".
[0039] In the embodiment, the information contained in the term file includes the term key value, the identification of the optional function supported by the term key value, and the term translation value under the optional function.
[0040] Further, according to an embodiment of the present application, the identification of the optional function supported by the term key value in the term file corresponds to the term translation value under the optional function one by one.
[0041] The term key value and the identification of the optional function and the term translation value thereof are in a one-to-many relationship, and one term key value corresponds to multiple identifications of the optional function and the term translation value thereof.
[0042] Further, according to an embodiment of the present application, the optional functions configured in the term file include all the optional functions in the relay protection device, and further include a default optional function and the corresponding term translation value thereof.
[0043] The default optional function is used when the relay protection device is not set with the optional function or the set optional function is not matched. For example, the program supports four optional functions A, B, C, and D, and there are five cases including no optional function, wherein the no optional function is the default value. In actual use, the optional function is set to E by mistake, and the program does not support the optional function, and then the translation is performed according to the default no optional function.
[0044] Further, according to an embodiment of the present application, when the relay protection device is running, the corresponding term file is parsed according to the current language type of the relay protection device to obtain the corresponding term translation value, and the dynamic selection function of the multi-language semantic under the optional function is realized.
[0045] When the relay protection device is running, the corresponding term file is parsed according to the current language type of the relay protection device, then the list corresponding to the term key value of the term to be translated is obtained from the term file according to the term key value, and the corresponding term translation value is obtained from the list according to the identification of the optional function set in the current relay protection device, and the dynamic selection function of the multi-language semantic under the optional function (i.e. the translation function) is realized.
[0046] According to the above scheme of the present application, the multi-language term semantic is bound with the optional function, the one-to-many mapping of the multi-language term key value and the term translation value is realized, the demand that the same version of software program supports the translation of the term key value into different semantics under different scenes is met, the universality and flexibility of the relay protection device software are improved, and the workload of the development and maintenance of the relay protection device is reduced.
[0047] The present application can support the demand of the optional function of the relay protection device, support the dynamic selection of the term semantic, improve the universality of the software program of the relay protection device, and improve the flexibility of the function expansion, and reduce the workload and cost of the development and maintenance of the relay protection device.
[0048] Further, to achieve the above object, the present application also provides a multi-language implementation system for a relay protection device, comprising:
[0049] a selection function and its identification obtaining module, which obtains the total number of selection functions supported by the relay protection device and the identification of each selection function;
[0050] a term file template generating module, which determines the term semantic of each term key value under each selection function according to the application scenario of each selection function, forms a list of the identification of all selection functions and the corresponding term semantic under the same term key value, and generates a term file template according to the format corresponding to the term key value of the term to be translated and the list;
[0051] a term file generating module, which replaces the term semantic in the term file template with a term translation value according to the language type supported by the relay protection device, and generates a term file; one independent term file is generated for each language type;
[0052] a multi-language semantic selection module, which parses the corresponding term file to obtain the corresponding term translation value according to the current language type of the relay protection device when the relay protection device is running, and realizes the dynamic selection function of multi-language semantic under the selection function.
[0053] In the embodiment, the selection is to realize the functions of different models of the relay protection device using the same set of programs, to adapt to various application scenarios, and to tailor and display the functions of the programs accordingly. Each selection function corresponds to an application scenario, and the selection function is identified by letters such as A, B, and C. For example, for the same current channel, its physical meaning is different when different selection functions (application scenarios) are selected, and the semantic of its term is also different:
[0054] When there is no selection, the name is "A-phase current";
[0055] When the B and E functions are selected, the name is "high-voltage side A-phase current";
[0056] When the D function is selected, the name is "medium-voltage side A-phase current";
[0057] When the G function is selected, the resource tailoring is not used;
[0058] When the F function is selected, the name is "low-voltage side A-phase current".
[0059] In the embodiment, the information contained in the term file includes the above-mentioned term key value, the identification of the selection function supported by the term key value, and the term translation value under the selection function.
[0060] Further, according to an embodiment of the present application, the identification of the optional function supported by the word entry key value in the word entry file corresponds to the word entry translation value under the optional function;
[0061] The word entry key value corresponds to multiple identifications of the optional function and the word entry translation value thereof in a one-to-many relationship.
[0062] Further, according to an embodiment of the present application, the optional function configured in the word entry file includes all the optional functions in the relay protection device, and further includes a default optional function and the corresponding word entry semantics thereof.
[0063] The default optional function is used when no optional function is set in the relay protection device or the set optional function is not matched. For example, the program supports four optional functions A, B, C and D, and there are five cases including no optional function, wherein the no optional function is the default value. In actual use, the optional function is set to E by mistake, the program does not support the optional function, and the translation is performed according to the default no optional function.
[0064] Further, according to an embodiment of the present application, when the relay protection device is running, the corresponding word entry file is parsed according to the current language type of the relay protection device to obtain the corresponding word entry translation value, and the dynamic selection function of the multi-language semantics under the optional function is realized.
[0065] When the relay protection device is running, the corresponding word entry file is parsed according to the current language type of the relay protection device, then the list corresponding to the word entry key value is obtained from the word entry file according to the word entry key value of the word entry to be translated, and the corresponding word entry translation value is found and obtained from the list according to the identification of the optional function set in the current relay protection device, so as to realize the dynamic selection function of the multi-language semantics under the optional function (i.e. the translation function).
[0066] According to the above scheme of the present application, the multi-language word entry semantics is bound with the optional function, the one-to-many mapping of the multi-language word entry key value and the word entry translation value is realized, the demand that the same version of software program supports the translation of the word entry key value into different semantics under different scenes is met, the universality and flexibility of the relay protection device software are improved, and the workload of the development and maintenance of the relay protection device is reduced.
[0067] The present application can support the demand of the optional function of the relay protection device, support the dynamic selection of the word entry semantics, improve the universality of the software program of the relay protection device, and improve the flexibility of the function expansion, thereby reducing the workload and cost of the development and maintenance of the relay protection device.
[0068] Further, in order to achieve the above object, the present application further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, and the computer program is executed by the processor to implement the above-mentioned method for realizing multi-language of a relay protection device.
[0069] Further, in order to achieve the above object, the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the above-mentioned method for realizing multi-language of a relay protection device.
[0070] In order to make the objects, technical solutions and advantages of the present application clearer, further detailed description will be given to the present application in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only the best mode of the present application, which are used to explain the present application and do not limit the protection scope of the present application, and all other embodiments obtained by those skilled in the art without creative labor fall within the protection scope of the present application.
[0071] Embodiment 1
[0072] The embodiment of the present application provides a method for realizing multi-language of a relay protection device, comprising the following steps:
[0073] S1. According to the maximum function supported by the relay protection device, the total number N of different types of optional functions supported is obtained, and the identification func1~funcN of each optional function is obtained, wherein the default optional function and its identification are included.
[0074] S2. According to the application scene of each optional function, the semantic of the term key-value pair under the term to be translated under the function is determined, and a list of the identification of all optional functions and the corresponding semantic of the term under the same term is formed; for example, in the func1 optional function, the semantic (term semantic) of the term key-value keyA is valueA1; in the funcN optional function, the semantic of the term key-value keyA is valueAN; and an example of the list of the identification of all optional functions and the corresponding semantic of the term under the term key-value keyA in JSON format is as follows:
[0075] "keyA": [
[0077] {"func": "func1", "value": "valueA1"},
[0078] {"func": "func2", "value": "valueA2"},
[0079] {"func": "funcN", "value": "valueAN"}, ]
[0081] In the above example, "func" is the key value of the optional function, and "value" is the key value of the word entry semantics.
[0082] According to the format corresponding to the list of word entry key values and the identification of optional functions and word entry semantics, a word entry file template containing all word entry contents is generated; an example of a word entry file template content expressed in JSON format is as follows:
[0083] {
[0084] "keyA": [
[0086] {"func": "func1", "value": "valueA1"},
[0087] {"func": "func2", "value": "valueA2"},
[0088] {"func": "funcN", "value": "valueAN"}, ]
[0090] "keyB": [
[0092] {"func": "func1", "value": "valueB1"},
[0093] {"func": "func2", "value": "valueB2"},
[0094] {"func": "funcN", "value": "valueBN"}, ]
[0096] }
[0097] If the word entry semantics (the value corresponding to the "value" key value) in the word entry file template is expressed in Chinese, the word entry file template itself is a formal word entry file in Chinese language type.
[0098] S3. According to the language types supported by the device, the word entry semantics in the word entry file template is replaced by the word entry translation value to generate the final word entry file; an independent word entry file is generated for each language type.
[0099] S4. When the relay protection device is running to realize multi-language translation, the corresponding word file is parsed according to the current language type of the relay protection device, then the corresponding selected function identifier and word translation value list of the word to be translated are obtained from the word file according to the key value of the word to be translated, and then the corresponding word translation value is obtained from the list according to the selected function identifier set by the current relay protection device, so that the multi-language semantic dynamic selection translation function under the selected function is completed.
[0100] In summary, the multi-language implementation method for the relay protection device provided in the embodiment can support the needs of the selected functions of the relay protection device, support dynamic selection of word semantics, improve the universality and flexibility of the function expansion of the software program of the relay protection device, and reduce the workload and cost of device development and maintenance.
[0101] Those skilled in the art can realize that the modules and algorithm steps described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0102] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the device and equipment described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0103] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed ones can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or other forms.
[0104] The modules described as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical modules, i.e. can be located in one place, or can be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to realize the purpose of the embodiment of the present application.
[0105] In addition, each functional module in the embodiments of the present application can be integrated in one processing module, or each module can exist physically, or two or more modules can be integrated in one module.
[0106] If the functions are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, and various other media that can store program codes.
[0107] The above description is merely preferred embodiments of the present application and a description of the principles of the technology used. Those skilled in the art should understand that the scope of the application involved in the present application is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features can be replaced with the technical features disclosed in the present application (but not limited to) having similar functions to form technical solutions.
[0108] It should be understood that the sequence of the steps in the summary of the application and the embodiments does not absolutely mean the order of execution, and the execution order of the processes should be determined according to their functions and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Claims
1. A method for multilingual implementation of a relay protection device, characterized by, The application comprises the following steps: Obtaining the total number of optional functions supported by the relay protection device and the identification of each optional function; According to the application scenarios of each optional function, the key value of each translation item is determined to have a semantic value under the optional function, a list of the identification of all optional functions and the corresponding semantic value of the same key value is formed, and a translation item file template is generated according to the format corresponding to the key value of the translation item and the list; According to the language types required to be supported by the relay protection device, the semantic value in the translation item file template is replaced by a translation value to generate a translation item file; one independent translation item file is generated for each language type; When the relay protection device is running, the corresponding translation item file is parsed according to the current language type of the relay protection device to obtain the corresponding translation value, and the dynamic selection function of the multi-language semantic value under the optional function is realized.
2. The method for multilingual implementation of a relay protection device according to claim 1, characterized in that, The identification of the optional function supported by the key value in the translation item file corresponds to the translation value under the optional function; The key value and the identification of the optional function and its translation value are in a one-to-many relationship, and one key value corresponds to multiple identifications of the optional function and its translation value.
3. The method for multilingual implementation of a protective relay device according to claim 1, wherein, The optional functions configured in the translation item file include all optional functions in the relay protection device, and also include a default optional function and its corresponding translation value; The default optional function is used when the relay protection device is not set with an optional function or the set optional function is not matched.
4. The method for multilingual implementation of a relay protection device according to any one of claims 1-3, characterized in that, When the relay protection device is running, the corresponding translation item file is parsed according to the current language type of the relay protection device, then the list corresponding to the key value of the translation item is obtained from the translation item file according to the key value of the translation item, and the corresponding translation value is obtained from the list according to the identification of the optional function set by the current relay protection device, so as to realize the dynamic selection function of the multi-language semantic value under the optional function. The application comprises the following steps:
5. A multi-lingual implementation system for a protective relay, characterized by, An optional function and its identification acquisition module is used to obtain the total number of optional functions supported by the relay protection device and the identification of each optional function; A translation item file template generation module is used to determine the semantic value of each translation item under the optional function according to the application scenarios of each optional function, form a list of the identification of all optional functions and the corresponding semantic value of the same key value, and generate a translation item file template according to the format corresponding to the key value of the translation item and the list; A translation item file generation module is used to replace the semantic value in the translation item file template with a translation value according to the language types required to be supported by the relay protection device, and generate a translation item file; one independent translation item file is generated for each language type; A multi-language semantic selection module is used to parse the corresponding translation item file according to the current language type of the relay protection device to obtain the corresponding translation value when the relay protection device is running, and realize the dynamic selection function of the multi-language semantic value under the optional function. 6. An electronic device, comprising: A computer program product comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, which, when executed by the processor, implements the method for multilingual implementation of a relay protection device according to any one of claims 1-4.
7. A computer readable storage medium characterized in that, A computer program product comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, which, when executed by the processor, implements the method for multilingual implementation of a relay protection device according to any one of claims 1-4.
Citation Information
Patent Citations
Entry extraction method and device
CN114462430A
Text translation method and device
CN118171664A
Multi-language translation method and device, computer equipment and storage medium
CN118278429A
Multi-language file management method and device and medium
CN119940377A
Relay protection device interface language switching method and system based on hot loading mechanism
CN120631324A