A method and device for expanding international resources of software

By adding extended language types to the software's international resource data storage module and automatically loading data, the unavailability problem caused by software upgrades in the existing technology is solved, and the efficiency and accuracy of translation documents are improved, realizing international resource expansion during software runtime.

CN112612503BActive Publication Date: 2025-04-01BEIJING JINFENG HUINENG TECH CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911380620.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-27
Publication Date
2025-04-01
Estimated Expiration
2040-12-21

AI Technical Summary

Technical Problem

When the existing technology expands the internationalization resources of software, software upgrades are required, resulting in the system being temporarily unavailable, and manual writing of translated documents is inefficient and poor accuracy.

Method used

By adding the extended target language type to the software's international resource data storage module, the export file contains the items to be translated, import the corresponding translation items, and detect the consistency of the version number through the daemon thread, and automatically load the data in the data storage module into memory.

Benefits of technology

It realizes that international resources can be expanded without aborting or restarting the system when the software is running, improves the efficiency and accuracy of translating documents, and avoids unavailability problems caused by manual writing and system upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112612503B_ABST
    Figure CN112612503B_ABST
Patent Text Reader

Abstract

A method and device for internationalizing resource extension of software are provided. The method for internationalizing resource extension of software comprises: adding an extended target language type to an internationalized resource data storage module of the software; generating an export file corresponding to the extended target language type, wherein the export file comprises items to be translated related to the internationalized resource extension of the software; importing an import file corresponding to the export file into the internationalized resource data storage module, wherein the import file comprises translation items of the extended target language type corresponding to the items to be translated; determining whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the internationalized resource information memory of the software; when inconsistent, loading the internationalized resource data in the internationalized resource data storage module into the internationalized resource information memory of the software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the technical field of software extension, and more specifically, to a method and device for internationalizing software resources. Background Art

[0002] As the software system industry has developed over the years, the single Chinese and English languages ​​can no longer support the needs of the software industry. A set of software needs to support multiple languages, and the internationalization needs of the software system have become an issue that software developers must consider. Traditional software internationalization solutions often use the following two methods: 1) Configure multiple sets of international resource files under the software system service, and each supported language corresponds to a set of resource files; 2) Use relational database technology to abstract the software system model. Each system model corresponds to a database table, which contains international resource information, and each supported language corresponds to a column attribute in a model table.

[0003] The technology of using internationalized resource files to maintain internationalized resource information maintains a set of resource files for each language, and realizes multi-language expansion by adding resource files. This technology cannot expand multiple languages ​​when the software system is running. It is necessary to pre-set multi-language files in the software system. When adding multi-language resource files, it is necessary to restart the software system and load multi-language resources. When expanding internationalized resources, it is necessary to stop the software system for upgrading, which will cause the software system to be temporarily unavailable. When writing resource files, it is necessary to manually add multi-language resource items of the file according to the key-value pairs, which is cumbersome.

[0004] The technology uses the database table attributes of a relational database to maintain internationalized resource information. Internationalized resource columns are used in the database table to maintain multi-language translations. The system has poor scalability. Each time an internationalized resource is added, the table structure needs to be modified. The corresponding software system needs to simultaneously upgrade the software model consistent with the database to support it. During the software upgrade process, the software system will be temporarily unavailable.

[0005] The method of maintaining internationalized resource information based on internationalized resource files and relational database table attributes requires software upgrades when expanding internationalized resource information, which seriously affects the running status of the software system.

[0006] Therefore, a method for extending the internationalized resources of software without affecting the running state of the software is needed. Summary of the invention

[0007] The various aspects of the present disclosure will at least solve the above problems and / or disadvantages, and at least provide the advantages described below. Therefore, the purpose of the present invention is to provide a method and device for expanding international resources of software, which can not affect the running state of the software when expanding the international resources of the software, and solve the problem of low efficiency and poor accuracy of manually writing translation documents in the process of international resource translation.

