CN109669741B - Language switching method, server and storage medium for terminal application dynamic document - Google Patents

Language switching method, server and storage medium for terminal application dynamic document Download PDF

Info

Publication number
CN109669741B
CN109669741B CN201811122739.4A CN201811122739A CN109669741B CN 109669741 B CN109669741 B CN 109669741B CN 201811122739 A CN201811122739 A CN 201811122739A CN 109669741 B CN109669741 B CN 109669741B
Authority
CN
China
Prior art keywords
language
terminal
dynamic
switched
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811122739.4A
Other languages
Chinese (zh)
Other versions
CN109669741A (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 Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a language switching method, a server and a storage medium for a terminal application dynamic document, wherein the method comprises the following steps: the server receives a dynamic pattern language switching instruction sent by the terminal application, and acquires a language to be switched of the dynamic pattern according to the dynamic pattern language switching instruction; the server acquires a language packet corresponding to the language to be switched from a preset memory according to the language to be switched; and the server returns the language package to the terminal application so that the terminal application can switch the language of the dynamic case by loading the language package. The language packet to be switched is returned to the terminal application through the server, so that the language of the dynamic case can be freely switched, and the display of the terminal application is very flexible and intelligent.

Description

Language switching method, server and storage medium for terminal application dynamic document
Technical Field
The present invention relates to the field of communications, and in particular, to a language switching method for a terminal application dynamic document, a server, and a computer-readable storage medium.
Background
With the popularization of terminal application programs, more and more terminal applications are coming out of the country and start the international process. However, in the use process of the terminal application, the language corresponding to the dynamic prompt pattern displayed by the terminal application is often determined according to the terminal application version currently downloaded by the user, for example, if the user downloads the terminal application of the chinese version, the dynamic pattern of the terminal application is the chinese version; and if the terminal application of the English edition is downloaded by the user, the dynamic scheme of the terminal application is the English edition. If the user version is wrongly downloaded, the display of the dynamic document cannot be adapted, so that the display of the terminal application dynamic document is not intelligent enough.
Disclosure of Invention
The invention mainly aims to provide a language switching method of a terminal application dynamic case, a server and a computer readable storage medium, aiming at solving the problem that the display of the terminal application dynamic case is not intelligent enough.
In order to achieve the above object, the present invention provides a language switching method for a terminal application dynamic document, comprising the steps of:
the server receives a dynamic pattern language switching instruction sent by the terminal application, and acquires a language to be switched of the dynamic pattern according to the dynamic pattern language switching instruction;
the server acquires a language packet corresponding to the language to be switched from a preset memory according to the language to be switched;
and the server returns the language package to the terminal application so that the terminal application can switch the language of the dynamic case by loading the language package.
Optionally, the dynamic document language switching instruction includes a historical position of the terminal when the terminal application switches the language of the dynamic document last time; the step of obtaining the language to be switched of the dynamic pattern according to the language switching instruction of the dynamic pattern comprises the following steps:
the server acquires the current position of the terminal through at least one of base station positioning information, Global Positioning System (GPS) positioning information and network protocol (IP) address positioning information of the terminal;
the server judges whether the historical position of the terminal in the dynamic document language switching instruction is consistent with the current position of the terminal;
and when the historical position of the terminal is inconsistent with the current position of the terminal, the server determines the official language corresponding to the current position of the terminal according to the current position of the terminal, and takes the official language as the language to be switched of the dynamic case.
Optionally, the dynamic document language switching instruction includes language configuration information of other applications of the terminal;
the step of obtaining the language to be switched of the dynamic pattern according to the language switching instruction of the dynamic pattern comprises the following steps:
the server acquires the language configuration information of other applications of the terminal from the dynamic document language switching instruction;
and the server determines the language used by the other application according to the language configuration information of the other application, and takes the language used by the other application as the language to be switched by the terminal application dynamic pattern.
Optionally, the dynamic document language switching instruction further includes application attributes of a plurality of the other applications;
before the step of obtaining the language configuration information of other applications of the terminal from the dynamic document language switching instruction, the server further includes:
the server acquires the application attribute of the terminal application;
the step that the server acquires the language configuration information of other applications of the terminal from the dynamic document language switching instruction comprises the following steps:
the server acquires application attributes of a plurality of other applications of the terminal from the dynamic document language switching instruction, wherein the application attributes of the other applications comprise office and study attributes and life and entertainment attributes;
when the application attribute of the terminal application is an office learning attribute, the server acquires language configuration information of which the application attribute is the office learning attribute in a plurality of other applications;
and when the application attribute of the terminal application is the life entertainment attribute, the server acquires language configuration information of which the application attribute is the life entertainment attribute in a plurality of other applications.
Optionally, the step of acquiring, by the server, the language pack corresponding to the language to be switched from a preset memory according to the language to be switched includes:
the server acquires a service node where the terminal application is currently located;
the server searches the language to be switched from the preset memory according to the language to be switched and the service node, and the terminal applies the language packet corresponding to the service node where the terminal is located.
Optionally, before the step of the server searching for the language to be switched from the preset memory according to the language to be switched and the service node, the step of the terminal applying the language pack corresponding to the service node where the terminal is currently located further includes:
the server judges whether the preset memory comprises the language to be switched or not, and the terminal applies the language packet corresponding to the current service node;
if not, the server selects a language of a dynamic case, and acquires the dynamic case of the language of the dynamic case corresponding to the service node where the terminal application is currently located;
the server carries out word segmentation processing on the dynamic case according to preset word construction rules of the language of the dynamic case to obtain a plurality of reference language blocks;
the server takes the plurality of reference language blocks as key words, and searches the language block to be switched corresponding to each reference language block from the preset memory;
the server splices all language blocks according to a preset word construction rule of the language to be switched to obtain a language packet of the language to be switched, wherein the language packet corresponds to a service node where the terminal is located currently;
if so, the server executes a step of searching the language to be switched from the preset memory according to the language to be switched and the service node, and the terminal applies the language packet corresponding to the service node where the terminal is located.
Optionally, the step of returning, by the server, the language package to the terminal application, so that the terminal application switches the language of the dynamic document by loading the language package further includes:
the server acquires dynamic report error information sent by the terminal application, wherein the dynamic report error information comprises dynamic report error characters selected by a user on a terminal application display interface and input corresponding characters to be replaced;
and the server establishes a mapping relation between the dynamic case error-reporting character and the corresponding character to be replaced, and replaces the dynamic case error-reporting character stored in the language packet with the mapped corresponding character to be replaced after a preset manual detection terminal detects the mapping relation.
To achieve the above object, the present invention also provides a server, including:
the acquisition module is used for receiving a dynamic language switching instruction sent by the terminal application and acquiring the language to be switched of the dynamic language according to the dynamic language switching instruction;
the obtaining module is further configured to obtain, from a preset memory, a language package corresponding to the language to be switched according to the language to be switched;
and the returning module is used for returning the language package to the terminal application so that the terminal application can switch the language of the dynamic case by loading the language package.
In order to achieve the above object, the present invention also provides a server, including: a communication module, a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the language switching method of the terminal application dynamic document as described above.
To achieve the above object, the present invention further provides a computer-readable storage medium, having a computer program stored thereon, where the computer program, when executed by a processor, implements the steps of the language switching method for a terminal application dynamic document as described above.
The invention receives a dynamic language switching instruction sent by the terminal application through a server, and obtains the language to be switched of the dynamic language according to the dynamic language switching instruction; the server acquires a language packet corresponding to the language to be switched from a preset memory according to the language to be switched; and the server returns the language package to the terminal application so that the terminal application can switch the language of the dynamic case by loading the language package. Therefore, the language of the terminal application dynamic document is freely switched according to the language packet returned by the server, the terminal application does not need to be downloaded again, and the language switching of the dynamic document is intelligent and flexible.
Drawings
Fig. 1 is a schematic structural diagram of a server according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a language switching method for a terminal application dynamic document according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating the detailed process of step S10 in the second embodiment of the language switching method for terminal application dynamic documents according to the present invention;
FIG. 4 is a flowchart illustrating the detailed process of step S10 in the third embodiment of the language switching method for terminal application dynamic documents according to the present invention;
FIG. 5 is a flowchart illustrating the detailed process of step S20 in the fourth embodiment of the language switching method for terminal application dynamic documents according to the present invention;
FIG. 6 is a functional block diagram of a server according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a server provided by the present invention. The server comprises components such as a communication module 10, a memory 20 and a processor 30. In the server, the processor 30 is connected to the memory 20 and the communication module 10, respectively, and the memory 20 stores thereon a computer program which is executed by the processor 30 at the same time.
The communication module 10 may be connected to an external communication device through a network. The communication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device. The external communication equipment can be other servers and/or terminals used by users, the terminals can be computers, tablet computers, mobile phones and the like, application programs are installed on the terminals, and dynamic documents are displayed on display interfaces of the application programs.
The memory 20 may be used to store software programs as well as various data. The memory 20 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as determining a language to be switched by a terminal application), and the like; the storage data area may include a database, and the storage data area may store data or information created according to the use of the server, or the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 30, which is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the server. Processor 30 may include one or more processing units; alternatively, the processor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 30.
Although not shown in fig. 1, the server may further include a circuit control module for connecting to a power supply to ensure the normal operation of other components. Those skilled in the art will appreciate that the server architecture shown in FIG. 1 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Based on the hardware structure, various embodiments of the method of the invention are provided.
Referring to fig. 2, in a first embodiment of the language switching method for a terminal application dynamic document according to the present invention, the method includes:
step S10, the server receives a dynamic pattern language switching instruction sent by the terminal application, and obtains the language to be switched of the dynamic pattern according to the dynamic pattern language switching instruction;
the dynamic case refers to a suggestive language displayed by the terminal application in the using process of the terminal application, for example, prompting a user to input a user name and a password on a display interface, or prompting the input password to only support letter case and digit mixing. In this embodiment, the dynamic scenarios applied by the terminal are all fed back to the terminal by the server.
The terminal application may receive a trigger operation executed by a user on the application display interface to generate a dynamic document language switching instruction according to the trigger operation and information required to switch the language of the dynamic document, or the terminal application may periodically and autonomously generate the dynamic document language switching instruction. After receiving a dynamic document language switching instruction sent by the terminal application, the server can analyze the dynamic document language switching instruction to acquire information required for switching the language of the dynamic document, wherein the information can include the language to be switched of the dynamic document.
The language to be switched can be determined according to the official language of the area where the terminal is located and can also be determined according to the use habit of the user corresponding to the terminal. For example, the server may obtain the language used by the terminal system according to the dynamic document language switching instruction, and then use the language used by the terminal system as the language to be switched by the terminal application dynamic document.
When the language to be switched of the dynamic document is obtained through the dynamic document language switching instruction, the language of the current dynamic document of the terminal application can be obtained, for example, the dynamic document language switching instruction can also include the version information of the terminal application, and the language of the current dynamic document of the terminal application is determined according to the version information of the terminal application.
Step S20, the server acquires a language pack corresponding to the language to be switched from a preset memory according to the language to be switched;
the preset memory of the server can be a local memory, the server can also be composed of a distributed system, and the preset memory is arranged on other system servers. The preset memory can be pre-stored with language packs of multiple languages, and after the language to be switched is determined, the server can search the language pack corresponding to the language to be switched from the preset memory according to the language to be switched.
Optionally, the language to be switched may be identified in language abbreviations at the underlying runtime, for example, zh _ CN may represent simplified chinese, en _ US may represent american english, and en _ GB may represent english. Correspondingly, a mapping relation table can be set in the preset memory and is formed by the mapping relation between the language abbreviation and the storage path of the corresponding language packet, and the server can find out the storage path of the corresponding language packet from the mapping relation table by taking the language to be switched as a key word so as to execute the extraction operation of the corresponding language packet.
Step S30, the server returns the language pack to the terminal application, so that the terminal application can switch the language of the dynamic case by loading the language pack.
The server returns the language packet corresponding to the searched language to be switched to the terminal application, the language packet is loaded by the terminal application, and the effect actually achieved on a terminal application display interface is as follows: and switching the language of the displayed dynamic case into the language corresponding to the language packet.
According to the scheme, after the server determines the language to be switched of the dynamic pattern according to the language switching instruction of the dynamic pattern, the server returns the corresponding language packet to the terminal application, so that the terminal application switches the language of the dynamic pattern. The scheme does not need to store language packages of various dynamic documents in the terminal application, thereby reducing the memory occupied by the terminal application in the terminal; compared with the current dynamic document display method, the language of the dynamic document can be switched more intelligently and flexibly, and the use by users is convenient.
Further, in other embodiments, after the step S30, the method further includes:
the server acquires dynamic report error information sent by the terminal application, wherein the dynamic report error information comprises dynamic report error characters selected by a user on a terminal application display interface and input corresponding characters to be replaced;
it should be noted that the language of the dynamic scenario does not necessarily show the character string as being completely correct, and word formation errors and/or grammar errors may occur. When the user finds the dynamic case with the display error in the using process, the user can select the dynamic case with the grammar or the word formation error through the display interface of the terminal application and report the error characters, and at the moment, the terminal application can pop up a text box to request the user to input the characters to be replaced. And after the input is finished and submitted to the terminal application, the terminal application sends the dynamic case error-reporting characters and the corresponding characters to be replaced to the server.
And the server establishes a mapping relation between the dynamic case error-reporting character and the corresponding character to be replaced, and replaces the dynamic case error-reporting character stored in the language packet with the mapped corresponding character to be replaced after a preset manual detection terminal detects the mapping relation.
After the server receives the dynamic case error-reporting characters, a mapping relation table between the dynamic case error-reporting characters and the dynamic case error-reporting characters is established, the mapping relation table is sent to a preset manual detection terminal, detection and verification are carried out through a manual detection agent, and if the detection and verification are passed, the server replaces the dynamic case error-reporting characters in a language package of a preset memory with mapped corresponding characters to be replaced. The server is helped to improve the accuracy of the language pack by the user for error correction feedback, and the user is given more chances to participate and optimize the terminal application.
Further, referring to fig. 3, a second embodiment of the language switching method for a terminal application dynamic document according to the present invention is proposed based on the first embodiment of the language switching method for a terminal application dynamic document according to the present invention, in this embodiment, the language switching instruction for a dynamic document includes a history location of the terminal when the language of the dynamic document was switched by the terminal application last time; the step S10 includes:
step S11, the server obtains the current position of the terminal through at least one of the base station positioning information, the GPS positioning information and the IP address positioning information of the terminal;
the positioning information of the terminal can be obtained by the server through the corresponding authority of the terminal application acquisition terminal. The base station positioning information uses a base station positioning technology, also called a mobile Location Based Service (LBS-Location Based Service) technology, which obtains the Location information of the terminal through the network of the telecom operator. The GPS (Global Positioning System) Positioning information is generally obtained by autonomous measurement of a GPS module built in the terminal in combination with software, and for example, an android terminal may obtain the GPS Positioning information through LocationManager. The IP (Internet Protocol) address location information is the country, province, and city of the terminal obtained by resolving the IP address.
It should be noted that, in this embodiment, the obtained current location of the terminal does not need to be very accurate, as long as the official language of the location of the terminal can be determined, and therefore, only any one of the three positioning information may be used. But when at least two pieces of positioning information are combined, the method can help to improve the accuracy of the positioning information and prevent the situation that the user modifies certain positioning information to cause inaccurate positioning information due to personal needs.
Step S12, the server judges whether the historical position of the terminal in the dynamic document language switching instruction is consistent with the current position of the terminal; if not, go to step S13;
the historical position of the terminal when the language of the dynamic document is switched by the terminal application last time refers to the position of the terminal when the language of the dynamic document is switched by the mechanism last time by the terminal application. By comparing the historical position with the current position of the terminal, whether the position of the terminal is switched or not can be determined. It should be noted that, in the comparison process between the historical location and the current location, the accuracy of the location can be accurate to the region (such as hong kong) or country where the location is located, as long as the official language can be determined. When the historical position of the terminal is consistent with the current position of the terminal, the operation can be stopped, and the switching of the dynamic document language is not realized according to the dynamic document language switching instruction.
And step S13, the server determines the official language corresponding to the current position of the terminal according to the current position of the terminal, and takes the official language as the language to be switched of the dynamic pattern.
The official language is one or more languages with the widest use range or the largest number of people in each country or region. For example, the official language in uk is english and the official language in france is french. If the current terminal is in the uk, english is used as the language to be switched over for the dynamic cut-out. According to the scheme, when the historical position is inconsistent with the current position, the language to be switched is determined by the geographical position of the terminal, the user does not need to manually set the language to be switched, and the switching of the dynamic case is more intelligent and convenient.
Further, referring to fig. 4, a third embodiment of the language switching method for a terminal application dynamic document according to the present invention is provided based on the first embodiment of the language switching method for a terminal application dynamic document according to the present invention, in this embodiment, the language switching instruction for a dynamic document includes language configuration information of other applications of the terminal; the step S10 includes:
step S14, the server obtains the language configuration information of other applications of the terminal from the dynamic document language switching instruction;
the terminal is installed with other applications in addition to the application that needs to switch the dynamic document language. Therefore, the switching setting of the dynamic file language of the terminal application can be carried out according to the language habit set when the user uses other applications. The method for acquiring the language habit set by the user when using other applications may be to acquire language configuration information of the other applications from a dynamic document language switching instruction, wherein the language configuration information is used for recording the language environment set by the user in the other applications and may be stored in configuration files of the other applications.
It will be appreciated that applications may be categorized by function, with each application having its own functional attributes including entertainment attributes, office learning attributes, image processing attributes, and software maintenance attributes, among others. The application attributes of the terminal application may be obtained before obtaining language configuration information of other applications of the terminal. In the process of executing step S14, the application attributes of the other applications of the terminal are obtained through the dynamic document language switching instruction, and the language configuration information of the other applications is selected as appropriate by matching the application attributes of the terminal application and the other applications.
Optionally, when the terminal has a plurality of other applications, the application attribute corresponding to each of the other applications may be obtained through the dynamic document language switching instruction, and other applications consistent with the application attribute of the terminal application may be searched from the other applications according to the application attribute of the terminal application, and language configuration information of the other applications consistent with the application attribute may be obtained. Further, if there are a plurality of other applications with consistent application attributes, the selection may be performed according to the frequency of use of the application attributes, and the other application with the highest frequency of use is selected, and then the language configuration information thereof is acquired. According to the scheme, other applications with consistent application attributes are matched for the terminal application, and the language configuration information of the other applications is acquired, so that the user can be helped to enjoy the service close to the habit of the user when the terminal application is used in work, study or life, and the intelligent and humanized display of the dynamic document language of the terminal application is enhanced.
Here, the application programs are exemplified by attributes including both office learning and life entertainment. When the step of the server acquiring the application attribute of the terminal application is performed before the step S14, the step S14 may include:
the server acquires application attributes of a plurality of other applications of the terminal from the dynamic document language switching instruction, wherein the application attributes of the other applications comprise office and study attributes and life and entertainment attributes;
when the application attribute of the terminal application is an office learning attribute, the server acquires language configuration information of which the application attribute is the office learning attribute in a plurality of other applications;
and when the application attribute of the terminal application is the life entertainment attribute, the server acquires language configuration information of which the application attribute is the life entertainment attribute in a plurality of other applications.
Step S15, the server determines the language used by the other application according to the language configuration information of the other application, and uses the language used by the other application as the language to be switched by the terminal application dynamic pattern.
After the server obtains the language configuration information of other applications, the language used by the other applications can be determined, the language used by the other applications can be the language displayed by the other applications as a whole or can be the language of the dynamic file of the other applications only, and then the language used by the other applications is used as the language to be switched by the terminal application dynamic file. The scheme is beneficial to flexibly switching the language of the dynamic document according to the use habit of the terminal user, and is intelligent and humanized.
It should be noted that the technical solution of determining the language to be switched through the positioning information and the application attributes of other applications may be executed simultaneously, or the priority may be set by the user, and the language to be switched may be determined according to the priority. In addition, when the positioning information or the application attribute of other applications cannot be acquired, another corresponding scheme can be selected to determine the language to be switched.
Further, referring to fig. 5, a fourth embodiment of the language switching method for a terminal application dynamic document according to the present invention is proposed based on the first embodiment of the language switching method for a terminal application dynamic document according to the present invention, in this embodiment, the step S20 includes:
step S21, the server obtains the service node where the terminal application is currently located;
compared with the technical scheme of the first embodiment, the present embodiment is different in that: and dividing the dynamic pattern required by the terminal application into intervals according to the service nodes. The service node is a stage in which a user performs an operation process through a terminal application, for example, transacts a service through the terminal application, and may include an account application stage, a face recognition stage, a service application stage, a service auditing stage, and the like. After the partition, each service node corresponds to a respective dynamic file.
Step S22, the server searches the language to be switched from the preset memory according to the language to be switched and the service node, and the terminal applies the language pack corresponding to the service node where the terminal is currently located.
The preset memory can also store language packets of each service node corresponding to each language, and the language to be switched and the service node can be directly used as key words when the language packet searching operation is executed, so that the corresponding language packet can be obtained from the preset memory. For example, the language to be switched is traditional Chinese, the service node is an account application node, where a total of two dynamic scenarios in the account application node for the language traditional Chinese, respectively " input firm and code", and " firm and code support alphabet-sized hybrid", the two dynamic scenarios can be packaged into language packets, and the packaged language packets are returned by the preset memory to the processor to cause the processor to return memory to the terminal application when the processor of the server queries the preset memory for the language to be switched as "traditional Chinese" and the service node queries the preset memory for "account application node". According to the scheme, the dynamic case of each language is divided into the dynamic case corresponding to each service node, and then the dynamic case is pushed to the terminal to be applied when the dynamic case reaches the service node, so that the occupation of the memory of the terminal is reduced.
Further, the step S22 may further include, before the step S22, the step of:
the server judges whether the preset memory comprises the language to be switched or not, and the terminal applies the language packet corresponding to the current service node;
if not, the server selects a language of a dynamic case, and acquires the dynamic case of the language of the dynamic case corresponding to the service node where the terminal application is currently located; the server carries out word segmentation processing on the dynamic case according to preset word construction rules of the language of the dynamic case to obtain a plurality of reference language blocks; the server takes the plurality of reference language blocks as key words, and searches the language block to be switched corresponding to each reference language block from the preset memory; the server splices all language blocks according to a preset word construction rule of the language to be switched to obtain a language packet of the language to be switched, wherein the language packet corresponds to a service node where the terminal is located currently;
if so, the server executes a step of searching the language to be switched from the preset memory according to the language to be switched and the service node, and the terminal applies the language packet corresponding to the service node where the terminal is located.
When the required Language package is not included in the preset memory, a certain Language selected randomly is used as a reference Language, when the terminal application is positioned at a certain service node, all dynamic scenarios of the basic Language of the service node can be obtained, and then all dynamic scenarios are segmented through NLP (Natural Language Processing) according to the preset word construction rule of the reference Language, so that a reference Language block is obtained. And then finding the language blocks to be switched corresponding to the languages to be switched in the preset memory according to the reference language blocks, understanding the semantics through NLP processing, combining all the found language blocks to be switched by combining a preset word-forming rule, and forming the language pack correspondingly required by the current service node. It should be noted that, in the present scheme, it is mainly emphasized that a language packet is formed by word segmentation and combination, and how to perform word segmentation understanding semantics by the NLP processing technology and perform word segmentation by combining preset word construction rules can be set by those skilled in the art with reference to the prior art, and details are not described here. According to the scheme, when the preset memory does not comprise the language packet, the corresponding language block to be switched is found out through the randomly selected reference language to generate the language packet, and the problem that the language switching of the dynamic case cannot be carried out because the corresponding language packet cannot be found out is solved.
Referring to fig. 6, the present invention also provides a server, including:
an obtaining module 10, configured to receive a dynamic document language switching instruction sent by the terminal application, and obtain a language to be switched of the dynamic document according to the dynamic document language switching instruction;
the obtaining module 10 is further configured to obtain, according to the language to be switched, a language package corresponding to the language to be switched from a preset memory;
a returning module 20, configured to return the language package to the terminal application, so that the terminal application switches the language of the dynamic document by loading the language package.
Further, in another embodiment, the dynamic document language switching instruction includes a historical location of the terminal when the terminal application switched the language of the dynamic document last time;
the acquisition module includes:
the acquiring unit is used for acquiring the current position of the terminal through at least one of base station positioning information, Global Positioning System (GPS) positioning information and network protocol (IP) address positioning information of the terminal;
the judging unit is used for judging whether the historical position of the terminal in the dynamic document language switching instruction is consistent with the current position of the terminal;
and the determining unit is used for determining the official language corresponding to the current position of the terminal according to the current position of the terminal when the historical position of the terminal is inconsistent with the current position of the terminal, and taking the official language as the language to be switched of the dynamic pattern.
Further, in another embodiment, the dynamic document language switching instruction includes language configuration information of other applications of the terminal; the acquisition module includes:
the acquisition unit is used for acquiring language configuration information of other applications of the terminal from the dynamic document language switching instruction;
and the determining unit is used for determining the language used by the other application according to the language configuration information of the other application, and taking the language used by the other application as the language to be switched by the terminal application dynamic file.
Further, in yet another embodiment, the dynamic document language switching instruction further includes application attributes of a plurality of the other applications; the obtaining unit is further configured to obtain application attributes of the terminal application and obtain application attributes of a plurality of other applications of the terminal from the dynamic document language switching instruction, where the application attributes of the plurality of other applications include office study attributes and life entertainment attributes; when the application attribute of the terminal application is an office learning attribute, acquiring language configuration information of which the application attribute is the office learning attribute in a plurality of other applications; and when the application attribute of the terminal application is the life entertainment attribute, acquiring language configuration information of which the application attribute is the life entertainment attribute in a plurality of other applications.
Further, in yet another embodiment, the obtaining module further includes a searching unit; wherein,
the acquiring unit is further configured to acquire a service node where the terminal application is currently located;
the searching unit is configured to search, according to the language to be switched and the service node, the language to be switched from the preset memory, where the terminal applies the language packet corresponding to the service node where the terminal is currently located.
Further, in yet another embodiment, the obtaining module includes:
the judging unit is further configured to judge whether the preset memory includes the language to be switched, and the terminal applies a language packet corresponding to a service node where the terminal is currently located; if yes, triggering the search unit to judge whether the preset memory comprises the language to be switched or not, and applying a language packet corresponding to the current service node by the terminal;
a selecting unit, configured to select a language of a dynamic pattern when the preset memory does not include the language to be switched and the terminal applies a language packet corresponding to a service node where the terminal is currently located, and obtain the dynamic pattern of the language of the dynamic pattern corresponding to the service node where the terminal applies the terminal;
the word segmentation unit is used for carrying out word segmentation on the dynamic case according to a preset word construction rule of the language of the dynamic case to obtain a plurality of reference language blocks;
the searching unit is further configured to search the language block to be switched corresponding to each reference language block from the preset memory by using the plurality of reference language blocks as keywords;
and the splicing unit is used for splicing all the language blocks according to the preset word-building rule of the language to be switched to obtain the language to be switched, and the terminal applies the language packet corresponding to the current service node.
Further, in yet another embodiment, the server further comprises an establishing module and a replacing module, wherein,
the acquisition module is further configured to acquire dynamic case error reporting information sent by the terminal application, where the dynamic case error reporting information includes dynamic case error reporting characters selected by a user on a terminal application display interface and corresponding characters to be replaced;
the establishing module is used for establishing a mapping relation between the dynamic case error reporting character and the corresponding character to be replaced, and triggering the replacing module to replace the dynamic case error reporting character stored in the language package with the mapped corresponding character to be replaced after a preset manual detection terminal detects the mapping relation.
The invention also proposes a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be the Memory 20 in the server in fig. 1, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer-readable storage medium includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) having a processor to execute the method according to the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or server that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or server. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or service that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A language switching method for a terminal application dynamic case is characterized by comprising the following steps:
the server receives a dynamic pattern language switching instruction sent by a terminal application, and acquires a language to be switched of the dynamic pattern according to the dynamic pattern language switching instruction;
the server acquires a language packet corresponding to the language to be switched from a preset memory according to the language to be switched;
the server returns the language package to the terminal application so that the terminal application can switch the language of the dynamic case by loading the language package;
the step of acquiring the language pack corresponding to the language to be switched from a preset memory by the server according to the language to be switched comprises the following steps:
the server acquires service nodes where the terminal application is located at present, and each service node corresponds to a respective dynamic document, wherein the dynamic document refers to a prompt language displayed by the terminal application in the using process of the terminal application;
the server judges whether the preset memory comprises the language to be switched or not, and the terminal applies the language packet corresponding to the current service node;
if not, the server randomly selects a language of a dynamic case as a reference language, and acquires the dynamic case of the language of the dynamic case corresponding to the service node where the terminal application is currently located;
the server carries out word segmentation processing on the dynamic case according to preset word construction rules of the language of the dynamic case to obtain a plurality of reference language blocks;
the server takes the plurality of reference language blocks as key words, and searches the language block to be switched corresponding to each reference language block from the preset memory;
the server splices all language blocks according to a preset word construction rule of the language to be switched to obtain a language packet of the language to be switched, wherein the language packet corresponds to a service node where the terminal is located currently;
if so, the server searches the language to be switched from the preset memory according to the language to be switched and the service node, and the terminal applies the language packet corresponding to the service node where the terminal is located.
2. The method of claim 1, wherein the instruction for language switching of dynamic document comprises a history location of the terminal when the language of the dynamic document was switched by the terminal application last time; the step of obtaining the language to be switched of the dynamic pattern according to the language switching instruction of the dynamic pattern comprises the following steps:
the server acquires the current position of the terminal through at least one of base station positioning information, Global Positioning System (GPS) positioning information and network protocol (IP) address positioning information of the terminal;
the server judges whether the historical position of the terminal in the dynamic document language switching instruction is consistent with the current position of the terminal;
and when the historical position of the terminal is inconsistent with the current position of the terminal, the server determines the official language corresponding to the current position of the terminal according to the current position of the terminal, and takes the official language as the language to be switched of the dynamic case.
3. The language switching method for the terminal application dynamic document according to claim 1, wherein the language switching instruction for the dynamic document comprises language configuration information of other applications of the terminal;
the step of obtaining the language to be switched of the dynamic pattern according to the language switching instruction of the dynamic pattern comprises the following steps:
the server acquires the language configuration information of other applications of the terminal from the dynamic document language switching instruction;
and the server determines the language used by the other application according to the language configuration information of the other application, and takes the language used by the other application as the language to be switched by the terminal application dynamic pattern.
4. The language switching method for the terminal application dynamic document according to claim 3, wherein the dynamic document language switching instruction further comprises application attributes of a plurality of other applications;
before the step of obtaining the language configuration information of other applications of the terminal from the dynamic document language switching instruction, the server further includes:
the server acquires the application attribute of the terminal application;
the step that the server acquires the language configuration information of other applications of the terminal from the dynamic document language switching instruction comprises the following steps:
the server acquires application attributes of a plurality of other applications of the terminal from the dynamic document language switching instruction, wherein the application attributes of the other applications comprise office and study attributes and life and entertainment attributes;
when the application attribute of the terminal application is an office learning attribute, the server acquires language configuration information of which the application attribute is the office learning attribute in a plurality of other applications;
and when the application attribute of the terminal application is the life entertainment attribute, the server acquires language configuration information of which the application attribute is the life entertainment attribute in a plurality of other applications.
5. The method for switching languages of a dynamic document of a terminal application according to any one of claims 1 to 4, wherein the server returns the language pack to the terminal application for the terminal application to switch the language of the dynamic document by loading the language pack, further comprising:
the server acquires dynamic report error information sent by the terminal application, wherein the dynamic report error information comprises dynamic report error characters selected by a user on a terminal application display interface and input corresponding characters to be replaced;
and the server establishes a mapping relation between the dynamic case error-reporting character and the corresponding character to be replaced, and replaces the dynamic case error-reporting character stored in the language packet with the mapped corresponding character to be replaced after a preset manual detection terminal detects the mapping relation.
6. A server, comprising:
the acquisition module is used for receiving a dynamic pattern language switching instruction sent by a terminal application and acquiring the language to be switched of the dynamic pattern according to the dynamic pattern language switching instruction;
the obtaining module is further configured to obtain, from a preset memory, a language package corresponding to the language to be switched according to the language to be switched;
the returning module is used for returning the language package to the terminal application so that the terminal application can switch the language of the dynamic case by loading the language package;
wherein the acquisition module comprises: an acquisition unit and a search unit;
the acquiring unit is used for acquiring the service node where the terminal application is located currently, and each service node corresponds to a respective dynamic document, wherein the dynamic document refers to a prompting language displayed by the terminal application in the using process;
the searching unit is configured to search, according to the language to be switched and the service node, a language packet of the language to be switched from the preset memory, where the language packet corresponds to the service node where the terminal is currently located;
the acquisition module further comprises: the system comprises a judging unit, a selecting unit, a word segmentation unit and a splicing unit;
the judging unit is used for judging whether the preset memory comprises the language to be switched or not, and the terminal applies the language packet corresponding to the current service node; if so, the server searches the language to be switched from the preset memory according to the language to be switched and the service node, and the terminal applies the language packet corresponding to the service node where the terminal is located;
the selection unit is used for randomly selecting a language of a dynamic pattern as a reference language when the preset memory does not comprise a language to be switched and the terminal applies a language packet corresponding to a service node where the terminal is currently located, and acquiring the dynamic pattern of the language of the dynamic pattern corresponding to the service node where the terminal applies the current;
the word segmentation unit is used for carrying out word segmentation on the dynamic case according to a preset word construction rule of the language of the dynamic case to obtain a plurality of reference language blocks;
the searching unit is further configured to search the language block to be switched corresponding to each reference language block from the preset memory by using the plurality of reference language blocks as keywords;
the splicing module is used for splicing all the language blocks according to the preset word-building rule of the language to be switched to obtain the language to be switched, and the terminal applies the language pack corresponding to the current service node.
7. A server, characterized in that the server comprises: a communication module, a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method for language switching of a terminal application dynamic document according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the steps of the method for language switching of a terminal application dynamic document according to any one of claims 1 to 4.
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 CN109669741A (en) 2019-04-23
CN109669741B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111767104B (en) * 2020-05-07 2023-09-01 北京奇艺世纪科技有限公司 Language type switching method and device, computer equipment and storage medium
CN113590242A (en) * 2021-06-25 2021-11-02 影石创新科技股份有限公司 Method, device, terminal and storage medium for switching file language of application program
CN113407288B (en) * 2021-06-29 2022-09-30 杭州海康威视数字技术股份有限公司 Data processing method and device and electronic equipment
CN118427199B (en) * 2024-07-04 2024-10-01 杭州乒乓智能技术有限公司 Multi-language document self-adaptive adaptation method and device

