Multi-language processing method, device and system for control system and storage medium

By dynamically generating and loading multilingual resource files of the control system, the problems of high cost and low scalability when maintaining multilingual resource files in the prior art are solved, and more efficient resource utilization and maintenance are achieved.

CN120012788APending Publication Date: 2025-05-16HUNAN ZOOMLION CONCRETE MASCH STATION EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411883079.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, when the control system software maintains resource files in multiple languages, it has high cost, high resource occupancy, and low scalability of resource files.

Method used

By obtaining user input data, selecting the target control module and the target language, determining the target language resource table corresponding to the target control module from multiple language resource tables, and generating dynamic resource files corresponding to the target language based on the table, dynamically loading the target control module, so that the display interface displays text information according to the target language.

Benefits of technology

It reduces the redundancy of computing resources, improves the flexibility and response speed of the control system, reduces the cost of software maintenance, and improves the scalability of resource files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012788A_ABST
    Figure CN120012788A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-language processing method, device and system for a control system and a storage medium, the control system comprises a plurality of control modules, and the method comprises the following steps: obtaining a target control module and a target language selected by a user; determining a target language resource table corresponding to the target control module from a plurality of language resource tables to generate a dynamic resource file corresponding to the target language; loading the dynamic resource file into a target control module to control character information corresponding to a display interface of the system; wherein the language resource table is generated by the following steps of: loading a default language resource file corresponding to any control module; translating character information in the default language resource file to generate language resource files corresponding to other languages; and filling the default language resource file and the language resource file into a language resource table corresponding to any control module. According to the scheme, the occupation of computing resource redundancy can be reduced, and the flexibility and response speed of the control system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a multi-language processing method, device, system and storage medium for a control system. Background Art

[0002] The control system of the mixing station is mainly composed of a host computer and a slave computer, wherein the host computer usually refers to an industrial computer, which is mainly used to receive user input operations, display a graphical user interface, etc. The slave computer usually refers to a Linux controller or PLC, which is mainly used to collect the status of mechanical equipment, control the movement of mechanical equipment, etc. In the prior art, to generate control system software in a certain language, all text resources are usually loaded into the program in the form of static code. If the user does not use a certain module function in a certain language, the software still contains the redundant item, resulting in a high degree of code bloat. If a label in a resource file is updated or the language is switched or added, it is necessary not only to create static resources and recompile the code, but also to maintain resource files in multiple languages ​​at the same time, but the resource file update is complicated and the software maintenance cost is high. In addition, the scalability of resource files in this way is low. People who expand resource files must have a certain amount of coding knowledge reserves and review whether the translated language can be compiled before the content can be integrated into the program. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a multi-language processing method, device, system and storage medium for a control system, so as to solve the technical problems in the prior art of simultaneously maintaining resource files of multiple language versions, resulting in high cost and high resource utilization.

[0004] In order to achieve the above-mentioned object, the first aspect of the present application provides a multi-language processing method for a control system, which is applied to a mixing station. The control system includes multiple control modules. The method includes:

[0005] Acquiring user input data, the input data including a target control module selected by the user from a plurality of control modules and a target language selected from a plurality of languages;

[0006] Determine a target language resource table corresponding to a target control module from a plurality of language resource tables;

[0007] Generate a dynamic resource file corresponding to the target language according to the target language resource table;

[0008] Loading the dynamic resource file into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language;

[0009] The language resource table is generated in the following way:

[0010] For any control module among the multiple control modules, load a default language resource file corresponding to any control module;

[0011] Translate the text information in the default language resource file to generate language resource files corresponding to other languages;

[0012] Fill the default language resource file and the language resource file into the language resource table corresponding to any control module.

[0013] In an embodiment of the present application, determining a target language resource table corresponding to a target control module from a plurality of language resource tables includes: loading a target language resource table corresponding to the target control module from a plurality of language resource tables according to a preset path set by a language library update tool, wherein the language library update tool is loaded with language resource tables corresponding to all arbitrary control modules.

