CN108804175A - Multilingual adaptation method, mobile terminal and computer readable storage medium - Google Patents

Multilingual adaptation method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108804175A
CN108804175A CN201810486178.XA CN201810486178A CN108804175A CN 108804175 A CN108804175 A CN 108804175A CN 201810486178 A CN201810486178 A CN 201810486178A CN 108804175 A CN108804175 A CN 108804175A
Authority
CN
China
Prior art keywords
application
multilingual
packet
server
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810486178.XA
Other languages
Chinese (zh)
Inventor
郑学成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810486178.XA priority Critical patent/CN108804175A/en
Publication of CN108804175A publication Critical patent/CN108804175A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

This application provides a kind of multilingual adaptation method, mobile terminal and computer readable storage medium, the multilingual adaptation method includes:When receiving the refreshing instruction for the multilingual packet of application, the multilingual packet of the application is obtained from server;When the application loads interface, from the multilingual packet of the application of acquisition, the language pack using current language is obtained;According to the language pack using current language of acquisition, the interface of the application is updated.The problem of multilingual packet is integrated in the installation kit of application, increases the size of the installation kit of application, and need upgrade installation package when refreshing the multilingual packet of application by the prior art can be solved by the application.

Description

Multilingual adaptation method, mobile terminal and computer readable storage medium
Technical field
The application belongs to a kind of technical field of mobile terminals more particularly to multilingual adaptation method, mobile terminal and calculating Machine readable storage medium storing program for executing.
Background technology
With the fast development of mobile terminal technology, the application installed on mobile terminal is more and more, and application uses model It encloses also more and more extensive.In order to meet the needs of different regions user, application interface usually requires to support multilingual, to root Language is used according to different regions, changes the interface display of application.The prior art is built-in under the res catalogues of application installation package Integrate multilingual catalogue, that is, the values files of different names are established under res catalogues to call different language packs.So And multilingual packet is integrated in the installation kit of application by the prior art, increases the size of the installation kit of application, and answer in refreshing Upgrade installation package is needed when multilingual packet.
Therefore, it is necessary to propose a kind of new technical solution, to solve the above technical problems.
Invention content
In view of this, this application provides a kind of multilingual adaptation method, mobile terminal and computer readable storage medium, Multilingual packet is integrated in the installation kit of application with solving the prior art, increases the size of the installation kit of application, and brushing The problem of upgrade installation package being needed when the multilingual packet of new opplication.
The first aspect of the application provides a kind of multilingual adaptation method, and the multilingual adaptation method includes:
When receiving the refreshing instruction for the multilingual packet of application, the multilingual of the application is obtained from server Packet;
When the application loads interface, from the multilingual packet of the application of acquisition, the current language of application is obtained The language pack of speech;
According to the language pack using current language of acquisition, the interface of the application is updated.
The second aspect of the application provides a kind of mobile terminal, and the mobile terminal includes:
First acquisition module, for when receiving the refreshing instruction for the multilingual packet of application, being obtained from server Take the multilingual packet of the application;
Second acquisition module, for when the application loads interface, from the multilingual packet of the application of acquisition, obtaining Take the language pack using current language;
Interface update module updates the boundary of the application for the language pack using current language according to acquisition Face.
The third aspect of the application provides a kind of mobile terminal, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program Described in above-mentioned first aspect the step of multilingual adaptation method.
The fourth aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is deposited Computer program is contained, the multilingual adaptation side as described in above-mentioned first aspect is realized when the computer program is executed by processor The step of method.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer Program realizes the multilingual adaptation side as described in above-mentioned first aspect when the computer program is executed by one or more processors The step of method.
Therefore the application is obtained when receiving the refreshing instruction for the multilingual packet of application from server The multilingual packet of the application is taken, and when the application loads interface, is obtained from the multilingual packet of the application of acquisition The language pack using current language, to according to the language pack using current language of acquisition, update the application Interface, realize the multilingual adaptation of the application.The application is by that in the server, can subtract the multilingual packet applied storage The size for the installation kit applied less, and when refreshing the multilingual packet of application, the multilingual packet of application is obtained from server, and Without the installation kit of the manual upgrade application of user, the installation kit of application is integrated in solve the prior art by multilingual packet In, the problem of increasing the size of the installation kit of application, and upgrade installation package needed when refreshing the multilingual packet of application.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the multilingual adaptation method that the embodiment of the present application one provides;
Fig. 2 is the implementation process schematic diagram for the multilingual adaptation method that the embodiment of the present application two provides;
Fig. 3 is the implementation process schematic diagram for the multilingual adaptation method that the embodiment of the present application three provides;
Fig. 4 is the schematic diagram for the mobile terminal that the embodiment of the present application four provides;
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides;
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple:Drawing application program, demonstration application Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer With program, digital music player application and/or video frequency player application program.
The various application programs that can be executed on mobile terminals can use at least one of such as touch sensitive surface Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example, Touch sensitive surface) it can support the various application programs with intuitive and transparent user interface for a user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process Execution sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
It is the implementation process schematic diagram for the multilingual adaptation method that the embodiment of the present application one provides, this is multilingual referring to Fig. 1 Adaptation method is applied to mobile terminal, and the multilingual adaptation method as shown in the figure may comprise steps of:
Step S101 is answered from server described in acquisition when receiving the refreshing instruction for the multilingual packet of application Multilingual packet.
It in the embodiment of the present application, can be by the multilingual packet of the application stored in update server, to ensure to take The multilingual packet of the latest edition of the application is stored in business device, mobile terminal can get application most from server The multilingual packet of new version, without the installation kit of manual upgrade application, i.e., by updating the more of the application stored in server Language pack may be implemented the unified update for the multilingual packet applied in all mobile terminals, upgrade manually without user.It is optional , the multilingual packet of multiple applications can be stored in the server, and establish in the multiple application each apply with it is multilingual The correspondence (such as establishing the correspondence of the mark and multilingual packet of application) of packet.It is receiving for the multilingual of application When the refreshing instruction of packet, the mark of the application can be obtained, the mark that the application is obtained from the server is corresponding Multilingual packet (the multilingual packet of the i.e. described application).
Wherein, the multilingual packet may include the language pack using all language supported.It is detecting to application When predetermined registration operation (such as pulling operation to the interface of the application), it can be sent to mobile terminal for the more of the application The refreshing instruction of language pack.The multilingual packet for refreshing application can be the multilingual packet for updating the application.
The application can refer to the mounted application with multilingual adaption function on mobile terminal, for example, can be with Realize the wechat of the multilinguals such as simplified form of Chinese Character, Chinese-traditional, English, Japanese adaptation.Wherein, the multilingual adaption function can To refer to according to different language, the function of the interface display of dynamic change application.
It should be noted that in mobile terminal after getting the multilingual packet of the application in server, can incite somebody to action The multilingual packet for the application that the mobile terminal locally originally stored is updated to the application obtained from server Multilingual packet.
Step S102 from the multilingual packet of the application of acquisition, is answered when the application loads interface described in acquisition With the language pack of current language.
In the embodiment of the present application, load interface is usually required when starting application, and weight is usually required when refreshing application New load interface can obtain described using current language when loading interface from the multilingual packet of the application of acquisition Language pack.Wherein, the currently used language of word of the interface display that using current language can be the application, User can select the word of the interface display of the application to be used by the choice of language of the application from multilingual Language.
Step S103 updates the interface of the application according to the language pack using current language of acquisition.
It in the embodiment of the present application, can be according to the language pack using current language of acquisition, described in dynamic change The interface display of application, to realize the multilingual adaptation of the application.Optionally, boundary that can be to be applied described in asynchronous refresh Face.
The application by by the multilingual packet applied storage in the server, the size of the installation kit of application can be reduced, and When refreshing the multilingual packet of application, the multilingual packet of application is obtained from server, without the manual upgrade application of user Multilingual packet is integrated in the installation kit of application to solve the prior art, increases the installation kit of application by installation kit Size, and refresh application multilingual packet when need upgrade installation package the problem of.
It is the implementation process schematic diagram for the multilingual adaptation method that the embodiment of the present application two provides, this is multilingual referring to Fig. 2 Adaptation method is applied to mobile terminal, and the multilingual adaptation method as shown in the figure may comprise steps of:
Step S201 sends the first request when receiving the refreshing instruction for the multilingual packet of application to server Information.
Wherein, first solicited message refers to the multilingual packet for the application that request returns to the server storage Information.
In the embodiment of the present application, the multilingual packet of application can be stored to server, and what is stored in server is The multilingual packet of the latest edition of the application, mobile terminal receive for application multilingual packet refreshing instruction when, The first solicited message can be sent to server, server, can be to movement eventually after receiving first solicited message End returns to the multilingual packet of the application stored in the server.Wherein, super text may be used with server in mobile terminal This transport protocol (HyperText Transfer Protocol, HTTP) and ProtocolBuffer agreement transmission datas.
Optionally, before sending the first solicited message to the server, the embodiment of the present application further includes:
Whether the network for detecting the mobile terminal is connected to;
It is described to include to the first solicited message of server transmission:
If detecting the network-in-dialing of the mobile terminal, first solicited message is sent to the server.
In the embodiment of the present application, before sending solicited message (such as first solicited message) to server, Ke Yixian Whether the network of detection mobile terminal is connected to (i.e. whether mobile terminal connects network), if the network-in-dialing of the mobile terminal, It then determines that the mobile terminal can send information to the server, the first request letter can be sent to the server at this time Breath, if the network of the mobile terminal is not connected to, it is determined that currently without network, do not send the first request to the server at this time Information, and prompt user currently without network.
Wherein, the network-in-dialing of mobile terminal generally includes two kinds, and one is mobile terminals to connect data network, another It is mobile terminal connection wireless network.Since data network needs to charge, then connecting in the network for detecting the mobile terminal When logical, it can first judge whether the network that the mobile terminal currently connects is data network, if the mobile terminal currently connects The network connect is not data network, then the first solicited message can be sent to the server, if the mobile terminal currently connects The network connect is data network, then it is data network that can prompt user's current network, receive confirm instruction when, to described Server sends the first solicited message, denies instructing or not receiving confirmation instruction in preset time if receiving, no The first solicited message is sent to the server, i.e., does not obtain the multilingual packet of the application from the server at this time.
Step S202 receives the multilingual packet for the application that the server returns.
Optionally, it if not receiving the multilingual packet for the application that the server returns in preset time, obtains The reason of taking the multilingual packet for not receiving the application that the server returns;
The reason of according to the multilingual packet for not receiving the application that the server returns, sends phase to user The prompt message answered.
In the application implementation, the reason of multilingual packet for not receiving the application that the server returns, wraps Include but be not limited to network interruption, failed download etc..In the multilingual of the application for not receiving the server return When the reason of packet difference, to user send prompt message can also be different, the prompt message can be include described in do not receive To the server return the application multilingual packet the reason of information, user after receiving the prompt message, Mobile terminal can accordingly be operated according to the prompt message, for example, when reason is network interruption, user can be with The network for changing mobile terminal connection, the network reconnected by mobile terminal obtain the multi-lingual of the application from server Speech packet.
Step S203, when the application loads interface, in the multilingual packet of the application returned from the server, Obtain the language pack using current language.
In the embodiment of the present application, the multilingual packet of the application returned due to the server includes multilingual The language pack of type can obtain the current language of application from the multilingual packet for the application that the server returns at this time The language pack of speech.
Step S204 updates the interface of the application according to the language pack using current language of acquisition.
The step is identical as step S103, and for details, reference can be made to the associated descriptions of step S103, and details are not described herein.
The application by by the multilingual packet applied storage in the server, the size of the installation kit of application can be reduced, and When refreshing the multilingual packet of application, by sending the multilingual packet that solicited message obtains application from server to server, Without the installation kit of the manual upgrade application of user, the installation kit of application is integrated in solve the prior art by multilingual packet In, the problem of increasing the size of the installation kit of application, and upgrade installation package needed when refreshing the multilingual packet of application.
It is the implementation process schematic diagram for the multilingual adaptation method that the embodiment of the present application three provides, this is multilingual referring to Fig. 3 Adaptation method is applied to mobile terminal, and the multilingual adaptation method as shown in the figure may comprise steps of:
Step S301 sends the second request when receiving the refreshing instruction for the multilingual packet of application to server Information.
Wherein, second solicited message refers to that the application of the request return server storage is newest multilingual The information of the version number of packet.
In the embodiment of the present application, mobile in order to ensure that the second solicited message can be sent to server by mobile terminal Terminal receive for application multilingual packet refreshing instruction when, can first detect the mobile terminal network whether Connection, and the second solicited message is sent to the server in connection, the server is receiving the second request letter After breath, the letter of the version number of the multilingual packet of the application stored in the server can be returned to the mobile terminal Breath.
Step S302, after receiving the version number using newest multilingual packet that the server returns, Obtain the version number of the multilingual packet of the application of mobile terminal local.
Step S303, the version number using newest multilingual packet that the server is returned and the movement are whole The version number of the multilingual packet of the local application is held to be compared.
Step S304, if the version number using newest multilingual packet and the movement that the server returns are whole It holds the version number of the multilingual packet of the local application inconsistent, then obtains the multilingual of the application from the server Packet.
In the embodiment of the present application, mobile terminal is newest multilingual in the application for receiving the server return After the version number of packet, version number's (i.e. described shifting of the multilingual packet of the application of the mobile terminal local can be obtained The version number of currently used multilingual packet is applied described in dynamic terminal), and the application that the server is returned is newest The version number of multilingual packet be compared with the version number of the multilingual packet of the application of mobile terminal local, to sentence The version using newest multilingual packet that the disconnected server returns and the application of mobile terminal local Whether the version of multilingual packet consistent, if the server return the version number using newest multilingual packet with it is described The version number of the multilingual packet of the application of mobile terminal local is inconsistent, then the mobile terminal can be to the server The first solicited message is sent, to obtain the newest multilingual packet of application from the server;If the server returns The version number using newest multilingual packet and mobile terminal local the application multilingual packet version It is number consistent, then it can determine that stored in the server described is local using newest multilingual packet and the mobile terminal The multilingual packet of the application is same version, is not necessarily to update the multilingual of the application of the mobile terminal local at this time Packet, therefore no longer execute subsequent operation.
Optionally, after the multilingual packet for obtaining the application in the server, further include:
The multilingual packet of the application of acquisition is stored to the database of the mobile terminal;
It is described from the multilingual packet of the application of acquisition, obtain and described include using the language pack of current language:
From the database of the mobile terminal, the language pack using current language is obtained.
In the embodiment of the present application, the multilingual packet of the application of acquisition is stored to the data of the mobile terminal Library can be by the multilingual packet of the application of the currently stored mobile terminal local of the database of the mobile terminal It is updated to the multilingual packet of the application obtained.Wherein, mobile terminal can use Android primary when storing data provider。
Step S305 from the multilingual packet of the application of acquisition, is answered when the application loads interface described in acquisition With the language pack of current language.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Step S306 updates the interface of the application according to the language pack using current language of acquisition.
The step is identical as step S103, and for details, reference can be made to the associated descriptions of step S103, and details are not described herein.
Optionally, it is default in the application in application, before obtaining the multilingual packet of the application in server, Further include:
Third solicited message is sent to the server, wherein the third solicited message refers to that request returns to the clothes The information of first data in the default application of business device storage;
First data that the server returns are received, and are stored into the database of the mobile terminal;
It is described from the database of the mobile terminal, obtain and described include using the language pack of current language:
From the database of the mobile terminal, the default language pack using current language and first number are obtained According to;
The language pack using current language according to acquisition, the interface for updating the application include:
According to the default language pack using current language of acquisition and first data, the default application is updated Interface.
In the embodiment of the present application, the default application can refer to that user selectes from the mounted application of mobile terminal A certain type or application with a certain function, such as exchange rate real-time change calculator.First in the default application Data can refer to the data of real-time change in the data that the default application interface is shown, such as the exchange rate in calculator.By The first data are real-time changes in the default application, then in order to when updating the interface of the default application, it can Correctly show first data, it can be before the multilingual packet for obtaining the default application in server, first to institute It states server and sends third solicited message, the server, can be to the movement when receiving the third solicited message Terminal returns to first data stored in the server, and is stored into the database of the mobile terminal, with When the multilingual packet for the default application for returning to the server is also stored to the database of the mobile terminal, from institute In the database for stating mobile terminal, the default language pack using current language and first data are obtained, to ensure In the language for updating the word of interface display of the default application, the first data in the default application are updated.
It should be noted that before sending third solicited message to the server, mobile terminal can be first detected Whether network is connected to, if so, third solicited message is sent to the server, if it is not, then using the number of the mobile terminal According to the first data stored in library, and prompt the user with the time of the first data described in the database purchase of the mobile terminal Point, in order to which user knows when newer first data are.
The embodiment of the present application before obtaining the multilingual packet of application in server, first obtain it is described application it is newest more The version number of language pack, and the version number and the version number of the multilingual packet of the application of mobile terminal local are compared Compared with, acquisition the version number using newest multilingual packet higher than mobile terminal local the application multilingual packet Version number when, obtain the newest multilingual packet of the application of server storage, to can guarantee obtained from server it is high The multilingual packet of version.
It is that the schematic diagram for the mobile terminal that the embodiment of the present application four provides illustrates only for convenience of description referring to Fig. 4 With the relevant part of the embodiment of the present application.
The mobile terminal includes:
First acquisition module 41, for receive for application multilingual packet refreshing instruction when, from server Obtain the multilingual packet of the application;
Second acquisition module 42 is used for when the application loads interface, from the multilingual packet of the application of acquisition, Obtain the language pack using current language;
Interface update module 43 updates the application for the language pack using current language according to acquisition Interface.
Optionally, first acquisition module 41 includes:
First transmission unit, for sending the first solicited message to the server, wherein first solicited message is Refer to the information of the multilingual packet of the application of the request return server storage;
Receiving unit, the multilingual packet for receiving the application that the server returns.
Optionally, first acquisition module 41 further includes:
Whether detection unit, the network for detecting the mobile terminal are connected to;
First transmission unit, if the network-in-dialing specifically for detecting the mobile terminal, to the service Device sends first solicited message.
Optionally, first acquisition module 41 further includes:
Acquiring unit, if for not receiving the multilingual of the application that the server returns in preset time The reason of wrapping, then obtaining the multilingual packet for not receiving the application that the server returns;
Second transmission unit, the multilingual packet of the application for not receiving the server return according to Reason sends corresponding prompt message to user.
Optionally, the mobile terminal further includes:
First sending module 44, for sending the second solicited message to the server, wherein second solicited message Refer to the information for the version number using newest multilingual packet that request returns to the server storage;
Third acquisition module 45, in the version using newest multilingual packet for receiving the server return After this number, the version number of the multilingual packet of the application of mobile terminal local is obtained;
Comparison module 46, the version number using newest multilingual packet for returning to the server with it is described The version number of the multilingual packet of the application of mobile terminal local is compared.
Optionally, first acquisition module 41 is specifically used for:
If the version number using newest multilingual packet that the server returns and mobile terminal local The version number of the multilingual packet of the application is inconsistent, then the multilingual packet of the application is obtained from the server.
Optionally, the mobile terminal further includes:
Memory module 47, for storing the multilingual packet of the application obtained to the database of the mobile terminal;
Second acquisition module 42 is specifically used for from the database of the mobile terminal, and it is current to obtain the application The language pack of language.
Optionally, the mobile terminal further includes:
Second sending module 48, for sending third solicited message to the server, wherein the third solicited message Refer to the information of the first data in the default application for ask the return server storage;
Processing module 49, first data returned for receiving the server, and stored to the movement In the database of terminal;
Optionally, second acquisition module 42 is specifically used for from the database of the mobile terminal, obtains described pre- If the language pack using current language and first data;
The update module 43 is specifically used for according to the default language pack using current language of acquisition and described the One data update the interface of the default application.
Mobile terminal provided by the embodiments of the present application can be applied in preceding method embodiment one, embodiment two and embodiment In three, details are referring to the description of above method embodiment one, embodiment two and embodiment three, and details are not described herein.
Fig. 5 is the schematic diagram for the mobile terminal that the embodiment of the present application five provides.The mobile terminal as shown in the figure can wrap It includes:One or more processors 501 (only show one) in figure;One or more input equipments 502 (only show one) in figure, One or more output equipments 503 (one is only shown in figure) and memory 504.It is above-mentioned processor 501, input equipment 502, defeated Go out equipment 503 and memory 504 is connected by bus 505.Memory 504 for storing instruction, for executing deposit by processor 501 The instruction that reservoir 504 stores.Wherein:
The processor 501, for when receiving the refreshing instruction for the multilingual packet of application, being obtained from server Take the multilingual packet of the application;When the application loads interface, from the multilingual packet of the application of acquisition, institute is obtained State the language pack using current language;According to the language pack using current language of acquisition, the interface of the application is updated.
Optionally, the processor 501 is specifically used for:
The first solicited message is sent to the server, wherein first solicited message refers to that request returns to the clothes The information of the multilingual packet of the application of business device storage;
Receive the multilingual packet for the application that the server returns.
Optionally, before sending the first solicited message to the server, the processor 501 is additionally operable to:
Whether the network for detecting the mobile terminal is connected to;
The processor 501 is specifically used for:
If detecting the network-in-dialing of the mobile terminal, first solicited message is sent to the server.
Optionally, the processor 501 is additionally operable to:
If not receiving the multilingual packet for the application that the server returns in preset time, obtains and do not receive The reason of multilingual packet of the application returned to the server;
The reason of according to the multilingual packet for not receiving the application that the server returns, sends phase to user The prompt message answered.
Optionally, before obtaining the multilingual packet of the application in server, the processor 501 is additionally operable to:
The second solicited message is sent to the server, wherein second solicited message refers to that request returns to the clothes The information of the version number using newest multilingual packet of business device storage;
After receiving the version number using newest multilingual packet that the server returns, obtain mobile whole Hold the version number of the multilingual packet of the local application;
The version number using newest multilingual packet that the server is returned and mobile terminal local The version number of the multilingual packet of the application is compared;
The processor 501 is specifically used for:
If the version number using newest multilingual packet that the server returns and mobile terminal local The version number of the multilingual packet of the application is inconsistent, then the multilingual packet of the application is obtained from the server.
Optionally, after the multilingual packet for obtaining the application in the server, the processor 501 is also used In:
The multilingual packet of the application of acquisition is stored to the database of the mobile terminal;
The processor 501 is specifically used for:
From the database of the mobile terminal, the language pack using current language is obtained.
Optionally, it is default in the application in application, before obtaining the multilingual packet of the application in server, The processor 501 is additionally operable to:
Third solicited message is sent to the server, wherein the third solicited message refers to that request returns to the clothes The information of first data in the default application of business device storage;
First data that the server returns are received, and are stored into the database of the mobile terminal.
Optionally, the processor 501, is specifically used for
From the database of the mobile terminal, the default language pack using current language and first number are obtained According to;
According to the default language pack using current language of acquisition and first data, the default application is updated Interface.
It should be appreciated that in the embodiment of the present application, the processor 501 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at It can also be any conventional processor etc. to manage device.
Input equipment 502 may include that Trackpad, fingerprint adopt sensor (finger print information and fingerprint for acquiring user Directional information), microphone, data receiver interface etc..Output equipment 503 may include display (LCD etc.), loud speaker, data Transmission interface etc..
The memory 504 may include read-only memory and random access memory, and to processor 501 provide instruction and Data.The a part of of memory 504 can also include nonvolatile RAM.For example, memory 504 can also be deposited Store up the information of device type.
In the specific implementation, processor 501, input equipment 502,503 and of output equipment described in the embodiment of the present application Memory 504 can perform the realization method described in the embodiment of multilingual adaptation method provided by the embodiments of the present application, Realization method described in mobile terminal described in executable example IV, details are not described herein.
Fig. 6 is the schematic diagram for the mobile terminal that the embodiment of the present application six provides.As shown in fig. 6, the mobile end of the embodiment End 6 includes:Processor 60, memory 61 and it is stored in the meter that can be run in the memory 61 and on the processor 60 Calculation machine program 62.The processor 60 realizes above-mentioned each multilingual adaptation method embodiment when executing the computer program 62 In step, such as step S101 to S103 shown in FIG. 1.Alternatively, when the processor 60 executes the computer program 62 Realize the function of each module/unit in above-mentioned each device embodiment, such as the function of module 41 to 49 shown in Fig. 4.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the mobile terminal 6 is described.
The mobile terminal 6 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.The mobile terminal may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of mobile terminal 6 does not constitute the restriction to mobile terminal 6, may include than illustrating more or fewer portions Part either combines certain components or different components, such as the mobile terminal can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit CPU, can also be other general processors, Digital Signal Processing Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA either other programmable logic device, discrete gate or Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor can also be to appoint What conventional processor etc..
The memory 61 can be the internal storage unit of the mobile terminal 6, such as the hard disk of mobile terminal 6 or interior It deposits.The memory 61 can also be to be equipped on the External memory equipment of the mobile terminal 6, such as the mobile terminal 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the mobile terminal 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the mobile terminal Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.Institute The technical staff in category field can be understood that, for convenience of description and succinctly, only with above-mentioned each functional unit, module Division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different functional units, mould Block is completed, i.e., the internal structure of described device is divided into different functional units or module, to complete whole described above Or partial function.Each functional unit, module in embodiment can be integrated in a processing unit, can also be each list Member physically exists alone, can also be during two or more units are integrated in one unit, and above-mentioned integrated unit both can be with It is realized, can also be realized in the form of SFU software functional unit in the form of hardware.In addition, the tool of each functional unit, module Body title is also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Unit, module in above system Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list Member division, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling or direct-coupling or communication connection shown or discussed can be by some interfaces, between device or unit Coupling or communication connection are connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Within the protection domain of the application.

