WO2019007414A1 - Method for realizing support of application for multiple languages, storage device, and mobile terminal - Google Patents

Method for realizing support of application for multiple languages, storage device, and mobile terminal Download PDF

Info

Publication number
WO2019007414A1
WO2019007414A1 PCT/CN2018/094772 CN2018094772W WO2019007414A1 WO 2019007414 A1 WO2019007414 A1 WO 2019007414A1 CN 2018094772 W CN2018094772 W CN 2018094772W WO 2019007414 A1 WO2019007414 A1 WO 2019007414A1
Authority
WO
WIPO (PCT)
Prior art keywords
language
application
mobile terminal
currently used
identifier
Prior art date
Application number
PCT/CN2018/094772
Other languages
French (fr)
Chinese (zh)
Inventor
冯德政
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2019007414A1 publication Critical patent/WO2019007414A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Definitions

  • the present invention relates to the field of mobile terminal technologies, and in particular, to a method, a storage device, and a mobile terminal for implementing an application supporting multiple languages.
  • the current solution is to incorporate multiple languages into the application at the same time. For example, to develop an application for an Android system, if an application can be used by people who use different texts around the world, it is necessary to translate the language from all over the world into the application and call it according to the user's choice. Display the required language text. For example, the application packages the pre-translated language into the application. When it is to be displayed, it reads the language identifier currently used by the device user, and then loads the corresponding pre-translated language to display it.
  • the application wants to display a button with the word "return” on the screen, the language used by the current user is Chinese, then by loading the Chinese logo, such as CN, and then reading the pre-translated "return” word. Take it out and display it on the button. If the user switches the language to English, then the character when loading the character is EN, then the word "return” is obtained.
  • each application in the prior art needs to prepare all the pre-translated languages required by the application and package them into the application, which causes the application to occupy more storage space and increase the text.
  • the cost of translation due to the degree of text translation, for some applications with variable content, the characters that are not pre-translated cannot be displayed normally, which causes inconvenience to the user.
  • the embodiment of the invention provides a method, a storage device and a mobile terminal for implementing an application supporting multi-language, which does not need to translate the language of each country in advance, and does not require a large amount of capital and time to process language translation, thereby saving application development. Cost, and effectively optimize the translation accuracy, bringing convenience to users.
  • an embodiment of the present invention provides a method for implementing an application supporting multiple languages, where the method includes:
  • the translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the implementation application supports a multi-language method, wherein before the step of setting a language identifier library including national language identifiers in the application in advance, the method further includes:
  • the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling
  • the interface and function buttons of the application are displayed as the language text required by the user.
  • the implementation application supports a multi-language method, wherein a source language text of the application is set by a developer of the application during a program development process; when the application is first opened by a user
  • the text on the application interface and the function button is the source language text.
  • the implementation application supports a multi-language method in which the source language text of the application has one and only one.
  • the implementation of the application supports a multi-language method, wherein the step of setting a language identifier library including a national language identifier in the application in advance includes:
  • the language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
  • the implementation application supports a multi-language method, wherein the step of identifying a language text currently used in a mobile terminal, and acquiring a language identifier corresponding to a language text currently used by the user in the language identifier library, include:
  • the language identifier is a language identifier currently used in the mobile terminal.
  • the implementation application supports a multi-language method, wherein a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a current use in the mobile terminal.
  • the language text corresponding to the language identifier, and the steps displayed, including:
  • the translation system acquires a language identifier currently used in the mobile terminal
  • the translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the implementation application supports a multi-language method, wherein the translation system automatically translates the interface language of the application and the source language text on the function button into a language corresponding to the language identifier currently used in the mobile terminal. After the text and the steps shown, it also includes:
  • the language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
  • an embodiment of the present invention provides a storage device, where a plurality of instructions are stored, where the instructions are adapted to be loaded and executed by a processor to implement the following steps:
  • the translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the storage device wherein before the step of setting a language identifier library including a national language identifier in the application in advance, the method further includes:
  • the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling
  • the interface and function buttons of the application are displayed as the language text required by the user.
  • the storage device wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to the language text currently used by the user in the language identifier library, specifically includes:
  • the language identifier is a language identifier currently used in the mobile terminal.
  • a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a language corresponding to a language identifier currently used in the mobile terminal
  • the text and the steps displayed include:
  • the translation system acquires a language identifier currently used in the mobile terminal
  • the translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the storage device wherein the translation system automatically translates the interface language of the application and the source language text on the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays the steps After that, it also includes:
  • the language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
  • an embodiment of the present invention provides a mobile terminal, including: a processor, a storage device communicatively coupled to the processor, the storage device being adapted to store a plurality of instructions; the processor is adapted to invoke the Store the instructions in the device to perform the following steps:
  • the translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the mobile terminal before the step of setting a language identifier library including a national language identifier in the application in advance, further includes:
  • the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling
  • the interface and function buttons of the application are displayed as the language text required by the user.
  • the mobile terminal wherein a source language text of the application is set by a developer of the application during a program development process; when the application is opened for use by a user for the first time, the application
  • the text on the interface and function buttons is the source language text.
  • the mobile terminal wherein the step of setting a language identifier library including a national language identifier in the application in advance includes:
  • the language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
  • the mobile terminal wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to the language text currently used by the user in the language identifier library, specifically includes:
  • the language identifier is a language identifier currently used in the mobile terminal.
  • a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a language corresponding to a language identifier currently used in the mobile terminal
  • the text and the steps displayed include:
  • the translation system acquires a language identifier currently used in the mobile terminal
  • the translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the mobile terminal wherein the translation system automatically translates the interface language of the application and the source language text on the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays the steps After that, it also includes:
  • the language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
  • the present invention sets a language identifier library containing national language identifiers in an application in advance; identifies a language text currently used by a user in a mobile terminal, and acquires a language text currently used by the user in the language identifier a language identifier corresponding to the library; the translation system preset in the application translates the interface language of the application and the source language text on the function button into a language identifier currently used by the user in the mobile terminal Language text and display.
  • the application does not need to translate the language of each country in advance during the development process, and does not need to spend a lot of money and time to deal with the language translation problem, which not only saves the application development cost, but also optimizes the translation accuracy and brings the user to the user. Convenient.
  • FIG. 1 is a flow chart of a preferred embodiment of a method for implementing an application supporting multiple languages provided by the present invention.
  • FIG. 2 is a functional block diagram of a mobile terminal provided by the present invention.
  • FIG. 3 is a schematic diagram of a specific structure of an embodiment of a mobile terminal provided by the present invention.
  • FIG. 1 is a flowchart of a preferred embodiment of a method for implementing an application supporting multiple languages provided by the present invention.
  • the method for implementing an application supporting multiple languages includes the following steps:
  • step S100 a language identifier library including national language identifiers is set in advance in the application.
  • the step S100 specifically includes:
  • Step S101 collecting language characters of each country, and setting a unique corresponding language identifier for each language
  • Step S102 Import national language characters and corresponding language identifiers into the application to form the language identifier library including national language identifiers.
  • the application is internationalized in order to make it easy for users in countries all over the world to use the application.
  • a language identification library is preset in the process of application development.
  • the language identifier library includes language characters of various countries in the world and a language identifier uniquely corresponding to each language language.
  • the specific process of forming the language identifier library may be: the developer of the application collects language characters of various countries in the world during the program development process, and sets a unique language identifier for each language language, and then the language of each country and The corresponding language identifier is imported into the application to form the language identifier library including national language identifiers.
  • the language collected by the developer in Chinese is Chinese, and the corresponding language identifier in Chinese is set to "CN", the language in the United States is collected in English, and the corresponding language identifier in English is set to "EN", which is collected in Japan.
  • the language text is Japanese, and the corresponding language identifier of Japanese is set to "JP”. Therefore, Chinese in the language identifier corresponds to "CN”, English corresponds to "EN”, and Japanese corresponds to "JP".
  • Step S200 Identify a language text currently used by the user mobile terminal, and obtain a language identifier corresponding to the language text currently used by the user in the language identifier library.
  • the step S200 specifically includes:
  • Step S201 acquiring an operation instruction for starting the application, and performing a startup operation
  • Step S202 automatically identifying a language character currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used by the user in the mobile terminal;
  • Step S203 Acquire a queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
  • the application in order to enable the application to provide language support required by the user according to the needs of the user.
  • the application automatically recognizes the language text on the user's mobile terminal, that is, the current use of the user on the mobile terminal.
  • the language text, and searching for the language identifier corresponding to the language text currently used by the user in the language identifier library according to the recognized language text, the language identifier is the language identifier currently used by the user in the mobile terminal.
  • the language text identifier currently used by the user on the mobile terminal is “EN”.
  • the user does not need to manually select the required locale, and the application automatically recognizes the current user's locale and flexibly provides different language support for the user. User's use is convenient.
  • Step S300 The translation system preset in the application automatically translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, and displays the language text.
  • the step S300 specifically includes:
  • Step S301 The translation system acquires a language identifier currently used in the mobile terminal
  • Step S302 The translation system automatically translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, and displays the language text.
  • the present invention pre-sets a translation system in the application, and the translation system is used to preset the application.
  • the source language text is translated into the language text corresponding to the language identifier currently used by the user in the mobile terminal.
  • the developer of the application sets a source language text for the application during the program development process. Therefore, when the application is first opened by the user, the text on the interface and the button is This source language text.
  • the source language text can be directly set to the language of the country where the developer is located.
  • the translation system When the translation system acquires the language identifier currently used by the user in the mobile terminal, automatically translates the interface language of the application and the source language text on the function button into the current use of the user in the mobile terminal.
  • the language text corresponding to the language identifier is displayed.
  • the source language text in the application is Chinese, assuming that the application has a "return” button, and when the language identifier currently used by the user is "EN", the translation system automatically translates the "return” of the application. Into "return”. Therefore, the present invention can automatically translate the application into the language required by the user according to the language currently used by the user, without having to import a large number of translated applications into the program in advance as in the prior art, saving time and funds for application development. .
  • the translated language of the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls from the buffer area.
  • the cached language text is displayed. Because in most users, the language used is rarely changed. For example, Chinese will always use Chinese, and English will always use English. Therefore, assuming that the user has been using English all the time, the translation system will cache the translated text in the preset buffer area. When the user uses the application again next time, the cached language text will be directly called and displayed. Yes, the speed of translation is improved and the convenience is provided to the user.
  • the present invention also discloses a mobile terminal.
  • the processor 10 includes a storage device (memory) 20 connected to the processor; wherein the processor 10 is configured to invoke program instructions in the storage device 20 to perform the foregoing implementation.
  • the method provided by the example for example:
  • Step S100 Setting a language identifier library including language identifiers in the application in advance in the application;
  • Step S200 Identify a language text currently used in the mobile terminal, and obtain a language identifier corresponding to the language text currently used by the user in the language identifier library;
  • Step S300 The translation system preset in the application translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, and displays the language text.
  • the embodiment of the present invention further provides a storage device, where the storage device stores computer instructions, and the computer instructions cause the computer to execute the methods provided by the foregoing embodiments.
  • the program may be stored in a computer readable storage device, and the storage device may include: Read only memory (ROM), random access memory (RAM), magnetic or optical disk, and the like.
  • ROM Read only memory
  • RAM random access memory
  • magnetic or optical disk and the like.
  • FIG. 3 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal may be used to implement a method for implementing an application supporting multi-language provided in the foregoing embodiment.
  • the mobile terminal 1200 can be a smartphone or a tablet.
  • the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage medium, an input unit 130, and a display unit. 140, sensor 150, audio circuit 160, transmission module 170, including processor 180 having one or more processing cores (only one shown) and power supply 190 and the like.
  • RF Radio Frequency
  • FIG. 3 does not constitute a limitation of the mobile terminal 1200, and may include more or less components than those illustrated, or combine some components or different components. Arrangement. among them:
  • the RF circuit 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices.
  • the RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like.
  • SIM Subscriber Identity Module
  • the RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network.
  • the wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the above wireless networks may use various communication standards, protocols and technologies, including but not limited to global mobile communication systems (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code) Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division) Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (such as the Institute of Electrical and Electronics Engineers Standard IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n), VoIP (Voice) Over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max, other protocols for mail, instant messaging, and short messages, as well as any other suitable communication protocol, may even include protocols that are not currently being developed.
  • GSM Global System for Mobile Communication
  • EDGE Enhanced Mobile Communication Technology
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple
  • the memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the method for implementing the application supporting multi-language in the above embodiment, and the processor 180 executes various programs by running the software programs and modules stored in the memory 120. Functional applications and data processing, that is, the application supports multi-language functions.
  • Memory 120 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 120 can further include memory remotely located relative to processor 180, which can be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 1200, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141, and optionally, an LCD (Liquid may be used)
  • the display panel 141 is configured in the form of a Crystal Display (LCD) or an OLED (Organic Light-Emitting Diode).
  • touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Mobile terminal 1200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 1200 moves to the ear. And / or backlight.
  • the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile terminal 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 1200.
  • the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 1200.
  • the mobile terminal 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (eg, Wi-Fi module), which provides wireless broadband Internet access to the user.
  • the transmission module 170 eg, Wi-Fi module
  • FIG. 3 shows the transmission module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 1200, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 180 is a control center of the mobile terminal 1200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the mobile terminal 1200 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the mobile terminal 1200 also includes a power source 190 (such as a battery) that powers the various components.
  • the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the mobile terminal 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, and the like, and details are not described herein.
  • the display unit of the mobile terminal is a touch screen display
  • the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one
  • the above processor executes one or more programs that include instructions for performing the following operations:
  • the translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the mobile terminal before the step of setting a language identifier library including a national language identifier in the application in advance, further includes:
  • the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling
  • the interface and function buttons of the application are displayed as the language text required by the user.
  • the mobile terminal wherein a source language text of the application is set by a developer of the application during a program development process; when the application is opened for use by a user for the first time, the application
  • the text on the interface and function buttons is the source language text.
  • the mobile terminal wherein the step of setting a language identifier library including a national language identifier in the application in advance includes:
  • the language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
  • the mobile terminal wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to the language text currently used by the user in the language identifier library, specifically includes:
  • the language identifier is a language identifier currently used in the mobile terminal.
  • a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a language corresponding to a language identifier currently used in the mobile terminal
  • the text and the steps displayed include:
  • the translation system acquires a language identifier currently used in the mobile terminal
  • the translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  • the mobile terminal wherein the translation system automatically translates the interface language of the application and the source language text on the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays the steps After that, it also includes:
  • the language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
  • the present invention provides a method, a storage device, and a mobile terminal for implementing an application supporting multiple languages.
  • the method includes: setting a language identifier library including language identifiers in an application in advance; and identifying the mobile terminal.
  • the language text currently used in the language and obtain the language identifier corresponding to the language text currently used by the user in the language identifier library; the default translation system in the application will be on the interface and function buttons of the application
  • the source language text is translated into a language text corresponding to the language identifier currently used in the mobile terminal, and displayed.
  • the application does not need to translate the language of each country in advance in the development process, and does not need to spend a lot of money and time to deal with the language translation problem, which not only saves the application development cost, but also optimizes the translation accuracy. Degree, bringing convenience to the user.

Abstract

Disclosed are a method for realizing support of an application for multiple languages, a storage device, and a mobile terminal. The method comprises: identify a language currently used in a mobile terminal, and acquire a language identifier, corresponding to the language currently used by a user, in a language identifier base; and a translation system preset in an application automatically translates a source language on an interface and a functional key of the application into the language corresponding to the language identifier currently used in the mobile terminal, and displays the language.

Description

实现应用程序支持多语言的方法、存储设备及移动终端Method, storage device and mobile terminal for implementing application supporting multi-language
本申请要求于2017年7月7日提交中国专利局、申请号为201710551526.2、发明名称为“实现应用程序支持多语言的方法、存储设备及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on July 7, 2017, the Chinese Patent Office, the application number is 201710551526.2, and the invention is entitled "Implementation application supports multi-language methods, storage devices and mobile terminals". This is incorporated herein by reference.
技术领域Technical field
本发明涉及移动终端技术领域,具体涉及一种实现应用程序支持多语言的方法、存储设备及移动终端。The present invention relates to the field of mobile terminal technologies, and in particular, to a method, a storage device, and a mobile terminal for implementing an application supporting multiple languages.
背景技术Background technique
随着移动终端的快速普及,移动终端已经成为人们日常生活中必不可少的工具,移动终端给人们的生活带来了太多的便利。为了满足人们的需要,越来越多的应用程序也被开发者开发出来,人们可以通过应用程序处理很多办公、生活和娱乐的事情。With the rapid spread of mobile terminals, mobile terminals have become an indispensable tool in people's daily lives, and mobile terminals have brought too much convenience to people's lives. In order to meet people's needs, more and more applications have been developed by developers, and people can handle a lot of office, life and entertainment through the application.
在经济全球化程度越来越深,以互联网为基托把世界各国“缩小”成一个地球村的大背景下,软件应用的国际化变得越来越普遍。自从2006年机器深度学习理论的提出,大大促进了人工智能的发展,尤其在最近几年,人工智能获得了蓬勃的发展。在以人类语言处理的智能机器人取得重大突破。在大数据时代的渐渐临近,因此,智能文字翻译(将文字从一种语言翻译成另外一种语言)的速度、准确性和丰富性得到大大的提升。甚至在大数据分析和机器学习的过程中,文字翻译也会变得更加贴近生活,贴近文化。Under the background of the globalization of the economy and the "shrinking" of the world countries into a global village based on the Internet, the internationalization of software applications has become more and more common. Since the introduction of the machine deep learning theory in 2006, the development of artificial intelligence has been greatly promoted, especially in recent years, artificial intelligence has achieved vigorous development. A major breakthrough was made in intelligent robots processed in human language. As the era of big data approaches, the speed, accuracy, and richness of intelligent text translation (translating words from one language to another) has been greatly enhanced. Even in the process of big data analysis and machine learning, text translation will become closer to life and close to culture.
然而,由于世界各国各地区所使用的文字不同,阻碍了软件应用的国际化进程。而目前的解决方案则是把多种语言同时合入到应用程序当中。以开发一个Android系统的应用程序为例,要想应用程序能在世界各地被使用不同文字的人使用,就需要预先把世界各地的语言翻译好后合入到应用程序当中,根据用户的选择调用显示需要的语言文字。例如:应用程序把预先翻译好的语言打包到应用程序当中,当要显示时,读取设备用户当前使用的语言标识,然后把对应的预翻译好的语言加载出来显示。假如,应用程序要在屏幕中显示一个带有“返回”二字的按钮,当前用户使用的语言是汉语,那么通过加载汉语的标识,如CN,然后把预翻译好的“返回”二字读取出来,显示在按钮上。假如当用户把语言切换到英语,那么加载字符时的标识为EN,则取得到“return”单词。However, due to the different languages used in various regions of the world, the internationalization of software applications has been hindered. The current solution is to incorporate multiple languages into the application at the same time. For example, to develop an application for an Android system, if an application can be used by people who use different texts around the world, it is necessary to translate the language from all over the world into the application and call it according to the user's choice. Display the required language text. For example, the application packages the pre-translated language into the application. When it is to be displayed, it reads the language identifier currently used by the device user, and then loads the corresponding pre-translated language to display it. If the application wants to display a button with the word "return" on the screen, the language used by the current user is Chinese, then by loading the Chinese logo, such as CN, and then reading the pre-translated "return" word. Take it out and display it on the button. If the user switches the language to English, then the character when loading the character is EN, then the word "return" is obtained.
由此看来,现有技术中的每个应用程序都需要准备好该应用程序所需要的所有的预翻译语言,并打包到应用程序当中,这会导致应用程序占用存储空间增大,增加文字翻译的成本。而且受限于文字翻译的程度,对于一些内容多变的应用程序则无法正常显示没有被预先翻译的文字,给用户的使用造成不便。From this point of view, each application in the prior art needs to prepare all the pre-translated languages required by the application and package them into the application, which causes the application to occupy more storage space and increase the text. The cost of translation. Moreover, due to the degree of text translation, for some applications with variable content, the characters that are not pre-translated cannot be displayed normally, which causes inconvenience to the user.
因此,现有技术还有待于改进和发展。Therefore, the prior art has yet to be improved and developed.
技术问题technical problem
本发明实施例提供一种实现应用程序支持多语言的方法、存储设备及移动终端,其无需预先将各国的语言进行翻译,不需要花费大量的资金和时间处理语言翻译,不但节约了应用程序开发成本,而且有效优化了翻译准确度,给用户带来了方便。The embodiment of the invention provides a method, a storage device and a mobile terminal for implementing an application supporting multi-language, which does not need to translate the language of each country in advance, and does not require a large amount of capital and time to process language translation, thereby saving application development. Cost, and effectively optimize the translation accuracy, bringing convenience to users.
技术解决方案Technical solution
第一方面,本发明实施例提供一种实现应用程序支持多语言的方法,其中,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for implementing an application supporting multiple languages, where the method includes:
预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的实现应用程序支持多语言的方法,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The implementation application supports a multi-language method, wherein before the step of setting a language identifier library including national language identifiers in the application in advance, the method further includes:
预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
所述的实现应用程序支持多语言的方法,其中,所述应用程序的源语言文字为所述应用程序的开发者在程序开发过程中设置的;当所述应用程序第一次被用户打开使用时,所述应用程序界面和功能按钮上的文字为所述源语言文字。The implementation application supports a multi-language method, wherein a source language text of the application is set by a developer of the application during a program development process; when the application is first opened by a user The text on the application interface and the function button is the source language text.
所述的实现应用程序支持多语言的方法,其中,所述应用程序的源语言文字有且只有设置一种。The implementation application supports a multi-language method in which the source language text of the application has one and only one.
所述的实现应用程序支持多语言的方法,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤,具体包括:The implementation of the application supports a multi-language method, wherein the step of setting a language identifier library including a national language identifier in the application in advance includes:
收集各国的语言,并为每一种语言设置唯一对应的语言标识;Collect the languages of each country and set a unique corresponding language identifier for each language;
将各国语言和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。The language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
所述的实现应用程序支持多语言的方法,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The implementation application supports a multi-language method, wherein the step of identifying a language text currently used in a mobile terminal, and acquiring a language identifier corresponding to a language text currently used by the user in the language identifier library, include:
获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
所述的实现应用程序支持多语言的方法,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:The implementation application supports a multi-language method, wherein a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a current use in the mobile terminal. The language text corresponding to the language identifier, and the steps displayed, including:
所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的实现应用程序支持多语言的方法,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The implementation application supports a multi-language method, wherein the translation system automatically translates the interface language of the application and the source language text on the function button into a language corresponding to the language identifier currently used in the mobile terminal. After the text and the steps shown, it also includes:
将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
第二方面,本发明实施例提供一种存储设备,其上存储有多条指令,其中,所述指令适于由处理器加载并执行,以实现如下步骤:In a second aspect, an embodiment of the present invention provides a storage device, where a plurality of instructions are stored, where the instructions are adapted to be loaded and executed by a processor to implement the following steps:
预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的存储设备,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The storage device, wherein before the step of setting a language identifier library including a national language identifier in the application in advance, the method further includes:
预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
所述的存储设备,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The storage device, wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to the language text currently used by the user in the language identifier library, specifically includes:
获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
所述的存储设备,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:The storage device, wherein a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a language corresponding to a language identifier currently used in the mobile terminal The text and the steps displayed include:
所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的存储设备,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The storage device, wherein the translation system automatically translates the interface language of the application and the source language text on the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays the steps After that, it also includes:
将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
第三方面,本发明实施例提供一种移动终端,其中,包括:处理器、与处理器通信连接的存储设备,所述存储设备适于存储多条指令;所述处理器适于调用所述存储设备中的指令,以执行如下步骤:In a third aspect, an embodiment of the present invention provides a mobile terminal, including: a processor, a storage device communicatively coupled to the processor, the storage device being adapted to store a plurality of instructions; the processor is adapted to invoke the Store the instructions in the device to perform the following steps:
预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的移动终端,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The mobile terminal, before the step of setting a language identifier library including a national language identifier in the application in advance, further includes:
预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
所述的移动终端,其中,所述应用程序的源语言文字为所述应用程序的开发者在程序开发过程中设置的;当所述应用程序第一次被用户打开使用时,所述应用程序界面和功能按钮上的文字为所述源语言文字。The mobile terminal, wherein a source language text of the application is set by a developer of the application during a program development process; when the application is opened for use by a user for the first time, the application The text on the interface and function buttons is the source language text.
所述的移动终端,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤,具体包括:The mobile terminal, wherein the step of setting a language identifier library including a national language identifier in the application in advance includes:
收集各国的语言,并为每一种语言设置唯一对应的语言标识;Collect the languages of each country and set a unique corresponding language identifier for each language;
将各国语言和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。The language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
所述的移动终端,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The mobile terminal, wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to the language text currently used by the user in the language identifier library, specifically includes:
获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
所述的移动终端,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:The mobile terminal, wherein a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a language corresponding to a language identifier currently used in the mobile terminal The text and the steps displayed include:
所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的移动终端,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The mobile terminal, wherein the translation system automatically translates the interface language of the application and the source language text on the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays the steps After that, it also includes:
将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
有益效果Beneficial effect
本发明的有益效果:本发明通过预先在应用程序中设置一包含各国语言标识的语言标识库;识别用户在移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;所述应用程序中预设的翻译系统将所述应用程序的界面和功能按钮上的源语言文字翻译成用户在所述移动终端中当前使用的语言标识所对应的语言文字,并显示。使得应用程序在开发过程中无需预先将各国的语言进行翻译,不需要花费大量的资金和时间处理语言翻译的问题,不但节约了应用程序开发成本,而且有效优化了翻译准确度,给用户带来了方便。Advantageous Effects of the Invention: The present invention sets a language identifier library containing national language identifiers in an application in advance; identifies a language text currently used by a user in a mobile terminal, and acquires a language text currently used by the user in the language identifier a language identifier corresponding to the library; the translation system preset in the application translates the interface language of the application and the source language text on the function button into a language identifier currently used by the user in the mobile terminal Language text and display. The application does not need to translate the language of each country in advance during the development process, and does not need to spend a lot of money and time to deal with the language translation problem, which not only saves the application development cost, but also optimizes the translation accuracy and brings the user to the user. Convenient.
附图说明DRAWINGS
图1是本发明提供的实现应用程序支持多语言的方法的较佳实施例的流程图。1 is a flow chart of a preferred embodiment of a method for implementing an application supporting multiple languages provided by the present invention.
图2是本发明提供的移动终端的功能原理框图。2 is a functional block diagram of a mobile terminal provided by the present invention.
图3是本发明提供的移动终端的实施例的具体结构示意图。FIG. 3 is a schematic diagram of a specific structure of an embodiment of a mobile terminal provided by the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
为使本发明的目的、技术方案及优点更加清楚、明确,以下参照附图并举实施例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,图1是本发明提供的实现应用程序支持多语言的方法的较佳实施例的流程图。所述实现应用程序支持多语言的方法包括以下步骤:As shown in FIG. 1, FIG. 1 is a flowchart of a preferred embodiment of a method for implementing an application supporting multiple languages provided by the present invention. The method for implementing an application supporting multiple languages includes the following steps:
步骤S100、预先在应用程序中设置一包含各国语言标识的语言标识库。In step S100, a language identifier library including national language identifiers is set in advance in the application.
较佳地,所述步骤S100具体包括:Preferably, the step S100 specifically includes:
步骤S101、收集各国的语言文字,并为每一种语言设置唯一对应的语言标识;Step S101: collecting language characters of each country, and setting a unique corresponding language identifier for each language;
步骤S102、将各国语言文字和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。Step S102: Import national language characters and corresponding language identifiers into the application to form the language identifier library including national language identifiers.
具体实施时,为了使得全世界各国的用户都能很方便的使用所述应用程序,使应用程序国际化。本发明中,在应用程序开发的过程中预先设置一语言标识库。较佳地,所述语言标识库中包含了世界各国的语言文字以及与每一种语言文字唯一对应的语言标识。所述语言标识库的具体形成过程可以为:所述应用程序的开发人员在程序开发过程中收集世界各国的语言文字,并且为每一种语言文字设置唯一的语言标识,然后将各国语言文字和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。In the specific implementation, the application is internationalized in order to make it easy for users in countries all over the world to use the application. In the present invention, a language identification library is preset in the process of application development. Preferably, the language identifier library includes language characters of various countries in the world and a language identifier uniquely corresponding to each language language. The specific process of forming the language identifier library may be: the developer of the application collects language characters of various countries in the world during the program development process, and sets a unique language identifier for each language language, and then the language of each country and The corresponding language identifier is imported into the application to form the language identifier library including national language identifiers.
举例说明,开发人员收集到中国的语言文字为中文,并设置中文的对应语言标识为“CN”,收集到美国的语言文字为英文,设置英文的对应语言标识为“EN”,收集到日本的语言文字为日文,并设置日文的对应的语言标识为“JP”。因此,所述语言标识中中文对应“CN”,英文对应“EN”,日文对应“JP”。通过将世界各国的语言文字收集,并设置唯一对应的语言标识,使得所述应用程序具备供多国用户使用的优点。For example, the language collected by the developer in Chinese is Chinese, and the corresponding language identifier in Chinese is set to "CN", the language in the United States is collected in English, and the corresponding language identifier in English is set to "EN", which is collected in Japan. The language text is Japanese, and the corresponding language identifier of Japanese is set to "JP". Therefore, Chinese in the language identifier corresponds to "CN", English corresponds to "EN", and Japanese corresponds to "JP". By collecting the language of the world and setting a unique corresponding language identifier, the application has the advantage of being used by multinational users.
步骤S200、识别用户移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识。Step S200: Identify a language text currently used by the user mobile terminal, and obtain a language identifier corresponding to the language text currently used by the user in the language identifier library.
较佳地,所述步骤S200具体包括:Preferably, the step S200 specifically includes:
步骤S201、获取启动所述应用程序的操作指令,并执行启动操作;Step S201, acquiring an operation instruction for starting the application, and performing a startup operation;
步骤S202、自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询用户所述移动终端中当前使用的语言文字所对应的语言标识;Step S202, automatically identifying a language character currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used by the user in the mobile terminal;
步骤S203、获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Step S203: Acquire a queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
具体实施时,为了使所述应用程序能够根据用户的需求,提供用户所需要的语言支持。较佳地,所述应用程序接收到用户启动所述应用程序的操作指令并执行启动操作之后,所述应用程序会自动识别用户的移动终端上的语言文字,即用户在移动终端上当前使用的语言文字,并根据识别出来的语言文字在所述语言标识库中查找该用户当前使用的语言文字所对应的语言标识,该语言标识就为用户在所述移动终端中当前使用的语言标识。例如通过识别出用户当前移动终端上的语言文字为英文,从所述语言标识库中找到英文对应的语言标识“EN”,则说明用户当前在移动终端上使用的语言文字标识为“EN”。通过本发明的自动识别用户在移动终端上的语言文字标识,无需用户手动选择需要的语言环境,所述应用程序会自动识别出当前用户的语言环境,灵活的为用户提供不同的语言支持,给用户的使用提供了方便。In specific implementation, in order to enable the application to provide language support required by the user according to the needs of the user. Preferably, after the application receives the operation instruction of the user to start the application and performs the startup operation, the application automatically recognizes the language text on the user's mobile terminal, that is, the current use of the user on the mobile terminal. The language text, and searching for the language identifier corresponding to the language text currently used by the user in the language identifier library according to the recognized language text, the language identifier is the language identifier currently used by the user in the mobile terminal. For example, by identifying the language text on the current mobile terminal of the user as English, and finding the English-language corresponding language identifier “EN” from the language identifier library, the language text identifier currently used by the user on the mobile terminal is “EN”. By automatically recognizing the language text identification of the user on the mobile terminal, the user does not need to manually select the required locale, and the application automatically recognizes the current user's locale and flexibly provides different language support for the user. User's use is convenient.
步骤S300、所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。Step S300: The translation system preset in the application automatically translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, and displays the language text.
较佳地,所述步骤S300具体包括:Preferably, the step S300 specifically includes:
步骤S301、所述翻译系统获取所述移动终端中当前使用的语言标识;Step S301: The translation system acquires a language identifier currently used in the mobile terminal;
步骤S302、所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。Step S302: The translation system automatically translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, and displays the language text.
具体实施时,为了实现快速准确的将所述应用程序翻译成用户所需要的语言,本发明预先在所述应用程序中设置一翻译系统,所述翻译系统用于将所述应用程序的预设的源语言文字翻译成用户在所述移动终端中当前使用的语言标识所对应的语言文字。进一步地,所述应用程序的开发人员会在程序开发过程中为应用程序设置一种源语言文字,因此,所述应用程序第一次被用户打开使用的时候,界面和按钮上的文字就为这种源语言文字。较佳地,所述源语言文字只设置一种,并且源语言文字可以直接设置成开发人员所在国家的语言文字。当所述翻译系统获取到用户在所述移动终端中当前使用的语言标识时,则自动将所述应用程序的界面和功能按钮上的源语言文字翻译成用户在所述移动终端中当前使用的语言标识所对应的语言文字,并进行显示。例如,所述应用程序中的源语言文字为中文,假设应用程序有个“返回”按钮,当用户当前使用的语言标识为“EN”,则翻译系统自动将所述应用程序的“返回”翻译成“return”。因此,本发明可以根据用户当前使用的语言而自动将应用程序翻译成用户所需要的语言,无需像现有技术那样预先将大量翻译好的导入应程序中,节省了应用程序开发的时间与资金。In a specific implementation, in order to implement the fast and accurate translation of the application into a language required by the user, the present invention pre-sets a translation system in the application, and the translation system is used to preset the application. The source language text is translated into the language text corresponding to the language identifier currently used by the user in the mobile terminal. Further, the developer of the application sets a source language text for the application during the program development process. Therefore, when the application is first opened by the user, the text on the interface and the button is This source language text. Preferably, only one type of the source language text is set, and the source language text can be directly set to the language of the country where the developer is located. When the translation system acquires the language identifier currently used by the user in the mobile terminal, automatically translates the interface language of the application and the source language text on the function button into the current use of the user in the mobile terminal. The language text corresponding to the language identifier is displayed. For example, the source language text in the application is Chinese, assuming that the application has a "return" button, and when the language identifier currently used by the user is "EN", the translation system automatically translates the "return" of the application. Into "return". Therefore, the present invention can automatically translate the application into the language required by the user according to the language currently used by the user, without having to import a large number of translated applications into the program in advance as in the prior art, saving time and funds for application development. .
较佳地,为了提高翻译的速度,将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。因为在大多数的用户当中,使用语言几乎是很少会发生变化的,如使用汉语的会一直使用汉语,使用英语的会一直使用英语。因此,假设用户一直使用的是英文,则翻译系统就会将已经翻译的文字缓存在预设的缓存区,当下次该用户再次使用所述应用程序时,直接将调用缓存的语言文字并显示即可,提高了翻译的速度,给用户提供了方便。Preferably, in order to increase the speed of translation, the translated language of the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls from the buffer area. The cached language text is displayed. Because in most users, the language used is rarely changed. For example, Chinese will always use Chinese, and English will always use English. Therefore, assuming that the user has been using English all the time, the translation system will cache the translated text in the preset buffer area. When the user uses the application again next time, the cached language text will be directly called and displayed. Yes, the speed of translation is improved and the convenience is provided to the user.
基于上述实施例,本发明还公开了一种移动终端。如图2示,包括:处理器(processor)10、与处理器连接的存储设备(memory)20;其中,所述处理器10用于调用所述存储设备20中的程序指令,以执行上述实施例所提供的方法,例如执行:Based on the above embodiments, the present invention also discloses a mobile terminal. As shown in FIG. 2, the processor 10 includes a storage device (memory) 20 connected to the processor; wherein the processor 10 is configured to invoke program instructions in the storage device 20 to perform the foregoing implementation. The method provided by the example, for example:
步骤S100、预先在应用程序中设置一包含各国语言标识的语言标识库;Step S100: Setting a language identifier library including language identifiers in the application in advance in the application;
步骤S200、识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Step S200: Identify a language text currently used in the mobile terminal, and obtain a language identifier corresponding to the language text currently used by the user in the language identifier library;
步骤S300、所述应用程序中预设的翻译系统将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。Step S300: The translation system preset in the application translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, and displays the language text.
本发明实施例还提供一种存储设备,所述存储设备上存储计算机指令,所述计算机指令使计算机执行上述各实施例所提供的方法。The embodiment of the present invention further provides a storage device, where the storage device stores computer instructions, and the computer instructions cause the computer to execute the methods provided by the foregoing embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储设备中,存储设备可以包括:只读存储器(ROM)、随机存取存储器RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage device, and the storage device may include: Read only memory (ROM), random access memory (RAM), magnetic or optical disk, and the like.
图3示出了本发明实施例提供的移动终端的具体结构框图,该移动终端可以用于实施上述实施例中提供的实现应用程序支持多语言的方法。该移动终端1200可以为智能手机或平板电脑。FIG. 3 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention. The mobile terminal may be used to implement a method for implementing an application supporting multi-language provided in the foregoing embodiment. The mobile terminal 1200 can be a smartphone or a tablet.
如图3所示,移动终端1200可以包括RF(Radio Frequency,射频)电路110、包括有一个或一个以上(图中仅示出一个)计算机可读存储介质的存储器120、输入单元130、显示单元140、传感器150、音频电路160、传输模块170、包括有一个或者一个以上(图中仅示出一个)处理核心的处理器180以及电源190等部件。本领域技术人员可以理解,图3中示出的移动终端1200结构并不构成对移动终端1200的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:As shown in FIG. 3, the mobile terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage medium, an input unit 130, and a display unit. 140, sensor 150, audio circuit 160, transmission module 170, including processor 180 having one or more processing cores (only one shown) and power supply 190 and the like. It will be understood by those skilled in the art that the structure of the mobile terminal 1200 shown in FIG. 3 does not constitute a limitation of the mobile terminal 1200, and may include more or less components than those illustrated, or combine some components or different components. Arrangement. among them:
RF电路110用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路110可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路110可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication, GSM)、增强型移动通信技术(Enhanced Data GSM Environment, EDGE),宽带码分多址技术(Wideband Code Division Multiple Access, WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(Time Division Multiple Access, TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE 802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 110 is configured to receive and transmit electromagnetic waves, and realize mutual conversion between electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, a memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices over a wireless network. The wireless network described above may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above wireless networks may use various communication standards, protocols and technologies, including but not limited to global mobile communication systems (Global System for Mobile Communication, GSM), Enhanced Mobile Communication Technology (Enhanced Data GSM Environment, EDGE), Wideband Code Division Multiple Access (Wideband Code) Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division) Access, CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wireless Fidelity, Wi-Fi) (such as the Institute of Electrical and Electronics Engineers Standard IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n), VoIP (Voice) Over Internet Protocol, VoIP), Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, Wi-Max, other protocols for mail, instant messaging, and short messages, as well as any other suitable communication protocol, may even include protocols that are not currently being developed.
存储器120可用于存储软件程序以及模块,如上述实施例中实现应用程序支持多语言的方法对应的程序指令/模块,处理器180通过运行存储在存储器120内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现应用程序支持多语言的功能。存储器120可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器120可进一步包括相对于处理器180远程设置的存储器,这些远程存储器可以通过网络连接至移动终端1200。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 120 can be used to store software programs and modules, such as the program instructions/modules corresponding to the method for implementing the application supporting multi-language in the above embodiment, and the processor 180 executes various programs by running the software programs and modules stored in the memory 120. Functional applications and data processing, that is, the application supports multi-language functions. Memory 120 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 120 can further include memory remotely located relative to processor 180, which can be connected to mobile terminal 1200 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元130可包括触敏表面131以及其他输入设备132。触敏表面131,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面131上或在触敏表面131附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面131。除了触敏表面131,输入单元130还可以包括其他输入设备132。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 The input unit 130 can be configured to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input unit 130 can include touch-sensitive surface 131 as well as other input devices 132. Touch-sensitive surface 131, also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program. Alternatively, the touch-sensitive surface 131 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 180 is provided and can receive commands from the processor 180 and execute them. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 can also include other input devices 132. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1200的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图3中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the mobile terminal 1200, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, an LCD (Liquid may be used) The display panel 141 is configured in the form of a Crystal Display (LCD) or an OLED (Organic Light-Emitting Diode). Further, the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141. Although in FIG. 3, touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
移动终端1200还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在移动终端1200移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 至于移动终端1200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Mobile terminal 1200 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may close the display panel 141 when the mobile terminal 1200 moves to the ear. And / or backlight. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile terminal 1200 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, here No longer.
音频电路160、扬声器161,传声器162可提供用户与移动终端1200之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,传声器162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器180处理后,经RF电路110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理。音频电路160还可能包括耳塞插孔,以提供外设耳机与移动终端1200的通信。The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile terminal 1200. The audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 180, transmitted to the terminal, for example, via the RF circuit 110, or outputted to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the mobile terminal 1200.
移动终端1200通过传输模块170(例如Wi-Fi模块)可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图3示出了传输模块170,但是可以理解的是,其并不属于移动终端1200的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The mobile terminal 1200 can help the user to send and receive emails, browse web pages, access streaming media, etc. through the transmission module 170 (eg, Wi-Fi module), which provides wireless broadband Internet access to the user. Although FIG. 3 shows the transmission module 170, it can be understood that it does not belong to the essential configuration of the mobile terminal 1200, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器180是移动终端1200的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行移动终端1200的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;在一些实施例中,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is a control center of the mobile terminal 1200 that connects various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120. The various functions and processing data of the mobile terminal 1200 are executed to perform overall monitoring of the mobile phone. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and For applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
移动终端1200还包括给各个部件供电的电源190(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源190还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The mobile terminal 1200 also includes a power source 190 (such as a battery) that powers the various components. In some embodiments, the power source can be logically coupled to the processor 180 through a power management system to manage charging, discharging, and power consumption through the power management system. Management and other functions. Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,移动终端1200还可以包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,移动终端的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行述一个或者一个以上程序包含用于进行以下操作的指令:Although not shown, the mobile terminal 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, and the like, and details are not described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be one or one The above processor executes one or more programs that include instructions for performing the following operations:
预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的移动终端,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The mobile terminal, before the step of setting a language identifier library including a national language identifier in the application in advance, further includes:
预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
所述的移动终端,其中,所述应用程序的源语言文字为所述应用程序的开发者在程序开发过程中设置的;当所述应用程序第一次被用户打开使用时,所述应用程序界面和功能按钮上的文字为所述源语言文字。The mobile terminal, wherein a source language text of the application is set by a developer of the application during a program development process; when the application is opened for use by a user for the first time, the application The text on the interface and function buttons is the source language text.
所述的移动终端,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤,具体包括:The mobile terminal, wherein the step of setting a language identifier library including a national language identifier in the application in advance includes:
收集各国的语言,并为每一种语言设置唯一对应的语言标识;Collect the languages of each country and set a unique corresponding language identifier for each language;
将各国语言和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。The language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
所述的移动终端,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The mobile terminal, wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to the language text currently used by the user in the language identifier library, specifically includes:
获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
所述的移动终端,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:The mobile terminal, wherein a translation system preset in the application automatically translates a source language text on an interface of the application and a function button into a language corresponding to a language identifier currently used in the mobile terminal The text and the steps displayed include:
所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
所述的移动终端,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The mobile terminal, wherein the translation system automatically translates the interface language of the application and the source language text on the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays the steps After that, it also includes:
将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
综上所述,本发明提供的一种实现应用程序支持多语言的方法、存储设备及移动终端,所述方法包括:预先在应用程序中设置一包含各国语言标识的语言标识库;识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;所述应用程序中预设的翻译系统将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。通过本发明的方法,使得应用程序在开发过程中无需预先将各国的语言进行翻译,不需要花费大量的资金和时间处理语言翻译的问题,不但节约了应用程序开发成本,而且有效优化了翻译准确度,给用户带来了方便。In summary, the present invention provides a method, a storage device, and a mobile terminal for implementing an application supporting multiple languages. The method includes: setting a language identifier library including language identifiers in an application in advance; and identifying the mobile terminal. The language text currently used in the language, and obtain the language identifier corresponding to the language text currently used by the user in the language identifier library; the default translation system in the application will be on the interface and function buttons of the application The source language text is translated into a language text corresponding to the language identifier currently used in the mobile terminal, and displayed. By the method of the invention, the application does not need to translate the language of each country in advance in the development process, and does not need to spend a lot of money and time to deal with the language translation problem, which not only saves the application development cost, but also optimizes the translation accuracy. Degree, bringing convenience to the user.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It is to be understood that the application of the present invention is not limited to the above-described examples, and those skilled in the art can make modifications and changes in accordance with the above description, all of which are within the scope of the appended claims.

Claims (20)

  1. 一种实现应用程序支持多语言的方法,其中,所述方法包括:A method for implementing an application supporting multiple languages, wherein the method includes:
    预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
    识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
    所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  2. 根据权利要求1中所述的实现应用程序支持多语言的方法,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The method for implementing an application supporting multi-language according to claim 1, wherein before the step of setting a language identifier library including a national language identifier in the application, the method further includes:
    预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
  3. 根据权利要求2中所述的实现应用程序支持多语言的方法,其中,所述应用程序的源语言文字为所述应用程序的开发者在程序开发过程中设置的;当所述应用程序第一次被用户打开使用时,所述应用程序界面和功能按钮上的文字为所述源语言文字。The method for implementing an application supporting multi-language according to claim 2, wherein a source language text of the application is set by a developer of the application during a program development process; when the application is first When the user is opened for use, the text on the application interface and the function button is the source language text.
  4. 根据权利要求3中所述的实现应用程序支持多语言的方法,其中,所述应用程序的源语言文字有且只有设置一种。A method of implementing an application supporting multi-language according to claim 3, wherein the source language of the application has one and only one.
  5. 根据权利要求1中所述的实现应用程序支持多语言的方法,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤,具体包括:The method for implementing an application supporting multi-language according to claim 1, wherein the step of setting a language identifier library including a national language identifier in the application in advance comprises:
    收集各国的语言,并为每一种语言设置唯一对应的语言标识;Collect the languages of each country and set a unique corresponding language identifier for each language;
    将各国语言和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。The language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
  6. 根据权利要求1中所述的实现应用程序支持多语言的方法,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The method for implementing an application supporting multi-language according to claim 1, wherein the character language currently used in the mobile terminal is identified, and a language corresponding to a language text currently used by the user in the language identifier library is obtained. The steps of the identification include:
    获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
    自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
    获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
  7. 根据权利要求1中所述的实现应用程序支持多语言的方法,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:A method for implementing an application supporting multi-language according to claim 1, wherein a predetermined translation system in the application automatically translates a source language text on an interface of the application and a function button into the movement The language text corresponding to the language identifier currently used in the terminal, and the steps displayed include:
    所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
    所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  8. 根据权利要求7所述的实现应用程序支持多语言的方法,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The method for implementing an application supporting multi-language according to claim 7, wherein the translation system automatically translates the source language text on the interface of the application and the function button into a language identifier currently used in the mobile terminal The corresponding language text, and after the steps shown, also includes:
    将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
  9. 一种存储设备,其上存储有多条指令,其中,所述指令适于由处理器加载并执行,以实现如下步骤:A storage device having stored thereon a plurality of instructions, wherein the instructions are adapted to be loaded and executed by a processor to implement the following steps:
    预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
    识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
    所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  10. 根据权利要求9中所述的存储设备,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The storage device according to claim 9, wherein before the step of setting a language identifier library containing the language identifiers in the application in advance, the method further comprises:
    预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
  11. 根据权利要求9中所述的存储设备,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The storage device according to claim 9, wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to a language text currently used by the user in the language identifier library, specifically includes :
    获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
    自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
    获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
  12. 根据权利要求9中所述的存储设备,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:The storage device according to claim 9, wherein the translation system preset in the application automatically translates the source language text on the interface of the application and the function button into a language currently used in the mobile terminal The steps to identify the language text and display the steps, including:
    所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
    所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  13. 根据权利要求12中所述的存储设备,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The storage device according to claim 12, wherein said translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal And after the steps shown, it also includes:
    将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
  14. 一种移动终端,其中,包括:处理器、与处理器通信连接的存储设备,A mobile terminal, comprising: a processor, a storage device communicatively coupled to the processor,
    所述存储设备适于存储多条指令;所述处理器适于调用所述存储设备中的指令,以执行如下步骤:The storage device is adapted to store a plurality of instructions; the processor is adapted to invoke an instruction in the storage device to perform the following steps:
    预先在应用程序中设置一包含各国语言标识的语言标识库;Setting a language identifier library containing national language identifiers in the application in advance;
    识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识;Identifying a language text currently used in the mobile terminal, and obtaining a language identifier corresponding to the language text currently used by the user in the language identifier library;
    所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system preset in the application automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  15. 根据权利要求14中所述的移动终端,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤之前,还包括:The mobile terminal according to claim 14, wherein before the step of setting a language identifier library including a national language identifier in the application in advance, the method further comprises:
    预先在所述应用程序中设置一翻译系统;所述翻译系统用于将所述应用程序的预设的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,从而使所述应用程序的界面和功能按钮显示为用户所需要的语言文字。Presetting a translation system in the application; the translation system is configured to translate a preset source language text of the application into a language language corresponding to a language identifier currently used in the mobile terminal, thereby enabling The interface and function buttons of the application are displayed as the language text required by the user.
  16. 根据权利要求15中所述的移动终端,其中,所述应用程序的源语言文字为所述应用程序的开发者在程序开发过程中设置的;当所述应用程序第一次被用户打开使用时,所述应用程序界面和功能按钮上的文字为所述源语言文字。The mobile terminal according to claim 15, wherein a source language text of said application is set by a developer of said application during program development; when said application is opened for use by a user for the first time The text on the application interface and the function button is the source language text.
  17. 根据权利要求14中所述的移动终端,其中,所述预先在应用程序中设置一包含各国语言标识的语言标识库的步骤,具体包括:The mobile terminal according to claim 14, wherein the step of setting a language identifier library including a national language identifier in the application in advance comprises:
    收集各国的语言,并为每一种语言设置唯一对应的语言标识;Collect the languages of each country and set a unique corresponding language identifier for each language;
    将各国语言和对应的所述语言标识导入所述应用程序中,形成包含各国语言标识的所述语言标识库。The language of each country and the corresponding language identifier are imported into the application to form the language identifier library containing the language identifiers of the countries.
  18. 根据权利要求14中所述的移动终端,其中,所述识别移动终端中当前使用的语言文字,并获取用户当前使用的语言文字在所述语言标识库中所对应的语言标识的步骤,具体包括:The mobile terminal according to claim 14, wherein the step of identifying a language text currently used in the mobile terminal, and acquiring a language identifier corresponding to a language text currently used by the user in the language identifier library, specifically includes :
    获取用户启动所述应用程序的操作指令,并执行启动操作;Obtaining an operation instruction that the user starts the application, and performing a startup operation;
    自动识别所述移动终端中当前使用的语言文字,并从所述语言识别库中查询所述移动终端中当前使用的语言文字所对应的语言标识;Automatically identifying a language text currently used in the mobile terminal, and querying, from the language recognition library, a language identifier corresponding to a language text currently used in the mobile terminal;
    获取查询到的语言标识,所述语言标识为所述移动终端中当前使用的语言标识。Obtaining the queried language identifier, where the language identifier is a language identifier currently used in the mobile terminal.
  19. 根据权利要求14中所述的移动终端,其中,所述应用程序中预设的翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤,具体包括:The mobile terminal according to claim 14, wherein the translation system preset in the application automatically translates the interface language of the application and the source language text on the function button into a language currently used in the mobile terminal The steps to identify the language text and display the steps, including:
    所述翻译系统获取所述移动终端中当前使用的语言标识;The translation system acquires a language identifier currently used in the mobile terminal;
    所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示。The translation system automatically translates the source language text on the interface of the application and the function button into the language text corresponding to the language identifier currently used in the mobile terminal, and displays it.
  20. 根据权利要求19所述的移动终端,其中,所述翻译系统自动将所述应用程序的界面和功能按钮上的源语言文字翻译成所述移动终端中当前使用的语言标识所对应的语言文字,并显示的步骤之后,还包括:The mobile terminal according to claim 19, wherein the translation system automatically translates the interface language of the application and the source language text on the function button into a language text corresponding to the language identifier currently used in the mobile terminal, And after the steps shown, it also includes:
    将所述翻译系统翻译完成的语言文字缓存在预设的缓存区,以便当用户再次使用所述应用程序时,所述翻译系统直接从所述缓存区调用缓存的语言文字并显示。The language text translated by the translation system is cached in a preset buffer area, so that when the user uses the application again, the translation system directly calls the cached language text from the buffer area and displays it.
PCT/CN2018/094772 2017-07-07 2018-07-06 Method for realizing support of application for multiple languages, storage device, and mobile terminal WO2019007414A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710551526.2A CN107368309A (en) 2017-07-07 2017-07-07 Realize that application program supports multilingual method, storage device and mobile terminal
CN201710551526.2 2017-07-07

Publications (1)

Publication Number Publication Date
WO2019007414A1 true WO2019007414A1 (en) 2019-01-10

Family

ID=60305182

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/094772 WO2019007414A1 (en) 2017-07-07 2018-07-06 Method for realizing support of application for multiple languages, storage device, and mobile terminal

Country Status (2)

Country Link
CN (1) CN107368309A (en)
WO (1) WO2019007414A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368309A (en) * 2017-07-07 2017-11-21 惠州Tcl移动通信有限公司 Realize that application program supports multilingual method, storage device and mobile terminal
CN108446157B (en) * 2018-04-04 2022-05-10 沈阳东北电力调节技术有限公司 Multi-language display interface design method capable of realizing real-time switching of control system of vertical mill auxiliary machine
CN110442405A (en) * 2018-05-02 2019-11-12 深圳Tcl数字技术有限公司 A kind of method, storage medium and the intelligent terminal of browser Auto-matching soft keyboard
CN110414011A (en) * 2019-06-21 2019-11-05 北京三快在线科技有限公司 Multilingual translation device, method, electronic equipment and storage medium
CN113407288B (en) * 2021-06-29 2022-09-30 杭州海康威视数字技术股份有限公司 Data processing method and device and electronic equipment
CN114579235B (en) * 2022-02-24 2024-04-09 百果园技术(新加坡)有限公司 Language type-based icon display method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928813A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Translation method and system for man/machine interaction interface of application program
US20140359495A1 (en) * 2013-06-04 2014-12-04 International Business Machines Corporation Generating a context for translating strings based on associated application source code and markup
CN105824633A (en) * 2016-03-16 2016-08-03 北京小米移动软件有限公司 Multi-language resource switching method and device of application program
CN106227550A (en) * 2016-08-05 2016-12-14 浪潮(北京)电子信息产业有限公司 Generation method, system and the computer of a kind of Internationalized Graphical User Interface
CN107368309A (en) * 2017-07-07 2017-11-21 惠州Tcl移动通信有限公司 Realize that application program supports multilingual method, storage device and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1412873B1 (en) * 2001-06-22 2018-08-15 Schneider Electric Software, LLC Internationalization of objects executable in a supervisory process control and manufacturing information system
CN104808970B (en) * 2014-01-23 2018-08-07 深圳兴路通科技有限公司 A kind of method and system for realizing internationalized software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928813A (en) * 2006-09-22 2007-03-14 华为技术有限公司 Translation method and system for man/machine interaction interface of application program
US20140359495A1 (en) * 2013-06-04 2014-12-04 International Business Machines Corporation Generating a context for translating strings based on associated application source code and markup
CN105824633A (en) * 2016-03-16 2016-08-03 北京小米移动软件有限公司 Multi-language resource switching method and device of application program
CN106227550A (en) * 2016-08-05 2016-12-14 浪潮(北京)电子信息产业有限公司 Generation method, system and the computer of a kind of Internationalized Graphical User Interface
CN107368309A (en) * 2017-07-07 2017-11-21 惠州Tcl移动通信有限公司 Realize that application program supports multilingual method, storage device and mobile terminal

Also Published As

Publication number Publication date
CN107368309A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
WO2019007414A1 (en) Method for realizing support of application for multiple languages, storage device, and mobile terminal
EP3647926A1 (en) Mobile terminal and split screen control method thereof, and computer readable storage medium
CN104852885B (en) Method, device and system for verifying verification code
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN105975190B (en) Graphical interface processing method, device and system
WO2016127795A1 (en) Service processing method, server, and terminal
WO2015096747A1 (en) Operation response method, client, browser and system
WO2018120905A1 (en) Message reminding method for terminal, and terminal
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
CN104281568B (en) Paraphrasing display method and paraphrasing display device
JP2018504708A (en) Method, device, and system for managing information recommendations
WO2019011324A1 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN107479799B (en) Method and device for displaying window
US20140325449A1 (en) Method, device and storage medium for starting application in electronic apparatus
CN112308947A (en) Animation generation method and device and storage medium
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
WO2015067206A1 (en) File searching method and terminal
US20180343335A1 (en) Method For Sending Messages And Mobile Terminal
WO2015067116A1 (en) Method and apparatus for processing speech texts
CN111897916B (en) Voice instruction recognition method, device, terminal equipment and storage medium
US10057740B2 (en) Methods and devices for processing mobile terminal resource
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN108280798B (en) Method and device for rendering and displaying browser kernel

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18827554

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18827554

Country of ref document: EP

Kind code of ref document: A1