[0014] In an embodiment of the present application, generating a dynamic resource file corresponding to the target language according to the target language resource table includes: searching the target language resource table for text information corresponding to the target language through a language library update tool, and determining the language resource code corresponding to the target language; and generating a dynamic resource file corresponding to the target language according to the key-value pair format of the text information and the language resource code corresponding to the target language through the language library update tool.

[0015] In an embodiment of the present application, multiple control modules include an interface resource module, and the dynamic resource file includes a dynamic link library file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the dynamic link library file to the interface resource module through a language library update tool; parsing the mechanical configuration information and mechanical status data of the mixing station during operation through the interface resource module; and controlling the display interface according to the dynamic link library file to display the text information corresponding to the mechanical configuration information and mechanical status data in the target language.

[0016] In an embodiment of the present application, multiple control modules include an alarm module, and the dynamic resource file includes a text file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the text file to the alarm module through a language library update tool; parsing the error code generated during the operation of the mixing station through the alarm module; and controlling the display interface according to the text file to display the alarm information corresponding to the error code in the target language.

[0017] In an embodiment of the present application, multiple control modules include a parameter configuration module, and the dynamic resource file includes a parameter configuration file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the parameter configuration file to the parameter configuration module through a language library update tool; obtaining the mechanical component type and mechanical configuration information of the mixing station through the parameter configuration module; and controlling the display interface to display the parameter information corresponding to the mechanical component type and mechanical configuration information in the target language according to the parameter configuration file.

[0018] In an embodiment of the present application, multiple control modules include a form printing module, the input data also includes a form printing task input by a user, the dynamic resource file includes a form template file, and the dynamic resource file is loaded into a target control module so that a display interface of the control system displays text information corresponding to the target control module in a target language, including: dynamically loading the form template file to the form printing module through a language library update tool; determining the target form template corresponding to the form printing task through the form printing module; and controlling the display interface according to the form template file to display the form printing information corresponding to the target form template in the target language.

[0019] A second aspect of the present application provides a multi-language processing device for a mixing station, comprising:

[0020] a memory configured to store instructions;

[0021] The processor is configured to call instructions from the memory and implement the multi-language processing method for a mixing plant when executing the instructions.

[0022] A third aspect of the present application provides a control system, comprising:

[0023] a display configured to display text information of the control module;

[0024] According to the above-mentioned multi-language processing device for a mixing station.

[0025] A third aspect of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the multi-language processing method for a mixing plant as described above.

[0026] Through the above technical solution, compared with the traditional method of loading static code into the program, dynamic resource files are generated according to the control module and language selected by the user, which can reduce the redundant use of computing resources. When switching languages ​​or adding new languages, there is no need to recompile the code. The dynamic resource file can automatically adjust resources according to actual needs, which improves the flexibility and response speed of the control system and reduces software maintenance costs.

[0027] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:

[0029] Figure 1 A schematic diagram of a process flow of a multi-language processing method for a control system according to an embodiment of the present application is shown;

[0030] Figure 2a The following schematically shows an interface display diagram of a language library update tool according to an embodiment of the present application;

[0031] Figure 2b The following schematically shows an interface display diagram of a language library update tool according to an embodiment of the present application;

[0032] Figure 3 A schematic diagram of a process flow of a multi-language processing method for a control system according to a specific embodiment of the present application is shown;

[0033] Figure 4a A schematic diagram schematically shows an example of a Chinese printing template according to an embodiment of the present application;

[0034] Figure 4b A schematic diagram schematically shows an example of an English printing template according to an embodiment of the present application;

[0035] Figure 5 A schematic diagram of a process flow of a multi-language processing method for a control system according to another specific embodiment of the present application is shown;

[0036] Figure 6 A structural block diagram of a multi-language processing device for a control system according to an embodiment of the present application is schematically shown;

[0037] Figure 7 The schematic diagram shows a structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0039] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0040] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0041] Figure 1 The following schematically shows a flow chart of a multi-language processing method for a control system according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a multi-language processing method for a control system, which is applied to a mixing station. The control system includes multiple control modules. The method may include the following steps.

[0042] S102, obtaining input data from a user, where the input data includes a target control module selected by the user from a plurality of control modules and a target language selected from a plurality of languages.

[0043] S104, determining a target language resource table corresponding to a target control module from a plurality of language resource tables;

[0044] S106: Generate a dynamic resource file corresponding to the target language according to the target language resource table.

[0045] S108, loading the dynamic resource file into the target control module, so that the display interface of the control system displays text information corresponding to the target control module in the target language.

[0046] The language resource table is generated through the following steps:

[0047] S10, for any control module among the multiple control modules, loading a default language resource file corresponding to any control module;

[0048] S20, translating the text information in the default language resource file to generate a language resource file corresponding to another language;

[0049] S30, filling the default language resource file and the language resource file into the language resource table corresponding to any control module.

[0050] It can be understood that the control system of the mixing station is mainly composed of an upper computer and a lower computer, wherein the upper computer usually refers to an industrial computer, which is mainly used to receive user input operations, display a graphical user interface, etc. The lower computer usually refers to a Linux controller, PLC, etc., which is mainly used to collect the status of mechanical equipment, control the movement of mechanical equipment, etc. The control system includes multiple control modules, specifically including an interface resource module, an alarm module, a parameter configuration module, a form printing module, etc. Different control modules can display text information of the functions corresponding to the control module on the display interface of the control system. For example, the parameter configuration module can display the configuration parameter information of the mechanical equipment on the display interface. The display interface can specifically be a human-computer interaction interface. When designing the system architecture according to market positioning, it is necessary to consider the switching display of multiple languages ​​to meet the needs of users in different countries. Specifically, the human-computer interaction interface can display the selection button or selection label corresponding to each control module, and display the selection button or selection label corresponding to each language. The user can select the target control module and the target language through the human-computer interaction interface. Further, the control system can determine the target language resource table corresponding to the target control module from multiple language resource tables. It can be understood that the language resource table refers to a table storing language resource information of multiple languages ​​corresponding to the control module, wherein each piece of text information corresponds to a translated text in different languages. Specifically, the language resource table is generated in the following manner: for any control module among the multiple control modules, the control system can first load the default language resource file of the arbitrary control module into the database, the default language resource file refers to the language resource file of the arbitrary control module under the system default language, and then the text information in the default language resource file can be translated to generate a language resource file corresponding to other languages. For example, if the system default language is Chinese, then corresponding English, Russian, Japanese, Korean, etc. can be generated. Furthermore, the default language resource file and the language resource file can be filled into the language resource table corresponding to any control module in a format where the text information and the translation correspond one to one. It can be understood that each language resource table can be a sheet form, and all forms are stored in an Excel table. Then, when the user selects the target control module and the target language through the human-computer interaction interface, the control system can first query the target language resource table corresponding to the target control module, and further, find the language resource corresponding to the target language from the target language resource table, thereby generating the corresponding dynamic resource file. Dynamic resource files refer to the content dynamically generated at the server end according to the user's request, and these contents usually include web pages, data or other resources. Different from static resources, the content of dynamic resource files can be generated in real time according to the user's request and conditions. Specifically, dynamic resource files include dynamic link library files, text files, parameter configuration files, form template files, etc., all of which are generated according to the user's request.Furthermore, the dynamic resource file can be loaded into the target control module so that the display interface of the control system displays the text information corresponding to the target control module in the target language. Compared with the traditional method of loading into the program through static code, generating dynamic resource files according to the control module and language selected by the user can reduce the redundant use of computing resources. When switching languages ​​or adding new languages, there is no need to recompile the code. The dynamic resource file can automatically adjust the resources according to actual needs, which improves the flexibility and response speed of the control system.

[0051] In an embodiment of the present application, determining a target language resource table corresponding to a target control module from a plurality of language resource tables includes: loading a target language resource table corresponding to the target control module from a plurality of language resource tables according to a preset path set by a language library update tool, wherein the language library update tool is loaded with language resource tables corresponding to all arbitrary control modules.