Claims (10)

1. a kind of multilingual adaptation method, which is characterized in that the multilingual adaptation method includes:
When receiving the refreshing instruction for the multilingual packet of application, the multilingual packet of the application is obtained from server;
When the application loads interface, from the multilingual packet of the application of acquisition, obtain described using current language Language pack;
According to the language pack using current language of acquisition, the interface of the application is updated.
2. multilingual adaptation method as described in claim 1, which is characterized in that described to obtain the application from server It is multilingual to include:
The first solicited message is sent to the server, wherein first solicited message refers to that request returns to the server The information of the multilingual packet of the application of storage;
Receive the multilingual packet for the application that the server returns.
3. multilingual adaptation method as claimed in claim 2, which is characterized in that sending the first request letter to the server Before breath, further include:
Whether the network for detecting the mobile terminal is connected to;
It is described to include to the first solicited message of server transmission:
If detecting the network-in-dialing of the mobile terminal, first solicited message is sent to the server.
4. multilingual adaptation method as claimed in claim 2, which is characterized in that the multilingual adaptation method further includes:
If not receiving the multilingual packet for the application that the server returns in preset time, obtains and do not receive institute The reason of stating the multilingual packet of the application of server return;
The reason of according to the multilingual packet for not receiving the application that the server returns, sends corresponding to user Prompt message.
5. multilingual adaptation method as described in claim 1, which is characterized in that obtaining the more of the application from server Before language pack, further include:
The second solicited message is sent to the server, wherein second solicited message refers to that request returns to the server The information of the version number using newest multilingual packet of storage;
After receiving the version number using newest multilingual packet that the server returns, mobile terminal sheet is obtained The version number of the multilingual packet of the application on ground;
Described in the version number using newest multilingual packet that the server is returned and mobile terminal local The version number of the multilingual packet of application is compared;
The multilingual packet that the application is obtained from server includes:
If described in the version number using newest multilingual packet of the server return and mobile terminal local The version number of the multilingual packet of application is inconsistent, then the multilingual packet of the application is obtained from the server.
6. multilingual adaptation method as described in claim 1, which is characterized in that obtaining the application from the server Multilingual packet after, further include:
The multilingual packet of the application of acquisition is stored to the database of the mobile terminal;
It is described from the multilingual packet of the application of acquisition, obtain and described include using the language pack of current language:
From the database of the mobile terminal, the language pack using current language is obtained.
7. multilingual adaptation method as claimed in claim 6, which is characterized in that the application be it is default in application, from Before the multilingual packet for obtaining the application in server, further include:
Third solicited message is sent to the server, wherein the third solicited message refers to that request returns to the server The information of first data in the default application of storage;
First data that the server returns are received, and are stored into the database of the mobile terminal;
It is described from the database of the mobile terminal, obtain and described include using the language pack of current language:
From the database of the mobile terminal, the default language pack using current language and first data are obtained;
The language pack using current language according to acquisition, the interface for updating the application include:
According to the default language pack using current language of acquisition and first data, the boundary of the default application is updated Face.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First acquisition module, for when receiving the refreshing instruction for the multilingual packet of application, institute to be obtained from server State the multilingual packet of application;
Second acquisition module, for when the application loads interface, from the multilingual packet of the application of acquisition, obtaining institute State the language pack using current language;
Interface update module updates the interface of the application for the language pack using current language according to acquisition.
9. a kind of mobile terminal, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one multilingual adaptation method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In the step of realization multilingual adaptation method as described in any one of claim 1 to 7 when the computer program is executed by processor Suddenly.
CN201810486178.XA 2018-05-21 2018-05-21 Multilingual adaptation method, mobile terminal and computer readable storage medium Pending CN108804175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810486178.XA CN108804175A (en) 2018-05-21 2018-05-21 Multilingual adaptation method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810486178.XA CN108804175A (en) 2018-05-21 2018-05-21 Multilingual adaptation method, mobile terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108804175A true CN108804175A (en) 2018-11-13