[0008] One aspect of the present disclosure is to provide a method for internationalizing resource extension of software, the method comprising: in response to an instruction to add an extended target language type, adding the extended target language type to an internationalized resource data storage module of the software; generating an export file corresponding to the extended target language type, wherein the export file includes items to be translated related to the internationalized resource extension of the software; importing an import file corresponding to the export file into the internationalized resource data storage module, wherein the import file includes translation items of the extended target language type corresponding to the items to be translated; determining whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the internationalized resource information memory of the software; when the internationalized resource data in the internationalized resource data storage module is inconsistent with the internationalized resource data in the internationalized resource information memory of the software, loading the internationalized resource data in the internationalized resource data storage module into the internationalized resource information memory of the software.

[0009] Optionally, the method also includes: in response to importing an import file corresponding to the export file into the internationalization resource data storage module, updating the internationalization resource version number corresponding to the software; wherein, the step of determining whether the data in the internationalization resource data storage module is consistent with the data in the internationalization resource information memory of the software includes: detecting whether the internationalization resource memory version number corresponding to the software is consistent with the internationalization resource version number; when the internationalization resource memory version number corresponding to the software is inconsistent with the internationalization resource version number, determining that the internationalization resource data in the internationalization resource data storage module is inconsistent with the internationalization resource data in the internationalization resource information memory of the software.

[0010] Optionally, the step of detecting whether the internationalization resource memory version number corresponding to the software is consistent with the internationalization resource version number includes: detecting whether the internationalization resource memory version number is consistent with the internationalization resource version number through a daemon thread, wherein the daemon thread starts running when the software is started.

[0011] Optionally, the method further includes: when the internationalization resource memory version number is inconsistent with the internationalization resource version number, updating the internationalization resource memory version number to be consistent with the internationalization resource version number.

[0012] Optionally, the step of loading the internationalized resource data in the internationalized resource data storage module into the internationalized resource information memory corresponding to the software includes: loading the internationalized resource data in the internationalized resource data storage module into a copy memory with the same data structure as the internationalized resource information memory; and switching the copy memory as a whole to the master memory of the internationalized resource memory.

[0013] Optionally, the export file is in EXCEL format.

[0014] Optionally, the import file is generated by filling in the translation item corresponding to the item to be translated at the position corresponding to the item to be translated in the export file.

[0015] Another aspect of the present disclosure is to provide an international resource extension device for software, the device comprising: an adding module, configured to: in response to an instruction to add an extended target language type, add the extended target language type to the international resource data storage module of the software; an export-import module, configured to: generate an export file corresponding to the extended target language type, wherein the export file includes items to be translated related to the international resource extension of the software, and import an import file corresponding to the export file into the international resource data storage module, wherein the import file includes translation items of the extended target language type corresponding to the items to be translated; a determining module, determining whether the international resource data in the international resource data storage module is consistent with the international resource data in the international resource information memory of the software; a loading module, configured to: when the international resource data in the international resource data storage module is inconsistent with the international resource data in the international resource information memory of the software, load the international resource data in the international resource data storage module into the international resource information memory of the software.

[0016] Optionally, the device also includes: an update module, configured to: in response to the export-import module importing the import file corresponding to the export file into the internationalization resource data storage module, update the internationalization resource version number corresponding to the software, wherein the determination module is configured to: detect whether the internationalization resource memory version number corresponding to the software is consistent with the internationalization resource version number, and when the internationalization resource memory version number corresponding to the software is inconsistent with the internationalization resource version number, determine that the internationalization resource data in the internationalization resource data storage module is inconsistent with the internationalization resource data in the internationalization resource information memory of the software.

[0017] Optionally, the determination module is configured to: detect, through a daemon thread, whether the internationalization resource memory version number is consistent with the internationalization resource version number, wherein the daemon thread starts running when the software is started.

[0018] Optionally, the updating module is further configured to: when the internationalization resource memory version number is inconsistent with the internationalization resource version number, update the internationalization resource memory version number to be consistent with the internationalization resource version number.

[0019] Optionally, the loading module is configured to: load the internationalized resource data in the internationalized resource data storage module into a replica memory having the same data structure as the internationalized resource information memory; and switch the replica memory as a whole to the master memory of the internationalized resource memory.

[0020] Optionally, the export file is in EXCEL format.

[0021] Optionally, the import file is generated by filling in the translation item corresponding to the item to be translated at the position corresponding to the item to be translated in the export file.

