CN109669741A - Language switching method, server and the storage medium of terminal applies dynamic official documents and correspondence - Google Patents

Language switching method, server and the storage medium of terminal applies dynamic official documents and correspondence Download PDF

Info

Publication number
CN109669741A
CN109669741A CN201811122739.4A CN201811122739A CN109669741A CN 109669741 A CN109669741 A CN 109669741A CN 201811122739 A CN201811122739 A CN 201811122739A CN 109669741 A CN109669741 A CN 109669741A
Authority
CN
China
Prior art keywords
language
correspondence
official documents
server
dynamic
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.)
Granted
Application number
CN201811122739.4A
Other languages
Chinese (zh)
Other versions
CN109669741B (en
Inventor
黄超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811122739.4A priority Critical patent/CN109669741B/en
Priority to PCT/CN2018/122722 priority patent/WO2020062640A1/en
Publication of CN109669741A publication Critical patent/CN109669741A/en
Application granted granted Critical
Publication of CN109669741B publication Critical patent/CN109669741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses language switching method, server and the storage mediums of a kind of terminal applies dynamic official documents and correspondence, method includes: that server receives the dynamic official documents and correspondence language switching instruction that the terminal applies issue, and obtains the to be switched language of the dynamic official documents and correspondence according to the dynamic official documents and correspondence language switching instruction;The server obtains the corresponding language pack of the to be switched language according to the to be switched language from preset memory;The server returns to the language pack to the terminal applies, so that the terminal applies switch by the load language pack language of the dynamic official documents and correspondence.The present invention returns to be switched language pack to terminal applies by server, enables the language free switching of dynamic official documents and correspondence, the display of terminal applies is very flexibly and intelligent.

Description

Language switching method, server and the storage medium of terminal applies dynamic official documents and correspondence
Technical field
The present invention relates to the communications field more particularly to a kind of language switching method, the servers of terminal applies dynamic official documents and correspondence And computer readable storage medium.
Background technique
With popularizing for end application, more and more terminal applies, which are gone abroad, has started internationalization process.But At present in the use process of terminal applies, the corresponding language of dynamic reminding official documents and correspondence that terminal applies are shown, often according to What terminal applies version that family is currently downloaded determined, for example, user downloading be Chinese edition terminal applies, then terminal applies Dynamic official documents and correspondence is Chinese edition;If what user downloaded is the terminal applies of English edition, the dynamic official documents and correspondence of terminal applies is English edition.If user version downloads mistake, the display of dynamic official documents and correspondence can not be adapted to, therefore terminal applies dynamic official documents and correspondence is aobvious Show not smart enough.
Summary of the invention
The main purpose of the present invention is to provide language switching method, server and the meters of a kind of terminal applies dynamic official documents and correspondence Calculation machine readable storage medium storing program for executing, it is intended to solve the problems, such as that the display of terminal applies dynamic official documents and correspondence is not smart enough.
To achieve the above object, the present invention provides a kind of language switching method of terminal applies dynamic official documents and correspondence, comprising steps of
Server receives the dynamic official documents and correspondence language switching instruction that the terminal applies issue, and according to the dynamic official documents and correspondence language Speech switching command obtains the to be switched language of the dynamic official documents and correspondence;
It is corresponding to obtain the to be switched language according to the to be switched language from preset memory for the server Language pack;
The server returns to the language pack to the terminal applies, so that the terminal applies pass through load institute's predicate Speech packet switches the language of the dynamic official documents and correspondence.
Optionally, the dynamic official documents and correspondence language switching instruction includes the previous switching dynamic official documents and correspondence of the terminal applies The historical position of terminal when language;It is described to be cut according to the dynamic official documents and correspondence language switching instruction acquisition dynamic official documents and correspondence The step of language changed includes:
The base station location information, global position system GPS location information and network that the server passes through the terminal At least one of Protocol IP address location information obtains the terminal and is presently in position;
The server judge the terminal in the dynamic official documents and correspondence language switching instruction historical position whether with institute It states terminal and is presently in position consistency;
When the historical position of the terminal and the terminal be presently in position it is inconsistent when, the server is according to Terminal is presently in position, determines that the terminal is presently in the corresponding official language in position, and using the official language as The to be switched language of the dynamic official documents and correspondence.
Optionally, the dynamic official documents and correspondence language switching instruction includes the language configuration information of the terminal other application;
The step of obtaining the dynamic official documents and correspondence to be switched language according to dynamic official documents and correspondence language switching instruction packet It includes:
The server obtains the language configuration of the terminal other application from the dynamic official documents and correspondence language switching instruction Information;
The server determines language used in the other application according to the language configuration information of the other application Speech, and the language that language used in the other application is to be switched as the terminal applies dynamic official documents and correspondence.
Optionally, the dynamic official documents and correspondence language switching instruction further includes the application attribute of multiple other applications;
The server obtains the language configuration of the terminal other application from the dynamic official documents and correspondence language switching instruction Before the step of information, further includes:
The server obtains the application attribute of the terminal applies;
The server obtains the language configuration of the terminal other application from the dynamic official documents and correspondence language switching instruction The step of information includes:
The server obtains the application of the multiple other applications of the terminal from the dynamic official documents and correspondence language switching instruction Attribute, wherein the application attribute of the multiple other application includes working and studying attribute and life & amusement attribute;
When the application attribute of the terminal applies is working and studying attribute, the server is obtained in multiple other applications Application attribute is the language configuration information of working and studying attribute;
When the application attribute of the terminal applies is life & amusement attribute, the server is obtained in multiple other applications Application attribute is the language configuration information of life & amusement attribute.
Optionally, the server obtains described to be switched according to the to be switched language from preset memory The step of language corresponding language pack includes:
The server obtains the service node that the terminal applies are presently in;
The server is searched from the preset memory according to the to be switched language and the service node The to be switched language out, the service node that the terminal applies are presently in corresponding language pack.
Optionally, the server is according to the to be switched language and the service node, from the default storage The to be switched language is found out in device, the step of the service node that the terminal applies are presently in corresponding language pack Before, further includes:
Whether the server judges in the preset memory to include the to be switched language, the terminal applies The corresponding language pack of the service node being presently in;
If it is not, then the server selects a kind of language of dynamic official documents and correspondence, and obtain what the terminal applies were presently in Service node is corresponding, the dynamic official documents and correspondence of the language of this kind of dynamic official documents and correspondence;
The server carries out the dynamic official documents and correspondence at participle according to the default word-building rule of the language of this kind of dynamic official documents and correspondence Reason, obtains multiple reference language blocks;
The server searches each benchmark using the multiple reference language block as keyword from the preset memory The corresponding to be switched language blocks of language blocks;
The server splices all language blocks according to the default word-building rule of the to be switched language, obtains The to be switched language, the corresponding language pack of the service node that the terminal applies are presently in;
If so, the server is executed according to the to be switched language and the service node, preset from described The to be switched language is found out in memory, the corresponding language pack of the service node that the terminal applies are presently in Step.
Optionally, the server returns to the language pack to the terminal applies, so that the terminal applies are by adding After carrying the step of language pack switches the language of the dynamic official documents and correspondence, further includes:
The server obtains the dynamic official documents and correspondence error information that the terminal applies are sent, wherein the dynamic official documents and correspondence reports an error Information includes user to report an error the correspondence character to be replaced of character and input in the dynamic official documents and correspondence that terminal applies display interface selects;
The server establishes the dynamic official documents and correspondence and reports an error the mapping relations of character and the corresponding intercharacter to be replaced, and After default artificial detection terminal passes through mapping relations detection, the dynamic official documents and correspondence stored in the language pack is reported an error word Symbol replaces with the correspondence character to be replaced of mapping.
To achieve the above object, the present invention also provides a kind of servers, comprising:
Module is obtained, the dynamic official documents and correspondence language switching instruction issued for receiving the terminal applies, and according to described dynamic State official documents and correspondence language switching instruction obtains the to be switched language of the dynamic official documents and correspondence;
The acquisition module is also used to be obtained from preset memory described to be switched according to the to be switched language The corresponding language pack of language;
Return module, for returning to the language pack to the terminal applies, so that the terminal applies pass through load institute State the language that language pack switches the dynamic official documents and correspondence.
To achieve the above object, the present invention also provides a kind of server, the server include: communication module, memory, Processor and it is stored in the computer program that can be run on the memory and on the processor, the computer program quilt The step of processor realizes the language switching method of terminal applies dynamic official documents and correspondence as described above when executing.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages Computer program is stored on medium, the computer program realizes terminal applies dynamic as described above when being executed by processor The step of language switching method of official documents and correspondence.
The present invention receives the dynamic official documents and correspondence language switching instruction that the terminal applies issue by server, and according to described Dynamic official documents and correspondence language switching instruction obtains the to be switched language of the dynamic official documents and correspondence;The server is according to the to be switched language Speech, obtains the corresponding language pack of the to be switched language from preset memory;The server returns to the language pack extremely The terminal applies, so that the terminal applies switch by loading the language pack language of the dynamic official documents and correspondence.To root It according to the language for the language pack free switching terminal applies dynamic official documents and correspondence that server returns, does not need to re-download terminal applies, move The language switching of state official documents and correspondence is very intelligent flexible.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the server that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the language switching method first embodiment of terminal applies dynamic official documents and correspondence of the present invention;
Fig. 3 is the refinement stream of step S10 in the language switching method second embodiment of terminal applies dynamic official documents and correspondence of the present invention Journey schematic diagram;
Fig. 4 is the refinement stream of step S10 in the language switching method 3rd embodiment of terminal applies dynamic official documents and correspondence of the present invention Journey schematic diagram;
Fig. 5 is the refinement stream of step S20 in the language switching method fourth embodiment of terminal applies dynamic official documents and correspondence of the present invention Journey schematic diagram;
Fig. 6 is one the functional block diagram of server of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Fig. 1 is please referred to, Fig. 1 is the hardware structural diagram of server provided by the present invention.The server includes logical Believe the components such as module 10, memory 20 and processor 30.In the server, the processor 30 respectively with the storage Device 20 and the communication module 10 connect, and are stored with computer program on the memory 20, the computer program is simultaneously It is executed by processor 30.
Communication module 10 can be connect by network with external communications equipment.Communication module 10 can receive external communication and set The request that preparation goes out, can also send request, instruction and information to the external communications equipment.The external communications equipment can be with It is other servers and/or the terminal that user uses, the terminal can be computer, tablet computer and mobile phone etc., described Application program is installed in terminal, shows dynamic official documents and correspondence on the application program display interface.
Memory 20 can be used for storing software program and various data.Memory 20 can mainly include storing program area The storage data area and, wherein storing program area can application program needed for storage program area, at least one function (such as really Determine the to be switched language of terminal applies) etc.;Storage data area may include database, and storage data area can be stored according to server Use created data or information etc..In addition, memory 20 may include high-speed random access memory, it can also include non- Volatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 30 is the control centre of server, utilizes each portion of various interfaces and the entire server of connection Point, by running or execute the software program and/or module that are stored in memory 20, and calls and be stored in memory 20 Data, the various functions of execute server and processing data, to carry out integral monitoring to server.Processor 30 may include One or more processing units;Optionally, processor 30 can integrate application processor and modem processor, wherein application The main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.It can With understanding, above-mentioned modem processor can not also be integrated into processor 30.
Although Fig. 1 is not shown, above-mentioned server can also include that circuit control module guarantees for connecting to power supply The normal work of other component.It will be understood by those skilled in the art that server architecture shown in Fig. 1 is not constituted to service The restriction of device may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Based on above-mentioned hardware configuration, each embodiment of the method for the present invention is proposed.
Referring to fig. 2, in the first embodiment of the language switching method of terminal applies dynamic official documents and correspondence of the present invention, comprising:
Step S10, server receive the dynamic official documents and correspondence language switching instruction that the terminal applies issue, and according to described dynamic State official documents and correspondence language switching instruction obtains the to be switched language of the dynamic official documents and correspondence;
Wherein, dynamic official documents and correspondence refers to the terminal applies prompts that terminal applies are shown in use, such as mentions Show that user inputs username and password in the display interface, or the password of prompt input only supports alphabet size is write to mix with number It closes.In the present embodiment, the dynamic official documents and correspondence of terminal applies is by server feedback to terminal.
Terminal applies can receive the trigger action that user executes in application display interface, according to trigger action and to cut Information required for the language of the state that moves official documents and correspondence generates dynamic official documents and correspondence language switching instruction, alternatively, can also be determined by terminal applies Phase is autonomously generated dynamic official documents and correspondence language switching instruction.The dynamic official documents and correspondence language switching instruction that server receiving terminal application issues Afterwards, dynamic official documents and correspondence language switching instruction can be parsed, obtains information required for the language of switching dynamic official documents and correspondence, wherein It may include the to be switched language of dynamic official documents and correspondence.
The official language in be switched language region according to locating for terminal determines, can also correspond to user according to terminal Use habit be determined.It is used for example, server can obtain terminal system according to dynamic official documents and correspondence language switching instruction Language, the then language that language used in terminal system is to be switched as terminal applies dynamic official documents and correspondence.
When obtaining the to be switched language of dynamic official documents and correspondence by dynamic official documents and correspondence language switching instruction, the end can also be obtained The language of the current dynamic official documents and correspondence of end application, for example, can also include the version of terminal applies in dynamic official documents and correspondence language switching instruction Information determines the language of the current dynamic official documents and correspondence of terminal applies according to the version information of terminal applies.
Step S20, the server obtain described to be switched according to the to be switched language from preset memory The corresponding language pack of language;
The preset memory of server can be local storage, and the server can also be made of distributed system, Preset memory is arranged on other systems server.The language pack of multilingual can be previously stored in preset memory, After determining to be switched language, server can find out to be switched language according to be switched language from preset memory Say corresponding language pack.
Optionally, to be switched language can be abridged with language when bottom is run and is identified, such as zh_CN can be with table Show that simplified form of Chinese Character, en_US can indicate that Americanese, en_GB can indicate British English.Correspondingly, in preset memory Mapping table can be set, abridged by language and constituted with the mapping relations of the store path of corresponding language pack, server can be with Using to be switched language as keyword, the store path of corresponding language pack is found out from mapping table, and then executes corresponding language The extraction operation of packet.
Step S30, the server return to the language pack to the terminal applies, so that the terminal applies are by adding Carry the language that the language pack switches the dynamic official documents and correspondence.
The corresponding language pack of to be switched language found is returned to terminal applies by server, is loaded by terminal applies The language pack, be in the effect that terminal applies display interface actually reaches: the language of the dynamic official documents and correspondence of display is switched to language pack Corresponding language.
After this programme determines the to be switched language of dynamic official documents and correspondence according to dynamic official documents and correspondence language switching instruction by server, return Corresponding language pack makes the language of terminal applies switching dynamic official documents and correspondence to terminal applies.This programme in terminal applies without depositing The language pack for storing up a variety of dynamic official documents and correspondences, alleviates the memory of terminal shared by terminal applies;And it is aobvious compared to current dynamic official documents and correspondence Show method, more intelligently can neatly switch the language of dynamic official documents and correspondence, it is user-friendly.
Further, in other embodiments, after the step S30, further includes:
The server obtains the dynamic official documents and correspondence error information that the terminal applies are sent, wherein the dynamic official documents and correspondence reports an error Information includes user to report an error the correspondence character to be replaced of character and input in the dynamic official documents and correspondence that terminal applies display interface selects;
It should be noted that the character string that the language of dynamic official documents and correspondence is shown is not necessarily completely correct, in fact it could happen that word-building Mistake and/or syntax error.Wrong dynamic official documents and correspondence is shown when user has viewed in use, can be answered by terminal Display interface selection grammer or the dynamic official documents and correspondence of word-building mistake report an error character, and terminal applies can pop up text box and ask at this time User is asked to input character to be replaced.After input is completed and submits to terminal applies, terminal applies can report an error dynamic official documents and correspondence Character and corresponding character to be replaced are sent to server.
The server establishes the dynamic official documents and correspondence and reports an error the mapping relations of character and the corresponding intercharacter to be replaced, and After default artificial detection terminal passes through mapping relations detection, the dynamic official documents and correspondence stored in the language pack is reported an error word Symbol replaces with the correspondence character to be replaced of mapping.
Server receives dynamic official documents and correspondence and reports an error after character, can establish mapping table between the two, and by mapping relations Table is sent to default artificial detection terminal, is attended a banquet by artificial detection and carries out detection verifying, if detection is verified, then by taking The character that reports an error of the dynamic official documents and correspondence in the language pack of preset memory is substituted for the correspondence character to be replaced of mapping by business device.Pass through use Family carries out error correction feedback, and server is helped to improve the accuracy of language pack, also more participates in and optimize terminal applies to user Chance.
Further, referring to Fig. 3, the first embodiment of the language switching method based on terminal applies dynamic official documents and correspondence of the present invention It is proposed the second embodiment of the language switching method of terminal applies dynamic official documents and correspondence of the present invention, in the present embodiment, the dynamic text The historical position of case language switching instruction terminal when including the language of the previous switching dynamic official documents and correspondence of the terminal applies; The step S10 includes:
Step S11, the server are fixed by the base station location information, GPS positioning information and IP address of the terminal At least one of position information obtains the terminal and is presently in position;
The location information of terminal can be obtained by server by the corresponding authority that terminal applies obtain terminal.Wherein base station Location information uses base station location technology, also known as mobile location-based service (LBS-Location Based Service) skill Art is the location information that terminal is obtained by the network of telecom operators.GPS (Global Positioning System, Global positioning system) location information independently measures generally by the GPS module combination software of terminal built-in and to obtain, with Android For terminal, the acquisition of GPS positioning information can be obtained by LocationManager class.IP(Internet Protocol, network protocol) address location information is by IP address terminal the country in which it is located, province and city obtained after parsing City.
It should be noted that in the present embodiment, the terminal of acquisition is presently in position and does not need very accurately, as long as energy It enough determines the official language of terminal present position, therefore can only pass through any location information in above three location information ?.But when being combined using at least two location informations, the accuracy for improving location information can be helped, user is prevented Lead to the situation of location information inaccuracy because individual demand has modified some location information.
Step S12, the server judge the historical position of the terminal in the dynamic official documents and correspondence language switching instruction Whether with the terminal position consistency is presently in;If it is not, thening follow the steps S13;
The historical position of the terminal refers to that terminal is answered when the language of the previous switching dynamic official documents and correspondence of terminal applies When with the newest language for once passing through mechanism switching dynamic official documents and correspondence, the location of described terminal.By by historical position with The position that terminal is presently in is compared, and can determine that whether the position of terminal has switching.It should be noted that in the history bit It sets and is presently in the comparison procedure of position, the accuracy of position can be as accurate as locating area (such as Hong Kong) or state Family, as long as can determine that official language.It, can be with when the position consistency that the historical position of the terminal and terminal are presently in It stops operation, the switching of dynamic official documents and correspondence language is not realized according to this dynamic official documents and correspondence language switching instruction.
Step S13, the server are presently in position according to the terminal, determine that the terminal is presently in position pair The official language answered, and the language that the official language is to be switched as the dynamic official documents and correspondence.
Official language is one or more of language that each country use scope is most wide or number of users is most.Example Such as, the official language of Britain is English, and French official language is French.If the location of present terminal be in Britain, The then language that English is to be switched as dynamic official documents and correspondence.This programme leads in historical position and the inconsistent position being presently in The geographical location for crossing terminal determines the to be switched language of terminal applies, does not need user and is set using manually conveniently, but also dynamic The switching of state official documents and correspondence is more intelligent convenient.
Further, referring to fig. 4, the first embodiment of the language switching method based on terminal applies dynamic official documents and correspondence of the present invention It is proposed the 3rd embodiment of the language switching method of terminal applies dynamic official documents and correspondence of the present invention, in the present embodiment, the dynamic text Case language switching instruction includes the language configuration information of the terminal other application;The step S10 includes:
Step S14, the server obtain the terminal other application from the dynamic official documents and correspondence language switching instruction Language configuration information;
The application of terminal in addition to installing switching dynamic official documents and correspondence language in need, also will be installed other application.It therefore can The speech habits being arranged when with according to user using other application carry out the switching setting of the terminal applies dynamic official documents and correspondence language. Wherein, the method for the speech habits being arranged when obtaining user using other application can be from dynamic official documents and correspondence language switching instruction The language configuration information of other application is obtained, which is used to record the language ring of user setting in other application Border can store in the configuration file of other application.
It is understood that application program can be classified according to functions, each application program has respectively after classification From functional attributes, including life & amusement attribute, working and studying attribute, image procossing attribute and software maintenance attribute etc.. The application attribute of terminal applies can be obtained before the language configuration information for obtaining terminal other application.Executing step S14 During, the application attribute of terminal other application is obtained by dynamic official documents and correspondence language switching instruction, is applied by reflexless terminal With the application attribute of other application, the language configuration information of suitable other application is selected.
Optionally, it when terminal is there are when multiple other applications, then can be obtained by dynamic official documents and correspondence language switching instruction every The corresponding application attribute of a other application, can find from each other application according to the application attribute of terminal applies With the consistent other application of application attribute of terminal applies, and the language of the consistent other application of the application attribute is obtained with confidence Breath.Further, it if the consistent other application of application attribute is there are multiple, can be carried out according to the frequency of use of application attribute Selection selects the highest other application of frequency of use, then obtains its language configuration information.This programme is by for terminal applies It is fitted on the consistent other application of application attribute, and obtains the language configuration information of the consistent other application, helps user in work Work learn or live in using the terminal applies when, more enjoy the service be close to the users and itself be accustomed to, enhance terminal and answer It is shown with dynamic official documents and correspondence language intelligent and humanized.
Here, including that working and studying and two attribute of life & amusement are illustrated with application program.When in the step When performing the step for the application attribute that the server obtains the terminal applies before rapid S14, the step S14 be can wrap It includes:
The server obtains the application of the multiple other applications of the terminal from the dynamic official documents and correspondence language switching instruction Attribute, wherein the application attribute of the multiple other application includes working and studying attribute and life & amusement attribute;
When the application attribute of the terminal applies is working and studying attribute, the server is obtained in multiple other applications Application attribute is the language configuration information of working and studying attribute;
When the application attribute of the terminal applies is life & amusement attribute, the server is obtained in multiple other applications Application attribute is the language configuration information of life & amusement attribute.
Step S15, the server determine that the other application is made according to the language configuration information of the other application Language, and the language that language used in the other application is to be switched as the terminal applies dynamic official documents and correspondence.
After server obtains the language configuration information of other application, the language that other application uses can be determined, it should Language used in other application can be the language that other application is integrally shown, can also be only the dynamic official documents and correspondence of other application Language, the language for then the using other application language to be switched as terminal applies dynamic official documents and correspondence.This programme is conducive to Flexibly switch the language of dynamic official documents and correspondence, intelligence and hommization according to the use habit of terminal user.
It should be noted that determining the technical solution of to be switched language by the application attribute of location information and other application It may be performed simultaneously, it can also be by user setting priority, according to the determination for successively carrying out to be switched language of priority.This Outside, when the application attribute of location information or other application can not be got, it also can choose another corresponding scheme The language to be switched into determination.
Further, referring to Fig. 5, the first embodiment of the language switching method based on terminal applies dynamic official documents and correspondence of the present invention It is proposed the fourth embodiment of the language switching method of terminal applies dynamic official documents and correspondence of the present invention, in the present embodiment, the step S20 Include:
Step S21, the server obtain the service node that the terminal applies are presently in;
The present embodiment compares the technical solution of first embodiment, and difference is: by dynamic official documents and correspondence needed for terminal applies Section has been divided according to service node.Service node is that user executes stage locating in operating process, example by terminal applies It may include account application stage, recognition of face stage, business application stage and business such as by terminal applies transacting business Audit stage etc..After demarcation interval, each service node is corresponding with respective dynamic official documents and correspondence.
Step S22, the server is according to the to be switched language and the service node, from the default storage The to be switched language, the corresponding language pack of the service node that the terminal applies are presently in are found out in device.
Also the language pack that can store the corresponding each service node of every kind of language in preset memory searches language executing It can be obtained from preset memory corresponding directly using to be switched language and service node as keyword when saying package operation Language pack.Such as to be switched language is Chinese-traditional, service node is account application node, at this time language in account application node Speech is that there are two the dynamic official documents and correspondence of Chinese-traditional has altogether, respectively " please input account number and password " and " account number and password only prop up Hold alphabet size and write mixing ", the two dynamic official documents and correspondences can be packaged into language pack, passed through in the processor of server to be switched Language be " Chinese-traditional " and service node be " account application node " inquire preset memory when, by preset memory The language pack after being packaged is returned to processor, so that memory is returned to terminal applies by processor.This programme passes through every kind The dynamic official documents and correspondence of language is divided into the corresponding dynamic official documents and correspondence of each service node, is then pushed to end again when reaching the service node End application, reduces the occupancy to terminal memory.
Further, before the step S22 can with comprising steps of
Whether the server judges in the preset memory to include the to be switched language, the terminal applies The corresponding language pack of the service node being presently in;
If it is not, then the server selects a kind of language of dynamic official documents and correspondence, and obtain what the terminal applies were presently in Service node is corresponding, the dynamic official documents and correspondence of the language of this kind of dynamic official documents and correspondence;The server is dynamic according to this kind by the dynamic official documents and correspondence The default word-building rule of the language of state official documents and correspondence carries out word segmentation processing, obtains multiple reference language blocks;The server is with described more A reference language block is keyword, and the corresponding to be switched language of each reference language block is searched from the preset memory Block;The server splices all language blocks according to the default word-building rule of the to be switched language, obtains described To be switched language, the corresponding language pack of the service node that the terminal applies are presently in;
If so, the server is executed according to the to be switched language and the service node, preset from described The to be switched language is found out in memory, the corresponding language pack of the service node that the terminal applies are presently in Step.
This programme is when not including the language pack needed, by making certain randomly selected language in preset memory For benchmark language, when terminal applies are in some service node, all of the basic language of the available service node are moved State official documents and correspondence, then with the default word-building rule of reference language by NLP handle (Natural Language Processing, from Right Language Processing) all dynamic official documents and correspondences are segmented, obtain reference language block.Then it is found further according to reference language block default The to be switched language blocks that be switched language is corresponded in memory are handled by NLP and understand semanteme, then combining default word-building rule will All to be switched language blocks combinations found, form current business node and correspond to required language pack.It should be noted that our Case is main it is emphasised that forms language pack by segmenting combination, for NLP processing technique how to carry out participle understand it is semantic and Combining default word-building rule to be segmented is that those skilled in the art can be configured with reference to the prior art, is not done herein It repeats.When this programme does not include this kind of language pack in preset memory, found by the reference language randomly selected corresponding To be switched language blocks combination producing language pack, solves and can not find corresponding language pack, can not carry out the language switching of dynamic official documents and correspondence The problem of.
Referring to Fig. 6, the present invention also proposes a kind of server, comprising:
Module 10 is obtained, the dynamic official documents and correspondence language switching instruction issued for receiving the terminal applies, and according to described Dynamic official documents and correspondence language switching instruction obtains the to be switched language of the dynamic official documents and correspondence;
The acquisition module 10 is also used to be obtained from preset memory described to be cut according to the to be switched language The corresponding language pack of the language changed;
Return module 20, for returning to the language pack to the terminal applies, so that the terminal applies pass through load The language pack switches the language of the dynamic official documents and correspondence.
Further, in another embodiment, the dynamic official documents and correspondence language switching instruction includes that the terminal applies are previous Switch the historical position of the terminal when language of the dynamic official documents and correspondence;
The acquisition module includes:
Acquiring unit, for base station location information, global position system GPS location information and the net by the terminal At least one of network Protocol IP address location information obtains the terminal and is presently in position;
Judging unit, for judge the terminal in the dynamic official documents and correspondence language switching instruction historical position whether with The terminal is presently in position consistency;
Determination unit, for when the historical position of the terminal and the terminal be presently in position it is inconsistent when, according to The terminal is presently in position, determines that the terminal is presently in the corresponding official language in position, and by the official language The language to be switched as the dynamic official documents and correspondence.
Further, in another embodiment, the dynamic official documents and correspondence language switching instruction includes the terminal other application Language configuration information;The acquisition module includes:
Acquiring unit, the language for obtaining the terminal other application from the dynamic official documents and correspondence language switching instruction are matched Confidence breath;
Determination unit determines used in the other application for the language configuration information according to the other application Language, and the language that language used in the other application is to be switched as the terminal applies dynamic official documents and correspondence.
Further, in another embodiment, the dynamic official documents and correspondence language switching instruction further includes that multiple described other are answered Application attribute;The acquiring unit is also used to obtain the application attribute of the terminal applies and from the dynamic official documents and correspondence The application attribute of the multiple other applications of the terminal is obtained in language switching instruction, wherein the application of the multiple other application Attribute includes working and studying attribute and life & amusement attribute;And when the application attribute of the terminal applies is working and studying attribute When, obtain the language configuration information that application attribute in multiple other applications is working and studying attribute;When answering for the terminal applies When with attribute being life & amusement attribute, language that application attribute in multiple other applications is life & amusement attribute is obtained with confidence Breath.
Further, in another embodiment, the acquisition module further includes searching unit;Wherein,
The acquiring unit is also used to obtain the service node that the terminal applies are presently in;
The searching unit, for according to the to be switched language and the service node, from the default storage The to be switched language, the corresponding language pack of the service node that the terminal applies are presently in are found out in device.
Further, in another embodiment, the acquisition module includes:
The judging unit is also used to judge in the preset memory whether include the to be switched language, institute State the corresponding language pack of service node that terminal applies are presently in;It is executed described in judgement if so, triggering the searching unit It whether include the to be switched language, the corresponding language of the service node that the terminal applies are presently in preset memory Speech packet;
Selecting unit, for not including the to be switched language when the preset memory, the terminal applies are worked as When the corresponding language pack of preceding locating service node, a kind of language of dynamic official documents and correspondence is selected, and it is current to obtain the terminal applies Locating service node is corresponding, the dynamic official documents and correspondence of the language of this kind of dynamic official documents and correspondence;
Participle unit, for segmenting the dynamic official documents and correspondence according to the default word-building rule of the language of this kind of dynamic official documents and correspondence Processing, obtains multiple reference language blocks;
The searching unit is also used to look into from the preset memory using the multiple reference language block as keyword Look for the corresponding to be switched language blocks of each reference language block;
Concatenation unit, for being spliced according to the default word-building rule of the to be switched language to all language blocks, Obtain the to be switched language, the corresponding language pack of the service node that the terminal applies are presently in.
Further, in another embodiment, the server further includes establishing module and replacement module, wherein
The acquisition module is also used to obtain the dynamic official documents and correspondence error information that the terminal applies are sent, wherein described dynamic State official documents and correspondence error information includes user to report an error the correspondence of character and input in the dynamic official documents and correspondence that terminal applies display interface selects Character to be replaced;
It is described to establish module, it reports an error the mapping of character and the corresponding intercharacter to be replaced for establishing the dynamic official documents and correspondence Relationship, and after default artificial detection terminal passes through mapping relations detection, the replacement module is triggered by the language The dynamic official documents and correspondence stored in packet the character that reports an error replaces with the correspondence character to be replaced of mapping.
The present invention also proposes a kind of computer readable storage medium, is stored thereon with computer program.The computer can Reading storage medium can be the memory 20 in the server of Fig. 1, be also possible to as ROM (Read-Only Memory, it is read-only to deposit Reservoir)/RAM (Random Access Memory, random access memory), magnetic disk, at least one of CD, the calculating Machine readable storage medium storing program for executing include some instructions use so that one with processor terminal device (can be mobile phone, computer, Server, server or network equipment etc.) execute method described in each embodiment of the present invention.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the server-side that include a series of elements not only include those elements, It but also including other elements that are not explicitly listed, or further include for this process, method, article or server-side institute Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wrapping Include in process, method, article or the server-side of the element that there is also other identical elements.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of language switching method of terminal applies dynamic official documents and correspondence, which is characterized in that comprising steps of
Server receives the dynamic official documents and correspondence language switching instruction that the terminal applies issue, and is cut according to the dynamic official documents and correspondence language It changes instruction and obtains the to be switched language of the dynamic official documents and correspondence;
The server obtains the corresponding language of the to be switched language according to the to be switched language from preset memory Speech packet;
The server returns to the language pack to the terminal applies, so that the terminal applies are by loading the language pack Switch the language of the dynamic official documents and correspondence.
2. the language switching method of terminal applies dynamic official documents and correspondence according to claim 1, which is characterized in that the dynamic text The historical position of case language switching instruction terminal when including the language of the previous switching dynamic official documents and correspondence of the terminal applies; Described the step of obtaining the dynamic official documents and correspondence to be switched language according to the dynamic official documents and correspondence language switching instruction includes:
The base station location information, global position system GPS location information and network protocol that the server passes through the terminal At least one of IP address location information obtains the terminal and is presently in position;
The server judge the terminal in the dynamic official documents and correspondence language switching instruction historical position whether with the end End is presently in position consistency;
When the historical position of the terminal and the terminal be presently in position it is inconsistent when, the server is according to the terminal It is presently in position, determines that the terminal is presently in the corresponding official language in position, and using the official language as described in The to be switched language of dynamic official documents and correspondence.
3. the language switching method of terminal applies dynamic official documents and correspondence according to claim 1, which is characterized in that the dynamic text Case language switching instruction includes the language configuration information of the terminal other application;
Described the step of obtaining the dynamic official documents and correspondence to be switched language according to the dynamic official documents and correspondence language switching instruction includes:
The server obtains the language configuration information of the terminal other application from the dynamic official documents and correspondence language switching instruction;
The server determines language used in the other application according to the language configuration information of the other application, and Using the language that language used in the other application is to be switched as the terminal applies dynamic official documents and correspondence.
4. the language switching method of terminal applies dynamic official documents and correspondence according to claim 3, which is characterized in that the dynamic text Case language switching instruction further includes the application attribute of multiple other applications;
The server obtains the language configuration information of the terminal other application from the dynamic official documents and correspondence language switching instruction The step of before, further includes:
The server obtains the application attribute of the terminal applies;
The server obtains the language configuration information of the terminal other application from the dynamic official documents and correspondence language switching instruction The step of include:
The server obtains the application attribute of the multiple other applications of the terminal from the dynamic official documents and correspondence language switching instruction, Wherein, the application attribute of the multiple other application includes working and studying attribute and life & amusement attribute;
When the application attribute of the terminal applies is working and studying attribute, the server obtains to be applied in multiple other applications Attribute is the language configuration information of working and studying attribute;
When the application attribute of the terminal applies is life & amusement attribute, the server obtains to be applied in multiple other applications Attribute is the language configuration information of life & amusement attribute.
5. the language switching method of terminal applies dynamic official documents and correspondence according to claim 1, which is characterized in that the server According to the to be switched language, the step of corresponding language pack of the to be switched language is obtained from preset memory packet It includes:
The server obtains the service node that the terminal applies are presently in;
The server finds out institute according to the to be switched language and the service node from the preset memory State to be switched language, the corresponding language pack of the service node that the terminal applies are presently in.
6. the language switching method of terminal applies dynamic official documents and correspondence according to claim 5, which is characterized in that the server According to the to be switched language and the service node, the to be switched language is found out from the preset memory , the step of the service node that the terminal applies are presently in corresponding language pack before, further includes:
The server judges in the preset memory whether to include the to be switched language, the terminal applies are current The corresponding language pack of locating service node;
If it is not, then the server selects a kind of language of dynamic official documents and correspondence, and obtain the business that the terminal applies are presently in Node is corresponding, the dynamic official documents and correspondence of the language of this kind of dynamic official documents and correspondence;
The dynamic official documents and correspondence is carried out word segmentation processing according to the default word-building rule of the language of this kind of dynamic official documents and correspondence by the server, is obtained To multiple reference language blocks;
The server searches each reference language using the multiple reference language block as keyword from the preset memory The corresponding to be switched language blocks of block;
The server splices all language blocks according to the default word-building rule of the to be switched language, obtains described To be switched language, the corresponding language pack of the service node that the terminal applies are presently in;
If so, the server is executed according to the to be switched language and the service node, from the default storage The to be switched language, the step of the corresponding language pack of the service node that the terminal applies are presently in are found out in device Suddenly.
7. the language switching method of terminal applies dynamic official documents and correspondence according to claim 1-6, which is characterized in that institute It states server and returns to the language pack to the terminal applies, so that the terminal applies switch institute by loading the language pack After the step of stating the language of dynamic official documents and correspondence, further includes:
The server obtains the dynamic official documents and correspondence error information that the terminal applies are sent, wherein the dynamic official documents and correspondence error information It reports an error the correspondence character to be replaced of character and input including user in the dynamic official documents and correspondence that terminal applies display interface selects;
The server establishes the dynamic official documents and correspondence and reports an error the mapping relations of character and the corresponding intercharacter to be replaced, and pre- If the dynamic official documents and correspondence stored in the language pack the character that reports an error is replaced after artificial detection terminal passes through mapping relations detection It is changed to the correspondence character to be replaced of mapping.
8. a kind of server characterized by comprising
Module is obtained, the dynamic official documents and correspondence language switching instruction issued for receiving the terminal applies, and according to the dynamic text Case language switching instruction obtains the to be switched language of the dynamic official documents and correspondence;
The acquisition module is also used to obtain the to be switched language from preset memory according to the to be switched language Say corresponding language pack;
Return module, for returning to the language pack to the terminal applies, so that the terminal applies pass through load institute's predicate Speech packet switches the language of the dynamic official documents and correspondence.
9. a kind of server, which is characterized in that the server includes: communication module, memory, processor and is stored in described It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor Now the step of language switching method of the terminal applies dynamic official documents and correspondence as described in any one of claims 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the terminal applies dynamic as described in any one of claims 1 to 7 when the computer program is executed by processor The step of language switching method of official documents and correspondence.
CN201811122739.4A 2018-09-26 2018-09-26 Language switching method, server and storage medium for terminal application dynamic document Active CN109669741B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811122739.4A CN109669741B (en) 2018-09-26 2018-09-26 Language switching method, server and storage medium for terminal application dynamic document
PCT/CN2018/122722 WO2020062640A1 (en) 2018-09-26 2018-12-21 Method, server and storage medium for switching dynamic copywriting language of terminal application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811122739.4A CN109669741B (en) 2018-09-26 2018-09-26 Language switching method, server and storage medium for terminal application dynamic document

Publications (2)

Publication Number Publication Date
CN109669741A true CN109669741A (en) 2019-04-23
CN109669741B CN109669741B (en) 2022-02-18

Family

ID=66141636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811122739.4A Active CN109669741B (en) 2018-09-26 2018-09-26 Language switching method, server and storage medium for terminal application dynamic document

Country Status (2)

Country Link
CN (1) CN109669741B (en)
WO (1) WO2020062640A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362370A (en) * 2019-06-14 2019-10-22 平安科技(深圳)有限公司 A kind of switching method of homepages language, device and terminal device
CN110536149A (en) * 2019-09-02 2019-12-03 北京字节跳动网络技术有限公司 Message display method, device, readable medium and electronic equipment
CN110716777A (en) * 2019-08-30 2020-01-21 平安普惠企业管理有限公司 Application program language dynamic switching method and device, storage medium and electronic equipment
CN113407288A (en) * 2021-06-29 2021-09-17 杭州海康威视数字技术股份有限公司 Data processing method and device and electronic equipment
CN113590242A (en) * 2021-06-25 2021-11-02 影石创新科技股份有限公司 Method, device, terminal and storage medium for switching file language of application program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111767104B (en) * 2020-05-07 2023-09-01 北京奇艺世纪科技有限公司 Language type switching method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529902B1 (en) * 1999-11-08 2003-03-04 International Business Machines Corporation Method and system for off-line detection of textual topical changes and topic identification via likelihood based methods for improved language modeling
US20060155527A1 (en) * 2005-01-11 2006-07-13 Lg Electronics Inc. Mobile terminal and system providing multilingual support
CN101566946A (en) * 2008-04-25 2009-10-28 北京闻言科技有限公司 Method for flexibly supporting software multi-language version
CN103631772A (en) * 2012-08-29 2014-03-12 阿里巴巴集团控股有限公司 Machine translation method and device
CN104020991A (en) * 2014-05-16 2014-09-03 可牛网络技术(北京)有限公司 Method and device for multi-language switching of application program
US20150161114A1 (en) * 2011-06-30 2015-06-11 Google Inc. Rules-based language detection
CN105867920A (en) * 2016-03-29 2016-08-17 海尔优家智能科技(北京)有限公司 APP multi-language switching method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145473B2 (en) * 2006-10-10 2012-03-27 Abbyy Software Ltd. Deep model statistics method for machine translation
CN101201818A (en) * 2006-12-13 2008-06-18 李萍 Method for calculating language structure, executing participle, machine translation and speech recognition using HMM
US10261996B2 (en) * 2014-12-19 2019-04-16 Dropbox, Inc. Content localization using fallback translations
CN106020825A (en) * 2016-05-20 2016-10-12 珠海市魅族科技有限公司 Information display method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529902B1 (en) * 1999-11-08 2003-03-04 International Business Machines Corporation Method and system for off-line detection of textual topical changes and topic identification via likelihood based methods for improved language modeling
US20060155527A1 (en) * 2005-01-11 2006-07-13 Lg Electronics Inc. Mobile terminal and system providing multilingual support
CN101566946A (en) * 2008-04-25 2009-10-28 北京闻言科技有限公司 Method for flexibly supporting software multi-language version
US20150161114A1 (en) * 2011-06-30 2015-06-11 Google Inc. Rules-based language detection
CN103631772A (en) * 2012-08-29 2014-03-12 阿里巴巴集团控股有限公司 Machine translation method and device
CN104020991A (en) * 2014-05-16 2014-09-03 可牛网络技术(北京)有限公司 Method and device for multi-language switching of application program
CN105867920A (en) * 2016-03-29 2016-08-17 海尔优家智能科技(北京)有限公司 APP multi-language switching method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362370A (en) * 2019-06-14 2019-10-22 平安科技(深圳)有限公司 A kind of switching method of homepages language, device and terminal device
CN110362370B (en) * 2019-06-14 2022-10-18 平安科技(深圳)有限公司 Webpage language switching method and device and terminal equipment
CN110716777A (en) * 2019-08-30 2020-01-21 平安普惠企业管理有限公司 Application program language dynamic switching method and device, storage medium and electronic equipment
CN110536149A (en) * 2019-09-02 2019-12-03 北京字节跳动网络技术有限公司 Message display method, device, readable medium and electronic equipment
CN113590242A (en) * 2021-06-25 2021-11-02 影石创新科技股份有限公司 Method, device, terminal and storage medium for switching file language of application program
CN113407288A (en) * 2021-06-29 2021-09-17 杭州海康威视数字技术股份有限公司 Data processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN109669741B (en) 2022-02-18
WO2020062640A1 (en) 2020-04-02

Similar Documents

Publication Publication Date Title
CN109669741A (en) Language switching method, server and the storage medium of terminal applies dynamic official documents and correspondence
US10636425B2 (en) Voice application platform
US10169471B2 (en) Generating and executing query language statements from natural language
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN109065054A (en) Speech recognition error correction method, device, electronic equipment and readable storage medium storing program for executing
CN110968601A (en) Data query processing method and device
CN111881019B (en) User interface testing method and device
CN108804158A (en) Application call method, the control method of terminal device, terminal device and computer readable storage medium
CN109636306A (en) Node-flow shifting method, device, terminal and storage medium
CN109800258A (en) Data file dispositions method, device, computer equipment and storage medium
CN102946415B (en) A kind of implementation method of mobile terminal this locality application and device
CN110147544A (en) A kind of instruction generation method, device and relevant device based on natural language
CN110198327B (en) Data transmission method and related equipment
CN108520019A (en) Data managing method, device, equipment and computer readable storage medium
CN104780557A (en) Configuration method and device
CN110019444B (en) Operation request processing method, device, equipment and system
CN106776136B (en) Data base processing method and device
US10691764B2 (en) Search engine optimization techniques
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium
CN105389340B (en) A kind of information test method and device
CN106462629A (en) Direct answer triggering in search
CN108370329B (en) Management method and device for management function object
CA3102093A1 (en) Voice application platform
CN109471902A (en) A kind of database switching method, device, equipment and system
Ordoñez et al. Natural language processing based Services Composition for Environmental management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant