CN110673920A - Internationalization processing method and device, computer equipment and storage medium - Google Patents

Internationalization processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110673920A
CN110673920A CN201910936839.9A CN201910936839A CN110673920A CN 110673920 A CN110673920 A CN 110673920A CN 201910936839 A CN201910936839 A CN 201910936839A CN 110673920 A CN110673920 A CN 110673920A
Authority
CN
China
Prior art keywords
internationalized
internationalization
message
file
attribute file
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
CN201910936839.9A
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.)
Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd
Shenzhen Qianhai Huanrong Lianyi Information Technology Service Co Ltd
Original Assignee
Shenzhen Qianhai Huanlianyi Information Technology Service 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 Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd filed Critical Shenzhen Qianhai Huanlianyi Information Technology Service Co Ltd
Priority to CN201910936839.9A priority Critical patent/CN110673920A/en
Publication of CN110673920A publication Critical patent/CN110673920A/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

The embodiment of the invention discloses an internationalized processing method and device, computer equipment and a storage medium. The method comprises the following steps: receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; adding the message in the internationalized attribute file into a message queue; and acquiring the message in the message queue, and updating the corresponding internationalized file according to the message. According to the embodiment of the invention, because the message in the internationalized attribute file is added into the message queue, the message in the message queue is acquired and the acquired message is updated into the corresponding international file. By implementing the method of the embodiment of the invention, the translation message can be edited on line, the language configuration can be dynamically newly added and modified, the translation message can take effect without restarting the service, and the flexibility and the efficiency of message translation are improved.

Description

Internationalization processing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an internationalized processing method and apparatus, a computer device, and a storage medium.
Background
With the development of science and technology and economy, the international demand is increasing. At present, many background management systems have international requirements, namely the systems need to support multi-language display, such as Chinese, English, French and the like. In the prior art, both a front-end system and a back-end system are configured with a static i18n international file to achieve the effect of system language switching. However, the existing scheme, whether the front end or the back end, is implemented by configuring an internationalized file, several languages need to configure several internationalized files, and each new language needs to be newly released by the system. Every new addition and modification of the language must be released to the online after the front and back end configuration is modified, even if only a few files are modified.
Disclosure of Invention
The embodiment of the invention provides an internationalized processing method and device, computer equipment and a storage medium, and aims to solve the problems that language updating needs to be reissued, language updating is complicated and efficiency is low in the related technology.
In a first aspect, an embodiment of the present invention provides an internationalized processing method, applied to a server, including: receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; adding the message in the internationalized attribute file into a message queue; and acquiring the message in the message queue, and updating the corresponding internationalized file according to the message.
In a first aspect, an embodiment of the present invention provides an internationalized processing method, applied to a management terminal, where the method includes: receiving an internationalization request input by an administrator, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; and sending the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
In a third aspect, an embodiment of the present invention further provides an internationalized processing apparatus, which is applied to a server, and includes: a receiving unit, configured to receive an internationalization request from a management terminal, where the internationalization request includes an internationalization attribute file, and the internationalization attribute file includes: a unique identification, translation value, and translation language of the message; the adding unit is used for adding the message in the internationalized attribute file into a message queue; and the updating unit is used for acquiring the message in the message queue and updating the corresponding internationalized file according to the message.
In a fourth aspect, an embodiment of the present invention further provides an internationalized processing apparatus, which is applied to management, and includes: the system comprises an input unit, a monitoring unit and a control unit, wherein the input unit is used for receiving an internationalization request input by an administrator, the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; and the sending unit is used for sending the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, the computer program including program instructions, which when executed by a processor, implement the above method.
The embodiment of the invention provides an internationalized processing method and device, computer equipment and a storage medium. Wherein the method comprises the following steps: receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; adding the message in the internationalized attribute file into a message queue; and acquiring the message in the message queue, and updating the corresponding internationalized file according to the message. The embodiment of the invention can realize online editing and translation of the message and dynamically newly added and modified language configuration by adding the message in the internationalized attribute file into the message queue and updating the acquired message into the corresponding international file, can take effect without restarting the service, and improves the flexibility and efficiency of message translation.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an internationalization processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an internationalized processing method applied to a server according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of an internationalized processing method according to another embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating an internationalized processing method according to yet another embodiment of the present invention;
FIG. 5 is a schematic flow chart illustrating an internationalized processing method according to yet another embodiment of the present invention;
fig. 6 is a flowchart illustrating an internationalized processing method applied to a management terminal according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of an internationalized processing device applied to a server according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of an internationalized processing apparatus provided in another embodiment of the present invention;
FIG. 9 is a schematic block diagram of an internationalized processing apparatus provided in yet another embodiment of the present invention;
FIG. 10 is a schematic block diagram of an internationalized processing apparatus provided in yet another embodiment of the present invention;
fig. 11 is a schematic block diagram of an internationalized processing device applied to a management terminal according to an embodiment of the present invention; and
FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of an internationalization processing method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of an internationalization processing method according to an embodiment of the present invention. The internationalized processing method is applied to the server 20 and is realized by interaction between the server 20 and the management terminal 10.
Fig. 2 is a schematic flow chart of an internationalization method according to an embodiment of the present invention. As shown, the method comprises the following steps: S110-S130.
S110, receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification of the message, a translation value, and a translation language.
In an embodiment, the server is a background server for software running, the management terminal refers to a terminal of a background management system, and an administrator manages the background system through the management terminal. The internationalization request refers to a request for editing an internationalized file (validation file for presenting a translation message) input by an administrator through the management terminal. The internationalized attribute file is a file for editing the translation language, both the internationalized attribute file and the internationalized file are files for realizing internationalization, the internationalized attribute file is a file for editing, and the internationalized file is a file for validation. The internationalized attribute file comprises: the unique identification, translation value and translation language of the message, the message is the text shown in the page, for example, "front. The administrator inputs an internationalization request in the management terminal, wherein the internationalization request comprises a translation language and a file type, the translation language is Chinese, English, French and the like, and the file type comprises a front-end internationalization attribute file, a back-end internationalization attribute file and a menu internationalization attribute file. The front-end internationalized attribute file corresponds to page text information of the system, such as a real-time hot spot; the back-end internationalized attribute file corresponds to the back-end service prompt information, for example, when logging in, a user name or password is prompted to be wrong; the menu internationalization attribute file corresponds to a menu bar of the system, for example, home page, login, setting.
In a specific implementation, an administrator inputs an internationalization request through the management terminal, the management terminal sends the internationalization request to the server, and the server receives the internationalization request and uses the internationalization request to perform subsequent internationalization processing.
In an embodiment, as shown in fig. 3, after the step S110, before the following step S120 is performed, the method further includes: S1201-S1202.
S1201, judging whether the translation language in the internationalization request exists in an internationalization language table.
S1202, if the translation language in the internationalization request does not exist in the internationalization language table, adding the translation language in the internationalization language table.
In one embodiment, the translation language refers to the language type of the message translated by the administrator, such as Chinese, English, and French, for example. The international language table refers to a bottom table for storing international languages in a database, and represents types of all translation languages in the system. When the administrator translates the message in a new language type, such as arabic, russian, greek, etc., the new language type does not exist in the international language table. Therefore, before processing the internationalized attribute file, whether the translation language in the internationalized request exists in the internationalized language table needs to be judged, if so, the message translation of the language type already exists is indicated, and no additional translation language needs to be added; if the translation language does not exist, the message translation of the language type is not existed, and the translation language is newly added in the international language table. Through the steps, the translation language can be synchronously added in the page, and the switching language is displayed for displaying the character information of the website.
In an embodiment, as shown in fig. 4, the step S120 further includes, before the step S: S1203-S1204.
And S1203, judging whether an internationalized file corresponding to the internationalized attribute file exists or not.
S1204, if the internationalized file corresponding to the internationalized attribute file does not exist, creating the internationalized file corresponding to the internationalized attribute file.
In one embodiment, the internationalized file refers to a validation file for presenting the translated message. In a distributed environment, data sharing cannot be performed by using file storage, and a database is used, so that the data sharing can be realized, and the data can be changed and modified immediately by utilizing the centralization characteristic. And then pushing the modified data to each distributed node, and modifying the corresponding properties language file. Therefore, the internationalized document of this embodiment is a property suffix document. The internationalized files comprise a front-end internationalized file, a back-end internationalized file and a menu internationalized file. It is to be understood that the internationalized attribute file is a file used by an administrator to edit an internationalized file, and corresponds to an internationalized file, that is, a front-end internationalized attribute file corresponds to a front-end internationalized file, a back-end internationalized attribute file corresponds to a back-end internationalized file, and a menu internationalized attribute file corresponds to a menu internationalized file.
In a specific implementation, since only the menu may have a corresponding translation message in the page, and the text in the page does not have a corresponding translation message yet, the administrator needs to translate the text in the page and edit the front-end internationalized attribute file, and the server does not have a corresponding front-end internationalized file yet. Therefore, in order to update the internationalized file, it is first necessary to determine whether the internationalized file exists, and the internationalized file can be searched for according to the file name of the internationalized attribute file. Through the steps, the translation of the newly added message can be realized, the convenience of message translation is improved, and the translation efficiency is improved.
In an embodiment, as shown in fig. 5, the step S120 further includes, before the step S: S1205-S1207.
And S1205, judging the file types of the internationalized attribute files, wherein the file types comprise a front-end internationalized attribute file, a rear-end internationalized attribute file and a menu internationalized attribute file.
And S1206, if the file type of the internationalized attribute file is the front-end internationalized attribute file or the rear-end internationalized attribute file, updating the message in the internationalized attribute file to an internationalized attribute table.
S1207, if the file type of the internationalized attribute file is the menu internationalized attribute file, updating the message in the menu internationalized attribute file to a menu list.
In one embodiment, the internationalized attribute table is a bottom table in the database for storing the translation languages of the messages, i.e., for recording the unique identifier and the corresponding translation language of each message. A menu list is a base table in the database for storing the translation languages of messages in the menu bar. In order to implement dynamic addition of language configuration, first, the message in the internationalized attribute file needs to be cached in the corresponding bottom table of the database, so as to be called and acquired when the internationalized processing is performed subsequently. Therefore, it is first necessary to determine the file type of the internationalized attribute file in the international request, where the file types include a front-end internationalized attribute file, a back-end internationalized attribute file, and a menu internationalized attribute file, and the file type to which the file type belongs is determined according to the name of the internationalized attribute file. When the internationalized attribute file is a front-end internationalized attribute file or a rear-end internationalized attribute file, updating the internationalized attribute file into a corresponding internationalized attribute table in the database; and when the internationalized attribute file is the menu internationalized attribute file, updating the internationalized attribute file into a corresponding menu table in the database. Through the steps, the internationalized attribute table is cached in the database bottom table so as to further realize internationalized processing.
And S120, adding the message in the internationalized attribute file into a message queue.
In one embodiment, a Message Queue (Message Queue) is often used to solve the problem of resource consistency in a concurrent system, improve the processing capability of a peak value, and simultaneously ensure the sequentiality, recoverability, and delivery necessity of a Message, decouple an application, or implement asynchronous communication, and the like. The database adopted by the embodiment is Redis, that is, the dynamic addition of the language configuration is realized based on the Redis message queue. Redis message queue based implementations include several typical implementations modes, e.g., List based implementations of LPUSH + BRPOP, PUB/SUB, subscribe/publish mode, Sorted-Set based implementations, and Stream type based implementations. The embodiment adopts List-based LPUSH + BRPOP to realize the dynamic addition and the validation of the language configuration. In this scenario there is a notion of producer and consumer, both threads for processing tasks, the producer being responsible for generating messages and the consumer being responsible for using processed messages. Production, which refers to putting a message into a message queue; consuming, refers to reading and processing a message. In specific implementation, the internationalized attribute file is updated to an internationalized attribute table of the database, and meanwhile, a producer adds the message in the internationalized attribute file to a message queue through an LPUSH command, and dynamic addition of language configuration is realized by using the message queue. Through the steps, dynamic addition of the translated message can be realized.
S130, obtaining the message in the message queue, and updating the corresponding international file according to the message.
In one embodiment, the internationalized file refers to a validation file for presenting the translated message, which includes a front-end internationalized file, a back-end internationalized file, and a menu internationalized file. In a specific implementation, after a producer adds a message to a message queue, a consumer of the message queue receives the message once, which indicates that an internationalized file is changed, takes the message from the message queue through a BRPOP command, and updates the acquired message to a corresponding internationalized file, for example, the acquired message is a message of a front-end internationalized attribute file, and then the acquired message is updated to a corresponding front-end internationalized file. Updating, namely adding or modifying the translation language of the message in the international file according to the unique identifier of the message. After the international processing is finished, the user refreshes the page, the languages are switched according to the international language identifiers, such as zh _ CN and en _ US, and the server returns the corresponding language text according to the language identifier. Through the steps, the dynamic effect of the translation message is realized, the service does not need to be restarted, and the international file can be modified to take effect without being re-edited and being on-line.
The embodiment of the invention discloses an internationalized processing method, which comprises the steps of receiving an internationalized request from a management terminal, wherein the internationalized request comprises an internationalized attribute file, adding a message in the internationalized attribute file into a message queue, acquiring the message in the message queue, updating a corresponding internationalized file according to the message, realizing online editing and translation of the message, dynamically increasing and modifying language configuration, taking effect without restarting service, and improving the flexibility and efficiency of message translation.
Fig. 6 is a schematic flow chart of an internationalization processing method according to another embodiment of the present invention. As shown in fig. 6, the internationalized processing method of the present embodiment is applied to the management terminal 10, and is implemented by interaction between the management terminal 10 and the server 20. As shown in fig. 6, the method comprises the steps of: S210-S220.
S210, receiving an internationalization request input by an administrator, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification of the message, a translation value, and a translation language.
In an embodiment, the server is a background server for software running, the management terminal refers to a terminal of a background management system, and an administrator manages the background system through the management terminal. The internationalization request comprises a translation language selected by an administrator and a file type selected by the administrator, wherein the translation language is Chinese, English, French and the like, and the file type comprises a front-end internationalization attribute file, a back-end internationalization attribute file and a menu internationalization attribute file. The translation language is the language type of the administrator translated message, and the internationalized attribute file is the file of the translated message edited by the administrator. The administrator selects the front-end internationalized attribute file, namely selects the message of the page text information of the system to be translated; the administrator selects the back-end internationalized attribute file, namely selects the message of the back-end service prompt information to be translated; the administrator selects the menu internationalization properties file, i.e., selects the translation of messages in the system's menu bar. For example, if the administrator needs to translate the text "Real-time hot spot" in the page into "Real time hot spots", the administrator selects the language as "english", the file type as "front-end internationalized property file", the unique identifier of the edited message in the front-end internationalized property file as "news 05", the translation value as "Real-time hot spot", and the translation language as "Real time hot spots". The unique identifier of the message is preset, and the unique identifier of the message and the translations of the various languages corresponding to the message form a key-value pair, for example, common.
In the specific implementation, an administrator selects a language in a visual interface of the management terminal, selects a file type, edits a translation message in a corresponding internationalized attribute file, generates an internationalized request according to information input by the administrator, sends the internationalized request to the server, and performs subsequent internationalized processing according to the internationalized request by the server. The steps can realize the translation of any message, and an administrator can translate the message to be translated according to the actual requirement, can translate the message in batch, can translate the message locally and can translate the message into different languages, so that the flexibility of message translation is improved, and the efficiency of message translation is improved.
S220, the internationalization request is sent to a server so that the server can update the corresponding internationalized file according to the internationalized attribute file.
In one embodiment, the internationalized file refers to a validation file for presenting the translated message. After the internationalization request is obtained, the internationalization request is sent to the server, the server performs internationalization processing according to the internationalization request, and the internationalization attribute file in the internationalization request is updated to the corresponding internationalization file, namely, the translation language of the message edited in the internationalization attribute file by the administrator is updated in the internationalization file, for example, the original translation language of the message or the translation language of the newly added message is modified. Through the steps, the translation language can be edited on line through the visual interface, the newly added and modified language configuration can be realized, the dynamic effect is achieved, the restarting of the service is not needed, and the message translation efficiency is improved.
The invention discloses an internationalization processing method, which is implemented and shown by receiving an internationalization request input by an administrator, wherein the internationalization request comprises an internationalization attribute file, and the internationalization request is sent to a server so that the server updates the corresponding internationalization file according to the internationalization attribute file, so that the translation language can be edited on line through a visual interface, the newly added and modified language configuration can be dynamically validated, the service does not need to be restarted, and the message translation efficiency and the message translation flexibility are improved.
Fig. 7 is a schematic block diagram of an internationalized processing apparatus 300 according to an embodiment of the present invention. As shown in fig. 7, the present invention also provides an internationalized processing apparatus 300 corresponding to the above internationalized processing method. The internationalized processing apparatus 300 includes a unit for executing the internationalized processing method described above, and the apparatus may be configured in a server. Specifically, referring to fig. 7, the internationalization processing apparatus 300 includes: a receiving unit 310, an adding unit 320, and an updating unit 330.
A receiving unit 310, configured to receive an internationalization request from a management terminal, where the internationalization request includes an internationalization attribute file, and the internationalization attribute file includes: a unique identification of the message, a translation value, and a translation language.
In one embodiment, as shown in fig. 8, the international processing apparatus 300 further includes: a first judgment unit 3201 and a newly adding unit 3202.
A first judgment unit 3201 is configured to judge whether the translation language in the internationalization request exists in the internationalization language table.
An adding unit 3202, configured to add a new translation language in the internationalized language table if the translation language in the internationalized request does not exist in the internationalized language table.
In one embodiment, as shown in fig. 9, the international processing apparatus 300 further includes: a second determination unit 3203 and a creation unit 3204.
A second determining unit 3203, configured to determine whether an internationalized file corresponding to the internationalized attribute file exists.
A creating unit 3204, configured to create an internationalized file corresponding to the internationalized attribute file if the internationalized file corresponding to the internationalized attribute file does not exist.
In one embodiment, as shown in fig. 10, the international processing apparatus 300 further includes: a third judging unit 3205, a first table updating unit 3206, and a second table updating unit 3207.
A third determining unit 3205 is configured to determine a file type of the internationalized attribute file, where the file type includes a front-end internationalized attribute file, a back-end internationalized attribute file, and a menu internationalized attribute file.
A first table updating unit 3206, configured to update a message in the internationalized attribute file to an internationalized attribute table if the file type of the internationalized attribute file is a front-end internationalized attribute file or a back-end internationalized attribute file.
A second table updating unit 3207, configured to update a message in the menu internationalized attribute file to a menu table if the file type of the internationalized attribute file is the menu internationalized attribute file.
The adding unit 320 is configured to add the message in the internationalized attribute file to a message queue.
An updating unit 330, configured to acquire the message in the message queue, and update a corresponding internationalized file according to the message.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the apparatus 300 and the units may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
Fig. 11 is a schematic block diagram of an internationalization processing apparatus 400 according to an embodiment of the present invention. As shown in fig. 11, the present invention also provides an internationalization processing apparatus 400 corresponding to the above internationalization processing method. The internationalized processing apparatus 400 includes a unit for executing the internationalized processing method described above, and the apparatus may be configured in a management terminal. Specifically, referring to fig. 11, the internationalization processing apparatus 400 includes: an input unit 410 and a transmission unit 420.
An input unit 410, configured to receive an internationalization request input by an administrator, where the internationalization request includes an internationalization attribute file, and the internationalization attribute file includes: a unique identification of the message, a translation value, and a translation language.
A sending unit 420, configured to send the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
It should be noted that, as can be clearly understood by those skilled in the art, the detailed implementation process of the international processing apparatus 400 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The internationalized processing apparatus described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 12, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform an international processing method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can execute an international processing method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps: receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; adding the message in the internationalized attribute file into a message queue; and acquiring the message in the message queue, and updating the corresponding internationalized file according to the message.
In an embodiment, before the step of adding the message in the internationalized attribute file to the message queue is implemented, the processor 502 further implements the following steps: judging whether the translation language in the internationalization request exists in an internationalization language table; if the translation language in the internationalization request does not exist in the internationalization language table, adding the translation language in the internationalization language table.
In an embodiment, before the step of adding the message in the internationalized attribute file to the message queue is implemented, the processor 502 further implements the following steps: judging whether an internationalized file corresponding to the internationalized attribute file exists or not; and if the internationalized file corresponding to the internationalized attribute file does not exist, establishing the internationalized file corresponding to the internationalized attribute file.
In an embodiment, before the step of adding the message in the internationalized attribute file to the message queue is implemented, the processor 502 further implements the following steps: judging the file type of the internationalized attribute file, wherein the file type comprises a front-end internationalized attribute file, a rear-end internationalized attribute file and a menu internationalized attribute file; if the file type of the internationalized attribute file is a front-end internationalized attribute file or a back-end internationalized attribute file, updating the message in the internationalized attribute file to an internationalized attribute table; and if the file type of the internationalized attribute file is the menu internationalized attribute file, updating the message in the menu internationalized attribute file to a menu list.
In another embodiment, the processor 502 is configured to run a computer program 5032 stored in the memory to perform the following steps: receiving an internationalization request input by an administrator, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; and sending the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program comprises program instructions. The program instructions, when executed by the processor, cause the processor to perform the steps of: receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; adding the message in the internationalized attribute file into a message queue; and acquiring the message in the message queue, and updating the corresponding internationalized file according to the message.
In one embodiment, before executing the program instructions to implement the step of adding the message in the internationalized attribute file to the message queue, the processor further implements the steps of: judging whether the translation language in the internationalization request exists in an internationalization language table; if the translation language in the internationalization request does not exist in the internationalization language table, adding the translation language in the internationalization language table.
In one embodiment, before executing the program instructions to implement the step of adding the message in the internationalized attribute file to the message queue, the processor further implements the steps of: judging whether an internationalized file corresponding to the internationalized attribute file exists or not; and if the internationalized file corresponding to the internationalized attribute file does not exist, establishing the internationalized file corresponding to the internationalized attribute file.
In one embodiment, before executing the program instructions to implement the step of adding the message in the internationalized attribute file to the message queue, the processor further implements the steps of: judging the file type of the internationalized attribute file, wherein the file type comprises a front-end internationalized attribute file, a rear-end internationalized attribute file and a menu internationalized attribute file; if the file type of the internationalized attribute file is a front-end internationalized attribute file or a back-end internationalized attribute file, updating the message in the internationalized attribute file to an internationalized attribute table; and if the file type of the internationalized attribute file is the menu internationalized attribute file, updating the message in the menu internationalized attribute file to a menu list.
In another embodiment, the program instructions, when executed by the processor, cause the processor to perform the steps of: receiving an internationalization request input by an administrator, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message; and sending the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An internationalized processing method applied to a server is characterized by comprising the following steps:
receiving an internationalization request from a management terminal, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message;
adding the message in the internationalized attribute file into a message queue;
and acquiring the message in the message queue, and updating the corresponding internationalized file according to the message.
2. The internationalization processing method according to claim 1, wherein before adding the message in the internationalization attribute file to the message queue, the method further comprises:
judging whether the translation language in the internationalization request exists in an internationalization language table;
if the translation language in the internationalization request does not exist in the internationalization language table, adding the translation language in the internationalization language table.
3. The internationalization processing method according to claim 1, wherein before adding the message in the internationalization attribute file to the message queue, the method further comprises:
judging whether an internationalized file corresponding to the internationalized attribute file exists or not;
and if the internationalized file corresponding to the internationalized attribute file does not exist, establishing the internationalized file corresponding to the internationalized attribute file.
4. The internationalization processing method according to claim 1, wherein before adding the message in the internationalization attribute file to the message queue, the method further comprises:
judging the file type of the internationalized attribute file, wherein the file type comprises a front-end internationalized attribute file, a rear-end internationalized attribute file and a menu internationalized attribute file;
if the file type of the internationalized attribute file is a front-end internationalized attribute file or a back-end internationalized attribute file, updating the message in the internationalized attribute file to an internationalized attribute table;
and if the file type of the internationalized attribute file is the menu internationalized attribute file, updating the message in the menu internationalized attribute file to a menu list.
5. An internationalized processing method applied to a management terminal is characterized by comprising the following steps:
receiving an internationalization request input by an administrator, wherein the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message;
and sending the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
6. An internationalized processing apparatus applied to a server, comprising:
a receiving unit, configured to receive an internationalization request from a management terminal, where the internationalization request includes an internationalization attribute file, and the internationalization attribute file includes: a unique identification, translation value, and translation language of the message;
the adding unit is used for adding the message in the internationalized attribute file into a message queue;
and the updating unit is used for acquiring the message in the message queue and updating the corresponding internationalized file according to the message.
7. The internationalized processing apparatus as recited in claim 6, further comprising:
a first judgment unit configured to judge whether the translation language in the internationalization request exists in an internationalization language table;
and the newly added unit is used for newly adding the translation language in the internationalization language table if the translation language in the internationalization request does not exist in the internationalization language table.
8. An internationalized processing apparatus applied to a management terminal, comprising:
the system comprises an input unit, a monitoring unit and a control unit, wherein the input unit is used for receiving an internationalization request input by an administrator, the internationalization request comprises an internationalization attribute file, and the internationalization attribute file comprises: a unique identification, translation value, and translation language of the message;
and the sending unit is used for sending the internationalization request to a server so that the server updates the corresponding internationalized file according to the internationalized attribute file.
9. A computer device, comprising a memory and a processor coupled to the memory; the memory is used for storing a computer program; the processor is adapted to execute a computer program stored in the memory to perform the steps of the method according to any of claims 1-4 or to perform the steps of the method according to claim 5.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program comprising program instructions which, when executed by a processor, implement the steps of the method according to any one of claims 1-4, or implement the steps of the method according to claim 5.
CN201910936839.9A 2019-09-29 2019-09-29 Internationalization processing method and device, computer equipment and storage medium Pending CN110673920A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910936839.9A CN110673920A (en) 2019-09-29 2019-09-29 Internationalization processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910936839.9A CN110673920A (en) 2019-09-29 2019-09-29 Internationalization processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110673920A true CN110673920A (en) 2020-01-10