[0052] It can be understood that the language library update tool is a tool developed by technicians for obtaining user input data to load dynamic resources. In addition, after generating the language resource table corresponding to the control module, all language resource tables can be loaded into the language library update tool. Then, the language library update tool can load the language resource table (file name: LanguageResource.xlsx) from the program preset path by default according to the user's selection of the target language and target control module. The user does not need to load it manually, but it can support manual loading by the user. The preset path refers to the path for loading the language resource table set in advance by the technician. According to the preset path, the generated various types of dynamic resource files can be transferred to the control system directory. When in use, the control system directly takes the corresponding dynamic resource file according to the preset path. This process does not require human participation, which can reduce program execution errors.

[0053] Specifically, the language library update tool is written based on C# language and Windows Form framework. The interface of the language library update tool is as follows: Figure 2a and Figure 2b As shown, in Figure 2a In the interface shown, the user can select the display language and the display processing module (control module). Figure 2b In the interface shown, users can choose to switch languages, including Chinese, English, Vietnamese, Indonesian, Russian, Arabic, Thai, Turkish, French, Portuguese, etc.

[0054] In an embodiment of the present application, generating a dynamic resource file corresponding to the target language according to the target language resource table includes: searching the target language resource table for text information corresponding to the target language through a language library update tool, and determining the language resource code corresponding to the target language; and generating a dynamic resource file corresponding to the target language according to the key-value pair format of the text information and the language resource code corresponding to the target language through the language library update tool.

[0055] It can be understood that the language library update tool selects the corresponding language column in the target language resource table according to the target language, and then traverses the text information of each row line by line, and loads the resource code and text information corresponding to each row into the corresponding dynamic resource file in the form of key-value pairs.

[0056] In an embodiment of the present application, multiple control modules include an interface resource module, and the dynamic resource file includes a dynamic link library file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the dynamic link library file to the interface resource module through a language library update tool; parsing the mechanical configuration information and mechanical status data of the mixing station during operation through the interface resource module; and controlling the display interface according to the dynamic link library file to display the text information corresponding to the mechanical configuration information and mechanical status data in the target language.

[0057] It can be understood that for the interface resource module, the dynamic resource file is a dynamic link library file (Dynamic LinkLibrary, DDL file), which is a file type widely used in the Windows operating system, allowing programs to link and use shared code at runtime, thereby reducing the size of the application and improving the reusability of the code. Figure 3, when the user dispatches and issues production control commands, the control system can load the configuration resource file of the interface resource module according to the communication protocol code of the control command, combined with the target language selected by the user, and when the target control module selected by the user is the interface resource module, and parse the mechanical configuration information and mechanical status data carried in the communication protocol data of the lower computer. The language library update tool selects the corresponding language column in the target language resource table according to the target language, and then traverses the text information of each row line by line, loads the resource code and text information corresponding to each row into the c# resource file Resource.resx in the form of key-value pairs, and compiles Resource.resx into a DLL file. Among them, in the language resource table corresponding to the interface resource module, the first column is the unique resource code code, and the second column and the following are the text information of different language versions of the resource code. Then, when the control system program is running, the DLL file is dynamically loaded according to the user's needs, and then the corresponding English text or other language text is taken out according to the resource code, so that the display interface can be controlled to display the text information corresponding to the mechanical configuration information and mechanical status data according to the target language. Among them, the text information displayed by the interface resource module includes buttons, labels, and mechanical status of each mechanical component. The text information corresponding to the interface resource module in the language resource table belongs to the underlying resources of the program. Therefore, in order to ensure the safety of program operation, the DLL method is adopted. The DLL file does not support users to change it at will.

[0058] In an embodiment of the present application, multiple control modules include a parameter configuration module, and the dynamic resource file includes a parameter configuration file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the parameter configuration file to the parameter configuration module through a language library update tool; obtaining the mechanical component type and mechanical configuration information of the mixing station through the parameter configuration module; and controlling the display interface to display the parameter information corresponding to the mechanical component type and mechanical configuration information in the target language according to the parameter configuration file.

