WO2019090782A1 - 语言翻译方法、装置和服务器 - Google Patents

语言翻译方法、装置和服务器 Download PDF

Info

Publication number
WO2019090782A1
WO2019090782A1 PCT/CN2017/110730 CN2017110730W WO2019090782A1 WO 2019090782 A1 WO2019090782 A1 WO 2019090782A1 CN 2017110730 W CN2017110730 W CN 2017110730W WO 2019090782 A1 WO2019090782 A1 WO 2019090782A1
Authority
WO
WIPO (PCT)
Prior art keywords
translation
information
language
configuration file
profile
Prior art date
Application number
PCT/CN2017/110730
Other languages
English (en)
French (fr)
Inventor
周毕兴
Original Assignee
深圳市沃特沃德股份有限公司
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 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Priority to PCT/CN2017/110730 priority Critical patent/WO2019090782A1/zh
Publication of WO2019090782A1 publication Critical patent/WO2019090782A1/zh

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

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a language translation method, apparatus, and server.
  • the existing translation equipment has a single mode of use and poor flexibility, resulting in high use cost, which is not conducive to the promotion and popularization of translation equipment.
  • a primary object of the present invention is to provide a language translation method, apparatus, and server, which are intended to improve the flexibility of use of a translation device and reduce the cost of use.
  • an embodiment of the present invention provides a language translation method, where the method includes the following steps.
  • Embodiments of the present invention simultaneously provide a language translation apparatus, where the apparatus includes:
  • a configuration module configured to receive a translation request, and generate a translation configuration file according to the translation requirement
  • a response module configured to receive a translation request, and respond to the translation request according to the translation configuration file.
  • Embodiments of the present invention also provide a server including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to Used to perform the aforementioned language translation method.
  • a language translation method provided by an embodiment of the present invention generates a translation configuration file according to a translation requirement by receiving a translation requirement of a user, and responds to a translation request of the user according to the translation configuration file. Therefore, users can flexibly choose translation language and service time according to their own needs.
  • Translation service providers can customize various translation service packages for users to choose, and reasonably price different services, greatly improving translation equipment. The flexibility and convenience of use greatly reduce the user's use cost, which is conducive to the popularization and promotion of translation equipment. Brief description of the drawing
  • FIG. 1 is a flow chart of a first embodiment of a language translation method of the present invention
  • FIG. 2 is a specific flowchart of responding to a translation request according to a translation configuration file according to an embodiment of the present invention
  • FIG. 3 is another specific flowchart of responding to a translation request according to a translation profile according to an embodiment of the present invention.
  • FIG. 5 is still another specific flowchart of responding to a translation request according to a translation configuration file according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a second embodiment of a language translation method of the present invention.
  • FIG. 7 is a block diagram showing a first embodiment of a language translation apparatus of the present invention.
  • FIG. 8 is a block diagram of the configuration module of FIG. 7;
  • FIG. 9 is a block diagram of the response module of FIG. 7;
  • FIG. 10 is a block diagram of still another module of the response module of FIG. 7;
  • FIG. 11 is a block diagram showing a second embodiment of a language translation apparatus of the present invention.
  • FIG. 12 is a block diagram of the response module of FIG. 11; 13 is another block diagram of the response module of FIG. 11.
  • a first embodiment of a language translation method of the present invention is proposed.
  • the method is applied to a server, and includes the following steps:
  • the translation device sends a translation request to the server, the server receives the translation request, and produces a translation configuration file according to the translation requirement.
  • the translation device may be a specialized translation machine, or may be a terminal device such as a mobile phone or a tablet.
  • the service provider can set various translation service packages for the user to select, such as an unlimited language package, a language time meal, an unlimited day meal package, etc., and the user selects different translation service packages according to the needs to generate a corresponding translation requirement.
  • the translation requirements include user identity information, payment information, and service information, that is, any language provided by the service provider can be translated, with no restrictions, such as months, one year.
  • the translation requirements include user identity information, payment information, translation language information and service information, that is, the translation of the specified language within a certain period of time, the translation language Such as Chinese to English, Chinese to Japanese, English to Chinese;
  • the translation needs include user identity information, payment information and translation language information, that is, one-time purchase of the specified translation language for life.
  • the user identity information may be a device identification code (device ID) of the translation device, a user account (user ID), and the like.
  • the server after receiving the translation requirement, the server first obtains the identity information, the payment information, and the service time information in the translation request, and then verifies the payment information, that is, whether the payment information is authentic or not. When the payment information is valid, the verification is passed, and finally the translation configuration file is generated according to the user identity information and the service time information, and the translation configuration file is stored, that is, the translation configuration file includes the user identity information and the service time information.
  • the server After receiving the translation requirement, the server first needs to obtain the translation. In the pursuit of identity information, payment information, translation language information and service information, and then verify the payment information, to determine whether the payment information is true and effective, when the payment information is true and effective, then the verification is passed, and finally based on the user identity information, translation
  • the language information and the service time information generate a translation profile, and the translation profile is stored, that is, the translation profile includes user identity information, translation language information, and service time information.
  • the translation device receives the translation language (such as Chinese-English translation, Chinese-Japanese translation, etc.) and service time (such as half-year, one-year, etc.) set by the user, and translates the language information, service information, and user identity.
  • the information is sent to the server.
  • the server queries the corresponding translation price based on the translation language and service time, and transmits the translation language information, the service time information, the translation price information, and whether or not the purchase request is agreed to to the translation device.
  • the translation device displays the translated language information, the service information, the translation price information, and whether or not the purchase request is agreed upon, and when the confirmation instruction for the purchase of the user input is received, the confirmation command is transmitted to the server.
  • the server generates a payment page according to the confirmation instruction, and sends the payment page to the translation device.
  • the translation device displays a payment page for the user to pay, and when the user pays successfully, sends payment information to the server.
  • the server verifies the payment information, and when the verification passes, generates a translation profile based on the user identity information, the translation language information, and the service session information, and stores the translation profile.
  • S12. Receive a translation request, and respond to the translation request according to the translation configuration file.
  • the translation device sends a translation request to the server, and the server receives the translation request, and responds to the translation request according to the translation configuration file.
  • the response result includes executing the translation request and rejecting the translation request, rejecting the translation request, and simultaneously sending an error prompt message to the translation device, such as "has expired, please re-purchase", "no purchase of the language” Translation service", “no translation service”, etc.
  • the translation request includes requesting online translation on the server side and requesting to download the translation database to the local translation.
  • the translation request is a request for online translation on the server side
  • the translation request includes user identity information, translation language information, and information to be translated.
  • the translation request is to request to download the translation database to the local translation
  • the translation request includes the user identity information and the translated language information.
  • the online translation is performed on the server side as a request by using a translation request as an example.
  • step S101 Search for a corresponding translation configuration file according to user identity information in the translation request. When the corresponding translation profile is found, the process proceeds to step S102; when the corresponding translation profile is not found, the process proceeds to step S106.
  • the server first acquires the user identity information, the translated language information, and the to-be-translated information in the translation request, and then searches the stored translation configuration file according to the user identity information whether there is a translation configuration file corresponding to the user identity information, when When the corresponding translation profile is found, the translation profile is extracted.
  • S102 Determine whether the validity period is within the validity period according to the service time information in the translation configuration file. When it is within the validity period, the process proceeds to step S103; when it is not within the validity period, the process proceeds to step S106.
  • the server obtains the service information of the translation configuration file.
  • the service time information it is judged whether the translation service purchased by the user is within the validity period.
  • the service time information display expiration date is 2017.12.30, and the current time is 2017.11.
  • the server determines that it is within the validity period.
  • the service period information display period is 2017.10.05, and the current daytime is 2017.11.
  • the server determines that it is not within the validity period.
  • the server may also delete, discard the translation configuration file, or mark the translation configuration file as invalid.
  • S103 Open a corresponding translation database according to the translated language information.
  • the server finds the corresponding translation database according to the translated language, and opens the translation database to the user, and grants the user permission to use the translation database.
  • S104 Perform translation processing on the translated information by using the translation database.
  • the server translates the information to be translated into a target language by using a translation database, such as translating the information to be translated from English into Chinese.
  • a translation database such as translating the information to be translated from English into Chinese.
  • the server sends the translated processed information to the translation device, and the translation device receives the translated processed information and outputs the information.
  • S106 Reject the translation request.
  • the server rejects the translation request.
  • the error message may also be sent to the translation device, such as "no translation service”, "expiration date, please re-purchase", and the like.
  • the specific process of the server responding to the translation request according to the translation profile is as follows:
  • S201 Search for a corresponding translation configuration file according to user identity information in the translation request. When the corresponding translation profile is found, the process proceeds to step S202; when the corresponding translation profile is not found, the process proceeds to step S207.
  • S202 Determine whether the validity period is within the validity period according to the service time information in the translation configuration file. When it is within the validity period, the process proceeds to step S203; when it is not within the validity period, the process proceeds to step S207.
  • step S203 Determine whether the translation request is consistent with the translated language information in the translation configuration file. When they are the same, the process goes to step S203; when it is not within the validity period, the process goes to step S207.
  • S204 Open a corresponding translation database according to the translated language information.
  • S205 Perform translation processing on the translated information by using the translation database.
  • step S203 the server needs to determine whether the language requested by the user for translation (ie, the translated language information in the translation request) is related to the purchased translation language (ie, the translation language in the translation configuration file). Information) Consistent.
  • the server rejects the translation request. Simultaneously, an error message may also be sent to the translation device, such as "the translation service of the language is not purchased.”
  • the translation request is downloaded to the local translation as a request for the translation request.
  • S301 Search for a corresponding translation configuration file according to user identity information in the translation request.
  • the process goes to step S302; when the corresponding translation profile is not found, the process goes to step S305.
  • S302. Determine whether the validity period is within the validity period according to the service time information in the translation configuration file. When it is within the validity period, the process proceeds to step S303; when it is not within the validity period, the process proceeds to step S305.
  • S304 Send the translation database to the translation device.
  • the specific process of the server responding to the translation request according to the translation profile is as follows:
  • S402. Determine whether the validity period is within the validity period according to the service time information in the translation configuration file. When it is within the validity period, the process proceeds to step S403; when it is not within the validity period, the process proceeds to step S406.
  • step S403. Determine whether the translation request is consistent with the translated language information in the translation configuration file. When it is unambiguous, it proceeds to step S403; when it is not within the validity period, it proceeds to step S406.
  • the server When the translation request is to request to download the translation database to the local translation, the server performs a translation request, and sends a translation database open to the user to the translation device, and the translation device receives the translation database and saves it locally, and then the translation can be utilized later.
  • the database is translated locally.
  • the method includes the following steps:
  • S21 Receive a translation request, and generate a translation configuration file according to the translation requirement.
  • the server after the server generates the translation configuration file, it also sends the translation device that sends the translation request. To the translation profile, the translation device receives the translation profile and saves it locally.
  • S23 Receive a translation request that carries a translation configuration file, and respond to the translation request according to the translation configuration file.
  • the translation request sent by the translation device further includes a translation configuration file
  • the server responds to the translation request according to the translation configuration file.
  • the server first verifies whether the translation configuration file is a valid translation configuration file, that is, whether the translation configuration file is an authorized real and effective translation configuration file, for example, compared with the translation configuration file stored in the server. Yes, determine if there is a translation profile that is identical to the translation profile in the translation request. When a valid translation profile is obtained, the server obtains the service information and/or translation language information in the translation profile, and determines whether the translation service purchased by the user is within the validity period and/or the translation request and the translation profile.
  • the server rejects the translation request; when valid and/or consistent, the server issues the corresponding translation database according to the translated language information, and according to the translation request
  • the translation device sends the translation database, or uses the translation database to translate the translated information and send the translated information to the translation device.
  • the language translation method of the embodiment of the present invention generates a translation configuration file according to a translation requirement by receiving a translation requirement of the user, and responds to the translation request of the user according to the translation configuration file. Therefore, users can flexibly choose translation language and service time according to their own needs.
  • Translation service providers can customize various translation service packages for users to choose, and reasonably price different services, greatly improving translation equipment. The flexibility and convenience of use greatly reduce the user's use cost, which is conducive to the popularization and promotion of translation equipment.
  • the user can purchase translation services of one, two or more translated languages as needed, or purchase a translation language in the short room due to the demand for business trip or travel.
  • Translation services even for short-term or temporary translation needs, users can also rent a translation machine to purchase translation services. Thereby meeting the diversified needs of users, greatly improving the user experience, and accelerating the popularity and promotion speed of translation equipment.
  • the apparatus includes a configuration module 10 and a response module 20, wherein: the configuration module 10 is configured to receive translation requirements and generate according to translation requirements. Translating the configuration file; the response module 20 is configured to receive the translation request and respond to the translation request according to the translation configuration file.
  • the translation requirement includes user identity information and payment information, and includes translation language information, service information, and the like according to the translation service package selected by the user.
  • the configuration module 10 includes a payment verification unit 11 and a configuration generation unit 12, wherein: the payment verification unit 11 is configured to verify payment information, that is, to determine whether the payment information is true or not, and when the payment information is true and effective. In other words, the verification is passed; the configuration generating unit 12 is configured to generate a translation configuration file according to the user identity information and the translated language information and/or the service information, and store the translation configuration file when the verification is passed.
  • the generated translation profile includes user identity information as well as translated language information and/or service time information.
  • the response module 20 Upon receiving the translation request, the response module 20 responds to the translation request according to the translation configuration file.
  • the response result includes executing the translation request and rejecting the translation request.
  • the error message may also be sent to the translation device at the same time, such as "has expired, please re-purchase", "no translation of the language is purchased” Service", “no translation service”, etc.
  • the translation request includes requesting online translation on the server side and requesting to download the translation database to the local translation.
  • the translation request is a request for online translation on the server side
  • the translation request includes user identity information, translation language information, and information to be translated.
  • the translation request is to request to download the translation database to the local translation
  • the translation request includes the user identity information and the translated language information.
  • the response module 20 includes a configuration searching unit 21, an effective determining unit 22, and a data opening unit 23, as shown in FIG.
  • the searching unit 21 is configured to search for a corresponding translation configuration file according to the user identity information
  • the valid determining unit 22 is configured to determine, according to the service translation information in the translation configuration file, whether the validity period is valid when the corresponding translation configuration file is found
  • the data opening unit 23 is arranged to open the corresponding translation database based on the translated language information when it is within the validity period.
  • the configuration searching unit 21 first acquires the user identity information in the translation request, and then searches the stored translation configuration file according to the user identity information whether there is a translation profile corresponding to the user identity information.
  • the translation profile is extracted.
  • the valid judgment unit 22 acquires the service time information of the translation profile, and judges according to the service information Whether the translation service purchased by the user is within the validity period. When it is determined that the translation service purchased by the user is not within the validity period, the valid judgment unit 22 may also delete, discard the translation profile, or mark the translation profile as invalid.
  • the data release unit 23 finds the corresponding translation database according to the translated language, and opens the translation database to the user, and grants the user the right to use the translation database.
  • the response module 20 includes a configuration search unit 21, an effective determination unit 22, a language determination unit 24, and The data scaling unit 23, wherein: the configuration searching unit 21 is configured to search for a corresponding translation configuration file according to the user identity information; the effective determining unit 22 is configured to: when the corresponding translation configuration file is found, according to the service in the translation configuration file Whether the daytime information is judged to be within the validity period; the language determining unit 24 is configured to determine whether the translation request is consistent with the translated language information in the translation profile when the validity period is valid; the data opening unit 23 is set to be the translation request and the translation configuration The translated language information in the file is consistent, and the corresponding translation database is opened based on the translated language information.
  • the program adds a language judging unit 24, and the language judging unit 24 needs to judge the language in which the user requests translation.
  • the translated language information in the translation request is consistent with the purchased translation language (ie, the translated language information in the translation profile).
  • the language requested by the user for translation is Chinese to English
  • the translated language purchased by the user is Chinese-English translation
  • the language judgment unit 24 determines that the two are consistent.
  • the language requested by the user for translation is Japanese translation
  • the translation language purchased by the user is Chinese to English
  • the language judgment unit 24 determines that the two are not identical.
  • the foregoing response module 20 further includes a data transmitting unit configured to: send the translation database open to the user to the translation device.
  • the foregoing response module 20 further includes a translation processing unit and an information transmission unit, wherein: the translation processing unit is configured to translate the translation information using the translation database open to the user Processing; the information sending unit is configured to send the translated information to the translation device.
  • the apparatus includes a configuration module 10. And configuring the sending module 30 and the response module 20, wherein: the configuration module 10 is configured to receive the translation requirement, and generate a translation configuration file according to the translation requirement; the configuration sending module 30 is configured to send the generated translation configuration file to the translation device; the response module 20 , set to receive a translation request carrying a translation profile, and respond to the translation request based on the translation profile.
  • a configuration sending module 30 is added on the basis of the first embodiment.
  • the configuration sending module 30 sends the translation configuration file to the translation device that sends the translation request.
  • the subsequent translation device sends the translation request, and then the translation configuration file is carried, and the response module 20 responds to the translation request according to the translation configuration file in the translation request.
  • the response module 20 includes an efficacy verification unit 25, an effective determination unit 22, and a data opening unit 23, as shown in FIG.
  • the verification unit 25 is configured to verify whether the translation configuration file is a valid translation configuration file
  • the valid determination unit 22 is configured to determine whether it is within the validity period according to the service information in the translation configuration file when the translation configuration file is valid
  • the data opening unit 23 is arranged to open the corresponding translation database based on the translated language information when it is within the validity period.
  • the validity verification unit 25 determines whether the translation configuration file in the translation request is an authorized real and effective translation configuration file, for example, comparing the translation configuration file with the translation configuration file stored in the server, and determining whether there is any The translation profile in the translation request is identical to the translation profile. If so, it is determined that the translation profile in the translation request is a valid translation profile, otherwise it is an invalid translation profile.
  • the response module 20 includes an efficacy verification unit 25, an effective determination unit 22, a language determination unit 24, and The data scaling unit 23, wherein: the validity verification unit 25 is configured to verify whether the translation configuration file is a valid translation configuration file; the effective determination unit 22 is set to be a valid translation configuration file, according to the service in the translation configuration file Whether the time information is judged to be within the validity period; the language determining unit 24 is configured to determine whether the translation request is consistent with the translated language information in the translation profile when the validity period is ; the data scaling unit 23 is set to be a translation request In accordance with the translated language information in the translation profile, the corresponding translation database is opened based on the translated language information.
  • the foregoing response module 20 further includes data.
  • a sending unit the data sending unit is configured to: send a translation database open to the user to the translation device.
  • the foregoing response module 20 further includes a translation processing unit and an information transmission unit, wherein: the translation processing unit is configured to translate the translation information by using a translation database open to the user Processing; the information sending unit is configured to send the translated information to the translation device.
  • the language translation apparatus of the embodiment of the present invention generates a translation configuration file according to a translation requirement by receiving a translation request of the user, and responds to the translation request of the user according to the translation configuration file. Therefore, users can flexibly choose translation languages and service time according to their own needs.
  • Translation service providers can customize various translation service packages for users to choose, and reasonably price different services, which greatly improves the use of translation equipment. The flexibility and convenience greatly reduce the user's use cost, which is conducive to the popularization and promotion of translation equipment.
  • the present invention also provides a server including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to perform language translation method.
  • the language translation method comprises the steps of: receiving a translation requirement, generating a translation configuration file according to the translation requirement; receiving the translation request, and responding to the translation request according to the translation configuration file; wherein the translation configuration file includes at least the user identity information and the service information.
  • the language translation method described in this embodiment is the language translation method involved in the above embodiment of the present invention, and details are not described herein again.
  • the embodiment of the present invention can effectively solve the problem that the translation switching between multiple languages is cumbersome, and the provider of the translation device can flexibly charge for different actual translation application scenarios, and can even rent a translation device. According to the content of the translation and the length of the service, the high-cost one-time investment of the translation equipment user is avoided, which brings great convenience to the large-scale popularization of translation equipment and the use of translation equipment.
  • the present invention includes apparatus that is directed to performing one or more of the operations described herein.
  • These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer.
  • These devices have computer programs stored therein that are selectively activated or reconfigured.
  • Such computer programs may be stored in a device (eg, computer) readable medium or stored in any device suitable for storing electronic instructions and separately coupled to the bus.
  • the computer readable medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory, read only memory), RAM ( Random Access Memory, EPROM (Erasable Programmable Read-Only)
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • EPROM Erasable Programmable Read-Only
  • a readable medium includes any medium that is stored or transmitted by a device (e.g., a computer) in a readable form.

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)
  • Machine Translation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明揭示了一种语言翻译方法,所述方法包括以下步骤:接收翻译需求,根据翻译需求生成翻译配置文件;接收翻译请求,根据翻译配置文件响应翻译请求,从而使得用户可以根据自己的需求灵活选择翻译语种、服务时间等,极大的提高了翻译设备使用的灵活性和便利性,大大降低了用户的使用成本,有利于翻译设备的普及和推广。

