CN113111666A - System and method for realizing multi-language translation of application program - Google Patents

System and method for realizing multi-language translation of application program Download PDF

Info

Publication number
CN113111666A
CN113111666A CN202110369864.0A CN202110369864A CN113111666A CN 113111666 A CN113111666 A CN 113111666A CN 202110369864 A CN202110369864 A CN 202110369864A CN 113111666 A CN113111666 A CN 113111666A
Authority
CN
China
Prior art keywords
language
application program
request message
subunit
identification
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
CN202110369864.0A
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN202110369864.0A priority Critical patent/CN113111666A/en
Publication of CN113111666A publication Critical patent/CN113111666A/en
Priority to PCT/CN2022/085469 priority patent/WO2022214012A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/263Language identification

Abstract

A system and method for realizing multi-language translation of application program adopts distributed network: the data resource management module is used for receiving, integrating, storing or/and managing language packages of different languages aiming at the application program; the identification analysis unit is used for receiving a request message for executing the application program, determining a rule for identifying the language identification according to an interactive protocol based on which the request message is analyzed, and identifying the language identification executed by the application program; the context analysis unit is used for acquiring and storing the language identifier executed by the application program; and the language analysis unit is used for identifying the file information to be translated in the execution process of the application program, acquiring a language package of a corresponding language according to the language identification executed by the application program acquired from the context analysis unit, and translating to obtain and provide the translated file information. Thus, efficient and accurate multilingual translation of an application is achieved.

Description