[0022] Another aspect of the present disclosure is to provide a computer-readable storage medium, wherein a computer program is stored thereon, and when the program is executed, the internationalized resource extension method of software as described above is implemented.

[0023] Another aspect of the present disclosure is to provide an apparatus for internationalizing resources of software, the apparatus comprising: a memory storing a computer program; and a processor configured to implement the method for internationalizing resources of software as described above when the computer program is executed by the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following description taken in conjunction with the accompanying drawings, in which:

[0025] Figure 1is a flowchart illustrating a method for extending internationalized resources of software according to an embodiment of the present disclosure;

[0026] Figure 2 A diagram showing a process of determining whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the internationalized resource information memory of the software according to an embodiment of the present disclosure;

[0027] Figure 3 An example of a process of loading internationalized resource data in an internationalized resource data storage module into an internationalized resource information memory according to an embodiment of the present disclosure is shown;

[0028] Figure 4 A block diagram of a software internationalization resource extension device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0029] Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout. The embodiments will be described below by referring to the drawings in order to explain the present invention.

[0030] Figure 1 Detailed description is a flowchart illustrating a method for extending internationalized resources of software according to an embodiment of the present disclosure.

[0031] Reference Figure 1 In step S101, in response to an instruction to add an extended target language type, the extended target language type is added to the internationalized resource data storage module of the software.

[0032] As an example, during the operation of the software system, when it is necessary to expand the international resources of a certain language (i.e., expand the target language type), the extended language type can be added to the international resource data storage module of the software by adding the extended language type (e.g., Portuguese: langcode:pt-br, langname:Português, langdescr:Portuguese) in the international resource type table in the software's international resource data storage module (such as a relational database module, a NoSql database, a Sqlite file database, an Mdb database, etc.), wherein the international resource type table is used to define the database table of the types of internationalized multi-languages ​​that the system needs to support. As an example, the extended language type can be entered at the corresponding position of the software interface, and in response to the instruction to add the extended language type, the extended language type can be entered into the international resource data storage module of the software.

[0033] In step S102, an export file corresponding to the extended target language type is generated, wherein the export file includes items to be translated related to the internationalized resource extension of the software.

[0034] As an example, the export file can be a to-be-translated file (including, for example, the primary key of the translation item, the Chinese information of the translation item, and the language column to be translated) exported according to the internationalized resource definition table and the resource type table, wherein the resource definition table is used to identify the database table of the model primary key that needs to be translated, and in the internationalized resource definition table, the object attribute key information that needs to support internationalization corresponding to the software system model object is preset (the key composition is: schemaname (schema name) + tablename (model table name) + keycol (model table joint primary key)), and the data in the internationalized resource definition table belongs to the configuration information when the software is deployed, and no additional modification is required when the internationalized resource is run-time state extension action. In other words, the export file includes the to-be-translated content that needs to be translated into the extended language.

[0035] As an example, the export file can be an EXCEL file. The EXCEL file can contain tablename (name of the attribute table to be translated), primary key (primary key identifier of the model attribute to be translated), descrcn (Chinese information of the attribute to be translated), and international resource columns to be translated (for example, columns corresponding to Portuguese). International resource columns are columns that professional translators fill with translated information after translation. The primary key is a combination of information in several data columns in a model table that defines a unique model.

[0036] As an example, the export file may be exported through an export-import module corresponding to the software.

[0037] As an example, the export-import module may be a serviceable tool, such as a desktop application corresponding to the software.

[0038] In step 103, an import file corresponding to the export file is imported into the internationalized resource data storage module, wherein the import file includes translation items of the extended target language type corresponding to the items to be translated.

[0039] As a non-limiting example, the export file can be handed over to a third-party professional translator / software to translate the fields to be translated in the file into language fields of the extended language type, that is, to obtain an import file, which may contain: table name, primary key (model attribute primary key identifier to be translated), type code of the minority language (such as Russian: es Portuguese: pt), and translation results corresponding to the minority language. Compared with the export file, in the import file, the table name and primary key name remain unchanged, but a minority language type column set and a minority language translation result column set are added. In other words, the import file is generated by filling in the translation items corresponding to the items to be translated at the positions corresponding to the items to be translated in the export file.