Description

发明名称:语言翻译方法、 装置和服务器 技术领域
[0001] 本发明涉及电子技术领域, 特别是涉及到一种语言翻译方法、 装置和服务器。
背景技术
[0002] 随着经济的快速发展, 对外交流越来越广泛, 而对于许多人来说语言不通是对 外交流的一大障碍。 为了解决上述问题, 巿场上出现了各种各样的翻译设备。 翻译设备凭借着小巧便携的外观、 强大的语言翻译功能, 深受广大有语言翻译 需求的人士的欢迎, 同时也是人们学习外语的好帮手。 翻译设备可以在双方对 话的过程中进行翻译, 使得使用不同语言的用户可以无障碍交流。
[0003] 目前, 不同的翻译设备提供的翻译服务不同, 用户购买翻译设备的同吋连带一 次性购买了特定翻译语种的翻译服务, 且服务时间不限, 直到翻译设备无法使 用为止。 这种翻译设备与翻译服务捆绑出售的方式, 导致翻译设备的售价比较 昂贵, 不利于翻译设备的推广使用。 而且, 当用户短吋间内有翻译另一种语言 的需求时, 原有的翻译设备可能无法实现, 又需要以昂贵的价格购买另外一种 翻译设备, 对用户来说极其不便。
[0004] 综上所述可知, 现有的翻译设备的使用模式单一, 灵活性差, 导致使用成本高 , 不利于翻译设备的推广和普及。
技术问题
[0005] 本发明的主要目的为提供一种语言翻译方法、 装置和服务器, 旨在提高翻译设 备使用的灵活性, 降低使用成本。
问题的解决方案
技术解决方案
[0006] 为达以上目的, 本发明实施例提出一种语言翻译方法, 所述方法包括以下步骤
[0007] 接收翻译需求, 根据所述翻译需求生成翻译配置文件;
[0008] 接收翻译请求, 根据所述翻译配置文件响应所述翻译请求。 [0009] 本发明实施例同时提出一种语言翻译装置, 所述装置包括:
[0010] 配置模块, 设置为接收翻译需求, 根据所述翻译需求生成翻译配置文件; [0011] 响应模块, 设置为接收翻译请求, 根据所述翻译配置文件响应所述翻译请求。
[0012] 本发明实施例还提出一种服务器, 其包括存储器、 处理器和至少一个被存储在 所述存储器中并被配置为由所述处理器执行的应用程序, 所述应用程序被配置 为用于执行前述语言翻译方法。
发明的有益效果
有益效果
[0013] 本发明实施例所提供的一种语言翻译方法, 通过接收用户的翻译需求, 根据翻 译需求生成翻译配置文件, 并根据翻译配置文件来响应用户的翻译请求。 从而 , 使得用户可以根据自己的需求灵活选择翻译语种、 服务吋间等, 翻译服务商 则可以定制各种翻译服务套餐供用户选择, 并为不同的服务进行合理定价, 极 大的提高了翻译设备使用的灵活性和便利性, 大大降低了用户的使用成本, 有 利于翻译设备的普及和推广。 对附图的简要说明
附图说明
[0014] 图 1是本发明的语言翻译方法第一实施例的流程图;
[0015] 图 2是本发明实施例根据翻译配置文件响应翻译请求的具体流程图;
[0016] 图 3是本发明实施例根据翻译配置文件响应翻译请求的又一具体流程图;
[0017] 图 4是本发明实施例根据翻译配置文件响应翻译请求的又一具体流程图;
[0018] 图 5是本发明实施例根据翻译配置文件响应翻译请求的又一具体流程图;
[0019] 图 6是本发明的语言翻译方法第二实施例的流程图;
[0020] 图 7是本发明的语言翻译装置第一实施例的模块示意图;
[0021] 图 8是图 7中的配置模块的模块示意图;
[0022] 图 9是图 7中的响应模块的模块示意图;
[0023] 图 10是图 7中的响应模块的又一模块示意图;
[0024] 图 11是本发明的语言翻译装置第二实施例的模块示意图;
[0025] 图 12是图 11中的响应模块的模块示意图; [0026] 图 13是图 11中的响应模块的又一模块示意图。
[0027] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0028] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0029] 参照图 1, 提出本发明的语言翻译方法第一实施例, 所述方法应用于服务器, 包括以下步骤:
[0030] Sl l、 接收翻译需求, 根据翻译需求生成翻译配置文件。
[0031] 本发明实施例中, 翻译设备向服务器发送翻译需求, 服务器接收翻译需求, 并 根据翻译需求生产翻译配置文件。 所述翻译设备可以是专门的翻译机, 也可以 是手机、 平板等终端设备。
[0032] 服务商可以设定各种翻译服务套餐供用户选择, 如不限语种套餐、 语种时间套 餐、 不限吋间套餐等, 用户根据需要选择不同的翻译服务套餐则生成对应的翻 译需求。 例如: 当选择了不限语种套餐吋, 翻译需求则包括用户身份信息、 支 付信息和服务吋间信息, 即可以翻译服务商提供的任意语种, 伹有吋间限制, 如几个月、 一年、 两年、 多年等; 当选择了语种吋间套餐吋, 翻译需求则包括 用户身份信息、 支付信息、 翻译语种信息和服务吋间信息, 即在一定吋间内翻 译指定语种, 所述翻译语种如中译英、 中译日、 英译中等; 当选择了不限吋间 套餐时, 翻译需求则包括用户身份信息、 支付信息和翻译语种信息, 即一次性 购买指定翻译语种终身使用。 所述用户身份信息可以是翻译设备的设备识别码 (设备 ID) 、 用户账号 (用户 ID) 等。
[0033] 以用户选择了不限语种套餐为例, 服务器接收到翻译需求后, 首先获取翻译需 求中的身份信息、 支付信息和服务时间信息, 接着验证支付信息, 即判断该支 付信息是否真实有效, 当支付信息真实有效时, 则认定验证通过, 最后根据用 户身份信息和服务时间信息生成翻译配置文件, 并存储该翻译配置文件, 即此 时翻译配置文件中包含用户身份信息和服务时间信息。
[0034] 以用户选择了语种吋间套餐为例, 服务器接收到翻译需求后, 首先获取翻译需 求中的身份信息、 支付信息、 翻译语种信息和服务吋间信息, 接着验证支付信 息, 判断该支付信息是否真实有效, 当支付信息真实有效时, 则认定验证通过 , 最后根据用户身份信息、 翻译语种信息和服务时间信息生成翻译配置文件, 并存储该翻译配置文件, 即此时翻译配置文件中包含用户身份信息、 翻译语种 信息和服务时间信息。
[0035] 举例而言:
[0036] 翻译设备接收用户设置的想购买的翻译语种 (如中译英、 中译日等) 和服务时 间 (如半年、 一年等) , 并将翻译语种信息、 服务吋间信息以及用户身份信息 发送给服务器。 服务器根据翻译语种和服务时间査询对应的翻译价格, 并将翻 译语种信息、 服务吋间信息、 翻译价格信息以及是否同意购买请求发送给翻译 设备。 翻译设备显示翻译语种信息、 服务吋间信息、 翻译价格信息以及是否同 意购买请求, 当接收到用户输入的同意购买的确认指令时, 则向服务器发送该 确认指令。 服务器根据确认指令生成支付页面, 并将支付页面发送给翻译设备 。 翻译设备显示支付页面供用户支付, 当用户支付成功时, 则向服务器发送支 付信息。 服务器验证支付信息, 当验证通过吋, 则根据用户身份信息、 翻译语 种信息和服务吋间信息生成翻译配置文件, 并存储该翻译配置文件。
[0037] S12、 接收翻译请求, 根据翻译配置文件响应翻译请求。
[0038] 本发明实施例中, 翻译设备向服务器发送翻译请求, 服务器接收该翻译请求, 根据翻译配置文件响应该翻译请求。 响应结果包括执行翻译请求和拒绝翻译请 求, 拒绝翻译请求吋, 还可以同吋向翻译设备发送错误提示信息, 所述错误提 示信息如"已过有效期, 请重新购买"、 "没有购买该语种的翻译服务"、 "没有购 买翻译服务"等等。
[0039] 翻译请求包括请求在服务器端在线翻译和请求下载翻译数据库到本地翻译两种 请求。 当翻译请求为请求在服务器端在线翻译吋, 翻译请求包括用户身份信息 、 翻译语种信息和待翻译信息。 当翻译请求为请求下载翻译数据库到本地翻译 吋, 翻译请求包括用户身份信息和翻译语种信息。
[0040] 可选地, 以翻译请求为请求在服务器端在线翻译为例。
[0041] 如图 2所示, 当翻译配置文件包含用户身份信息和服务吋间信息吋, 服务器根 据翻译配置文件响应翻译请求的具体流程如下:
[0042] S101、 根据翻译请求中的用户身份信息査找对应的翻译配置文件。 当査找到对 应的翻译配置文件吋, 进入步骤 S102; 当没有査找到对应的翻译配置文件时, 进入步骤 S 106。
[0043] 服务器首先获取翻译请求中的用户身份信息、 翻译语种信息和待翻译信息, 然 后根据用户身份信息在存储的翻译配置文件中査找是否有与该用户身份信息相 对应的翻译配置文件, 当査找到对应的翻译配置文件时, 则提取该翻译配置文 件。
[0044] S102、 根据翻译配置文件中的服务时间信息判断是否在有效期内。 当在有效期 内时, 进入步骤 S103 ; 当不在有效期内吋, 进入步骤 S106。
[0045] 当査找到对应的翻译配置文件时, 服务器获取该翻译配置文件的服务吋间信息
, 根据服务时间信息判断用户购买的翻译服务是否在有效期内。
[0046] 例如, 服务时间信息显示有效期截止吋间为 2017.12.30, 当前的时间为 2017.11.
10, 服务器则判定在有效期内。
[0047] 又如, 服务吋间信息显示有效期截止吋间为 2017.10.05, 当前的吋间为 2017.11.
10, 服务器则判定不在有效期内。
[0048] 当判定用户购买的翻译服务不在有效期内吋, 服务器还可以刪除、 丢弃该翻译 配置文件, 或者标记该翻译配置文件失效。
[0049] S103、 根据翻译语种信息开放对应的翻译数据库。
[0050] 当用户购买的翻译服务在有效期内, 服务器则根据翻译语种査找到对应的翻译 数据库, 并向该用户开放该翻译数据库, 授予该用户使用该翻译数据库的权限
[0051] S104、 利用该翻译数据库对待翻译信息进行翻译处理。
[0052] 服务器利用翻译数据库将待翻译信息翻译为目标语言, 如将待翻译信息从英文 翻译为中文。 具体翻译过程与现有技术相同, 在此不再赘述。
[0053] S105、 将翻译处理后的信息发送给翻译设备。
[0054] 服务器将翻译处理后的信息发送给翻译设备, 翻译设备接收该翻译处理后的信 息并输出。 [0055] S106、 拒绝翻译请求。
[0056] 当没有查找到对应的翻译配置文件或者用户购买的翻译服务不在有效期内吋, 服务器则拒绝翻译请求。 同吋, 还可以向翻译设备发送错误提示信息, 所述错 误提示信息如 "没有购买翻译服务"、 "已过有效期, 请重新购买"等。
[0057] 如图 3所示, 当翻译配置文件包含用户身份信息、 翻译语种信息和服务吋间信 息时, 服务器根据翻译配置文件响应翻译请求的具体流程如下:
[0058] S201、 根据翻译请求中的用户身份信息査找对应的翻译配置文件。 当査找到对 应的翻译配置文件吋, 进入步骤 S202; 当没有査找到对应的翻译配置文件时, 进入步骤 S207。
[0059] S202、 根据翻译配置文件中的服务时间信息判断是否在有效期内。 当在有效期 内时, 进入步骤 S203 ; 当不在有效期内吋, 进入步骤 S207。
[0060] S203、 判断翻译请求与翻译配置文件中的翻译语种信息是否一致。 当一致时, 进入步骤 S203; 当不在有效期内时, 进入步骤 S207。
[0061] S204、 根据翻译语种信息开放对应的翻译数据库。
[0062] S205、 利用翻译数据库对待翻译信息进行翻译处理。
[0063] S206、 将翻译处理后的信息发送给翻译设备。
[0064] S207、 拒绝翻译请求。
[0065] 本方案与前一方案的区别是增加了步骤 S203 , 服务器需要判断用户请求翻译的 语种 (即翻译请求中的翻译语种信息) 是否与购买的翻译语种 (即翻译配置文 件中的翻译语种信息) 一致。
[0066] 例如, 用户请求翻译的语种为中译英, 用户购买的翻译语种为中英互译, 则判 定二者一致。 又如, 用户请求翻译的语种为日译中, 用户购买的翻译语种为中 译英, 则判定二者不一致。
[0067] 当翻译请求与翻译配置文件中的翻译语种信息不一致时, 服务器则拒绝翻译请 求。 同吋, 还可以向翻译设备发送错误提示信息, 所述错误提示信息如"没有购 买该语种的翻译服务"。
[0068] 可选地, 以翻译请求为请求下载翻译数据库到本地翻译为例。
[0069] 如图 4所示, 当翻译配置文件包含用户身份信息和服务吋间信息吋, 服务器根 据翻译配置文件响应翻译请求的具体流程如下:
[0070] S301、 根据翻译请求中的用户身份信息査找对应的翻译配置文件。 当査找到对 应的翻译配置文件吋, 进入步骤 S302; 当没有査找到对应的翻译配置文件时, 进入步骤 S305。
[0071] S302、 根据翻译配置文件中的服务时间信息判断是否在有效期内。 当在有效期 内时, 进入步骤 S303 ; 当不在有效期内吋, 进入步骤 S305。
[0072] S303、 根据翻译语种信息开放对应的翻译数据库。
[0073] S304、 向翻译设备发送该翻译数据库。
[0074] S305、 拒绝翻译请求。
[0075] 如图 5所示, 当翻译配置文件包含用户身份信息、 翻译语种信息和服务时间信 息时, 服务器根据翻译配置文件响应翻译请求的具体流程如下:
[0076] S401、 根据翻译请求中的用户身份信息査找对应的翻译配置文件。 当査找到对 应的翻译配置文件吋, 进入步骤 S402; 当没有査找到对应的翻译配置文件时, 进入步骤 S406。
[0077] S402、 根据翻译配置文件中的服务时间信息判断是否在有效期内。 当在有效期 内时, 进入步骤 S403 ; 当不在有效期内吋, 进入步骤 S406。
[0078] S403、 判断翻译请求与翻译配置文件中的翻译语种信息是否一致。 当一致吋, 进入步骤 S403; 当不在有效期内吋, 进入步骤 S406。
[0079] S404、 根据翻译语种信息开放对应的翻译数据库。
[0080] S405、 向翻译设备发送该翻译数据库。
[0081] S406、 拒绝翻译请求。
[0082] 当翻译请求为请求下载翻译数据库到本地翻译吋, 服务器执行翻译请求, 向翻 译设备发送对该用户开放的翻译数据库, 翻译设备接收该翻译数据库并保存在 本地, 后续则可以利用该翻译数据库在本地进行翻译。
[0083] 参照图 6, 提出本发明的语言翻译方法第二实施例, 所述方法包括以下步骤:
[0084] S21、 接收翻译需求, 根据翻译需求生成翻译配置文件。
[0085] S22、 向翻译设备发送翻译配置文件。
[0086] 本实施例中, 服务器生成翻译配置文件后, 还向发送翻译需求的翻译设备发送 给翻译配置文件, 翻译设备接收该翻译配置文件并保存于本地。
[0087] S23、 接收携带了翻译配置文件的翻译请求, 根据翻译配置文件响应翻译请求
[0088] 本实施例中, 翻译设备发送的翻译请求中还包括翻译配置文件, 服务器则根据 该翻译配置文件响应翻译请求。
[0089] 具体的, 服务器首先验证翻译配置文件是否为有效的翻译配置文件, 即判断该 翻译配置文件是否为经过授权的真实有效的翻译配置文件, 例如, 与服务器中 存储的翻译配置文件进行比对, 判断是否有与翻译请求中的翻译配置文件完全 相同的翻译配置文件。 当为有效的翻译配置文件时, 服务器则获取该翻译配置 文件中的服务吋间信息和 /或翻译语种信息, 判断用户购买的翻译服务是否在有 效期内和 /或翻译请求与翻译配置文件中的翻译语种信息是否一致; 当不在有效 期内和 /或不一致时, 服务器则拒绝翻译请求; 当在有效期内和 /或一致时, 服务 器则根据翻译语种信息幵放对应的翻译数据库, 并根据翻译请求向翻译设备发 送该翻译数据库, 或者, 利用该翻译数据库对待翻译信息进行翻译处理并将翻 译处理后的信息发送给翻译设备。
[0090] 本发明实施例的语言翻译方法, 通过接收用户的翻译需求, 根据翻译需求生成 翻译配置文件, 并根据翻译配置文件来响应用户的翻译请求。 从而, 使得用户 可以根据自己的需求灵活选择翻译语种、 服务吋间等, 翻译服务商则可以定制 各种翻译服务套餐供用户选择, 并为不同的服务进行合理定价, 极大的提高了 翻译设备使用的灵活性和便利性, 大大降低了用户的使用成本, 有利于翻译设 备的普及和推广。
[0091] 采用本发明的技术方案, 用户可以根据需要购买一种、 两种或多种翻译语种的 翻译服务, 也可以因临吋出差或旅游的需求而购买短吋间内某个翻译语种的翻 译服务, 甚至对于短期或临吋的翻译需求, 用户还可以租用翻译机来购买翻译 服务。 从而满足了用户的多样化需求, 极大的提升了用户体验, 加快了翻译设 备的普及和推广速度。
[0092] 参见图 7, 提出本发明的语言翻译装置第一实施例, 所述装置包括配置模块 10 和响应模块 20, 其中: 配置模块 10, 设置为接收翻译需求, 根据翻译需求生成 翻译配置文件; 响应模块 20, 设置为接收翻译请求, 根据翻译配置文件响应翻 译请求。
[0093] 本发明实施例中, 翻译需求包括用户身份信息和支付信息, 根据用户选择的翻 译服务套餐, 还包括翻译语种信息、 服务吋间信息等。
[0094] 如图 8所示, 配置模块 10包括支付验证单元 11和配置生成单元 12, 其中: 支付 验证单元 11, 设置为验证支付信息, 即判断该支付信息是否真实有效, 当支付 信息真实有效吋, 则认定验证通过; 配置生成单元 12, 设置为当验证通过吋, 根据用户身份信息以及翻译语种信息和 /或服务吋间信息生成翻译配置文件, 并 存储该翻译配置文件。 生成的翻译配置文件包括用户身份信息以及翻译语种信 息和 /或服务时间信息。
[0095] 响应模块 20接收到翻译请求吋, 则根据翻译配置文件响应翻译请求。 响应结果 包括执行翻译请求和拒绝翻译请求, 拒绝翻译请求时, 还可以同时向翻译设备 发送错误提示信息, 所述错误提示信息如"已过有效期, 请重新购买"、 "没有购 买该语种的翻译服务"、 "没有购买翻译服务"等等。
[0096] 翻译请求包括请求在服务器端在线翻译和请求下载翻译数据库到本地翻译两种 请求。 当翻译请求为请求在服务器端在线翻译吋, 翻译请求包括用户身份信息 、 翻译语种信息和待翻译信息。 当翻译请求为请求下载翻译数据库到本地翻译 吋, 翻译请求包括用户身份信息和翻译语种信息。
[0097] 可选地, 当翻译配置文件包含用户身份信息和服务吋间信息吋, 响应模块 20如 图 9所示, 包括配置査找单元 21、 有效判断单元 22和数据开放单元 23 , 其中: 配 置査找单元 21, 设置为根据用户身份信息査找对应的翻译配置文件; 有效判断 单元 22, 设置为当査找到对应的翻译配置文件吋, 根据翻译配置文件中的服务 吋间信息判断是否在有效期内; 数据开放单元 23, 设置为当在有效期内吋, 根 据翻译语种信息开放对应的翻译数据库。
[0098] 配置査找单元 21首先获取翻译请求中的用户身份信息, 然后根据用户身份信息 在存储的翻译配置文件中査找是否有与该用户身份信息相对应的翻译配置文件
, 当査找到对应的翻译配置文件吋, 则提取该翻译配置文件。
[0099] 有效判断单元 22获取该翻译配置文件的服务时间信息, 根据服务吋间信息判断 用户购买的翻译服务是否在有效期内。 当判定用户购买的翻译服务不在有效期 内时, 有效判断单元 22还可以删除、 丢弃该翻译配置文件, 或者标记该翻译配 置文件失效。
[0100] 当用户购买的翻译服务在有效期内, 数据幵放单元 23则根据翻译语种査找到对 应的翻译数据库, 并向该用户开放该翻译数据库, 授予该用户使用该翻译数据 库的权限。
[0101] 可选地, 当翻译配置文件包含用户身份信息、 翻译语种信息和服务时间信息时 , 响应模块 20如图 10所示, 包括配置査找单元 21、 有效判断单元 22、 语种判断 单元 24和数据幵放单元 23, 其中: 配置査找单元 21, 设置为根据用户身份信息 査找对应的翻译配置文件; 有效判断单元 22, 设置为当査找到对应的翻译配置 文件吋, 根据翻译配置文件中的服务吋间信息判断是否在有效期内; 语种判断 单元 24, 设置为当在有效期内时, 判断翻译请求与翻译配置文件中的翻译语种 信息是否一致; 数据开放单元 23, 设置为当翻译请求与翻译配置文件中的翻译 语种信息一致吋, 根据翻译语种信息开放对应的翻译数据库。
[0102] 本方案增设了语种判断单元 24, 语种判断单元 24需要判断用户请求翻译的语种
(即翻译请求中的翻译语种信息) 是否与购买的翻译语种 (即翻译配置文件中 的翻译语种信息) 一致。 例如, 用户请求翻译的语种为中译英, 用户购买的翻 译语种为中英互译, 语种判断单元 24则判定二者一致。 又如, 用户请求翻译的 语种为日译中, 用户购买的翻译语种为中译英, 语种判断单元 24则判定二者不 一致。
[0103] 当翻译请求为请求下载翻译数据库到本地翻译吋, 前述响应模块 20还包括数据 发送单元, 该数据发送单元设置为: 向翻译设备发送对该用户开放的翻译数据 库。
[0104] 当翻译请求为请求在服务器端在线翻译时, 前述响应模块 20还包括翻译处理单 元和信息发送单元, 其中: 翻译处理单元, 设置为利用对该用户开放的翻译数 据库对待翻译信息进行翻译处理; 信息发送单元, 设置为将翻译处理后的信息 发送给翻译设备。
[0105] 参见图 11 , 提出本发明的语言翻译装置第二实施例, 所述装置包括配置模块 10 、 配置发送模块 30和响应模块 20, 其中: 配置模块 10, 设置为接收翻译需求, 根据翻译需求生成翻译配置文件; 配置发送模块 30, 设置为向翻译设备发送生 成的翻译配置文件; 响应模块 20, 设置为接收携带了翻译配置文件的翻译请求 , 根据翻译配置文件响应翻译请求。
[0106] 本实施例在第一实施例的基础上增设了配置发送模块 30, 当配置模块 10生成了 翻译配置文件吋, 配置发送模块 30则向发送翻译需求的翻译设备发送该翻译配 置文件。 后续翻译设备发送翻译请求吋则携带该翻译配置文件, 响应模块 20则 根据翻译请求中的翻译配置文件响应该翻译请求。
[0107] 可选地, 当翻译配置文件包含用户身份信息和服务吋间信息吋, 响应模块 20如 图 12所示, 包括效力验证单元 25、 有效判断单元 22和数据开放单元 23, 其中: 效力验证单元 25, 设置为验证翻译配置文件是否为有效的翻译配置文件; 有效 判断单元 22, 设置为当为有效的翻译配置文件时, 根据翻译配置文件中的服务 吋间信息判断是否在有效期内; 数据开放单元 23, 设置为当在有效期内时, 根 据翻译语种信息开放对应的翻译数据库。
[0108] 效力验证单元 25判断翻译请求中的翻译配置文件是否为经过授权的真实有效的 翻译配置文件, 例如, 将该翻译配置文件与服务器中存储的翻译配置文件进行 比对, 判断是否有与翻译请求中的翻译配置文件完全相同的翻译配置文件。 若 有, 则判定翻译请求中的翻译配置文件为有效的翻译配置文件, 否则为无效的 翻译配置文件。
[0109] 可选地, 当翻译配置文件包含用户身份信息、 翻译语种信息和服务时间信息吋 , 响应模块 20如图 13所示, 包括效力验证单元 25、 有效判断单元 22、 语种判断 单元 24和数据幵放单元 23, 其中: 效力验证单元 25, 设置为验证翻译配置文件 是否为有效的翻译配置文件; 有效判断单元 22, 设置为当为有效的翻译配置文 件吋, 根据翻译配置文件中的服务吋间信息判断是否在有效期内; 语种判断单 元 24, 设置为当在有效期内吋, 判断翻译请求与所述翻译配置文件中的翻译语 种信息是否一致; 数据幵放单元 23, 设置为当翻译请求与翻译配置文件中的翻 译语种信息一致吋, 根据翻译语种信息开放对应的翻译数据库。
[0110] 当翻译请求为请求下载翻译数据库到本地翻译吋, 前述响应模块 20还包括数据 发送单元, 该数据发送单元设置为: 向翻译设备发送对该用户开放的翻译数据 库。
[0111] 当翻译请求为请求在服务器端在线翻译时, 前述响应模块 20还包括翻译处理单 元和信息发送单元, 其中: 翻译处理单元, 设置为利用对该用户开放的翻译数 据库对待翻译信息进行翻译处理; 信息发送单元, 设置为将翻译处理后的信息 发送给翻译设备。
[0112] 本发明实施例的语言翻译装置, 通过接收用户的翻译需求, 根据翻译需求生成 翻译配置文件, 并根据翻译配置文件来响应用户的翻译请求。 从而, 使得用户 可以根据自己的需求灵活选择翻译语种、 服务时间等, 翻译服务商则可以定制 各种翻译服务套餐供用户选择, 并为不同的服务进行合理定价, 极大的提高了 翻译设备使用的灵活性和便利性, 大大降低了用户的使用成本, 有利于翻译设 备的普及和推广。
[0113] 本发明同吋提出一种服务器, 其包括存储器、 处理器和至少一个被存储在存储 器中并被配置为由处理器执行的应用程序, 所述应用程序被配置为用于执行语 言翻译方法。 所述语言翻译方法包括以下步骤: 接收翻译需求, 根据翻译需求 生成翻译配置文件; 接收翻译请求, 根据翻译配置文件响应翻译请求; 其中, 翻译配置文件至少包含用户身份信息和服务吋间信息。 本实施例中所描述的语 言翻译方法为本发明中上述实施例所涉及的语言翻译方法, 在此不再赘述。
[0114] 本发明实施例可以有效地解决多种语言之间的翻译切换比较麻烦的问题, 可以 让翻译设备的供应商针对各种实际翻译应用场景的不同灵活收费, 甚至可以租 用翻译设备, 可以根据翻译的内容及服务吋间长短来收费, 避免了翻译设备用 户高额的一次性费用投入, 这对于翻译设备的大规模推广普及翻译设备的使用 都带来了巨大的方便。
[0115] 本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read-Only
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