System and method for realizing multi-language translation of application program
Technical Field
The invention relates to the general application program technology in the technical field of information, in particular to a system and a method for realizing multi-language translation of an application program.
Background
In the field of information technology, in order to adapt an application to different regions and different language environments, multiple language translations of the application, that is, international translation (i 18n) of the application, are required, and international translation of the application refers to modifying the application to adapt to language differences of target markets of different regions. The common implementation mode of internationalized translation of an application is as follows: the method comprises the steps of extracting the file information in the application program, generating and storing independent language packages aiming at different languages according to the file information, acquiring the language packages corresponding to the languages according to the language set by a requester when the application program responds to an external request, generating the file information of the corresponding application program, embedding the file information into the corresponding position of the application program, and providing the obtained response information of the external request to the requester so that the application program is executed in the language environment set by the requester.
When the implementation mode is adopted, how to efficiently manage language package resources and how to effectively identify the language setting of a requester are the key points for efficiently and accurately implementing the multi-language translation of the application program, but the implementation mode cannot be implemented.
Disclosure of Invention
In view of this, embodiments of the present invention provide a system for implementing multilingual translation of an application, which can efficiently and accurately perform multilingual translation on the application.
The embodiment of the invention also provides a method for realizing the multi-language translation of the application program, which can efficiently and accurately carry out the multi-language translation on the application program.
The embodiment of the invention is realized as follows:
a system for implementing multiple language translations of an application, comprising: an identification analysis unit, a language analysis unit, a context analysis unit and a data resource management unit, wherein,
the data resource management module is used for receiving language packages of different languages aiming at the application program and carrying out integration, storage and/or management;
the identification analysis unit is used for receiving a request message for executing the application program sent by a requester, determining a rule for identifying the language identification according to an interaction protocol based on which the request message is analyzed, and identifying the language identification for executing the application program according to the rule for identifying the language identification;
the context analysis unit is used for acquiring and storing the language identifier for executing the application program in the identifier analysis unit;
the language analysis unit is used for identifying the to-be-translated file information in the application program in the execution process of the application program, acquiring a language package of a corresponding language of the application program in the data resource management unit according to the language identification of the application program, acquired from the context analysis unit, executed and translated to obtain the translated file information, embedded into the executed application program and used as response information to be sent to a requester.
Preferably, the system processes a plurality of request messages for executing different applications simultaneously;
the context parsing unit is further configured to maintain different language identifications of different languages, where the different language identifications of different languages correspond to application programs requested to be executed by different request messages.
Preferably, the data resource management unit includes: a resource configuration center subunit, a file resource subunit, and an integration resource subunit, wherein,
the resource configuration center subunit is used for receiving a plurality of language packages of different languages corresponding to the application program from different external sources;
the file resource subunit is used for receiving a plurality of language packages of different languages corresponding to the application program from a local source;
and the integrated resource subunit is used for integrating, storing or/and managing the language packages of the plurality of different languages of the application program, which are received by the resource configuration center subunit and the file resource subunit.
Preferably, the integrated resource subunit in the data resource management unit is further configured to set different priorities when managing language packages of different languages of the application program, where the different priorities are used for providing language packages of corresponding languages of the application program according to the set priorities.
Preferably, the identifier resolution unit comprises an interactive protocol identification subunit and a plurality of language identifier resolution subunits corresponding to different rules, wherein,
the interactive protocol identification subunit is used for receiving a request message for executing the application program, analyzing the request message to obtain an interactive protocol based on the request message, determining a rule for identifying a language identifier corresponding to the interactive protocol based on the interactive protocol, and then sending the request message to the language identifier analysis subunit corresponding to the rule;
the language identification analysis subunit corresponding to the rule is used for identifying and obtaining the language identification of the execution application program according to the corresponding rule;
the language identification parsing subunit of the corresponding rule at least comprises: the system comprises a request message head analysis subunit for executing an application program, a local data Cookie analysis subunit and/or a remote procedure call (Rpc) analysis subunit, wherein the local data Cookie analysis subunit and/or the remote procedure call (Rpc) analysis subunit are/is respectively used for obtaining a language identifier from a hypertext transfer protocol (HTTP) head parameter of the request message, obtaining the language identifier from a Cookie of an entity for receiving the request message and obtaining the language identifier from a requester for sending the request message in an Rpc mode.
A method of enabling multilingual translation of an application, the method comprising:
receiving a request message for executing an application program, determining a rule for identifying a language identifier according to an interactive protocol based on which the request message is analyzed, and identifying the language identifier for executing the application program according to the rule for identifying the language identifier;
executing the application program, identifying the file information to be translated in the application program executing process, and acquiring a stored language packet of a corresponding language according to the identified language identifier for executing the application program;
and according to the stored language packet of the corresponding language, executing translation to obtain translated file information, embedding the translated file information into the executed application program, and sending the file information as response information.
Preferably, the obtaining the stored language packs of the corresponding languages comprises:
receiving language packages of different languages of the application program from different sources in real time, and integrating, storing or/and managing the language packages;
setting different priorities corresponding to the language packages of different languages of the application program, and providing the language packages of the corresponding languages according to the set priorities;
and acquiring the language packages of the corresponding languages from the stored language packages of different languages.
Preferably, the recognizing the language identifier of the executing application according to the rule of recognizing the language identifier includes:
obtaining the language identifier from the HTTP header parameter of the request message;
or/and obtaining the language identification from the Cookie of the entity receiving the request message;
or/and obtaining the language identification from a requester sending the request message in an Rpc mode.
An apparatus for enabling multiple language translations of an application, comprising:
a memory; and a processor coupled to the memory, the processor configured to perform the above-described method of implementing multiple language translations of an application based on instructions stored in the memory.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method of implementing a multilingual translation of an application.
As can be seen from the above, the embodiment of the present invention implements multilingual translation of an application program by using a distributed network, where the distributed network includes an identifier parsing unit, a language parsing unit, a context parsing unit, and a data resource management unit, where the data resource management module is configured to receive language packages of different languages for the application program from different sources, and perform integration, storage, or/and management; the identification analysis unit is used for receiving a request message for executing the application program sent by a requester, determining a rule for identifying a language identification according to an interaction protocol based on which the request message is analyzed, identifying the language identification for executing the application program according to the rule for identifying the language identification, and determining a language environment for executing the application program; the context analysis unit is used for acquiring and storing the language identifier for executing the application program from the identifier analysis unit so as to call the language identifier in the execution process of the application program; the language analysis unit is used for identifying the to-be-translated file information in the application program execution process, acquiring a language package of a corresponding language from the data resource management unit according to the language identification of the application program execution acquired from the context analysis unit, acquiring the translated file information after translation, embedding the translated file information into the executed application program, and sending the translated file information to a requesting party as response information. Therefore, the embodiment of the invention can efficiently manage the language package resources and effectively identify the language setting of the requester, thereby realizing efficient and accurate multilingual translation of the application program.
Drawings
FIG. 1 is a schematic structural diagram of a system for implementing multiple language translations of an application according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data resource management unit according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an identifier resolution unit according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for implementing multiple language translations of an application according to an embodiment of the present invention;
fig. 5 is a diagram illustrating a specific example of a method for implementing multiple language translations of an application according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The technical solution of the present invention will be described in detail with specific examples. Several of the following embodiments may be combined with each other and some details of the same or similar concepts or processes may not be repeated in some embodiments.
From the background, it has been determined that in order to achieve efficient and accurate multilingual translation of an application, efficient management of the language package resources of the application and efficient identification of the language settings of the requestor is desirable. In order to solve these two problems, two schemes have been proposed to be implemented separately.
The first scheme, the patent application with the publication number of "CN 109683998A" and the name of "internationalized implementation method, device and system", includes: receiving an access request carrying target language information; determining service data in a request page of the access request in language configuration data stored in a cache; and responding to the access request, and returning the service data. The scheme extracts the language pack into independent resource service, realizes the centralized management of language pack resources, but the resource service still distinguishes different service subsystems, the resource utilization rate is not high, and when a plurality of subsystems have the same language entries, the plurality of subsystems still need to be maintained independently. Furthermore, the method cannot implement the degradation of the multi-language translation work of the application program, the resource service is required to be called every time the translation is carried out, the efficiency is not high, and when the whole resource service is down, the whole process also becomes an unavailable state.
In a second aspect, a patent application having a publication number of "CN 111177318A," entitled "a method, apparatus, and computer-readable storage medium for performing international business, includes: receiving a service request sent by a client; and inquiring the language type matched with the client according to a predefined language identification rule. And calling language text collections matched with the language types from the established text resource library. Acquiring a target file corresponding to the service request; querying a target language text matched with the text identifier in the target file in the language text set; and feeding back the target language text to the client. The scheme sets rules aiming at language identifications of different clients and different service requests so as to solve the problem of automatic adaptation of the application program in different language environments, but the scheme only aims at a data interaction protocol and cannot realize the adaptation of a multi-interaction protocol of the application program.
It can be seen from the above two schemes that, although how to manage the language package resources of the application program and how to recognize the language setting of the requesting party are separately proposed, both schemes have drawbacks, and cannot respectively and efficiently and dynamically manage the language package resources of the application program, and cannot realize accurate recognition of the execution language environment of the application program based on different interaction protocols.
Therefore, in order to solve the problem, in the embodiments of the present invention, a distributed network is adopted to implement multilingual translation of an application, and the distributed network includes an identifier parsing unit, a language parsing unit, a context parsing unit, and a data resource management unit, where the data resource management module is configured to receive language packages of different languages for the application from different sources, and perform integration, storage, or/and management; the identification analysis unit is used for receiving a request message for executing the application program sent by a requester, determining a rule for identifying a language identification according to an interaction protocol based on which the request message is analyzed, identifying the language identification for executing the application program according to the rule for identifying the language identification, and determining a language environment for executing the application program; the context analysis unit is used for acquiring and storing the language identifier for executing the application program from the identifier analysis unit so as to call the language identifier in the execution process of the application program; the language analysis unit is used for identifying the to-be-translated file information in the application program execution process, acquiring a language package of a corresponding language from the data resource management unit according to the language identification of the application program execution acquired from the context analysis unit, acquiring the translated file information after translation, embedding the translated file information into the executed application program, and sending the translated file information to a requesting party as response information. Therefore, the embodiment of the invention can efficiently manage the language package resources and effectively identify the language setting of the requester, thereby realizing efficient and accurate multilingual translation of the application program.
Therefore, the embodiment of the invention can efficiently manage the language package resources and effectively identify the language setting of the requester, thereby realizing the efficient and accurate multilingual translation of the application program.
In the embodiment of the invention, the identification analysis unit in the distributed network is provided with a uniform language identification analysis interface, and language identifications of a requesting party are respectively identified aiming at different interaction protocols of an application program, so that the current execution language environment of the application program can be identified and obtained; the distributed network also comprises a data resource management unit which is used for carrying out centralized management on the data resources of different languages of the application program; when the language identification suitable for the requesting party is obtained through identification, the distributed network acquires the language package resource corresponding to the language identification from the language package resources managed in a centralized mode, performs language translation corresponding to the language identification on the file information in the application program and provides the language translation for the requesting party.
Specifically, the embodiment of the invention can automatically identify the language environment in which the application program in the distributed network is located: when an executive party and a requester of an application program in a distributed network interact with each other, multiple interaction protocols are usually provided between the executive party and the requester, and the mode of a request message sent by the requester under different interaction protocols and the transmission mode of a language identifier of a language environment in which the application program requested by the request message is executed are different. In this case, the identifier parsing unit is provided with a uniform language identifier parsing interface, the uniform language identifier parsing interface parses out an interaction protocol based on which the request message is based, determines a rule for identifying the language identifier according to the interaction protocol, and identifies and obtains the language identifier of the currently executed application program according to the determined rule, so that the language identifier identification of the request message based on different interaction protocols is centrally managed, and the automatic identification of the currently executed language environment of the application program is realized.
The embodiment of the invention can carry out centralized management on the language packet data resources of the application program in the distributed network, and can dynamically issue and carry out language packet data resource management in a degradable way: the data resource management unit is provided with a uniform language packet data resource reading interface, can set priorities for the language packet data resources of different sources, integrates and stores the language packet data resources of different sources, and provides the integrated and stored data resources for the unit executing the application program to use subsequently, and the process can be real-time. Therefore, the interface is unified for acquiring the language packet data resources, the language packet data resources are integrated to realize centralized management, different priority settings can be adopted for different language packets to realize management degradation of the language packet data resources, and the language packet data resources are interacted with the language analysis unit to realize dynamic issuing of the language packet data resources of corresponding languages.
The embodiment of the invention realizes the automatic translation of the file information of the application program without coupling: by setting the context analysis unit and the language analysis unit, the language information related in the automatic translation process of the language information of the application program is intercepted, and the language packet data resource of the corresponding language is called for automatic translation, so that the execution of the application program is isolated, and the execution of the application program is not coupled with the multi-language translation of the application program.
Fig. 1 is a schematic structural diagram of a system for implementing multiple language translations of an application according to an embodiment of the present invention, where the system includes: an identification analysis unit, a language analysis unit, a context analysis unit and a data resource management unit, wherein,
the data resource management module is used for receiving language packages of different languages aiming at the application program and carrying out integration, storage and/or management;
the identification analysis unit is used for receiving a request message for executing the application program sent by a requester, determining a rule for identifying the language identification according to an interaction protocol based on which the request message is analyzed, and identifying the language identification for executing the application program according to the rule for identifying the language identification;
the context analysis unit is used for acquiring and storing the language identifier for executing the application program in the identifier analysis unit;
the language analysis unit is used for identifying the to-be-translated file information in the application program in the execution process of the application program, acquiring a language package of a corresponding language of the application program in the data resource management unit according to the language identification of the application program, acquired from the context analysis unit, executed and translated to obtain the translated file information, embedded into the executed application program and used as response information to be sent to a requester.
In the case where the system can process multiple request messages from the outside at the same time, the context resolution unit maintains different language identifications of different execution language environments of applications requested by different request messages, without limitation.
In the system, the integration, storage and/or management of language packages of different languages for the application program by the data resource management module can be real-time.
In the system, the data resource management unit is an abstract uniform interface, and different implementations can be realized for language packages of different languages adopted by an application program. Fig. 2 is a schematic structural diagram of a data resource management unit according to an embodiment of the present invention, including: a resource configuration center subunit, a file resource subunit, and an integration resource subunit, wherein,
the resource configuration center subunit is used for receiving a plurality of language packages of different languages corresponding to the application program from different external sources;
the file resource subunit is used for receiving a plurality of language packages of different languages corresponding to the application program from a local source; here, the local source may be a local resource database;
and the integrated resource subunit is used for integrating, storing or/and managing the language packages of the plurality of different languages of the application program, which are received by the resource configuration center subunit and the file resource subunit.
The data resource management unit may further extend to include another obtaining subunit, configured to receive, in real time, language packages of a plurality of different languages corresponding to the application program from other sources. The other acquiring subunit may be a database or a cache medium, etc.
Here, the integrated resource subunit may further perform any combination on all the acquired language packages of the plurality of different languages corresponding to the application program, perform management after the combination, set different priorities for the language packages of the different languages, provide the language package of the corresponding language with the highest priority according to the set priority when providing the language package of the corresponding language, and thereby implement centralized management and degradation management capability of the language package resources.
The language package corresponding to the application program in the integrated resource subunit and in the same language can be used by the language parsing unit when executing request messages from a plurality of different requesters for executing the application program, and can be dynamically updated in real time without influencing the execution of the application program, thereby avoiding the problem that the language package corresponding to the application program and in the same language is independently maintained and executed for different requesters.
The identifier parsing unit is essentially used for calling the language identifier set by the requester, and is an abstract interface, and different implementations can be realized for different interaction protocols. Fig. 3 is a schematic structural diagram of an identifier parsing unit according to an embodiment of the present invention, including: an interactive protocol identification subunit and a plurality of language identification parsing subunits corresponding to different rules, wherein,
the interactive protocol identification subunit is used for receiving a request message for executing the application program, analyzing the interactive protocol based on the obtained request message, determining a rule for identifying the language identifier corresponding to the interactive protocol based on the interactive protocol, and then sending the request message to the language identifier analysis subunit corresponding to the rule;
and the language identifier analysis subunit corresponding to the rule is used for identifying and obtaining the language identifier of the executed application program according to the corresponding rule to obtain the language environment executed by the application program.
The plurality of language identifier parsing subunits corresponding to different rules at least comprise a request message header parsing subunit for executing an application program, a local data (Cookie) parsing subunit and/or a remote procedure call (Rpc) parsing subunit, which are respectively used for obtaining a language identifier from a hypertext transfer protocol (HTTP) header parameter of the request message, obtaining the language identifier from a Cookie of an entity receiving the request message, and obtaining the language identifier from a requester sending the request message in an Rpc manner. Certainly, the linguistic identifier parsing subunits with a plurality of different rules can be further expanded to adapt to the rules for identifying the linguistic identifiers corresponding to other interactive protocols.
Here, the interaction protocol identification subunit is capable of parsing the interaction protocol based on which the request message is based, and determining the language identifier parsing subunit corresponding to different rules. The language identification analysis subunits corresponding to different rules are set for different interaction protocols in the distributed network, can be transversely expanded and automatically managed, and has no invasion to the execution logic of the application program.
In the system, the context parsing unit is used for storing the language identification of the currently executed application program, and is randomly called in the whole execution process of the application program. Mainly comprises the steps of translating the file information in the application program and transparently transmitting the language identification as a request parameter when the file information is interacted with a request party.
In the system, a language parsing unit is responsible for identifying the to-be-translated document information of an executed application program through a specific mode, such as annotation marks or message placeholders and the like, marked in the application program, and when response information is returned to a requesting party after the application program is executed, the language parsing unit executes translation and returns the response information by combining language package resources of corresponding languages and context positions of the translation document information in the application program.
Fig. 4 is a flowchart of a method for implementing multilingual translation of an application according to an embodiment of the present invention, where the method includes:
step 401, receiving a request message for executing an application program, determining a rule for identifying a language identifier according to an interaction protocol based on which the request message is analyzed, and identifying the language identifier for executing the application program according to the rule for identifying the language identifier;
step 402, executing the application program, identifying the to-be-translated file information in the application program in the execution process of the application program, and acquiring a stored language packet of a corresponding language according to the identified language identifier for executing the application program;
step 403, according to the stored language package of the corresponding language, executing translation to obtain translated file information, embedding the translated file information into the executed application program, and returning the file information as response information to the requesting party.
In the method, the obtaining the stored language package of the corresponding language includes:
receiving language packages of different languages aiming at the application programs from different sources, and integrating, storing and managing the language packages; the language packages of different languages aiming at the application programs from different sources can be received in real time, and real-time integration, real-time storage and real-time management are carried out;
and acquiring the language packages of the corresponding languages from the stored language packages of different languages.
Further, the managing further includes:
different priorities are set for language packs of different languages of the application program, and the language packs of the corresponding languages are provided according to the set priorities.
In the method, the identifying, according to the rule for identifying the language identifier, the language identifier of the execution language environment of the application program requested by the request message includes:
obtaining the language identifier from the HTTP header parameter of the request message;
or/and obtaining the language identification from the Cookie of the entity receiving the request message;
or/and obtaining the language identification from a requester sending the request message in an Rpc mode.
Fig. 5 is a schematic diagram of a specific example of a method for implementing multiple language translations of an application according to an embodiment of the present invention, which includes the following specific steps:
step 501, after the distributed network executing the application program is started, loading the existing language packages of different languages aiming at the application program for subsequent use;
in the step, language packages of different languages of the application program can be added or updated in real time in the running process of the distributed network;
step 502, the distributed network receives a request message for executing an application program;
in this step, the request message transmission may adopt an interactive protocol such as HTTP or RPC;
step 503, the identifier resolution unit in the distributed network intercepts the request message, and executes corresponding language identifier resolution according to the interactive protocol based on the request;
step 504, the mark analysis unit in the distributed network analyzes and finishes, obtains the language mark, and sends the language mark to the context analysis unit for storage for subsequent use;
step 505, the distributed network executes the application program;
in this step, if a request message for executing other application programs is also initiated in the execution process of the application program, the execution request message of other application programs is intercepted by adopting the steps, and the language identifier is added to the context analysis unit for storage;
step 506, obtaining response information after the distributed network executes the application program, judging whether the response information carries to-be-translated file information of the application program, and if so, executing step 507; if not, go to step 508;
step 507, according to the language identification stored in the context analysis unit, acquiring a stored language package of a corresponding language, according to the stored language package of the corresponding language, executing translation to obtain translated document information, and embedding the translated document information into an executed application program as response information;
step 508, sending the response information to the requestor.
Embodiments of the present application also provide a computer-readable storage medium storing instructions that, when executed by a processor, may perform the steps of the method for implementing multilingual translation of an application as described above. In practical applications, the computer readable medium may be included in the apparatus/device/system described in the above embodiments, or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method for implementing multiple language translations of an application described in the embodiments above. According to embodiments disclosed herein, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example and without limitation: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing, without limiting the scope of the present disclosure. In the embodiments disclosed herein, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The embodiment of the invention also provides electronic equipment, wherein the device for realizing the method in the embodiment of the application can be integrated.
Specifically, the method comprises the following steps:
the electronic device may include a processor of one or more processing cores, memory of one or more computer-readable storage media, and a computer program stored on the memory and executable on the processor. The above-described method of implementing multiple language translations of an application may be implemented when executing a program of the memory.
Specifically, in practical applications, the electronic device may further include a power supply, an input unit, an output unit, and other components. Those skilled in the art will appreciate that the configuration of the electronic device in the embodiments of the present invention is not intended to be limiting, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the processor is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, executes various functions of the server and processes data by executing or executing software programs and/or modules stored in the memory and calling data stored in the memory, thereby monitoring the electronic device as a whole.
The memory may be used to store software programs and modules, i.e., the computer-readable storage media described above. The processor executes various functional applications and data processing by executing software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The electronic equipment also comprises a power supply for supplying power to each component, and the power supply can be logically connected with the processor through the power management system, so that the functions of charging, discharging, power consumption management and the like can be managed through the power management system. The power supply may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The electronic device may further include an output unit that may be used to display information input by or provided to a user as well as various graphical user interfaces that may be made up of graphics, text, icons, video, and any combination thereof.
The flowchart and block diagrams in the figures of the present application illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments disclosed herein. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not explicitly recited in the present application. In particular, the features recited in the various embodiments and/or claims of the present application may be combined and/or coupled in various ways, all of which fall within the scope of the present disclosure, without departing from the spirit and teachings of the present application.
The principles and embodiments of the present invention are explained herein using specific examples, which are provided only to help understanding the method and the core idea of the present invention, and are not intended to limit the present application. It will be appreciated by those skilled in the art that changes may be made in this embodiment and its broader aspects and without departing from the principles, spirit and scope of the invention, and that all such modifications, equivalents, improvements and equivalents as may be included within the scope of the invention are intended to be protected by the claims.

Claims (10)

1. A system for implementing multiple language translations of an application, comprising: an identification analysis unit, a language analysis unit, a context analysis unit and a data resource management unit, wherein,
the data resource management module is used for receiving language packages of different languages aiming at the application program and carrying out integration, storage and/or management;
the identification analysis unit is used for receiving a request message for executing the application program sent by a requester, determining a rule for identifying the language identification according to an interaction protocol based on which the request message is analyzed, and identifying the language identification for executing the application program according to the rule for identifying the language identification;
the context analysis unit is used for acquiring and storing the language identifier for executing the application program in the identifier analysis unit;
the language analysis unit is used for identifying the to-be-translated file information in the application program in the execution process of the application program, acquiring a language package of a corresponding language of the application program in the data resource management unit according to the language identification of the application program, acquired from the context analysis unit, executed and translated to obtain the translated file information, embedded into the executed application program and used as response information to be sent to a requester.
2. The system of claim 1, wherein the system processes a plurality of request messages for execution of different applications simultaneously;
the context parsing unit is further configured to maintain different language identifications of different languages, where the different language identifications of different languages correspond to application programs requested to be executed by different request messages.
3. The system of claim 1, wherein the data resource management unit comprises: a resource configuration center subunit, a file resource subunit, and an integration resource subunit, wherein,
the resource configuration center subunit is used for receiving a plurality of language packages of different languages corresponding to the application program from different external sources;
the file resource subunit is used for receiving a plurality of language packages of different languages corresponding to the application program from a local source;
and the integrated resource subunit is used for integrating, storing or/and managing the language packages of the plurality of different languages of the application program, which are received by the resource configuration center subunit and the file resource subunit.
4. The system according to claim 1 or 3, wherein the integrated resource sub-unit in the data resource management unit is further configured to set different priorities when managing language packages of different languages of the application program, and the different priorities are provided according to the set priorities when providing language packages of corresponding languages of the application program.
5. The system of claim 1, wherein the identity resolution unit comprises an interactive protocol recognition subunit and a plurality of language identity resolution subunits corresponding to different rules, wherein,
the interactive protocol identification subunit is used for receiving a request message for executing the application program, analyzing the request message to obtain an interactive protocol based on the request message, determining a rule for identifying a language identifier corresponding to the interactive protocol based on the interactive protocol, and then sending the request message to the language identifier analysis subunit corresponding to the rule;
the language identification analysis subunit corresponding to the rule is used for identifying and obtaining the language identification of the execution application program according to the corresponding rule;
the language identification parsing subunit of the corresponding rule at least comprises: the system comprises a request message head analysis subunit for executing an application program, a local data Cookie analysis subunit and/or a remote procedure call (Rpc) analysis subunit, wherein the local data Cookie analysis subunit and/or the remote procedure call (Rpc) analysis subunit are/is respectively used for obtaining a language identifier from a hypertext transfer protocol (HTTP) head parameter of the request message, obtaining the language identifier from a Cookie of an entity for receiving the request message and obtaining the language identifier from a requester for sending the request message in an Rpc mode.
6. A method for implementing multiple language translations of an application, the method comprising:
receiving a request message for executing an application program, determining a rule for identifying a language identifier according to an interactive protocol based on which the request message is analyzed, and identifying the language identifier for executing the application program according to the rule for identifying the language identifier;
executing the application program, identifying the file information to be translated in the application program executing process, and acquiring a stored language packet of a corresponding language according to the identified language identifier for executing the application program;
and according to the stored language packet of the corresponding language, executing translation to obtain translated file information, embedding the translated file information into the executed application program, and sending the file information as response information.
7. The method of claim 6, wherein said obtaining the stored language packs in the corresponding languages comprises:
receiving language packages of different languages of the application program from different sources in real time, and integrating, storing or/and managing the language packages;
setting different priorities corresponding to the language packages of different languages of the application program, and providing the language packages of the corresponding languages according to the set priorities;
and acquiring the language packages of the corresponding languages from the stored language packages of different languages.
8. The method of claim 6, wherein identifying the language identification of the executing application according to the rule for identifying the language identification comprises:
obtaining the language identifier from the HTTP header parameter of the request message;
or/and obtaining the language identification from the Cookie of the entity receiving the request message;
or/and obtaining the language identification from a requester sending the request message in an Rpc mode.
9. An apparatus for implementing multiple language translations of an application, comprising:
a memory; and a processor coupled to the memory, the processor configured to perform the method of implementing multiple language translations of an application according to any of claims 6-8 based on instructions stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of carrying out a multilingual translation of an application according to any one of claims 6 to 8.
CN202110369864.0A 2021-04-07 2021-04-07 System and method for realizing multi-language translation of application program Pending CN113111666A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110369864.0A CN113111666A (en) 2021-04-07 2021-04-07 System and method for realizing multi-language translation of application program
PCT/CN2022/085469 WO2022214012A1 (en) 2021-04-07 2022-04-07 System and method for implementing multi-language translation of application program, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110369864.0A CN113111666A (en) 2021-04-07 2021-04-07 System and method for realizing multi-language translation of application program