[0040] As an example, the import file can be imported into the internationalized resource data storage module of the software through the export and import module corresponding to the software (for example, a serviceable tool). As an example, the import file can be imported into the internationalized resource data storage module of the software by importing the import file into the internationalized resource language table in the internationalized resource data storage module, wherein the internationalized resource language table is a database table used to store internationalized resource information, and the database table contains fixed attributes (resource identification primary key, internationalized language type, internationalized language translation). Each internationalized resource attribute corresponds to a row of data in the internationalized resource language table, without modifying the database table structure.

[0041] Using service tools, for example, you can import and export international resources, replacing the traditional manual writing of resource file formats and manual input of resource files, and improving the efficiency and accuracy of expanding international resource information.

[0042] The prior art uses a configuration table of data columns. When expanding multilingual resources (such as adding support for a language), the table structure needs to be modified and a specified column needs to be added. After changing to data rows, the overall table structure of the internationalized resource language table will not change. When expanding new language support, only row data in the database table needs to be added. After the import file is imported into the internationalized resource data storage module of the software, the internationalized resource data in the internationalized resource data storage module is increased with the internationalized resource data corresponding to the expanded language type.

[0043] The internationalization resource type table, internationalization resource definition table and internationalization resource language table in a standard format are used as storage modules corresponding to internationalization resources, abstracting the characteristics of all internationalization resources. When expanding internationalization resources, there is no need to modify the structure of the internationalization resource storage module. This technology provides a basis for the imperceptible expansion of internationalization resources when the software system is running.

[0044] In step S104, it is determined whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the software's internationalized resource information memory, wherein the internationalized resource information memory is a data set in a key-value data format maintained inside the software system, which includes the internationalized resource version number of the current software system and the internationalized resource translation information, and has a multi-language API for external development, which can be called by various modules of the software system. Since the internationalized resource data in the internationalized resource information memory is loaded based on the internationalized resource data in the previous internationalized resource data storage module, after the import file is imported, the internationalized resource data in the internationalized resource data storage module will be inconsistent with the internationalized resource data in the internationalized resource data memory.

[0045] Figure 2A diagram showing a process of determining whether internationalized resource data in an internationalized resource data storage module is consistent with internationalized resource data in an internationalized resource information memory of software according to an embodiment of the present disclosure.

[0046] As an example, in response to importing the import file into the internationalized resource data storage module, the internationalized resource version number corresponding to the software may be updated.

[0047] Reference Figure 2 In step S201, it is detected whether the internationalized resource memory version number corresponding to the software is consistent with the internationalized resource version number. Those skilled in the art should understand that the internationalized resource memory version number is the version number corresponding to the internationalized resource information memory.

[0048] In step S202, when the internationalization resource memory version number is inconsistent with the internationalization resource version number, it is determined that the internationalization resource data in the internationalization resource data storage module is inconsistent with the internationalization resource data in the internationalization resource information memory.

[0049] As an example, whether the internationalization resource memory version number is consistent with the internationalization resource version number may be detected through a daemon thread, wherein the daemon thread starts running when the software is started.

[0050] Optionally, when the internationalization resource memory version number is inconsistent with the internationalization resource version number, the internationalization resource memory version number is updated to be consistent with the internationalization resource version number.

[0051] return Figure 1 In step 105, when the internationalized resource data in the internationalized resource data storage module is inconsistent with the internationalized resource data in the internationalized resource information memory, the internationalized resource data in the internationalized resource data storage module is loaded into the internationalized resource information memory.

[0052] Figure 3 An example of a process of loading internationalized resource data in an internationalized resource data storage module into an internationalized resource information memory according to an embodiment of the present disclosure is shown.

[0053] Reference Figure 3 In step S301, the internationalized resource data in the internationalized resource data storage module is loaded into a copy memory having the same data structure as the internationalized resource information memory.

[0054] In step S302, the replica memory is entirely switched to the master memory of the internationalized resource memory.

