CN113111666B - 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
CN113111666B
CN113111666B CN202110369864.0A CN202110369864A CN113111666B CN 113111666 B CN113111666 B CN 113111666B CN 202110369864 A CN202110369864 A CN 202110369864A CN 113111666 B CN113111666 B CN 113111666B
Authority
CN
China
Prior art keywords
language
application program
identification
subunit
request message
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.)
Active
Application number
CN202110369864.0A
Other languages
Chinese (zh)
Other versions
CN113111666A (en
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/CN113111666B/en
Publication of CN113111666A publication Critical patent/CN113111666A/en
Priority to PCT/CN2022/085469 priority patent/WO2022214012A1/en
Application granted granted Critical
Publication of CN113111666B publication Critical patent/CN113111666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A system and method for implementing multi-language translation of an application program, using a distributed network: the data resource management module is used for receiving language packages of different languages for the application program, integrating, storing or/and managing; 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 interaction 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 identification executed by the application program; the language analysis unit is used for identifying the information of the to-be-translated version in the execution process of the application program, acquiring a language package of a corresponding language according to the language identification of the application program execution acquired from the context analysis unit, translating the language package to obtain the translated version information, and providing the translated version information. In this way, efficient and accurate multi-language translation of applications is achieved.

Description

System and method for realizing multi-language translation of application program
Technical Field
The invention relates to application program general technology in the field of information technology, 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 make an application program suitable for different regions and different language environments, multi-language translation of the application program, that is, internationalization translation (Internationalization, i18n for short) of the application program is required, and internationalization translation of the application program refers to modifying the application program so as to adapt to language differences of target markets in different regions. The general implementation mode of the internationalized translation of the application program is as follows: extracting the text information in the application program, generating and storing independent language packages for different languages according to the text information, acquiring the language package of the corresponding language according to the language set by the requester when the application program responds to the external request, generating the text information of the corresponding application program, embedding the text information into the corresponding position of the application program, and providing the response information of the obtained external request for the requester so that the application program can execute in the language environment set by the requester.
When the implementation mode is adopted for carrying out multi-language translation, how to efficiently manage language package resources and how to effectively identify language settings of a requester is a key point of efficiently and accurately implementing multi-language translation of an application program, but the implementation mode cannot be implemented.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a system for implementing multi-language translation of an application program, which can efficiently and accurately perform multi-language translation of the application program.
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 of the application program.
The embodiment of the invention is realized as follows:
A system for implementing multi-lingual translation of an application program, 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 for the application program and integrating, storing and/or managing the language packages;
The identification analysis unit is used for receiving a request message for executing the application program sent by a request party, 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 identification for executing the application program in the identification analysis unit;
The language analysis unit is used for identifying the information of the to-be-translated version in the execution process of the application program, acquiring a language packet of the corresponding language of the application program in the data resource management unit according to the language identification of the execution of the application program acquired from the context analysis unit, executing translation to obtain translated text information, embedding the translated text information into the executed application program, and sending the translated text information to a requester as response information.
Preferably, the system processes request messages of a plurality of executing different application programs simultaneously;
the context analysis unit is further configured to maintain different language identifiers of different languages, where the different language identifiers of different languages correspond to applications requested to be executed by different request messages.
Preferably, the data resource management unit includes: a resource allocation center subunit, a file resource subunit, and an integrated resource subunit, wherein,
A resource allocation central subunit, configured to receive language packages of a plurality of different languages corresponding to the application program from different external sources;
a file resource subunit, configured to receive language packages of a plurality 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 a plurality of different languages of the application program, which are received by the resource allocation 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, where the different priorities are provided according to the set priorities when providing language packages of corresponding languages of the application.
Preferably, the identification analysis unit comprises an interactive protocol recognition subunit and a plurality of language identification analysis subunits corresponding to different rules, wherein,
The interactive protocol identification subunit is used for receiving the request message of the execution application program, analyzing the interactive protocol based on the request message, determining the rule of the identification language identification corresponding to the based interactive protocol, and then sending the request message to the language identification analysis subunit corresponding to the rule;
The language identification analysis subunit of the corresponding rule is used for identifying and obtaining the language identification of the execution application program according to the corresponding rule;
The language identification analysis subunit of the corresponding rule at least comprises: the system comprises a request message header analysis subunit for executing an application program, a local data Cookie analysis subunit stored in a terminal and/or a remote procedure call Rpc analysis subunit, wherein the request message header analysis subunit, the local data Cookie analysis subunit and/or the remote procedure call Rpc analysis subunit 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 a Rpc mode.
A method of implementing multi-language 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 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;
Executing the application program, identifying the information of the to-be-translated version in the application program in the execution process of the application program, and acquiring a stored language package of the corresponding language according to the identified language identification for executing the application program;
according to the stored language package of the corresponding language, executing translation to obtain translated document information, embedding the translated document information into the executed application program, and sending the translated document information as response information.
Preferably, the acquiring the stored language package of the corresponding language includes:
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 language packages of different languages of the application program, and providing according to the set priorities when providing the language packages of the corresponding languages;
And acquiring the language package of the corresponding language from the stored language packages of different languages.
Preferably, the identifying the language identifier of the application program according to the rule for identifying the language identifier includes:
obtaining the language identifier from HTTP header parameters 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 a Rpc mode.
An apparatus for implementing multi-language translation of an application program, comprising:
A memory; and a processor coupled to the memory, the processor configured to perform the method of implementing multi-language translation of an application program described above based on instructions stored in the memory.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the method of implementing multi-language translation of an application program as described above.
As seen above, the embodiment of the present invention adopts a distributed network to implement multi-language translation of an application program, 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 integrate, store, or/and manage the language packages; the identification analysis unit is used for receiving a request message for executing the application program sent by a request party, determining a rule for identifying the 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 the language environment executed by the application program; the context analysis unit is used for acquiring and storing the language identification of the application program from the identification analysis unit so as to call the language identification in the execution process of the application program; the language analysis unit is used for identifying the information of the to-be-translated version in the application program execution process, acquiring a language package of the corresponding language from the data resource management unit according to the language identification of the application program execution acquired from the context analysis unit, executing translation to acquire translated version information, embedding the translated version information into the executed application program, and transmitting the translated version information to a requester as response information. Therefore, the embodiment of the invention can efficiently manage the language package resources and effectively identify the language setting of the requesting party, thereby realizing the efficient and accurate multi-language translation of the application program.
Drawings
FIG. 1 is a schematic diagram of a system for implementing multi-language translation of an application program 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 parsing unit according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for implementing multi-language translation of an application program according to an embodiment of the present invention;
Fig. 5 is a schematic diagram of a specific example of a method for implementing multi-language translation of an application according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
From the background, it can be determined that in order to achieve efficient and accurate multi-language translation of an application, efficient management of language package resources of the application and efficient identification of language settings of a requesting party is required. In order to solve these two problems, two solutions have been proposed to be implemented separately.
In a first aspect, the patent application with the bulletin number of "CN109683998a" and the name of "internationalization implementing method, apparatus 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. According to the scheme, the language package is extracted into independent resource service, so that centralized management of language package resources is realized, but different service subsystems are still distinguished in the resource service, the resource utilization rate is low, and when a plurality of subsystems have the same language entry, independent maintenance is still needed. Furthermore, the degradation of the multi-language translation work of the application program cannot be carried out in the mode, the resource service needs to be called for each translation, the efficiency is low, and when the whole resource service is down, the whole process also becomes unavailable.
In a second aspect, a patent application with a bulletin number of "CN111177318a" entitled "a method, an apparatus, and a computer-readable storage medium for performing internationalized service" includes: receiving a service request sent by a client; according to the predefined language identification rule, inquiring the language type matched with the client. And calling the language text set matched with the language type from the established text resource library. Acquiring a target file corresponding to a service request; inquiring target language text matched with text identification in a target file in a language text set; and feeding the target language text back to the client. The scheme sets rules for language identification of different clients and different service requests to solve the problem of automatic adaptation of application programs in different language environments, but aims at only one data interaction protocol, so that the adaptation of multiple interaction protocols of the application programs cannot be realized.
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 identify the language setting of the requesting party are respectively proposed, the above two schemes have drawbacks that the language package resources of the application program cannot be efficiently and dynamically managed respectively, and that the accurate identification of the execution language environment of the application program cannot be realized based on different interaction protocols.
Therefore, in order to solve the problem, the embodiment of the invention adopts a distributed network to realize multi-language translation of the application program, wherein the distributed network comprises 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 from different sources and integrating, storing or/and managing the language packages; the identification analysis unit is used for receiving a request message for executing the application program sent by a request party, determining a rule for identifying the 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 the language environment executed by the application program; the context analysis unit is used for acquiring and storing the language identification of the application program from the identification analysis unit so as to call the language identification in the execution process of the application program; the language analysis unit is used for identifying the information of the to-be-translated version in the application program execution process, acquiring a language package of the corresponding language from the data resource management unit according to the language identification of the application program execution acquired from the context analysis unit, executing translation to acquire translated version information, embedding the translated version information into the executed application program, and transmitting the translated version information to a requester as response information. Therefore, the embodiment of the invention can efficiently manage the language package resources and effectively identify the language setting of the requesting party, thereby realizing the efficient and accurate multi-language 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 requesting party, thereby realizing the efficient and accurate multi-language translation of the application program.
In the embodiment of the invention, the identifier analysis unit in the distributed network is provided with a unified language identifier analysis interface, and language identifiers of the requesters are respectively identified aiming at different interaction protocols of one application program, so that the language environment of the current execution of the application program can be identified; the distributed network also comprises a data resource management unit which is used for carrying out centralized management on data resources of different language packages of an application program; when the distributed network identifies the language identification applicable to the requesting party, the distributed network acquires the language package resource corresponding to the language identification from the centrally managed language package resource, and performs language translation of the language identification corresponding to the language information in the application program and provides the language translation to the requesting party.
Specifically, the embodiment of the invention can automatically identify the language environment where the application program is located in the distributed network: when an executing party and a requesting party of an application program in the distributed network interact, a plurality of interaction protocols are usually arranged between the executing party and the requesting party, and the mode of a request message sent by the requesting party under different interaction protocols and the transmission mode of a language identifier of a language environment where the application program requested by the request message is executed are different. In this case, the identifier analysis unit is provided with a unified language identifier analysis interface, and the unified language identifier analysis interface analyzes the interactive protocol based on which the request message is based, determines a rule for identifying the language identifier according to the interactive protocol, and identifies the language identifier of the currently executed application program according to the determined rule, thereby centrally managing the language identifier identifications of the request messages based on different interactive protocols, and realizing the automatic identification of the language environment currently executed by the application program.
The embodiment of the invention can perform centralized management on the language packet data resources of the application programs in the distributed network, and can dynamically issue and downgrade the language packet data resources for management: and setting a data resource management unit, wherein the unit is provided with a unified language packet data resource reading interface, the priority can be set for the language packet data resources with different sources, the language packet data resources with different sources are integrated and stored, and the integrated and stored language packet data resources are provided for the unit for executing the application program for subsequent use, and the process can be real-time. In this way, the unified interface is obtained for the language package data resources, and integrated to realize centralized management, and different priority settings can be adopted for different language packages to realize the management degradation of the language package data resources, and the language package data resources interact with the language analysis unit to realize the dynamic issuing of the language package data resources of the corresponding language.
The embodiment of the invention realizes automatic translation of the document information of the uncoupled application program: by arranging the context analysis unit and the language analysis unit, the text information related in the automatic translation process of the text information of the application program is intercepted, and language package data resources corresponding to the language are called to perform automatic translation, so that the execution of the application program is isolated, and the execution of the application program and the multi-language translation of the application program are decoupled.
Fig. 1 is a schematic diagram of a system for implementing multi-language translation of an application program 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 for the application program and integrating, storing and/or managing the language packages;
The identification analysis unit is used for receiving a request message for executing the application program sent by a request party, 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 identification for executing the application program in the identification analysis unit;
The language analysis unit is used for identifying the information of the to-be-translated version in the execution process of the application program, acquiring a language packet of the corresponding language of the application program in the data resource management unit according to the language identification of the execution of the application program acquired from the context analysis unit, executing translation to obtain translated text information, embedding the translated text information into the executed application program, and sending the translated text information to a requester as response information.
Where the system can process multiple request messages from outside simultaneously, the context resolution unit maintains different language identification of different execution language environments of the application program requested for the different request messages, without limitation.
In the system, the data resource management module integrates, stores, or/and manages language packages for different languages of the application program in real time.
In the system, the data resource management unit is an abstract unified 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 allocation center subunit, a file resource subunit, and an integrated resource subunit, wherein,
A resource allocation central subunit, configured to receive language packages of a plurality of different languages corresponding to the application program from different external sources;
a file resource subunit, configured to receive language packages of a plurality of different languages corresponding to the application program from a local source; here, the local source may be a local resource database;
And the integration resource subunit is used for integrating, storing or/and managing the language packages of a plurality of different languages of the application program, which are received by the resource allocation center subunit and the file resource subunit.
The data resource management unit may be further extended to include other acquisition subunits for receiving language packages of a plurality of different languages corresponding to the application program from other sources in real time. The other acquisition subunits may be databases or cache media, etc.
The integrated resource subunit may further perform management after any combination of all acquired language packages corresponding to the plurality of different languages of the application program, set different priorities for the language packages of the different languages, provide the language packages of the corresponding languages according to the set priorities when providing the language packages of the corresponding languages, and provide the language packages of the corresponding languages with the highest priorities, so as to implement centralized management and degradation management capability of the language package resources.
The language package of the same language corresponding to the application program in the integrated resource subunit can be used by the language analysis unit when the request message of executing the application program from a plurality of different requesters is executed, and can be dynamically updated in real time without influencing the execution of the application program, thereby avoiding the problem that the language package of the same language corresponding to the application program needs to be independently maintained and executed for different requesters.
The identifier parsing unit is essentially used for calling the language identifier set by the requester, which is an abstract interface and can be implemented differently 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: the interactive protocol identification subunit and a plurality of language identification analysis subunits corresponding to different rules, wherein,
The interactive protocol identification subunit is used for receiving the request message of the execution application program, analyzing the interactive protocol based on the obtained request message, determining the rule of the identification language identification corresponding to the based interactive protocol, and then sending the request message to the language identification analysis subunit corresponding to the rule;
and the language identification analysis subunit of the corresponding rule is used for identifying and obtaining the language identification of the executed application program according to the corresponding rule and obtaining the language environment of the execution of the application program.
The plurality of language identification 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 stored in a terminal, and the language identification parsing subunits are respectively used for obtaining a language identification in a hypertext transfer protocol (HTTP) header parameter of the request message, obtaining the language identification from the Cookie of an entity receiving the request message, and obtaining the language identification from a requester for sending the request message in a Rpc mode. Of course, the language identifier parsing subunit of the plurality of different rules may be further extended to adapt to the rules of identifying language identifiers corresponding to other interactive protocols.
Here, the interactive protocol identification subunit can parse the interactive protocol on which the request message is based, and determine language identification parsing subunits corresponding to different rules. The language identification analysis subunits corresponding to different rules are arranged for different interactive protocols in the distributed network, can be used for transverse expansion and automatic management, and are not intrusive to execution logic of application programs.
In the system, the context analysis unit is used for storing the language identification of the currently executed application program, and the language identification is arbitrarily called in the whole execution process of the application program. The method mainly comprises the step of transparent transmission by taking a language identifier as a request parameter when text information in an application program is translated and interacted with a requesting party.
In the system, a language analysis unit is responsible for identifying information to be translated of an executed application program in a specific mode, for example, the information to be translated marked in the application program such as an annotation mark or a message placeholder, and when response information is returned to a requester after the execution of the application program is completed, translation is executed and the response information is returned by combining language package resources of a corresponding language and the context position of the translated information in the application program.
Fig. 4 is a flowchart of a method for implementing multi-language translation of an application program according to an embodiment of the present invention, where the specific process of the method is as follows:
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 information of the to-be-translated version in the application program in the execution process of the application program, and acquiring a stored language package of the corresponding language according to the identified language identification of executing the application program;
Step 403, performing translation according to the stored language package of the corresponding language to obtain translated document information, embedding the translated document information into the executed application program, and returning the translated document information to the requesting party as response information.
In the method, the acquiring the stored language packs of the corresponding languages includes:
Receiving language packages of different languages for application programs from different sources, and integrating, storing and managing the language packages; the method can receive language packages of different languages of different sources aiming at application programs in real time, and perform real-time integration, real-time storage and real-time management;
And acquiring the language package of the corresponding language from the stored language packages of different languages.
Further, the managing further includes:
different priorities are set for language packages of different languages of the application program, and the language packages of corresponding languages are provided according to the set priorities.
In the method, the identifying the language identifier of the execution language environment of the application program requested by the request message according to the rule of identifying the language identifier includes:
obtaining the language identifier from HTTP header parameters 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 a Rpc mode.
Fig. 5 is a schematic diagram of a specific example of a method for implementing multi-language translation of an application program according to an embodiment of the present invention, where specific steps include:
Step 501, after the distributed network executing the application program is started, loading the existing language packages of different languages for the application program for subsequent use;
In the step, in the running process of the distributed network, language packages of different languages of the application program can be added or updated in real time;
step 502, the distributed network receives a request message for executing an application program;
In this step, the request message may be transmitted using an interactive protocol such as HTTP or RPC;
Step 503, an identifier parsing unit in the distributed network intercepts the request message, and executes corresponding language identifier parsing according to an interaction protocol based on the request;
step 504, the analysis of the identifier analysis unit in the distributed network is completed, a language identifier is obtained and sent to the context analysis unit for storage for subsequent use;
step 505, executing an application program by the distributed network;
In the step, if the request message of other executing application programs is also initiated in the executing process of the application program, intercepting the executing request message of other application programs by adopting the steps, and adding the language identification to the context analysis unit for storage;
Step 506, after the distributed network executes the application program, obtaining response information, judging whether the response information carries the information of the application program to be translated, if so, executing step 507; if not, go to step 508;
step 507, according to the language identification stored in the context analysis unit, obtaining a language package of the stored corresponding language, according to the language package of the stored corresponding language, performing translation to obtain translated document information, and embedding the translated document information into the executed application program as response information;
step 508, the response information is sent to the requestor.
Embodiments of the present application also provide a computer readable storage medium storing instructions which, when executed by a processor, perform the steps of a method of implementing multi-language translation of an application as described above. In practice, the computer readable medium may be contained 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 multi-language translation of an application program described in the above embodiments. According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: portable computer diskette, hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing, but are not intended to limit the scope of the application. In the disclosed embodiments, 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 application also provides electronic equipment, wherein the device for realizing the method can be integrated.
Specifically, the present invention relates to a method for manufacturing a semiconductor device.
The electronic device may include a processor of one or more processing cores, a memory of one or more computer-readable storage media, and a computer program stored on the memory and executable on the processor. The method for realizing the multi-language translation of the application program can be realized when the program of the memory is executed.
Specifically, in practical application, the electronic device may further include a power source, an input unit, an output unit, and other components. It will be appreciated by those skilled in the art that the structure of the electronic device in the embodiments of the present invention is not limited to the electronic device, and may include more or fewer components than shown, or may combine certain components, or may have different arrangements of components. Wherein:
The processor is a control center of the electronic device, and connects various parts of the whole electronic device by various interfaces and lines, and performs 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 performing overall monitoring of the electronic device.
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, etc. In addition, 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 access to the memory by the processor.
The electronic device also comprises a power supply for supplying power to each component, and the power supply can be logically connected with the processor through a power management system, so that the functions of managing charging, discharging, managing power consumption and the like are realized through the power management system. The power supply may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit operable to receive entered numerical or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The electronic device may also include an output unit that may be used to display information entered by or provided to a user as well as various graphical user interfaces that may be composed of graphics, text, icons, video, and any combination thereof.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. 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 the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the present application. In particular, the features recited in the various embodiments of the application and/or in the claims may be combined in various combinations and/or combinations without departing from the spirit and teachings of the application, all of which are within the scope of the disclosure.
The principles and embodiments of the present application have been described herein with reference to specific examples, which are intended to be included herein for purposes of illustration only and not to be limiting of the application. It will be apparent to those skilled in the art that variations can be made in the present embodiments and applications within the spirit and principles of the application, and any modifications, equivalents, improvements, etc. are intended to be included within the scope of the present application.

Claims (8)

1. A system for implementing multi-lingual translation of an application program, 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 for the application program and integrating, storing and/or managing the language packages;
The identification analysis unit is used for receiving a request message for executing the application program sent by a request party, 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 identification for executing the application program in the identification analysis unit;
The language analysis unit is used for identifying the information of the to-be-translated version in the execution process of the application program, acquiring a language packet of the corresponding language of the application program in the data resource management unit according to the language identification of the execution of the application program acquired from the context analysis unit, executing translation to obtain translated version information, embedding the translated version information into the executed application program, and transmitting the translated version information to a requester as response information;
Wherein the identification analysis unit comprises an interactive protocol identification subunit and a plurality of language identification analysis subunits corresponding to different rules, wherein,
The interactive protocol identification subunit is used for receiving the request message of the execution application program, analyzing the interactive protocol based on the request message, determining the rule of the identification language identification corresponding to the based interactive protocol, and then sending the request message to the language identification analysis subunit corresponding to the rule;
The language identification analysis subunit of the corresponding rule is used for identifying and obtaining the language identification of the execution application program according to the corresponding rule;
The language identification analysis subunit of the corresponding rule at least comprises: the system comprises a request message header analysis subunit for executing an application program, a local data Cookie analysis subunit stored in a terminal and/or a remote procedure call Rpc analysis subunit, wherein the request message header analysis subunit, the local data Cookie analysis subunit and/or the remote procedure call Rpc analysis subunit 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 a Rpc mode.
2. The system of claim 1, wherein the system processes request messages for multiple executing different applications simultaneously;
the context analysis unit is further configured to maintain different language identifiers of different languages, where the different language identifiers of different languages correspond to applications requested to be executed by different request messages.
3. The system of claim 1, wherein the data resource management unit comprises: a resource allocation center subunit, a file resource subunit, and an integrated resource subunit, wherein,
A resource allocation central subunit, configured to receive language packages of a plurality of different languages corresponding to the application program from different external sources;
a file resource subunit, configured to receive language packages of a plurality 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 a plurality of different languages of the application program, which are received by the resource allocation center subunit and the file resource subunit.
4. A system as claimed in claim 1 or 3, wherein the integrated resource sub-unit in the data resource management unit is further arranged to set different priorities when managing language packages of different languages of the application, the different priorities being arranged to be provided according to the set priorities when providing language packages of corresponding languages of the application.
5. A method of implementing multi-lingual 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 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;
Executing the application program, identifying the information of the to-be-translated version in the application program in the execution process of the application program, and acquiring a stored language package of the corresponding language according to the identified language identification for executing the application program;
according to the stored language package of the corresponding language, executing translation to obtain translated document information, embedding the translated document information into the executed application program, and sending the translated document information as response information;
Wherein, the identifying the language identifier of the application program according to the rule for identifying the language identifier includes:
obtaining the language identifier from HTTP header parameters 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 a Rpc mode.
6. The method of claim 5, wherein the retrieving the stored language packs for the corresponding language 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 language packages of different languages of the application program, and providing according to the set priorities when providing the language packages of the corresponding languages;
And acquiring the language package of the corresponding language from the stored language packages of different languages.
7. An apparatus for implementing multi-language translation of an application program, comprising:
a memory; and a processor coupled to the memory, the processor configured to perform the method of implementing multi-language translation of an application program as claimed in claim 5 or 6 based on instructions stored in the memory.
8. A computer readable storage medium, having stored thereon a computer program which when executed by a processor implements a method of implementing a multi-lingual translation of an application program according to claim 5 or 6.
CN202110369864.0A 2021-04-07 2021-04-07 System and method for realizing multi-language translation of application program Active CN113111666B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110369864.0A CN113111666B (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 CN113111666B (en) 2021-04-07 2021-04-07 System and method for realizing multi-language translation of application program

Publications (2)

Publication Number Publication Date
CN113111666A CN113111666A (en) 2021-07-13
CN113111666B true CN113111666B (en) 2024-06-18

Family

ID=76714389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110369864.0A Active CN113111666B (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) CN113111666B (en)
WO (1) WO2022214012A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111666B (en) * 2021-04-07 2024-06-18 北京沃东天骏信息技术有限公司 System and method for realizing multi-language translation of application program
CN114912469B (en) * 2022-05-26 2023-03-31 东北农业大学 Information communication method for converting Chinese and English languages and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103038763A (en) * 2010-07-23 2013-04-10 国际商业机器公司 On-demand translation of application text

Family Cites Families (13)

* 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
US8249858B2 (en) * 2008-04-24 2012-08-21 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
EP2783300A4 (en) * 2011-11-25 2015-12-23 Google Inc Providing translation assistance in application localization
US9672209B2 (en) * 2012-06-21 2017-06-06 International Business Machines Corporation Dynamic translation substitution
US9047276B2 (en) * 2012-11-13 2015-06-02 Red Hat, Inc. Automatic translation of system messages using an existing resource bundle
US10599765B2 (en) * 2013-06-27 2020-03-24 Avaya Inc. Semantic translation model training
CN104346153B (en) * 2013-07-31 2018-04-17 国际商业机器公司 Method and system for the text message of translation application
CN106940646A (en) * 2017-03-17 2017-07-11 微梦创科网络科技(中国)有限公司 A kind of International Software processing method, apparatus and system
CN114253535A (en) * 2017-06-02 2022-03-29 创新先进技术有限公司 H5 page multi-language rendering method and device
US11048885B2 (en) * 2018-09-25 2021-06-29 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
CN113111666B (en) * 2021-04-07 2024-06-18 北京沃东天骏信息技术有限公司 System and method for realizing multi-language translation of application program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103038763A (en) * 2010-07-23 2013-04-10 国际商业机器公司 On-demand translation of application text

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于SOAP协议的XML数据传输的实现;夏小云, 喻金平;科技广场(08);全文 *

Also Published As

Publication number Publication date
WO2022214012A1 (en) 2022-10-13
CN113111666A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN107729139B (en) Method and device for concurrently acquiring resources
US10114682B2 (en) Method and system for operating a data center by reducing an amount of data to be processed
US7673029B2 (en) Grid automation bus to integrate management frameworks for dynamic grid management
KR102634058B1 (en) Input and output schema mapping
CN113111666B (en) System and method for realizing multi-language translation of application program
US9497096B2 (en) Dynamic control over tracing of messages received by a message broker
CN111045911B (en) Performance test method, performance test device, storage medium and electronic equipment
CN111221793A (en) Data mining method, platform, computer equipment and storage medium
CN114398179B (en) Method and device for acquiring tracking identifier, server and storage medium
CN110706148B (en) Face image processing method, device, equipment and storage medium
CN110096381B (en) Method, device, equipment and medium for realizing remote procedure call
US8938522B2 (en) Tiered XML services in a content management system
CN112104679A (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN112765246A (en) Task processing method and device, electronic equipment and storage medium
CN113779018A (en) Data processing method and device
CN107330089B (en) Cross-network structured data collection system
CN113079055A (en) Method and device for dynamically acquiring AGV (automatic guided vehicle) running data
CN112131070A (en) Call relation tracking method, device, equipment and computer readable storage medium
CN111865675B (en) Container receiving and dispatching speed limiting method, device and system
CN114553806B (en) Optimization method, device and equipment for instant messaging and storage medium
KR20120031792A (en) Method of distributed session management in saas and session management system therof
CN112702415B (en) Method for converting Kafka long connection consumption into service
CN114237837B (en) Program calling method, program calling device, program calling equipment and computer readable storage medium
EP4105782A1 (en) Hardware accelerator service discovery
CN112087474B (en) Cluster-based port information acquisition method and device

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
GR01 Patent grant