CN112579235A - Method, transcoding center, client, device and medium for internationalizing response data - Google Patents

Method, transcoding center, client, device and medium for internationalizing response data Download PDF

Info

Publication number
CN112579235A
CN112579235A CN202011492235.9A CN202011492235A CN112579235A CN 112579235 A CN112579235 A CN 112579235A CN 202011492235 A CN202011492235 A CN 202011492235A CN 112579235 A CN112579235 A CN 112579235A
Authority
CN
China
Prior art keywords
field
transcoding
response
server
content
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
CN202011492235.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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202011492235.9A priority Critical patent/CN112579235A/en
Publication of CN112579235A publication Critical patent/CN112579235A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/55Rule-based translation
    • G06F40/56Natural language generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention relates to a computer technology, and discloses a method, a transcoding center, a client, equipment and a medium for internationalizing response data, wherein the method for internationalizing response data comprises the following steps: receiving a response plaintext message and an identification code of an international language, wherein the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client; analyzing the response plaintext message to obtain the field content in the response plaintext message; and transcoding the field content according to the international language corresponding to the identification code, and sending a transcoding result obtained after transcoding to the server in a message form, so that the server can forward the transcoding result to the client. The invention has simple operation and efficient and flexible transcoding.

Description

Method, transcoding center, client, device and medium for internationalizing response data
Technical Field
The invention relates to the technical field of computers, in particular to a method, a transcoding center, a client, equipment and a medium for internationalizing response data.
Background
At present, due to the increasing demand of software internationalization, the iterative update of software is faster and faster, so that the content displayed by the software interactive interface needs to be modified frequently, for example, the response code is modified. In the prior art, a method for internationalizing response codes is to configure corresponding languages into attribute files according to different international areas, and comprises the following steps:
1. customizing Chinese content of the response codes, and customizing Chinese description content of various response codes;
2. translating the Chinese description content into a corresponding international regional language and compiling;
3. configuring the edited content one by one corresponding to the response codes to generate a corresponding attribute file of the international regional language;
4. after the application is started in different international areas, the response code is displayed on the interactive interface through local regional setting and attribute files.
The inventor realizes that the internationalization configuration of the response codes through the configuration attribute file is heavy, the application service needs to be restarted to be effective, the stable service is seriously influenced, and uncontrollable factors are easily introduced to operation and maintenance and operation work.
Disclosure of Invention
The invention aims to provide a method, a transcoding center, a client, equipment and a medium for internationalizing response data, and aims to enable the internationalized method of response codes to be simple and convenient to operate.
The invention provides a method for internationalizing response data, which is applied to a transcoding center and comprises the following steps:
receiving a response plaintext message and an identification code of an international language, wherein the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client;
analyzing the response plaintext message to obtain the field content in the response plaintext message;
and transcoding the field content according to the international language corresponding to the identification code, and sending a transcoding result obtained after transcoding to the server in a message form, so that the server can forward the transcoding result to the client.
The invention also provides another method for internationalizing response data, which is applied to a client and comprises the following steps:
sending request data and an identification code of the international language to a server so that the server can respond to the request data;
and receiving a transcoding result of the server in a message form of a transcoding center, analyzing the transcoding result of the message form, and displaying based on the analysis result, wherein the transcoding result is obtained after the transcoding center transcodes the request data and the response data according to the international language, and the response data is obtained after the server responds to the request data.
The present invention also provides a transcoding center, comprising:
the receiving module is used for receiving a response plaintext message and an identification code of the international language, the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client;
the analysis module is used for analyzing the response plaintext message to obtain the field content in the response plaintext message;
and the transcoding module is used for transcoding the field content according to the international language corresponding to the identification code, and sending a transcoding result obtained after transcoding to the server in a message form, so that the server can forward the transcoding result to the client.
The present invention also provides a client, including:
the sending module is used for sending the request data and the identification code of the international language to the server so that the server can respond to the request data;
and the analysis module is used for receiving a transcoding result in a message form of the server forwarding transcoding center, analyzing the transcoding result in the message form and displaying the transcoding result based on the analysis result, wherein the transcoding result is obtained by the transcoding center transcoding the request data and the response data according to the international language, and the response data is obtained by the server responding to the request data.
The present invention also provides a computer device comprising a memory and a processor connected to the memory, wherein the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the steps of the method for internationalizing response data as described above.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above-described method of internationalizing response data.
The invention has the beneficial effects that: the server performs logic processing on the request data to obtain response data, assembles a message according to the request data and the response data, and performs transcoding processing on the message according to a corresponding international language by the transcoding center, wherein the transcoding processing includes matching and transcoding response description contents corresponding to response codes in the message, transmitting a transcoding result to the client after passing through the server, and the client analyzes the transcoding result and displays the transcoding result based on the analysis result.
Drawings
FIG. 1 is a schematic diagram of an application environment of an embodiment of a method for internationalizing response data according to the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for internationalizing response data according to the present invention;
FIG. 3 is a flow chart illustrating another embodiment of a method for internationalizing response data according to the present invention;
fig. 4 is a schematic structural diagram of a transcoding center according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a client according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a hardware architecture of an embodiment of a computer device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the 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 should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an application environment of an embodiment of the method for internationalizing response data according to the present invention. The application environment diagram in this embodiment includes a terminal 1, a background server 2, and a transcoding center 3, where one transcoding center 3 may interface a plurality of servers 2:
1. a developer inputs request data at a client app of a terminal 1, encrypts the request data and then sends an encrypted message to a tomcat server 2;
2. the server 2 performs logic processing on the request data to obtain response data (namely success or failure), stores the request data and the response data to the mysql database, and meanwhile, the server 2 assembles the request data and the response data into a response plaintext message and sends the response plaintext message to the transcoding center 3;
3. the transcoding center 3 matches the response code and the response description content in the response plaintext message, and if the matching is successful, the response description information is transcoded into the content of the corresponding international regional language and sent to the server 2 so as to be displayed on the client.
Fig. 2 is a schematic flow chart illustrating an embodiment of a method for internationalizing response data according to the present invention. Taking the application of the method in the environment of fig. 1 as an example, the method includes:
step S1, receiving a response plaintext message and an identification code of international language sent by a server, wherein the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client;
and assembling a preset communication protocol message according to the request data and the response data to obtain a response plaintext message. The predetermined communication protocol message may be an http protocol message, but may also be other types of messages. The process of assembling the predetermined protocol message is as follows:
1. assembling the contents of a first field and a second field which describe system interaction in a predetermined protocol message according to the request data;
2. and assembling the contents of a third field and a fourth field describing the service in the predetermined protocol message according to the response data, and obtaining a response plaintext message after the assembly is completed, wherein the attributes of the first field and the third field are response codes corresponding to the response data, and the attributes of the second field and the fourth field are response description contents.
Step S2, analyzing the response plaintext message to obtain the field content in the response plaintext message;
analyzing the response plaintext message to obtain the field content in the response plaintext message comprises the following steps: and analyzing the response plaintext message according to a preset communication protocol, and acquiring the contents of a first field and a second field which describe system interaction and the contents of a third field and a fourth field which describe service in the response plaintext message.
The description content of the system interaction comprises success and failure, namely the first field is a response code of success or failure, and the second field is corresponding response description content of success or failure. The description content of the service includes success and failure, i.e. the third field is a response code of success or failure, and the fourth field is the corresponding response description content of success or failure. Taking an example that a predetermined communication protocol is an http protocol message, the first field is a response code responseCode, and the second field is a response description content responseMsg. The third field is the response code bizCode and the fourth field is the response description bizMsg.
If the request data has been received, the response code responseCode of the first field is a successful response code, e.g., "888", and the response of the second field describes the content responseMsg as "successful", e.g., "reception successful". Of course, if no request data is received, the first field is a failed response code and the second field describes the contents of the failed response, e.g., "reception failed".
If the response data is that the request data is successfully processed, the response code bizCode of the third field is a successful response code, for example, "666", and the response description content bizMsg of the fourth field is a successful response description content, for example, "account opening success".
And step S3, transcoding the field content according to the international language corresponding to the identification code, and sending the transcoding result obtained after transcoding to the server in a message form, so that the server can forward the transcoding result to the client.
Wherein, the transcoding center matches the field content to check whether the content of the first field is matched with the content of the second field, and whether the content of the third field is matched with the content of the fourth field, including:
matching the contents of the first field and the second field, and matching the contents of the third field and the fourth field;
if the two fields are matched, converting the content of the second field into the transcoding content corresponding to the international language, and converting the content of the fourth field into the transcoding content corresponding to the international language;
and sending the transcoding result of the transcoding content containing the first field, the second field, the third field and the fourth field to the server in a message form.
The method comprises the steps that pre-configured content of a plurality of pairs of first fields and second fields and content of a third field and a fourth field are stored in a transcoding center, in the transcoding process, the received content of the first fields and the second fields is matched with the stored content of the plurality of pairs of first fields and the second fields, if one pair of the stored content of the plurality of pairs of first fields and the second fields corresponds to the same content of the received content of the first fields and the second fields respectively, the matching indicates that the content of the first fields is matched with the content of the second fields, and otherwise, the matching indicates that the content of the first fields is not matched. Similarly, the process of matching the contents of the third field and the fourth field is the same as the process of matching the contents of the first field and the second field, and details are not repeated here.
And if the two fields are matched, converting the contents of the second field and the fourth field into corresponding transcoding contents of the international language, and then sending the transcoding result of the transcoding contents containing the first field and the second field, and the third field and the fourth field to the server in the form of a message. And the server forwards the transcoding result to the client.
The transcoding center of this embodiment carries out the platformization, according to the request data of different sources, carries out transcoding processing, accomplishes good adaptation and supports, supports the international demand of multisystem simultaneously, can reduce the cost in the international in-process.
Further, if the contents of the first field and the second field are not matched, or the contents of the third field and the fourth field are not matched, or the transcoding center is in an abnormal condition, the response plaintext message is sent to the server in an original state, and the server forwards the response plaintext message to the client.
In this embodiment, when the fields of the transcoding center are not matched or an abnormal situation occurs, the contents of the first field, the second field, the third field and the fourth field are all directly returned to the server.
The response code internationalization method does not need to configure an attribute file, is simple and convenient to operate, and is efficient and flexible in transcoding because the transcoding center is connected with one or more client systems in a butt joint mode.
In other embodiments, when adjusting a conversational scenario of response data, the server obtains an adjustment content, configures contents of a second field and a fourth field of the predetermined protocol packet based on the adjustment content, sends the configured contents of the second field and the fourth field to the transcoding center, and the transcoding center receives the configured contents of the second field and the fourth field and stores the received contents;
when a new response data is added to the dialog scenario, the server acquires new content, configures the content of the first field, the second field, the third field and the fourth field of the predetermined protocol packet based on the new content, sends the configured content of the first field, the second field, the third field and the fourth field to the transcoding center, and stores the configured content of the first field, the second field, the third field and the fourth field after the transcoding center receives the configured content of the first field, the second field, the third field and the fourth field.
In this embodiment, the conversational scenario may be adjusted or increased as needed by the service scenario. When the conversation scene needs to be adjusted or newly added, the contents of the first field to the fourth field of the server assembly message are correspondingly adjusted or newly added, and the transcoding center is configured according to the adjusted contents or newly added contents of the server, so that errors can not occur in the matching operation of the subsequent fields.
Adjusting the dialog scenario refers to that the response description content changes, but the response code does not change, for example, the response description content is "successful in warehousing" before; after adjustment, the method is 'finished warehousing, please continue transferring accounts'.
The new tactical scenario refers to a new response code and corresponding response description content, and if the response code and the response description content are ' 888+ warehousing success ', the response code and the response description content of the new tactical scenario are ' 999+ warehousing operation completion ', and account opening completion '.
The embodiment performs corresponding configuration or adjustment on the adjusted call scenario or the newly added call scenario in the server and the transcoding center, the configuration or adjustment can be effective, the response timeliness is high, the application does not need to be restarted, the operation and maintenance risk is reduced, the system stability is ensured, and the application flexibility can be improved.
The present invention also provides another method for internationalizing response data, and referring to fig. 3, it is a schematic flow chart of another embodiment of the method for internationalizing response data according to the present invention. Taking the application of the method in the environment of fig. 1 as an example, the method includes:
step S10, sending request data and identification codes of international language to a server for the server to respond to the request data;
when a user operates on a client, the request data and the identification code of the international language are sent to a server, furthermore, in order to improve the security of the data, the client encrypts the request data by using a preset encryption algorithm and sends the request data to the server in the form of a message, and the server acquires a decryption algorithm corresponding to the client and decrypts the message to obtain the request data.
The predetermined encryption algorithm is, for example, an RSA encryption algorithm, but may be other encryption algorithms; the message is a POST request message of the http protocol, and may be other types of messages. Taking an RSA encryption algorithm and an http protocol message as an example, after the application program client inputs request data on an interface, the client encapsulates the http protocol message based on the request data, encrypts the message by using the RSA encryption algorithm, that is, encrypts the message by using a public key, and sends the encrypted message to the server. And after receiving the message in an http mode, the server acquires a private key corresponding to the client from the key bank, decrypts the message and obtains request data in a plaintext form.
Further, the server logically judges the request data, calls a corresponding interface to logically process the request data, takes the request data as account opening data as an example, logically judges the account opening data, comprises analysis and judgment on information such as client age, area, identity attribution, wind control information and the like, determines whether account opening is performed or not, type of account opening and the like, if the account opening and the type of account opening are determined, calls the corresponding account opening interface to logically process, executes logic processing operation of account opening, and finally obtains response data of successful account opening; if the account is determined not to be opened, calling the corresponding interface not to be opened for logic processing, executing the logic processing operation not to be opened, and finally obtaining response data of account opening failure.
Step S20, receiving a transcoding result of a message form of the server forwarding transcoding center, analyzing the transcoding result of the message form, and displaying based on the analysis result, wherein the transcoding result is obtained after the transcoding center transcodes the request data and the response data according to the international language, and the response data is obtained after the server responds to the request data.
The method comprises the steps that a client analyzes a transcoding result in a message form and displays the transcoding result based on the analysis result, and specifically comprises the following steps:
analyzing the transcoding result in the message form to obtain the contents of a first field and a second field describing system interaction and the contents of a third field and a fourth field describing service, wherein the attributes of the first field and the third field are response codes corresponding to the response data, and the attributes of the second field and the fourth field are response description contents;
the description content of the system interaction comprises success and failure, namely the first field is a response code of success or failure, and the second field is corresponding response description content of success or failure. The description content of the service comprises success and failure, namely the third field is a response code of success or failure, and the fourth field is the corresponding response description content of success or failure;
analyzing whether the contents of the first field and the third field are both successful response codes;
if the contents of the first field and the third field are both successful response codes, analyzing whether the content of the fourth field is the transcoding content corresponding to the international language;
if the content of the fourth field is the transcoding content corresponding to the international language, displaying the transcoding content of the fourth field on an interface of the client;
and if the content of the first field is not the successful response code, displaying the content of the second field on the interface of the client.
When the content of the first field in the message is a successful response code, and the content of the third field is a successful response code, the success of the service is indicated, the success of the service inevitably indicates that the system interaction is successful, and the successful second field of the description system does not need to be displayed at this time, and the response description content transcoded into the fourth field corresponding to the international language is directly displayed.
Further, if the content of the first field in the transcoding result is not a successful response code, displaying the content of the second field on an interface of the client.
When the content of the first field is not a successful response code, it indicates that the system interaction fails, and at this time, it is not necessary to analyze whether the content of the third field is a successful response code, and directly display the content of the second field on the interface of the client, where the content of the second field may be response description content that has been transcoded into a corresponding international language, such as "system error".
In addition, when the server returns the response plaintext message as it is, the interface of the client side shows the non-transcoded content, for example, the response description content showing the non-transcoded fourth field.
In the embodiment, the client sends the request data and the identification code of the international language to the server, the server performs logic processing on the request data to obtain the response data, the message is assembled according to the request data and the response data, the transcoding center performs transcoding processing on the message according to the corresponding international language, the client receives the transcoding result of the transcoding center forwarded by the server, analyzes the transcoding result and displays the transcoding result based on the analysis result.
In an embodiment, the present invention provides a transcoding center, as shown in fig. 4, which is a schematic structural diagram of the transcoding center of the present invention, including:
the receiving module 101 is configured to receive a response plaintext message and an identification code of an international language, where the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client;
the analyzing module 102 is configured to analyze the response plaintext packet to obtain field content in the response plaintext packet;
and the transcoding module 103 is configured to transcode the field content according to the international language corresponding to the identification code, and send a transcoding result obtained after transcoding to the server in a form of a message, so that the server forwards the transcoding result to the client.
The specific limitations of the transcoding center can be referred to the limitations of the response data internationalization method above, and are not described herein again. The various modules in the transcoding center described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In an embodiment, the present invention provides a client, as shown in fig. 5, which is a schematic structural diagram of the client according to the present invention, including:
a sending module 201, configured to send request data and an identifier of an international language to a server, so that the server responds to the request data;
the analysis module 202 is configured to receive a transcoding result in a message form forwarded by the server to the transcoding center, analyze the transcoding result in the message form, and display the transcoding result based on the analysis result, where the transcoding result is obtained after the transcoding center transcodes the request data and the response data according to the international language, and the response data is obtained after the server responds to the request data.
The specific definition of the client can be referred to the above definition of the response data internationalization method, and is not described herein again. The modules of the client can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance. The Computer device may be a PC (Personal Computer), or a smart phone, a tablet Computer, a Computer, or a server group consisting of a single network server and a plurality of network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing, where cloud computing is one of distributed computing, and is a super virtual Computer consisting of a group of loosely coupled computers.
As shown in fig. 6, the computer device may include, but is not limited to, a memory 11, a processor 12, and a network interface 13, which are communicatively connected to each other through a system bus, wherein the memory 11 stores a computer program that is executable on the processor 12. It should be noted that fig. 6 only shows a computer device with components 11-13, but it should be understood that not all of the shown components are required to be implemented, and more or fewer components may be implemented instead.
The memory 11 may include, among other things, non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM). In this embodiment, the readable storage medium of the memory 11 is generally used for storing an operating system and various types of application software installed in the computer device, for example, program codes of a computer program in an embodiment of the present invention. Further, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be, in some embodiments, a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip, and is used for executing program codes stored in the memory 11 or Processing data, such as executing computer programs.
The network interface 13 may comprise a standard wireless network interface, a wired network interface, and the network interface 13 is generally used for establishing communication connection between the computer device and other electronic devices.
The computer program is stored in the memory 11 and includes at least one computer readable instruction stored in the memory 11, which is executable by the processor 12 to implement the method for internationalizing response data of the embodiments of the present application.
In one embodiment, the present invention provides a computer-readable storage medium, which may be a non-volatile and/or volatile memory, having stored thereon a computer program, which when executed by a processor, implements the steps of the method for responding to data internationalization in the above embodiments, such as steps S1 to S3 shown in fig. 2, or steps S10 to S20 shown in fig. 3. Alternatively, the computer program, when executed by the processor, implements the functions of each module/unit of the system responding to data internationalization in the above-described embodiment, for example, the functions of the modules 101 to 103 shown in fig. 4, or the functions of the modules 201 to 202 shown in fig. 5. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for internationalizing response data is applied to a transcoding center and is characterized by comprising the following steps:
receiving a response plaintext message and an identification code of an international language, wherein the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client;
analyzing the response plaintext message to obtain the field content in the response plaintext message;
and transcoding the field content according to the international language corresponding to the identification code, and sending a transcoding result obtained after transcoding to the server in a message form, so that the server can forward the transcoding result to the client.
2. The method according to claim 1, wherein the step of parsing the response plaintext packet to obtain the field content in the response plaintext packet specifically comprises:
analyzing the response plaintext message according to a predetermined communication protocol, and acquiring contents of a first field and a second field describing system interaction and contents of a third field and a fourth field describing service in the response plaintext message, wherein attributes of the first field and the third field are response codes corresponding to the response data, and attributes of the second field and the fourth field are response description contents.
3. The method for internationalizing response data according to claim 2, wherein the step of transcoding the field content according to the international language corresponding to the identification code and sending a transcoding result obtained after transcoding to the server in a form of a message specifically comprises:
matching the contents of the first field and the second field, and matching the contents of the third field and the fourth field;
if the two fields are matched, converting the content of the second field into the transcoding content corresponding to the international language, and converting the content of the fourth field into the transcoding content corresponding to the international language;
and sending the transcoding result of the transcoding content containing the first field, the second field, the third field and the fourth field to the server in a message form.
4. The method according to claim 3, wherein the step of transcoding the field content according to the international language corresponding to the identification code and sending a transcoding result obtained after transcoding to the server in a form of a message further comprises:
and if the contents of the first field and the second field are not matched, or the contents of the third field and the fourth field are not matched, or the transcoding center has an abnormal condition, sending the response plaintext message to the server directly.
5. A method for internationalizing response data is applied to a client and is characterized by comprising the following steps:
sending request data and an identification code of the international language to a server so that the server can respond to the request data;
and receiving a transcoding result of the server in a message form of a transcoding center, analyzing the transcoding result of the message form, and displaying based on the analysis result, wherein the transcoding result is obtained after the transcoding center transcodes the request data and the response data according to the international language, and the response data is obtained after the server responds to the request data.
6. The method according to claim 5, wherein the steps of receiving the transcoding result in the form of a message forwarded by the server to a transcoding center, analyzing the transcoding result in the form of a message, and displaying the transcoding result based on the analysis result include:
analyzing the transcoding result in the message form to obtain the contents of a first field and a second field describing system interaction and the contents of a third field and a fourth field describing service, wherein the attributes of the first field and the third field are response codes corresponding to the response data, and the attributes of the second field and the fourth field are response description contents;
analyzing whether the contents of the first field and the third field are both successful response codes;
if the contents of the first field and the third field are both successful response codes, analyzing whether the content of the fourth field is the transcoding content corresponding to the international language;
if the content of the fourth field is the transcoding content corresponding to the international language, displaying the transcoding content of the fourth field on an interface of the client;
and if the content of the first field is not the successful response code, displaying the content of the second field on the interface of the client.
7. A transcoding center, comprising:
the receiving module is used for receiving a response plaintext message and an identification code of the international language, the response plaintext message is assembled according to request data of a client and response data of the server, the server responds to the request data to obtain the response data, and the identification code of the international language is determined according to the client;
the analysis module is used for analyzing the response plaintext message to obtain the field content in the response plaintext message;
and the transcoding module is used for transcoding the field content according to the international language corresponding to the identification code, and sending a transcoding result obtained after transcoding to the server in a message form, so that the server can forward the transcoding result to the client.
8. A client, comprising:
the sending module is used for sending the request data and the identification code of the international language to the server so that the server can respond to the request data;
and the analysis module is used for receiving a transcoding result in a message form of the server forwarding transcoding center, analyzing the transcoding result in the message form and displaying the transcoding result based on the analysis result, wherein the transcoding result is obtained by the transcoding center transcoding the request data and the response data according to the international language, and the response data is obtained by the server responding to the request data.
9. A computer arrangement comprising a memory and a processor connected to the memory, the memory having stored therein a computer program operable on the processor, wherein the processor, when executing the computer program, implements the steps of a method of internationalizing response data according to any one of claims 1 to 4, or implements the steps of a method of internationalizing response data according to any one of claims 5 to 6.
10. A computer-readable storage medium, having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, is adapted to carry out the steps of the method for internationalizing response data according to one of the claims 1 to 4, or the steps of the method for internationalizing response data according to one of the claims 5 to 6.
CN202011492235.9A 2020-12-16 2020-12-16 Method, transcoding center, client, device and medium for internationalizing response data Pending CN112579235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011492235.9A CN112579235A (en) 2020-12-16 2020-12-16 Method, transcoding center, client, device and medium for internationalizing response data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011492235.9A CN112579235A (en) 2020-12-16 2020-12-16 Method, transcoding center, client, device and medium for internationalizing response data