[0059] It can be understood that for the parameter configuration module, the dynamic resource file is a parameter configuration file, which can be a file in the ini format. The ini file refers to the Initialization File, which is commonly used in the configuration files of the Windows system. This file format consists of multiple sections, each of which contains multiple key-value pairs (key=value). The ini file is usually used to store the initialization parameters of the system or the configuration information of a specific program. Figure 3, when the user inputs the instruction to view the component parameter information, the configuration resource file of the parameter configuration module is loaded, and the mechanical component type and mechanical configuration information carried in the communication protocol data of the lower computer are parsed. The language library update tool selects the corresponding language column in the target language resource table according to the target language, and then traverses the text information of each row line by line. Among them, one column in the language resource table of the parameter configuration module is submodule information, which is used to distinguish different submodules of parameter configuration, such as System submodule, Plant submodule, etc. The second column is the resource code, and the third column and the following are the text information of different language versions of the resource code. Then, the language library update tool can group according to the first column Group, and then write the key value pair of the resource code and text information in the Parameter.ini format file according to the second column. Then, dynamically load the ini file, first search for the submodule, search for the submodule name, and then search for the specific resource code, extract the corresponding English text or other language text, so that the display interface can be controlled to display the parameter information corresponding to the mechanical component type and mechanical configuration information according to the target language.

[0060] In an embodiment of the present application, multiple control modules include an alarm module, and the dynamic resource file includes a text file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the text file to the alarm module through a language library update tool; parsing the error code generated during the operation of the mixing station through the alarm module; and controlling the display interface according to the text file to display the alarm information corresponding to the error code in the target language.

[0061] It can be understood that for the alarm module, the dynamic resource file can be a text file, specifically a text document. Figure 3, the user dispatches orders and issues production control commands. The control system can load the configuration resource file of the alarm module according to the communication protocol code of the control command, combined with the target language selected by the user, and when the target control module selected by the user is the alarm module, parse the error code generated by the operation of the mixing station carried in the communication protocol data of the lower computer. The language library update tool selects the corresponding language column in the target language resource table according to the target language, and then traverses the text information of each line line by line, and loads the resource code and text information corresponding to each line into the text file in the form of key-value pairs. Then, when the control system program is running, the text file is dynamically loaded according to the user's needs, and then the corresponding English text or other language text is taken out according to the resource code, so that the display interface can be controlled to display the alarm information according to the target language, and the alarm module can record the alarm log. The text file can be a parameter configuration file in the ini format, which can support the opening of text documents. Users can use it to modify its information to achieve customized warning parameter settings, log information, etc.

[0062] In an embodiment of the present application, multiple control modules include a form printing module, the input data also includes a form printing task input by a user, the dynamic resource file includes a form template file, and the dynamic resource file is loaded into a target control module so that a display interface of the control system displays text information corresponding to the target control module in a target language, including: dynamically loading the form template file to the form printing module through a language library update tool; determining the target form template corresponding to the form printing task through the form printing module; and controlling the display interface according to the form template file to display the form printing information corresponding to the target form template in the target language.

[0063] It can be understood that for the form printing module, the dynamic resource file is the form template file, which can be a frx file. The frx file is a binary data file, which is usually used to store images, positions, brushes, pictures and other material files of forms and related controls. Figure 3When the user needs to print a task order, he enters the form printing task and selects the target control module. The control system diagram loads the configuration resource file of the form printing module and parses the form filling carried in the communication protocol data of the lower computer. The language library update tool selects the corresponding language column in the target language resource table according to the target language, and then traverses the text information of each row line by line, and takes out the corresponding standardized template frx file according to the first column Group. Because the standardized template frx file has used resource codes to identify the text variables in various places on the template, the language library download tool will fill in the text information in the template printing format according to the resource code and text information in the second column when generating printing templates in different languages. Then, when the control system program is running, the form template file is dynamically loaded according to the user's needs, and the target form template for printing is taken out according to the content that the user needs to print. The printing template example is as follows Figure 4a and Figure 4b As shown, Figure 4a This is an example of a Chinese printing template. Figure 4b This is an example of an English print template. The frx file format supports print preview and print design, so users can customize the form template, thereby controlling the display interface to display the form print information corresponding to the target form template corresponding to the form print task in the target language.