Citations (5)

* 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
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
CN105867920A (en) * 2016-03-29 2016-08-17 海尔优家智能科技(北京)有限公司 APP multi-language switching method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100664191B1 (en) * 2005-01-11 2007-01-03 엘지전자 주식회사 A mobile terminal and system for supporting multi-language
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
US20150161114A1 (en) * 2011-06-30 2015-06-11 Google Inc. Rules-based language detection
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 (5)

* 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
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
CN105867920A (en) * 2016-03-29 2016-08-17 海尔优家智能科技(北京)有限公司 APP multi-language switching method and system

Also Published As

Publication number Publication date
WO2020062640A1 (en) 2020-04-02
CN109669741A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN109669741B (en) Language switching method, server and storage medium for terminal application dynamic document
CN109299110B (en) Data query method and device, storage medium and electronic equipment
CN111859470B (en) Business data chaining method and device
CN108712519B (en) Method and device for positioning IP address and storage medium
CN108196878A (en) Method and device for generating application program installation package, electronic equipment and storage medium
US20160162271A1 (en) Application Migration Method, Device and System for Mobile Terminal
CN108121455B (en) Identification correction method and device
CN111338689B (en) File calling method, device and equipment
US20140323101A1 (en) Phone Number Format Suggestion
CN110705226A (en) Spreadsheet creating method and device and computer equipment
CN110457346A (en) Data query method, apparatus and computer readable storage medium
CN110716777A (en) Application program language dynamic switching method and device, storage medium and electronic equipment
US20240256613A1 (en) Data processing method and apparatus, readable storage medium, and electronic device
CN110502513B (en) Data acquisition method, device, equipment and computer readable storage medium
CN106130751B (en) A kind of upgrade status data administrator, system and method
CN107526730B (en) Translation data management method, storage medium and electronic device
CN112434037A (en) Data processing method, processing device, data processing apparatus, and storage medium
CN108848250B (en) Path updating method, device and equipment
WO2023030461A1 (en) Distributed database detection method and apparatus
CN111596935A (en) Script packing method and device, electronic equipment and storage medium
CN105378710B (en) Identification search matching and the search result through changing
CN113157722B (en) Data processing method, device, server, system and storage medium
US20170171320A1 (en) Method, terminal and domain name server for connecting terminal to server
US20170286074A1 (en) Electronic Device and Method for Multiple Compiling Platforms
US20220207097A1 (en) Multi-node word segmentation system and method for keyword search

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