Publications (1)

Publication Number Publication Date
CN113111666A true CN113111666A (en) 2021-07-13

Family

ID=76714389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110369864.0A Pending CN113111666A (en) 2021-04-07 2021-04-07 System and method for realizing multi-language translation of application program

Country Status (2)

Country Link
CN (1) CN113111666A (en)
WO (1) WO2022214012A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114912469A (en) * 2022-05-26 2022-08-16 东北农业大学 Information communication method for converting Chinese and English languages and electronic equipment
WO2022214012A1 (en) * 2021-04-07 2022-10-13 北京沃东天骏信息技术有限公司 System and method for implementing multi-language translation of application program, device and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271176A1 (en) * 2008-04-24 2009-10-29 International Business Machines Corporation Multilingual Administration Of Enterprise Data With Default Target Languages
WO2010062447A1 (en) * 2008-10-28 2010-06-03 Rti International Language translation system having multi-platform capabilities and associated method
US20120022851A1 (en) * 2010-07-23 2012-01-26 International Business Machines Corporation On-demand translation of application text
US20130346064A1 (en) * 2012-06-21 2013-12-26 International Business Machines Corporation Dynamic Translation Substitution
US20140136180A1 (en) * 2012-11-13 2014-05-15 Red Hat, Inc. Automatic translation of system messages
US20150006143A1 (en) * 2013-06-27 2015-01-01 Avaya Inc. Semantic translation model training
CN104346153A (en) * 2013-07-31 2015-02-11 国际商业机器公司 Method and system for translating text information of application programs
CN110414011A (en) * 2019-06-21 2019-11-05 北京三快在线科技有限公司 Multilingual translation device, method, electronic equipment and storage medium
US20200097553A1 (en) * 2018-09-25 2020-03-26 International Business Machines Corporation Cognitive translation service integrated with context-sensitive derivations for determining program-integrated information relationships

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928813A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Translation method and system for man/machine interaction interface of application program
CN104115141B (en) * 2011-11-25 2017-02-15 谷歌公司 Providing translation assistance in application localization
CN106940646A (en) * 2017-03-17 2017-07-11 微梦创科网络科技(中国)有限公司 A kind of International Software processing method, apparatus and system
CN108984170B (en) * 2017-06-02 2021-10-22 创新先进技术有限公司 H5 page multi-language rendering method and device
CN113111666A (en) * 2021-04-07 2021-07-13 北京沃东天骏信息技术有限公司 System and method for realizing multi-language translation of application program

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090271176A1 (en) * 2008-04-24 2009-10-29 International Business Machines Corporation Multilingual Administration Of Enterprise Data With Default Target Languages
WO2010062447A1 (en) * 2008-10-28 2010-06-03 Rti International Language translation system having multi-platform capabilities and associated method
US20120022851A1 (en) * 2010-07-23 2012-01-26 International Business Machines Corporation On-demand translation of application text
CN103038763A (en) * 2010-07-23 2013-04-10 国际商业机器公司 On-demand translation of application text
US20130346064A1 (en) * 2012-06-21 2013-12-26 International Business Machines Corporation Dynamic Translation Substitution
US20140136180A1 (en) * 2012-11-13 2014-05-15 Red Hat, Inc. Automatic translation of system messages
US20150006143A1 (en) * 2013-06-27 2015-01-01 Avaya Inc. Semantic translation model training
CN104346153A (en) * 2013-07-31 2015-02-11 国际商业机器公司 Method and system for translating text information of application programs
US20200097553A1 (en) * 2018-09-25 2020-03-26 International Business Machines Corporation Cognitive translation service integrated with context-sensitive derivations for determining program-integrated information relationships
CN110414011A (en) * 2019-06-21 2019-11-05 北京三快在线科技有限公司 Multilingual translation device, method, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
夏小云, 喻金平: "一种基于SOAP协议的XML数据传输的实现", 科技广场, no. 08 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022214012A1 (en) * 2021-04-07 2022-10-13 北京沃东天骏信息技术有限公司 System and method for implementing multi-language translation of application program, device and medium
CN114912469A (en) * 2022-05-26 2022-08-16 东北农业大学 Information communication method for converting Chinese and English languages and electronic equipment