一种语言翻译方法, 其中, 包括以下步骤:
接收翻译需求, 根据所述翻译需求生成翻译配置文件;
接收翻译请求, 根据所述翻译配置文件响应所述翻译请求。
根据权利要求 1所述的语言翻译方法, 其中, 所述翻译请求包括用户 身份信息和翻译语种信息, 所述翻译配置文件包含用户身份信息和服 务吋间信息, 所述根据所述翻译配置文件响应所述翻译请求的步骤包 括:
根据所述用户身份信息査找对应的翻译配置文件;
当査找到对应的翻译配置文件吋, 根据所述翻译配置文件中的服务吋 间信息判断是否在有效期内;
当在有效期内时, 根据所述翻译语种信息开放对应的翻译数据库。 根据权利要求 1所述的语言翻译方法, 其中, 所述翻译请求包括用户 身份信息和翻译语种信息, 所述翻译配置文件包含用户身份信息、 翻 译语种信息和服务时间信息, 所述根据所述翻译配置文件响应所述翻 译请求的步骤包括:
根据所述用户身份信息査找对应的翻译配置文件;
当査找到对应的翻译配置文件吋, 根据所述翻译配置文件中的服务吋 间信息判断是否在有效期内;
当在有效期内时, 判断所述翻译请求与所述翻译配置文件中的翻译语 种信息是否一致;
当一致吋, 根据所述翻译语种信息幵放对应的翻译数据库。
根据权利要求 1所述的语言翻译方法, 其中, 所述根据所述翻译需求 生成翻译配置文件的步骤之后还包括:
向翻译设备发送所述翻译配置文件。
根据权利要求 4所述的语言翻译方法, 其中, 所述翻译请求包括翻译 配置文件和翻译语种信息, 所述翻译配置文件包含用户身份信息和服 务吋间信息, 所述根据所述翻译配置文件响应所述翻译请求的步骤包 括:
验证所述翻译配置文件是否为有效的翻译配置文件;
当为有效的翻译配置文件吋, 根据所述翻译配置文件中的服务吋间信 息判断是否在有效期内;
当在有效期内吋, 根据所述翻译语种信息开放对应的翻译数据库。
[权利要求 6] 根据权利要求 4所述的语言翻译方法, 其中, 所述翻译请求包括翻译 配置文件和翻译语种信息, 所述翻译配置文件包含用户身份信息、 翻 译语种信息和服务时间信息, 所述根据所述翻译配置文件响应所述翻 译请求的步骤包括:
验证所述翻译配置文件是否为有效的翻译配置文件;
当为有效的翻译配置文件吋, 根据所述翻译配置文件中的服务吋间信 息判断是否在有效期内;
当在有效期内吋, 判断所述翻译请求与所述翻译配置文件中的翻译语 种信息是否一致;
当一致吋, 根据所述翻译语种信息幵放对应的翻译数据库。
[权利要求 7] 根据权利要求 2所述的语言翻译方法, 其中, 所述根据所述翻译语种 信息开放对应的翻译数据库的步骤之后还包括: 向翻译设备发送所述翻译数据库。
[权利要求 8] 根据权利要求 2所述的语言翻译方法, 其中, 所述翻译请求还包括待 翻译信息, 所述根据所述翻译语种信息幵放对应的翻译数据库的步骤 之后还包括:
利用所述翻译数据库对所述待翻译信息进行翻译处理;
将翻译处理后的信息发送给翻译设备。
[权利要求 9] 根据权利要求 1所述的语言翻译方法, 其中, 所述翻译需求包括支付 信息, 所述根据所述翻译需求生成翻译配置文件的步骤包括: 验证所述支付信息;
当验证通过吋, 根据所述翻译需求生成翻译配置文件, 并存储所述翻 译配置文件。 根据权利要求 9所述的语言翻译方法, 其中, 所述翻译需求还包括翻 译语种信息和 /或服务时间信息。
一种语言翻译装置, 其中, 包括:
配置模块, 设置为接收翻译需求, 根据所述翻译需求生成翻译配置文 件;
响应模块, 设置为接收翻译请求, 根据所述翻译配置文件响应所述翻 译请求。
根据权利要求 11所述的语言翻译装置, 其中, 所述翻译请求包括用户 身份信息和翻译语种信息, 所述翻译配置文件包含用户身份信息和服 务吋间信息, 所述响应模块包括:
配置査找单元, 设置为根据所述用户身份信息査找对应的翻译配置文 件;
有效判断单元, 设置为当査找到对应的翻译配置文件吋, 根据所述翻 译配置文件中的服务吋间信息判断是否在有效期内;
数据开放单元, 设置为当在有效期内吋, 根据所述翻译语种信息开放 对应的翻译数据库。
根据权利要求 11所述的语言翻译装置, 其中, 所述翻译请求包括用户 身份信息和翻译语种信息, 所述翻译配置文件包含用户身份信息、 翻 译语种信息和服务时间信息, 所述响应模块包括:
配置査找单元, 设置为根据所述用户身份信息査找对应的翻译配置文 件;
有效判断单元, 设置为当査找到对应的翻译配置文件吋, 根据所述翻 译配置文件中的服务吋间信息判断是否在有效期内;
语种判断单元, 设置为当在有效期内时, 判断所述翻译请求与所述翻 译配置文件中的翻译语种信息是否一致;
数据开放单元, 设置为当所述翻译请求与所述翻译配置文件中的翻译 语种信息一致吋, 根据所述翻译语种信息开放对应的翻译数据库。 根据权利要求 11所述的语言翻译装置, 其中, 所述装置还包括配置发 送模块, 所述配置发送模块设置为: 向翻译设备发送生成的所述翻译 配置文件。
[权利要求 15] 根据权利要求 14所述的语言翻译装置, 其中, 所述翻译请求包括翻译 配置文件和翻译语种信息, 所述翻译配置文件包含用户身份信息服务 吋间信息, 所述响应模块包括:
效力验证单元, 设置为验证所述翻译配置文件是否为有效的翻译配置 文件;
有效判断单元, 设置为当为有效的翻译配置文件吋, 根据所述翻译配 置文件中的服务吋间信息判断是否在有效期内; 数据开放单元, 设置为当在有效期内时, 根据所述翻译语种信息开放 对应的翻译数据库。
[权利要求 16] 根据权利要求 14所述的语言翻译装置, 其中, 所述翻译请求包括翻译 配置文件和翻译语种信息, 所述翻译配置文件包含用户身份信息、 翻 译语种信息和服务时间信息, 所述翻译配置文件还包括翻译语种信息 , 所述响应模块包括:
效力验证单元, 设置为验证所述翻译配置文件是否为有效的翻译配置 文件;
有效判断单元, 设置为当为有效的翻译配置文件吋, 根据所述翻译配 置文件中的服务吋间信息判断是否在有效期内; 语种判断单元, 设置为当在有效期内时, 判断所述翻译请求与所述翻 译配置文件中的翻译语种信息是否一致;
数据开放单元, 设置为当所述翻译请求与所述翻译配置文件中的翻译 语种信息一致吋, 根据所述翻译语种信息开放对应的翻译数据库。
[权利要求 17] 根据权利要求 12所述的语言翻译装置, 其中, 所述响应模块还包括数 据发送单元, 所述数据发送单元设置为: 向翻译设备发送幵放的所述 翻译数据库。
[权利要求 18] 根据权利要求 12所述的语言翻译装置, 其中, 所述翻译请求还包括待 翻译信息, 所述响应模块还包括: 翻译处理单元, 设置为利用所述翻译数据库对所述待翻译信息进行翻 译处理;
信息发送单元, 设置为将翻译处理后的信息发送给翻译设备。
[权利要求 19] 根据权利要求 11所述的语言翻译装置, 其中, 所述翻译需求包括支付 信息, 所述配置模块包括:
支付验证单元, 设置为验证所述支付信息;
配置生成单元, 设置为当验证通过吋, 根据所述翻译需求生成翻译配 置文件, 并存储所述翻译配置文件。
[权利要求 20] —种服务器, 包括存储器、 处理器和至少一个被存储在所述存储器中 并被配置为由所述处理器执行的应用程序, 其中, 所述应用程序被配 置为用于执行权利要求 1所述的语言翻译方法。
PCT/CN2017/110730 2017-11-13 2017-11-13 语言翻译方法、装置和服务器 WO2019090782A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110730 WO2019090782A1 (zh) 2017-11-13 2017-11-13 语言翻译方法、装置和服务器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110730 WO2019090782A1 (zh) 2017-11-13 2017-11-13 语言翻译方法、装置和服务器