[0064] refer to Figure 5 In an embodiment of the present application, when the software function of the control system is added or adjusted, the control system can first load the default language resource file of any control module into the database, and then translate the text information in the default language resource file to generate language resource files corresponding to other languages. For example, if the system default language is Chinese, corresponding English, Russian, Japanese, Korean, etc. can be generated. Furthermore, the default language resource file and the language resource file can be filled into the language resource table corresponding to any control module in a format where the text information and translation correspond one to one. It can be understood that each language resource table can be a sheet form, and all forms are stored in an Excel table.

[0065] Furthermore, the language library update tool can also detect by default whether there is an updated language resource table (file name: LanguageResource-update.xlsx) in the program preset path to prompt the user whether the language resource table needs to be updated. When the language resource table update file updates the language resource table (LanguageResource.xlsx), the update file will directly overwrite the current language resource table file. Therefore, when executing the resource file update, the current language resource table file will be backed up so that the backed-up language resource file can be used for dynamic library download later.

[0066] Furthermore, according to the module and language to be downloaded selected by the user, the language resource table is traversed to examine the resource text, so that the dynamic resource file generated by it can meet the control system program operation requirements. Specifically, when the language library update tool traverses the language resource table, it will perform a string judgment and examination on the language text, and judge whether the language text meets the control system program operation requirements according to the preset rules (mainly judging special characters such as single quotes ', double quotes "). For example, the single quotes in the French "Sistem ana PLC'sinin IP adresi" will cause the database query to fail. Therefore, when single quotes and double quotes appear, the text will be wrapped in a bracket "[Sistem ana PLC'sinin IP adresi]" when generating the dynamic resource file to make it meet the program operation requirements.

[0067] Furthermore, when the user selects the target control module and the target language through the display interface corresponding to the language library update tool, the language library update tool can load the target language resource table from the preset path of the program by default according to the target language and target control module selected by the user, find the language resource corresponding to the target language from the target language resource table, and thus generate the corresponding dynamic resource file. Specifically, the dynamic resource file includes a dynamic link library file, a text file, a parameter configuration file, a form template file, etc. Furthermore, the dynamic resource file can be loaded into the target control module so that the display interface of the control system displays the text information corresponding to the target control module in the target language.

[0068] Through the above technical solution, resource files of various languages ​​are loaded into the software of the control system in the form of dynamic resource files, and different language resource files of different languages ​​can be downloaded on demand. For example, when only Thai language is needed, only Thai language package can be downloaded, and when printing function is not needed, resource files of the module can be not downloaded. By loading language packages and function packages to realize different functions in different languages, the bloatedness of the software can be reduced. The above solution has low software maintenance cost and good downward compatibility. Only one version of control system software needs to be maintained when the software is updated. Resource files and software functions are independent of each other. When the latest software is used without the latest resource files and the latest resource files are used instead of the latest software, the software functions are normal. When the system language is switched, the system will automatically switch the dynamic link library of each module of the language according to the language and load it into the control system. This method does not require recompiling the control system program. When a new language needs to be added, it is only necessary to fill in the resource file information table with all the module function resource texts required for the language control system. The resource file is opened separately from the software, the resource file has high scalability, and the maintainer of the resource file information EXCEL table does not need any computer programming related knowledge reserves. Moreover, when it is necessary to update a label file, alarm information or add a new language, the above solution only needs to update or add the module function resource text required for the corresponding language in the resource file information EXCEL table, and can automatically identify the function page titles and language column titles of the resource file table, so as to automatically generate dynamic link libraries of different modules in different languages. There is no need for manual participation in updating the dynamic link library, thus avoiding manual operation errors.

[0069] Figure 1 FIG. 1 is a flow chart of a multi-language processing method for a control system in one embodiment. Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0070] Figure 6 The structure block diagram of a multi-language processing device for a control system according to an embodiment of the present application is schematically shown. Figure 6 As shown, the embodiment of the present application provides a multi-language processing device for a control system, which may include:

[0071] a memory configured to store instructions;

[0072] The processor is configured to call instructions from the memory and implement the above-mentioned multi-language processing method for a control system when executing the instructions.

[0073] Specifically, in the embodiment of the present application, the processor may be configured to:

[0074] Acquiring user input data, the input data including a target control module selected by the user from a plurality of control modules and a target language selected from a plurality of languages;

[0075] Determine a target language resource table corresponding to a target control module from a plurality of language resource tables;

[0076] Generate a dynamic resource file corresponding to the target language according to the target language resource table;

[0077] Loading the dynamic resource file into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language;

[0078] The language resource table is generated in the following way:

[0079] For any control module among the multiple control modules, load a default language resource file corresponding to any control module;

[0080] Translate the text information in the default language resource file to generate language resource files corresponding to other languages;

[0081] Fill the default language resource file and the language resource file into the language resource table corresponding to any control module.

[0082] In an embodiment of the present application, the processor may be further configured to:

[0083] Determining a target language resource table corresponding to a target control module from a plurality of language resource tables includes: loading a target language resource table corresponding to the target control module from a plurality of language resource tables according to a preset path set by a language library update tool, wherein the language library update tool is loaded with language resource tables corresponding to all arbitrary control modules.

[0084] In an embodiment of the present application, the processor may be further configured to:

[0085] Generating a dynamic resource file corresponding to the target language according to the target language resource table includes: searching the target language resource table for text information corresponding to the target language through a language library update tool, and determining the language resource code corresponding to the target language; and generating a dynamic resource file corresponding to the target language according to the key-value pair format of the text information and the language resource code corresponding to the target language through the language library update tool.

[0086] In an embodiment of the present application, the processor may be further configured to:

[0087] The multiple control modules include an interface resource module, and the dynamic resource file includes a dynamic link library file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the dynamic link library file to the interface resource module through a language library update tool; parsing the mechanical configuration information and mechanical status data of the mixing station during operation through the interface resource module; and controlling the display interface according to the dynamic link library file to display the text information corresponding to the mechanical configuration information and mechanical status data in the target language.

[0088] In an embodiment of the present application, the processor may be further configured to:

[0089] Multiple control modules include an alarm module, and dynamic resource files include text files. The dynamic resource files are loaded into a target control module so that a display interface of the control system displays text information corresponding to the target control module in a target language, including: dynamically loading text files to the alarm module through a language library update tool; parsing error codes generated during the operation of the mixing station through the alarm module; and controlling the display interface according to the text file to display alarm information corresponding to the error code in the target language.

[0090] In an embodiment of the present application, the processor may be further configured to:

[0091] The multiple control modules include a parameter configuration module, and the dynamic resource file includes a parameter configuration file. The dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: dynamically loading the parameter configuration file to the parameter configuration module through a language library update tool; obtaining the mechanical component type and mechanical configuration information of the mixing station through the parameter configuration module; and controlling the display interface according to the parameter configuration file to display the parameter information corresponding to the mechanical component type and the mechanical configuration information in the target language.

[0092] In an embodiment of the present application, the processor may be further configured to:

[0093] The multiple control modules include a form printing module, the input data also includes a form printing task input by a user, the dynamic resource file includes a form template file, and the dynamic resource file is loaded into a target control module so that a display interface of the control system displays text information corresponding to the target control module in a target language, including: dynamically loading the form template file to the form printing module through a language library update tool; determining a target form template corresponding to the form printing task through the form printing module; and controlling the display interface according to the form template file to display the form printing information corresponding to the target form template in the target language.

[0094] The present application also provides a control system, including:

[0095] a display configured to display text information of the control module;

[0096] According to the above-mentioned multi-language processing device for a mixing station.

[0097] An embodiment of the present application further provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned multi-language processing method for a mixing station.

[0098] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected by a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data of a multi-language processing method for a mixing plant. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a multi-language processing method for a mixing plant is implemented.

[0099] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0100] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0101] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0102] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0104] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0105] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0106] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0107] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0108] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A multi-language processing method for a control system, characterized in that: Applied to a mixing station, the control system includes multiple control modules, and the method includes: Acquiring user input data, the input data including a target control module selected by the user from the multiple control modules and a target language selected from the multiple languages; Determine a target language resource table corresponding to the target control module from a plurality of language resource tables; Generate a dynamic resource file corresponding to the target language according to the target language resource table; Loading the dynamic resource file into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language; The language resource table is generated in the following way: For any control module among the multiple control modules, loading a default language resource file corresponding to the any control module; Translating the text information in the default language resource file to generate a language resource file corresponding to another language; The default language resource file and the language resource file are filled into a language resource table corresponding to the arbitrary control module.