Also Published As

Publication number Publication date
WO2022214012A1 (en) 2022-10-13

Similar Documents

Publication Publication Date Title
CN107508795B (en) Cross-container cluster access processing device and method
KR20220079958A (en) Blockchain message processing method and device, computer and readable storage medium
US8266630B2 (en) High-performance XML processing in a common event infrastructure
WO2022214012A1 (en) System and method for implementing multi-language translation of application program, device and medium
CN112395107A (en) Tax control equipment control method and device, storage medium and electronic equipment
CN111858083A (en) Remote service calling method and device, electronic equipment and storage medium
US20090055511A1 (en) Non-programmatic access to data and to data transfer functions
CN111221793A (en) Data mining method, platform, computer equipment and storage medium
CN110096381B (en) Method, device, equipment and medium for realizing remote procedure call
CN111008254A (en) Object creating method and device, computer equipment and storage medium
CN114489622A (en) Js application, electronic device, and storage medium
CN114201280A (en) Multimedia data processing method, device, equipment and storage medium
CN112104679A (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
US20180343216A1 (en) Context driven modification of attachments in a messaging session
US20050071422A1 (en) Method, system, and computer program product for an automation tool adapter for use with multiple different automation tools
US20120166648A1 (en) Apparatus and method for providing a service through sharing solution providing unit in cloud computing environment
CN112948138A (en) Method and device for processing message
CN114138371B (en) Configuration dynamic loading method and device, computer equipment and storage medium
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
WO2023045191A1 (en) Video stream obtaining method and apparatus, server, storage medium, and program product
KR101146742B1 (en) METHOD OF DISTRIBUTED SESSION MANAGEMENT IN SaaS AND SESSION MANAGEMENT SYSTEM THEROF
CN113691575A (en) Communication method, device and system
CN113779018A (en) Data processing method and device
CN114553806B (en) Optimization method, device and equipment for instant messaging and storage medium
CN113836405B (en) Information query method, device and computer readable storage 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