[0055] As an example, when the software system is started, a daemon thread for periodic verification and comparison of resource memory version numbers and internationalized resource version numbers can be enabled. When the internationalized resource version number changes, the daemon thread will automatically detect that the version number is inconsistent, thereby triggering the action of loading the data of the internationalized resource language table into the internationalized resource information memory, and replacing the resource memory version number with the internationalized resource version number. The loading action uses the copy and write form, and will first load the data in the internationalized resource language table into a memory collection in the same key-value format as the internationalized resource information memory data structure, as a copy memory of the internationalized resource information memory. When the copy memory is loaded, it will be switched to the master memory of the internationalized resource information memory as a whole. Since the switching action is only a change in a pointer reference, it will not be perceived by the software system in the runtime state, and will not affect the running software system. The internationalized resource information memory 20, with the model attribute primary key + internationalized resource type as the primary key, contains all the internationalized resource data supported by the current software system. Using the resource memory version number monitoring provided by the daemon thread and the primary and secondary memory loading-switching technology of the internationalized resource file, the automatic monitoring and loading when the internationalized resource changes are completed, thereby realizing the expansion of internationalized resources when the software system is running without user perception.

[0056] The software system model object can splice the internationalized resource primary key according to the language type required by the user, and obtain the multi-language translation content from the internationalized resource information memory. The multi-language model key value is identified by the joint primary key. The joint primary key is only used to uniquely identify the multi-language translation item, similar to the ID key value, and has nothing to do with the row and list structure. Even resource files need to have a primary key value, which corresponds to the joint primary key in the database.

[0057] Compared with the traditional method of using internationalized resource configuration files, configuring multi-language columns in database software model tables, and manually writing internationalized resource translation files, the embodiments of the present invention reduce more steps of manual participation in maintenance and upgrading, and make more use of the technology of computer software itself to realize the automation of expanding the internationalized resource process.

[0058] For example, in the new energy monitoring software system, great importance is attached to the availability of the software system. Every restart of the software system will affect the normal operation of the new energy station, and in serious cases it will even affect the production and operation of the entire station. The international resource expansion method of the software according to the embodiment of the present disclosure realizes automatic monitoring and loading, solves the problem that the software system must be restarted in the upgrade step, and can improve the stability and availability of the new energy monitoring system as a whole.

[0059] Reference above Figures 1 to 3The international resource extension method of software according to the embodiment of the present disclosure is described. Figure 4 A software internationalization extension device according to an implementation of the present disclosure is described.

[0060] Figure 4 A block diagram of a software internationalization resource extension device according to an embodiment of the present disclosure is shown.

[0061] Reference Figure 4 , the extension device 400 may include an adding module 401, an exporting and importing module 402, a determining module 403 and a loading module 404. The adding module 401 is configured to: in response to an instruction to add an extended target language type, add the extended target language type to the internationalized resource data storage module of the software. The exporting and importing module 402 is configured to: generate an export file corresponding to the extended target language type, wherein the export file includes items to be translated related to the internationalized resource extension of the software, and import an import file corresponding to the export file into the internationalized resource data storage module, wherein the import file includes translation items of the extended target language type corresponding to the items to be translated. The determining module 403 determines whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the internationalized resource information memory of the software. The loading module 404 is configured to: when the internationalized resource data in the internationalized resource data storage module is inconsistent with the internationalized resource data in the internationalized resource information memory of the software, load the internationalized resource data in the internationalized resource data storage module into the internationalized resource information memory of the software.

[0062] As an example, the device further includes: an update module (not shown), configured to: in response to the export-import module importing the import file corresponding to the export file into the international resource data storage module, update the international resource version number corresponding to the software. As an example, the determination module 403 is configured to: detect whether the international resource memory version number corresponding to the software is consistent with the international resource version number, and when the international resource memory version number corresponding to the software is inconsistent with the international resource version number, determine that the international resource data in the international resource data storage module is inconsistent with the international resource data in the international resource information memory of the software.

[0063] As an example, the determination module 403 is configured to: detect whether the internationalization resource memory version number is consistent with the internationalization resource version number through a daemon thread, wherein the daemon thread starts running when the software is started.

[0064] As an example, the update module is further configured to: when the internationalization resource memory version number is inconsistent with the internationalization resource version number, update the internationalization resource memory version number to be consistent with the internationalization resource version number.