Family

ID=64092678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810486178.XA Pending CN108804175A (en) 2018-05-21 2018-05-21 Multilingual adaptation method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108804175A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617950A (en) * 2018-11-26 2019-04-12 杭州涂鸦信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN109783172A (en) * 2019-01-08 2019-05-21 北京三快在线科技有限公司 Language switching method, device, electronic equipment and readable storage medium storing program for executing
CN111240788A (en) * 2020-01-16 2020-06-05 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating small program page
CN111625250A (en) * 2020-04-22 2020-09-04 Oppo(重庆)智能科技有限公司 Application updating method and device, storage medium and electronic equipment
CN111930452A (en) * 2020-06-30 2020-11-13 龙芯中科(合肥)技术有限公司 Browser language package loading method, browser, electronic device and storage medium
CN116233298A (en) * 2022-12-05 2023-06-06 湖北星纪时代科技有限公司 Language data packet updating method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678319A (en) * 2012-09-03 2014-03-26 腾讯科技(深圳)有限公司 Resource file updating method, device and system and server
CN106020916A (en) * 2016-07-04 2016-10-12 乐视控股(北京)有限公司 Method for updating application, terminal equipment and server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678319A (en) * 2012-09-03 2014-03-26 腾讯科技(深圳)有限公司 Resource file updating method, device and system and server
CN106020916A (en) * 2016-07-04 2016-10-12 乐视控股(北京)有限公司 Method for updating application, terminal equipment and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617950A (en) * 2018-11-26 2019-04-12 杭州涂鸦信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN109617950B (en) * 2018-11-26 2021-09-03 杭州涂鸦信息技术有限公司 Data updating method, device, equipment and readable storage medium
CN109783172A (en) * 2019-01-08 2019-05-21 北京三快在线科技有限公司 Language switching method, device, electronic equipment and readable storage medium storing program for executing
CN111240788A (en) * 2020-01-16 2020-06-05 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating small program page
CN111625250A (en) * 2020-04-22 2020-09-04 Oppo(重庆)智能科技有限公司 Application updating method and device, storage medium and electronic equipment
CN111625250B (en) * 2020-04-22 2023-11-10 Oppo(重庆)智能科技有限公司 Application updating method and device, storage medium and electronic equipment
CN111930452A (en) * 2020-06-30 2020-11-13 龙芯中科(合肥)技术有限公司 Browser language package loading method, browser, electronic device and storage medium
CN111930452B (en) * 2020-06-30 2023-12-08 龙芯中科(合肥)技术有限公司 Browser language pack loading method, browser, electronic equipment and storage medium
CN116233298A (en) * 2022-12-05 2023-06-06 湖北星纪时代科技有限公司 Language data packet updating method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108804175A (en) Multilingual adaptation method, mobile terminal and computer readable storage medium
CN107301051A (en) The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
CN107357718A (en) One kind structure method of testing and device
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107844189A (en) A kind of method, system, terminal and computer-readable recording medium for reducing blank screen power consumption
CN109636278A (en) Material replenishing method, material goods compensator and terminal device
CN107484190B (en) Method for connecting network, mobile terminal and computer readable storage medium
CN108366091A (en) Network request processing method, terminal and computer-readable medium
CN107193598A (en) Application starting method, mobile terminal and computer readable storage medium
CN107506494B (en) Document handling method, mobile terminal and computer readable storage medium
CN107491324A (en) A kind of method and terminal for installing application program
CN110244963A (en) Data-updating method, device and terminal device
CN110262810A (en) A kind of method and apparatus of installation application
CN108920704A (en) File access pattern method, file restoring device and mobile terminal
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN107679222A (en) Image processing method, mobile terminal and computer-readable recording medium
CN109035623A (en) Interface display method, interface display apparatus and the electronic equipment of self-aided terminal
CN106775835A (en) Obtain method, server and the terminal of upgrade file
CN108366298A (en) Video broadcasting method, mobile terminal and computer readable storage medium
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium
CN108520186A (en) Record screen method, mobile terminal and computer readable storage medium
CN107330058A (en) Application searches method, mobile terminal and computer-readable recording medium
CN107391361A (en) A kind of POS terminal automatic test approach and device
CN107301236A (en) Application searches method, mobile terminal, server and computer-readable recording medium
CN109104481A (en) file integrity detection method, file integrity detection device and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication