CN110941471A - Method and device for internationalizing basic data of software system - Google Patents
Method and device for internationalizing basic data of software system Download PDFInfo
- Publication number
- CN110941471A CN110941471A CN201911166416.XA CN201911166416A CN110941471A CN 110941471 A CN110941471 A CN 110941471A CN 201911166416 A CN201911166416 A CN 201911166416A CN 110941471 A CN110941471 A CN 110941471A
- Authority
- CN
- China
- Prior art keywords
- basic data
- software system
- language
- internationalized
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
When system languages are switched, basic data in a software system database table are copied and synchronously updated to an international resource table to cover and update basic data corresponding to a language type before system switching languages corresponding to the international resource table, and then basic data corresponding to a language type to which the system needs to be switched are copied from the international resource table to cover and update corresponding data entries in the basic database table, so that the internationalization of the basic data of the software system is realized. The invention uses the database table as a medium for storing and dumping data, and has the characteristics that no additional third-party plug-in is needed, other software systems are not forcibly involved, one internationalized device can simultaneously realize internationalization of a plurality of software systems through configuration, the expansibility is strong, the operation is simple, the execution is convenient, and the like.
Description
Technical Field
The invention relates to the technical field of information, in particular to a method and a device for internationalizing basic data of a software system, which can be used for internationalizing the basic data in an application software system on the premise of not changing the original application software system.
Background
With the development of internet services, industries and user groups facing the same application system are more and more extensive, and different use industries and different user groups have the problem that main language versions used by the same application system are inconsistent, so that the language type of a software system is required to support dynamic expansion.
In the traditional software system internationalization, corresponding software system software is developed according to different language versions, different software versions are released according to language types, a deployment object downloads software of a required language version according to requirements for deployment, or translation data records are made by establishing fields corresponding to different languages for the same field.
However, each time the internationalization mode of the software system increases the support for one language, a software development team needs to redevelop a set of software with a corresponding language version, or a table of an original application system needs to be modified correspondingly. The method not only needs to invest a large amount of manpower and material resources, but also needs a large amount of time for redevelopment. The method for carrying out international incremental development by invading the original system undoubtedly increases the complexity of the software system, and the single development method is difficult to ensure the consistency between different language versions of the software system, and the maintenance of the new version and the old version is also extremely complicated.
Secondly, in the traditional internationalization mode of the software system, if the user needs to switch the system language due to personnel change after using the system for a period of time or the main group changes, another software version corresponding to the language type can only be redeployed, the requirement of dynamically switching the system working language cannot be met, and the system is inconvenient to maintain.
Disclosure of Invention
The invention aims to provide a method and a device for internationalizing basic data of a software system, so as to overcome the defects in the prior art.
In order to achieve the technical purpose, the technical scheme of the invention is realized as follows:
a method of internationalizing software system base data, the method comprising the steps of:
1) receiving a request for switching system language versions sent by a software system;
2) responding to the request, synchronously copying basic data of the software system from the database table to the internationalized resource table by the internationalized device server, using the basic data as codes of the data in the internationalized resource table according to a table name, a main key and a field, searching a corresponding record from the internationalized resource table by using the language type of the software system before switching as a language mark of the internationalized resource table, if the corresponding record exists, directly updating the value of a current entry in the internationalized resource table, filtering the basic data corresponding to the software system corresponding to the request from the internationalized resource table by using a target language type, and sending the basic data to the software system, and if the corresponding record does not exist, performing the following steps;
3) translating basic data into at least two language versions, storing a character string spliced by a basic data table name, a main key and a field in an internationalized resource table as a code of the internationalized resource table, a language type as a language mark and a translated value of the basic data in the internationalized resource table as a value form of a code and a language editing entry, and repeating the steps 1) to 2).
An apparatus for internationalizing software system base data, the apparatus comprising:
the receiving module is used for receiving a request for switching the system language version sent by the software system;
the response module responds to the request, the internationalized device server synchronously copies basic data of the software system from the database table to the internationalized resource table, the basic data is used as a code of the data in the internationalized resource table according to a table name, a main key and a field, the language type of the software system before switching is used as a language mark of the internationalized resource table to search a corresponding record from the internationalized resource table, if the corresponding record exists, the value of a current entry in the internationalized resource table is directly updated, the basic data corresponding to the software system corresponding to the request is filtered from the internationalized resource table by using a target language type and is sent to the software system, and if the corresponding record does not exist, the basic data is sent to the translation module;
and the translation module is used for translating the basic data into at least two language versions, using a character string formed by splicing the name of the basic data table, a main key and a field as the code of the internationalized resource table, using the language type as a language mark, using the translated value of the basic data as the value of the code and the language editing entry, storing the code and the language editing entry in the internationalized resource table, and sending a request for switching the system language version to the receiving module again by using a software system corresponding to the basic data.
A method of internationalizing software system base data, the method comprising the steps of:
1) storing basic data of the software system in a database table;
2) sending a request for switching the system language version to the internationalization device;
3) receiving basic data which is sent by an internationalized device and is switched into a target language;
4) and finding the corresponding data entry in the basic data table according to the table name, the primary key and the field in the code in the internationalized resource data table, and updating and covering the corresponding entry in the software system database table by using the value corresponding to the current data entry in the internationalized resource table.
An apparatus for internationalizing software system base data, the apparatus comprising:
the setting module is used for storing basic data of the software system in a database table;
the sending module is used for sending a request for switching the system language version to the internationalization device;
the receiving module is used for receiving basic data which are sent by the internationalized device and are switched into the target language;
and the updating module is used for finding the corresponding data entry in the basic data table according to the table name, the primary key and the field in the code in the internationalized resource data table, and updating and covering the corresponding entry in the software system database table by using the value corresponding to the current data entry in the internationalized resource table.
An electronic device, comprising: the device comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication way, computer instructions are stored in the memory, and the processor executes the computer instructions so as to execute the method.
A computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method described above.
The invention has the beneficial effects that: the method and the device for internationalizing the basic data of the software system use the database table as a medium for storing and dumping the data, and have the characteristics that the internationalization of a plurality of application software systems can be realized simultaneously by one internationalized device through configuration without depending on an additional third-party plug-in and without forcibly intervening other application software systems, the expansibility is strong, the operation is simple, the execution is convenient, and the like. Under the premise of not modifying the original application software system, the internationalization device and the internationalization method can be introduced to realize the internationalization of the basic data of the new and old application software systems.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 is a schematic diagram of the construction of the apparatus of the present invention;
FIG. 3 is a flow chart of a method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to another embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention is clearly and completely described below with reference to the drawings in the embodiments of the present invention.
As shown in fig. 1, a method for internationalizing basic data of a software system according to an embodiment of the present invention includes the following steps:
step 1: and receiving a request for switching the system language version sent by the software system.
In this step, the access request is a request for acquiring the desired language data, which is transmitted from the software system to the internationalization apparatus. In practical application, the client can send an access request to the internationalized device to acquire pages, files and the like displayed in a required language, wherein the access request generally comprises target language information, and a display language required by a software system can be determined; the access request also includes an address of the request page, i.e., a Uniform Resource Identifier (URI) of the request page, thereby determining the request page of the access request. For example: when a user clicks a 'French edition' button of a browsing page at a client, an access request carrying French information and a request page address is sent to a corresponding international device.
Step 2: responding to the request, synchronously copying basic data of the software system from the database table to the internationalized resource table by the internationalized device server, using the basic data as codes of the data in the internationalized resource table according to a table name, a main key and a field, searching a corresponding record from the internationalized resource table by using the language type of the software system before switching as a language mark of the internationalized resource table, if the corresponding record exists, directly updating the value of a current entry in the internationalized resource table, filtering the basic data corresponding to the software system corresponding to the request from the internationalized resource table by using a target language type, and sending the basic data to the software system, and if the corresponding record does not exist, performing the following steps;
and step 3: translating basic data into at least two language versions, storing a character string spliced by a basic data table name, a main key and a field in an internationalized resource table as a code of the internationalized resource table, a language type as a language mark and a translated value of the basic data in the internationalized resource table as a value form of a code and a language editing entry, and repeating the steps 1) to 2).
Corresponding to the method for internationalizing basic data of the software system, the application also discloses a device for internationalizing basic data of the software system, as shown in fig. 2, the device comprises:
the receiving module is used for receiving a request for switching the system language version sent by the software system;
the response module responds to the request, the internationalized device server synchronously copies basic data of the software system from the database table to the internationalized resource table, the basic data is used as a code of the data in the internationalized resource table according to a table name, a main key and a field, the language type of the software system before switching is used as a language mark of the internationalized resource table to search a corresponding record from the internationalized resource table, if the corresponding record exists, the value of a current entry in the internationalized resource table is directly updated, the basic data corresponding to the software system corresponding to the request is filtered from the internationalized resource table by using a target language type and is sent to the software system, and if the corresponding record does not exist, the basic data is sent to the translation module;
and the translation module is used for translating the basic data into at least two language versions, using a character string formed by splicing the name of the basic data table, a main key and a field as the code of the internationalized resource table, using the language type as a language mark, using the translated value of the basic data as the value of the code and the language editing entry, storing the code and the language editing entry in the internationalized resource table, and sending a request for switching the system language version to the receiving module again by using a software system corresponding to the basic data.
As shown in fig. 3, another embodiment of the method of the present invention comprises the following steps:
step 1: and storing the basic data of the software system in a database table.
In this step, a database table in the software system stores a piece of basic data of a default language version, and a manager checks whether the basic data of the software system corresponding to the default language type is the language version that the manager needs to use according to the specific use condition, and if the language version corresponding to the default basic data meets the requirement, the software system can be directly used without other operations, and if the language version corresponding to the default basic data does not meet the requirement of using the system, the manager needs to log in a client of the internationalized device, and then step 2 is performed.
Step 2: and sending a request for switching the system language version to the internationalization device.
And step 3: and receiving basic data which is transmitted by the internationalized device and is switched into the target language.
And 4, step 4: and finding the corresponding data entry in the basic data table according to the table name, the primary key and the field in the code in the internationalized resource data table, and updating and covering the corresponding entry in the software system database table by using the value corresponding to the current data entry in the internationalized resource table. After the switching is finished, the software system is consistent with the software system before the internationalization processing when acquiring the basic data and directly acquires the basic data from the database table.
It should be noted that the international requirement of the application on the software system is limited in that the software system can only be set to a specific international language at the same time, that is, after the language type of the software system is changed to a certain language, the whole software system uniformly presents the interface effect of the language.
Corresponding to another embodiment of the method for internationalizing basic data of a software system, the present application further discloses an apparatus for internationalizing basic data of a software system, as shown in fig. 4, the apparatus comprising:
the setting module is used for storing basic data of the software system in a database table;
the sending module is used for sending a request for switching the system language version to the internationalization device;
the receiving module is used for receiving basic data which are sent by the internationalized device and are switched into the target language;
and the updating module is used for finding the corresponding data entry in the basic data table according to the table name, the primary key and the field in the code in the internationalized resource data table, and updating and covering the corresponding entry in the software system database table by using the value corresponding to the current data entry in the internationalized resource table.
The invention also discloses an electronic device, comprising: the device comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication way, computer instructions are stored in the memory, and the processor executes the computer instructions so as to execute the method.
The invention also discloses a computer readable storage medium storing computer instructions for causing the computer to execute the above method.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (6)
1. A method for internationalizing basic data of a software system, comprising the steps of:
1) receiving a request for switching system language versions sent by a software system;
2) responding to the request, synchronously copying basic data of the software system from the database table to the internationalized resource table by the internationalized device server, using the basic data as codes of the data in the internationalized resource table according to a table name, a main key and a field, searching a corresponding record from the internationalized resource table by using the language type of the software system before switching as a language mark of the internationalized resource table, if the corresponding record exists, directly updating the value of a current entry in the internationalized resource table, filtering the basic data corresponding to the software system corresponding to the request from the internationalized resource table by using a target language type, and sending the basic data to the software system, and if the corresponding record does not exist, performing the following steps;
3) translating basic data into at least two language versions, storing a character string spliced by a basic data table name, a main key and a field in an internationalized resource table as a code of the internationalized resource table, a language type as a language mark and a translated value of the basic data in the internationalized resource table as a value form of a code and a language editing entry, and repeating the steps 1) to 2).
2. An apparatus for internationalizing software system base data, the apparatus comprising:
the receiving module is used for receiving a request for switching the system language version sent by the software system;
the response module responds to the request, the internationalized device server synchronously copies basic data of the software system from the database table to the internationalized resource table, the basic data is used as a code of the data in the internationalized resource table according to a table name, a main key and a field, the language type of the software system before switching is used as a language mark of the internationalized resource table to search a corresponding record from the internationalized resource table, if the corresponding record exists, the value of a current entry in the internationalized resource table is directly updated, the basic data corresponding to the software system corresponding to the request is filtered from the internationalized resource table by using a target language type and is sent to the software system, and if the corresponding record does not exist, the basic data is sent to the translation module;
and the translation module is used for translating the basic data into at least two language versions, using a character string formed by splicing the name of the basic data table, a main key and a field as the code of the internationalized resource table, using the language type as a language mark, using the translated value of the basic data as the value of the code and the language editing entry, storing the code and the language editing entry in the internationalized resource table, and sending a request for switching the system language version to the receiving module again by using a software system corresponding to the basic data.
3. A method for internationalizing basic data of a software system, comprising the steps of:
1) storing basic data of the software system in a database table;
2) sending a request for switching the system language version to the internationalization device;
3) receiving basic data which is sent by an internationalized device and is switched into a target language;
4) and finding the corresponding data entry in the basic data table according to the table name, the primary key and the field in the code in the internationalized resource data table, and updating and covering the corresponding entry in the software system database table by using the value corresponding to the current data entry in the internationalized resource table.
4. An apparatus for internationalizing software system base data, the apparatus comprising:
the setting module is used for storing basic data of the software system in a database table;
the sending module is used for sending a request for switching the system language version to the internationalization device;
the receiving module is used for receiving basic data which are sent by the internationalized device and are switched into the target language;
and the updating module is used for finding the corresponding data entry in the basic data table according to the table name, the primary key and the field in the code in the internationalized resource data table, and updating and covering the corresponding entry in the software system database table by using the value corresponding to the current data entry in the internationalized resource table.
5. An electronic device, comprising: a memory and a processor communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of claim 1 or 3.
6. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of claim 1 or 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911166416.XA CN110941471A (en) | 2019-11-25 | 2019-11-25 | Method and device for internationalizing basic data of software system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911166416.XA CN110941471A (en) | 2019-11-25 | 2019-11-25 | Method and device for internationalizing basic data of software system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110941471A true CN110941471A (en) | 2020-03-31 |
Family
ID=69908061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911166416.XA Pending CN110941471A (en) | 2019-11-25 | 2019-11-25 | Method and device for internationalizing basic data of software system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110941471A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111984267A (en) * | 2020-07-02 | 2020-11-24 | 福建天泉教育科技有限公司 | Method and storage medium for internationalization of multi-version resource storage |
CN113157436A (en) * | 2021-03-02 | 2021-07-23 | 重庆度小满优扬科技有限公司 | Resource request distribution method, device, server and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199812A (en) * | 2014-08-18 | 2014-12-10 | 中国建设银行股份有限公司 | Data system and method supporting multiple languages |
CN105138350A (en) * | 2015-07-29 | 2015-12-09 | 北京四方继保自动化股份有限公司 | International multi-language implement method of configuration software |
CN107256234A (en) * | 2017-05-18 | 2017-10-17 | 腾讯科技(深圳)有限公司 | A kind of web page text method of adjustment and its equipment |
WO2017181856A1 (en) * | 2016-04-18 | 2017-10-26 | 中兴通讯股份有限公司 | Method, device, and terminal for globalizing application |
CN108897742A (en) * | 2018-06-29 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of log method for internationalizing, system, equipment and computer readable storage medium |
CN109683998A (en) * | 2017-10-19 | 2019-04-26 | 北京京东尚科信息技术有限公司 | Internationalize implementation method, device and system |
-
2019
- 2019-11-25 CN CN201911166416.XA patent/CN110941471A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199812A (en) * | 2014-08-18 | 2014-12-10 | 中国建设银行股份有限公司 | Data system and method supporting multiple languages |
CN105138350A (en) * | 2015-07-29 | 2015-12-09 | 北京四方继保自动化股份有限公司 | International multi-language implement method of configuration software |
WO2017181856A1 (en) * | 2016-04-18 | 2017-10-26 | 中兴通讯股份有限公司 | Method, device, and terminal for globalizing application |
CN107305488A (en) * | 2016-04-18 | 2017-10-31 | 中兴通讯股份有限公司 | One kind application method for internationalizing, device and terminal |
CN107256234A (en) * | 2017-05-18 | 2017-10-17 | 腾讯科技(深圳)有限公司 | A kind of web page text method of adjustment and its equipment |
CN109683998A (en) * | 2017-10-19 | 2019-04-26 | 北京京东尚科信息技术有限公司 | Internationalize implementation method, device and system |
CN108897742A (en) * | 2018-06-29 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of log method for internationalizing, system, equipment and computer readable storage medium |
Non-Patent Citations (1)
Title |
---|
苏红帆等: "Windows环境下软件国际化开发的解决方案", 《广西科学院学报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111984267A (en) * | 2020-07-02 | 2020-11-24 | 福建天泉教育科技有限公司 | Method and storage medium for internationalization of multi-version resource storage |
CN111984267B (en) * | 2020-07-02 | 2023-11-07 | 福建天泉教育科技有限公司 | Internationalization method for multi-version resource storage and storage medium |
CN113157436A (en) * | 2021-03-02 | 2021-07-23 | 重庆度小满优扬科技有限公司 | Resource request distribution method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102567516B (en) | Script loading method and device | |
CN112799663B (en) | Page display method, device, computer-readable storage medium, and electronic device | |
US11553035B2 (en) | Cross-platform module for loading across a plurality of device types | |
US9652220B2 (en) | Zero down-time deployment of new application versions | |
CN110941779B (en) | Page loading method and device, storage medium and electronic equipment | |
CN111159099A (en) | Online data generation method and device, electronic equipment and storage medium | |
CN111068328A (en) | Game advertisement configuration table generation method, terminal device and medium | |
CN103473062A (en) | Method and system for mobile terminal customization based on user space file system | |
CN110825600B (en) | Page information processing method, server and page display device | |
CN112783494A (en) | Automatic skeleton screen generation method and device and application page updating method and device | |
CN110727429A (en) | Front-end page generation method, device and equipment | |
CN114461209A (en) | Page configuration and switching method, device, equipment and storage medium | |
CN110941471A (en) | Method and device for internationalizing basic data of software system | |
EP2924565A1 (en) | Web-application-launch application programming interface | |
CN113656005B (en) | Application component library construction method, application component configuration method and related devices | |
US9703848B2 (en) | Caching linked queries for optimized compliance management | |
CN113377458B (en) | Plug-in management method and device, electronic equipment and storage medium | |
CN108170504A (en) | A kind of interface Logo method for customizing, system, equipment and computer readable storage medium | |
CN118192965A (en) | Page component processing method, device, computer equipment, storage medium and product | |
CN111026466A (en) | File processing method and device, computer readable storage medium and electronic equipment | |
CN117170640A (en) | A component management method, device and readable storage medium for a low-code platform | |
JP2008529160A (en) | How to automate the management of resources in computer applications | |
CN110599112A (en) | Method and device for developing and maintaining network page | |
CN112905164B (en) | Project code processing method and device | |
CN115580646B (en) | Middleware configuration method, device, server, medium and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 361008 rooms 401-404, 501, 503, 504, No. 2, guanri Road, phase II, software park, Xiamen City, Fujian Province Applicant after: Xiamen Haisheng rongchuang Information Technology Co.,Ltd. Address before: 361008 rooms 401-404, 501, 503, 504, No. 2, guanri Road, phase II, software park, Xiamen City, Fujian Province Applicant before: XIAMEN ICSS HAISHENG INFORMATION TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200331 |
|
RJ01 | Rejection of invention patent application after publication |