[0065] As an example, the loading module 404 is configured to: load the internationalized resource data in the internationalized resource data storage module into a replica memory with the same data structure as the internationalized resource information memory; and switch the entire replica memory to the master memory of the internationalized resource memory.

[0066] As an example, the export file is in EXCEL format.

[0067] As an example, the import file is generated by filling the translation item corresponding to the item to be translated in the position corresponding to the item to be translated in the export file.

[0068] According to the software internationalization resource extension device of the embodiment of the present disclosure, less manual labor is required in the maintenance and upgrade steps, and more computer software technology is used to achieve automation of the process of extending internationalization resources.

[0069] The exemplary embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the internationalization resource extension method of software as described in the exemplary embodiment above when the computer program is executed by a processor. The computer-readable storage medium is any data storage device that can store data read by a computer system. Examples of computer-readable storage media include: read-only memory, random access memory, read-only optical disk, magnetic tape, floppy disk, optical data storage device, and carrier wave (such as data transmission through the Internet via a wired or wireless transmission path).

[0070] According to an exemplary embodiment of the present invention, the internationalized resource extension device for software may include: a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the internationalized resource extension method for software as described in the exemplary embodiment above is implemented.

[0071] Although some exemplary embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various modifications may be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims

1. A method for extending software international resources, wherein: The software internationalization resource extension method includes: In response to an instruction to add an extended target language type, the extended target language type is added to the internationalized resource data storage module of the software, wherein the internationalized resource data storage module includes an internationalized resource type table, an internationalized resource definition table, and an internationalized resource language table in a standard format, wherein the internationalized resource type table is used to define a database table of internationalized multi-language types that the system needs to support, and the internationalized resource definition table is used to identify a database table of model primary keys that need to be translated, and in the internationalized resource definition table, object attribute key information that needs to support internationalization corresponding to the software system model object is preset, and the data in the internationalized resource definition table belongs to the configuration information when the software is deployed; Generate an export file corresponding to the extended target language type, wherein the export file includes items to be translated related to the internationalized resource extension of the software; Importing an import file into the internationalized resource data storage module by importing an import file corresponding to the export file into an internationalized resource language table in the internationalized resource data storage module, wherein the import file includes a translation item of an extended target language type corresponding to the item to be translated, wherein the internationalized resource language table is a database table for storing internationalized resource information, wherein the database table includes internationalized resource attributes, each internationalized resource attribute corresponds to a row of data in the internationalized resource language table; Determine whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the internationalized resource information memory of the software; When the internationalized resource data in the internationalized resource data storage module is inconsistent with the internationalized resource data in the internationalized resource information memory of the software, the internationalized resource data in the internationalized resource data storage module is loaded into the internationalized resource information memory of the software.

2. The software internationalization resource extension method according to claim 1, wherein: The software internationalization resource expansion method also includes: In response to importing an import file corresponding to the export file into the internationalized resource data storage module, updating an internationalized resource version number corresponding to the software; The step of determining whether the data in the internationalized resource data storage module is consistent with the data in the internationalized resource information memory of the software comprises: Detecting whether the internationalized resource memory version number corresponding to the software is consistent with the internationalized resource version number; When the internationalization resource memory version number corresponding to the software is inconsistent with the internationalization resource version number, it is determined that the internationalization resource data in the internationalization resource data storage module is inconsistent with the internationalization resource data in the internationalization resource information memory of the software.

3. The software internationalization resource extension method according to claim 2, wherein: The step of detecting whether the internationalized resource memory version number corresponding to the software is consistent with the internationalized resource version number comprises: Whether the internationalized resource memory version number is consistent with the internationalized resource version number is detected by a daemon thread, wherein the daemon thread starts running when the software is started.

4. The software internationalization resource extension method according to claim 2, wherein: The software internationalization resource expansion method also includes: When the internationalization resource memory version number is inconsistent with the internationalization resource version number, the internationalization resource memory version number is updated to be consistent with the internationalization resource version number.

5. The software internationalization resource extension method according to claim 2, wherein: The step of loading the internationalized resource data in the internationalized resource data storage module into the internationalized resource information memory corresponding to the software comprises: Loading the internationalized resource data in the internationalized resource data storage module into a copy memory having the same data structure as the internationalized resource information memory; The replica memory is entirely switched to the master memory of the internationalized resource memory.