2. The method according to claim 1, characterized in that: Determining the target language resource table corresponding to the target control module from the plurality of language resource tables comprises: The target language resource table corresponding to the target control module is loaded from the multiple language resource tables according to a preset path set by the language library update tool, wherein the language resource tables corresponding to all arbitrary control modules are loaded in the language library update tool.

3. The method according to claim 1, characterized in that Generating a dynamic resource file corresponding to the target language according to the target language resource table includes: Searching for text information corresponding to the target language in the target language resource table through a language library updating tool, and determining a language resource code corresponding to the target language; The language library updating tool generates a dynamic resource file corresponding to the target language by combining the text information corresponding to the target language and the language resource code in a key-value pair manner.

4. The method according to claim 1, characterized in that The multiple control modules include an interface resource module, the dynamic resource file includes a dynamic link library file, and the dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: Dynamically load the dynamic link library file into the interface resource module through a language library update tool; Parsing the mechanical configuration information and mechanical status data of the mixing station during operation through the interface resource module; The display interface is controlled according to the dynamic link library file to display text information corresponding to the machine configuration information and the machine status data in the target language.

5. The method according to claim 1, characterized in that The multiple control modules include an alarm module, the dynamic resource file includes a text file, and the dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: Dynamically loading the text file into the alarm module through a language library update tool; Parsing error codes generated during operation of the mixing station by the alarm module; The display interface is controlled according to the text file to display the alarm information corresponding to the error code in the target language.