Publications (1)

Publication Number Publication Date
WO2019090782A1 true WO2019090782A1 (zh) 2019-05-16

Family

ID=66437499

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110730 WO2019090782A1 (zh) 2017-11-13 2017-11-13 语言翻译方法、装置和服务器

Country Status (1)

Country Link
WO (1) WO2019090782A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530861A (zh) * 2003-02-24 2004-09-22 语言翻译方法及其系统
CN103329123A (zh) * 2011-01-06 2013-09-25 高通股份有限公司 用于向移动站提供翻译信息服务的方法和设备
CN104636501A (zh) * 2015-03-09 2015-05-20 曹振祥 一种多媒体网络人工即时翻译系统及方法
CN105335355A (zh) * 2014-08-08 2016-02-17 掌赢信息科技(上海)有限公司 即时通信软件中的文本消息自动翻译方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1530861A (zh) * 2003-02-24 2004-09-22 语言翻译方法及其系统
CN103329123A (zh) * 2011-01-06 2013-09-25 高通股份有限公司 用于向移动站提供翻译信息服务的方法和设备
CN105335355A (zh) * 2014-08-08 2016-02-17 掌赢信息科技(上海)有限公司 即时通信软件中的文本消息自动翻译方法、装置及系统
CN104636501A (zh) * 2015-03-09 2015-05-20 曹振祥 一种多媒体网络人工即时翻译系统及方法

Similar Documents

Publication Publication Date Title
KR100930457B1 (ko) 이동통신단말을 이용한 인증 및 결제 시스템과 방법
WO2021227966A1 (zh) 绑定处理
CN112953970B (zh) 一种身份认证方法及身份认证系统
JP5739008B2 (ja) 通信セッションを検証する方法、装置、およびシステム
RU2411670C2 (ru) Способ создания и проверки подлинности электронной подписи
WO2015101310A1 (zh) 一种业务处理方法、装置及系统
WO2015062229A1 (en) Method, apparatus, and system for secure payment
CN104735078B (zh) 一种Portal接入认证系统及方法
EP3061025B1 (en) Method and system for authenticating service
US9825955B2 (en) Method and system for exchanging information
WO2015120694A1 (zh) 第三方支付平台的注册方法及装置、系统
CN105656850B (zh) 一种数据处理方法、相关装置及系统
JP2012502366A5 (zh)
WO2014205849A1 (zh) 非接触支付方法、设备和系统
CN105635168A (zh) 一种脱机交易装置及其安全密钥的使用方法
CN111523102A (zh) 小程序登录方法、装置、设备及计算机可读存储介质
CN108876340B (zh) 基于生物特征识别的虚拟资产转移方法、装置及存储介质
KR101748615B1 (ko) 접속 정보 확인에 기초한 모바일 간편 결제 보조 장치 및 그 동작 방법
JP2017535893A (ja) 支払い検証方法、装置及びシステム
CN102404305A (zh) 网络使用者身份认证方法
WO2019090782A1 (zh) 语言翻译方法、装置和服务器
KR20120108310A (ko) 스마트폰을 이용한 전자거래 인증 방법 및 시스템
TW201907688A (zh) 驗證自一或多個運算裝置所接收的通訊之系統、裝置和方法
KR101741916B1 (ko) 해외송금 처리 방법 및 장치
CN106161528B (zh) 一种业务处理方法和装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17931406

Country of ref document: EP

Kind code of ref document: A1