6. The software internationalization resource extension method according to claim 1, wherein: The exported file is in EXCEL format.

7. The software internationalization resource extension method according to claim 1, wherein: The import file is generated by filling the translation item corresponding to the item to be translated in the position corresponding to the item to be translated in the export file.

8. A software internationalization resource expansion device, wherein: The international resource extension device of the software includes: Add module, configured as: In response to an instruction to add an extended target language type, the extended target language type is added to the internationalized resource data storage module of the software, wherein the internationalized resource data storage module includes an internationalized resource type table, an internationalized resource definition table, and an internationalized resource language table in a standard format, wherein the internationalized resource type table is used to define a database table of internationalized multi-language types that the system needs to support, and the internationalized resource definition table is used to identify a database table of model primary keys that need to be translated, and in the internationalized resource definition table, object attribute key information that needs to support internationalization corresponding to the software system model object is preset, and the data in the internationalized resource definition table belongs to the configuration information when the software is deployed; The export and import modules are configured as follows: generating an export file corresponding to the extended target language type, wherein the export file includes items to be translated related to the internationalized resource extension of the software, Importing an import file into the internationalized resource data storage module by importing an import file corresponding to the export file into an internationalized resource language table in the internationalized resource data storage module, wherein the import file includes a translation item of an extended target language type corresponding to the item to be translated, wherein the internationalized resource language table is a database table for storing internationalized resource information, wherein the database table includes internationalized resource attributes, each internationalized resource attribute corresponds to a row of data in the internationalized resource language table; A determination module, which determines whether the internationalized resource data in the internationalized resource data storage module is consistent with the internationalized resource data in the internationalized resource information memory of the software; Load the module, which is configured as: When the internationalized resource data in the internationalized resource data storage module is inconsistent with the internationalized resource data in the internationalized resource information memory of the software, the internationalized resource data in the internationalized resource data storage module is loaded into the internationalized resource information memory of the software.

9. The software internationalization resource extension device according to claim 8, wherein: The international resource expansion device of the software also includes: The updating module is configured to: in response to the export-import module importing the import file corresponding to the export file into the internationalized resource data storage module, update the internationalized resource version number corresponding to the software; wherein the determining module is configured to: Detect whether the internationalized resource memory version number corresponding to the software is consistent with the internationalized resource version number. When the internationalized resource memory version number corresponding to the software is inconsistent with the internationalized resource version number, determine that the internationalized resource data in the internationalized resource data storage module is inconsistent with the internationalized resource data in the internationalized resource information memory of the software.

10. The software internationalization resource extension device according to claim 9, wherein: Make sure the module is configured as: Whether the internationalized resource memory version number is consistent with the internationalized resource version number is detected by a daemon thread, wherein the daemon thread starts running when the software is started.

11. The software internationalization resource extension device according to claim 9, wherein: The update module is also configured to: When the internationalization resource memory version number is inconsistent with the internationalization resource version number, the internationalization resource memory version number is updated to be consistent with the internationalization resource version number.

12. The software internationalization resource extension device according to claim 9, wherein: Load modules are configured as: Loading the internationalized resource data in the internationalized resource data storage module into a copy memory having the same data structure as the internationalized resource information memory; The replica memory is entirely switched to the master memory of the internationalized resource memory.

13. The software internationalization resource extension device according to claim 8, wherein: The exported file is in EXCEL format.

14. The software internationalization resource extension device according to claim 8, wherein: The import file is generated by filling the translation item corresponding to the item to be translated at the position corresponding to the item to be translated in the export file.

15. A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the software internationalization resource extension method according to any one of claims 1 to 7.

16. A software internationalization resource extension device, the software internationalization resource extension device comprising: a memory storing a computer program; and a processor, configured to: implement the software internationalization resource extension method as claimed in any one of claims 1 to 7 when the computer program is executed by the processor.

Citation Information

Patent Citations

  • International multi-language implement method of configuration software

    CN105138350A

  • Software multi-language display and input synchronous switching method and system, terminal and storage medium

    CN110427238A