Publications (1)

Publication Number Publication Date
CN112579235A true CN112579235A (en) 2021-03-30

Family

ID=75135633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011492235.9A Pending CN112579235A (en) 2020-12-16 2020-12-16 Method, transcoding center, client, device and medium for internationalizing response data

Country Status (1)

Country Link
CN (1) CN112579235A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220722A (en) * 2022-08-05 2022-10-21 上海数策软件股份有限公司 Method, device, equipment and medium for back-end internationalization

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415249B1 (en) * 2000-03-01 2002-07-02 International Business Machines Corporation Method and system for using machine translation with content language specification
CN1602482A (en) * 2001-10-11 2005-03-30 电子湾有限公司 System and method to facilitate translation of communications between entities over a network
JP2008017034A (en) * 2006-07-04 2008-01-24 Canon Inc Apparatus and method for automatic module unloading program, and recording medium
CN103544209A (en) * 2013-08-26 2014-01-29 深圳市融创天下科技股份有限公司 Method and system for web page access
CN104199812A (en) * 2014-08-18 2014-12-10 中国建设银行股份有限公司 Data system and method supporting multiple languages
CN104808970A (en) * 2014-01-23 2015-07-29 深圳中兴网信科技有限公司 Method and system for realizing internationalized software
CN109683998A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Internationalize implementation method, device and system
CN109871251A (en) * 2019-01-17 2019-06-11 平安科技(深圳)有限公司 A kind of processing method of response data, device, storage medium and terminal device
CN110858226A (en) * 2018-08-07 2020-03-03 北京京东尚科信息技术有限公司 Conversation management method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6415249B1 (en) * 2000-03-01 2002-07-02 International Business Machines Corporation Method and system for using machine translation with content language specification
CN1602482A (en) * 2001-10-11 2005-03-30 电子湾有限公司 System and method to facilitate translation of communications between entities over a network
JP2008017034A (en) * 2006-07-04 2008-01-24 Canon Inc Apparatus and method for automatic module unloading program, and recording medium
CN103544209A (en) * 2013-08-26 2014-01-29 深圳市融创天下科技股份有限公司 Method and system for web page access
CN104808970A (en) * 2014-01-23 2015-07-29 深圳中兴网信科技有限公司 Method and system for realizing internationalized software
CN104199812A (en) * 2014-08-18 2014-12-10 中国建设银行股份有限公司 Data system and method supporting multiple languages
CN109683998A (en) * 2017-10-19 2019-04-26 北京京东尚科信息技术有限公司 Internationalize implementation method, device and system
CN110858226A (en) * 2018-08-07 2020-03-03 北京京东尚科信息技术有限公司 Conversation management method and device
CN109871251A (en) * 2019-01-17 2019-06-11 平安科技(深圳)有限公司 A kind of processing method of response data, device, storage medium and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220722A (en) * 2022-08-05 2022-10-21 上海数策软件股份有限公司 Method, device, equipment and medium for back-end internationalization

Similar Documents

Publication Publication Date Title
CN108833521B (en) Message pushing method, device, system, computer equipment and storage medium
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
CN108833265B (en) Message processing method, device, server and storage medium
EP3319267A1 (en) Wireless system access control method and device
CN110908778B (en) Task deployment method, system and storage medium
WO2020248375A1 (en) Method and system for synchronizing data between databases, computer device and storage medium
CN112367164B (en) Service request processing method and device, computer equipment and storage medium
CN111182065A (en) Message processing method and device based on MQTT protocol and computer equipment
CN111177776A (en) Multi-tenant data isolation method and system
CN109286933B (en) Authentication method, device, system, computer equipment and storage medium
CN108052550B (en) Annuity data receiving method and device, computer equipment and storage medium
CN111885516A (en) Multi-channel access short message configuration method and device, computer equipment and storage medium
CN112468540A (en) Data distribution method, device and medium based on cloud platform
CN110717156A (en) Identity authentication method, system, computer device and storage medium
CN112416391A (en) System upgrading method and device, computer equipment and storage medium
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN112579235A (en) Method, transcoding center, client, device and medium for internationalizing response data
CN108881320B (en) Authentication processing method for user login, server and client
WO2023045676A1 (en) Task processing method and gateway, computer readable storage medium, and electronic device
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN107294800B (en) Network data access control method and system based on mobile operating system
CN113064658B (en) Copying method, copying device, copying equipment and computer readable storage medium for configuration data
US10038604B2 (en) Processing method and apparatus for signaling tracing
CN112714148A (en) Interface configuration method, device, equipment and medium

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