Family

ID=69080298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910936839.9A Pending CN110673920A (en) 2019-09-29 2019-09-29 Internationalization processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110673920A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111652003A (en) * 2020-06-09 2020-09-11 广东小天才科技有限公司 Language translation processing method, device, electronic equipment and medium
CN111767105A (en) * 2020-05-13 2020-10-13 北京奇艺世纪科技有限公司 Multi-language support system
CN111857906A (en) * 2020-06-03 2020-10-30 北京旷视科技有限公司 Text display method, device and system of terminal and storage medium
CN112685117A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 System language internationalization maintenance method, device and computer readable storage medium
CN112749543A (en) * 2020-12-22 2021-05-04 浙江吉利控股集团有限公司 Matching method, device, equipment and storage medium for information analysis process
CN113360061A (en) * 2021-05-25 2021-09-07 苏州众言网络科技股份有限公司 Language switching method and device
CN113992622A (en) * 2021-09-08 2022-01-28 上海易立德信息技术股份有限公司 Multi-template aggregation message notification sending system and method based on unified model
CN114821568A (en) * 2022-06-27 2022-07-29 深圳前海环融联易信息科技服务有限公司 Menu element extraction method and device, computer equipment and storage medium
CN115220722A (en) * 2022-08-05 2022-10-21 上海数策软件股份有限公司 Method, device, equipment and medium for back-end internationalization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135501A1 (en) * 2000-05-26 2003-07-17 Laurent Frerebeau System and method for internationalizing the content of markup documents in a computer system
CN102279847A (en) * 2011-08-17 2011-12-14 瑞斯康达科技发展股份有限公司 Method and device for internationalizing software system
CN104750472A (en) * 2013-12-31 2015-07-01 北京新媒传信科技有限公司 Resource bundle management method and device of terminal application
CN105956485A (en) * 2016-04-26 2016-09-21 深圳Tcl数字技术有限公司 Internationalized language management method and system
CN106598628A (en) * 2016-12-27 2017-04-26 竞技世界(北京)网络技术有限公司 Editing method and device of internationalized configuration files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030135501A1 (en) * 2000-05-26 2003-07-17 Laurent Frerebeau System and method for internationalizing the content of markup documents in a computer system
CN102279847A (en) * 2011-08-17 2011-12-14 瑞斯康达科技发展股份有限公司 Method and device for internationalizing software system
CN104750472A (en) * 2013-12-31 2015-07-01 北京新媒传信科技有限公司 Resource bundle management method and device of terminal application
CN105956485A (en) * 2016-04-26 2016-09-21 深圳Tcl数字技术有限公司 Internationalized language management method and system
CN106598628A (en) * 2016-12-27 2017-04-26 竞技世界(北京)网络技术有限公司 Editing method and device of internationalized configuration files

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767105A (en) * 2020-05-13 2020-10-13 北京奇艺世纪科技有限公司 Multi-language support system
CN111857906A (en) * 2020-06-03 2020-10-30 北京旷视科技有限公司 Text display method, device and system of terminal and storage medium
CN111857906B (en) * 2020-06-03 2022-02-01 北京旷视科技有限公司 Text display method, device and system of terminal and storage medium
CN111652003B (en) * 2020-06-09 2023-08-15 广东小天才科技有限公司 Language translation processing method, device, electronic equipment and medium
CN111652003A (en) * 2020-06-09 2020-09-11 广东小天才科技有限公司 Language translation processing method, device, electronic equipment and medium
CN112749543A (en) * 2020-12-22 2021-05-04 浙江吉利控股集团有限公司 Matching method, device, equipment and storage medium for information analysis process
CN112685117A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 System language internationalization maintenance method, device and computer readable storage medium
WO2022142035A1 (en) * 2020-12-29 2022-07-07 平安普惠企业管理有限公司 System language internationalization maintenance method, apparatus, and computer-readable storage medium
CN113360061A (en) * 2021-05-25 2021-09-07 苏州众言网络科技股份有限公司 Language switching method and device
CN113992622A (en) * 2021-09-08 2022-01-28 上海易立德信息技术股份有限公司 Multi-template aggregation message notification sending system and method based on unified model
CN113992622B (en) * 2021-09-08 2023-05-02 上海易立德信息技术股份有限公司 Multi-template aggregation message notification sending system and method based on unified model
CN114821568A (en) * 2022-06-27 2022-07-29 深圳前海环融联易信息科技服务有限公司 Menu element extraction method and device, computer equipment and storage medium
CN115220722A (en) * 2022-08-05 2022-10-21 上海数策软件股份有限公司 Method, device, equipment and medium for back-end internationalization