6. The method according to claim 1, characterized in that The multiple control modules include a parameter configuration module, the dynamic resource file includes a parameter configuration file, and the dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: Dynamically load the parameter configuration file into the parameter configuration module through a language library update tool; Acquire the mechanical component types and mechanical configuration information of the mixing station through the parameter configuration module; The display interface is controlled according to the parameter configuration file to display parameter information corresponding to the mechanical component type and the mechanical configuration information in the target language.

7. The method according to claim 1, characterized in that The multiple control modules include a form printing module, the input data also includes a form printing task input by the user, the dynamic resource file includes a form template file, and the dynamic resource file is loaded into the target control module so that the display interface of the control system displays text information corresponding to the target control module in the target language, including: Dynamically loading the form template file into the form printing module through a language library update tool; Determine, by means of the form printing module, a target form template corresponding to the form printing task; The display interface is controlled according to the form template file to display the form printing information corresponding to the target form template in the target language.

8. A multi-language processing device for a mixing station, characterized in that: include: a memory configured to store instructions; A processor is configured to call the instructions from the memory and implement the multi-language processing method for a mixing plant according to any one of claims 1 to 7 when executing the instructions.

9. A control system, characterized in that: include: a display configured to display text information of the control module; A multi-language processing device for a mixing station as claimed in claim 8.

10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing a machine to execute the multi-language processing method for a mixing plant according to any one of claims 1 to 7.