CN110941471A - Method and device for internationalizing basic data of software system - Google Patents

Method and device for internationalizing basic data of software system Download PDF

Info

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
Application number
CN201911166416.XA
Other languages
Chinese (zh)
Inventor
陈雄华
陈家铭
孙照波
康明军
田锐锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XIAMEN ICSS HAISHENG INFORMATION TECHNOLOGY Co Ltd
Original Assignee
XIAMEN ICSS HAISHENG INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XIAMEN ICSS HAISHENG INFORMATION TECHNOLOGY Co Ltd filed Critical XIAMEN ICSS HAISHENG INFORMATION TECHNOLOGY Co Ltd
Priority to CN201911166416.XA priority Critical patent/CN110941471A/en
Publication of CN110941471A publication Critical patent/CN110941471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

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

Method and device for internationalizing basic data of software system
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.
CN201911166416.XA 2019-11-25 2019-11-25 Method and device for internationalizing basic data of software system Pending CN110941471A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
苏红帆等: "Windows环境下软件国际化开发的解决方案", 《广西科学院学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
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
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
US9727354B2 (en) System and methods for loading an application and its modules in a client device
CN108762743B (en) Data table operation code generation method and device
US9652220B2 (en) Zero down-time deployment of new application versions
CN109669692B (en) Source code sharing method, server, computer readable storage medium and system
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN110941779B (en) Page loading method and device, storage medium and electronic equipment
CN103473062A (en) Method and system for mobile terminal customization based on user space file system
CN112799663A (en) Page display method and device, computer readable storage medium and electronic equipment
JP2005533294A (en) Service acquisition method and service acquisition system
CN111159099A (en) Online data generation method and device, electronic equipment and storage medium
CN110727429A (en) Front-end page generation method, device and equipment
CN110941471A (en) Method and device for internationalizing basic data of software system
JP2008529160A (en) How to automate the management of resources in computer applications
CN113656005B (en) Application component library construction method, application component configuration method and related devices
US9703848B2 (en) Caching linked queries for optimized compliance management
CN114461209A (en) Page configuration and switching method, device, equipment and storage medium
CN113721973A (en) Configuration file generation method, device, equipment and medium
CN110825600B (en) Page information processing method, server and page display device
CN114756228A (en) Page processing method, device, equipment and storage medium
CN110599112A (en) Method and device for developing and maintaining network page
CN103150292A (en) Method and device for replacing system font file
CN113377458A (en) Plug-in management method and device, electronic equipment and storage medium
CN110377298B (en) Distributed cluster upgrading method and distributed cluster

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