Similar Documents

Publication Publication Date Title
CN110673920A (en) Internationalization processing method and device, computer equipment and storage medium
KR102255138B1 (en) Message processing method and device, storage medium, and computer device
US20190251143A1 (en) Web page rendering method and related device
US20160072927A1 (en) Odata enabled mobile software applications
CN112632919B (en) Document editing method and device, computer equipment and storage medium
CN107203372B (en) Control display method and device
US20190050420A1 (en) Edit and share unsupported files through instantly generated preview
CN113688612A (en) Multimodal sharing of content between documents
CN109302449B (en) Data writing method, data reading device and server
CN111008032A (en) Page data updating method and device
CN112818654B (en) Message storage method, message generation method, device, electronic equipment and computer readable medium
CN107330087B (en) Page file generation method and device
CN107977277B (en) Method and device for integrating third-party system in ERP system and computer equipment
JP2020154491A (en) Communication support system and program
CN114385951A (en) Site content management method and device, computer equipment and storage medium
CN113536168B (en) Component processing method and device
CN113590033B (en) Information synchronization method and device of super fusion system
CN112487218B (en) Content processing method, system, device, computing equipment and storage medium
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
WO2018040439A1 (en) Document processing method and apparatus
CN112732388A (en) Configuration method of language configuration data table, multi-language configuration method and related device
CN112947918A (en) Data display method and device
US20160321226A1 (en) Insertion of unsaved content via content channel
CN111506644B (en) Application data processing method and device and electronic equipment
CN112905178A (en) Method, device, equipment and medium for generating business function page

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200110