CN116233298A - Language data packet updating method and device, electronic equipment and storage medium - Google Patents

Language data packet updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116233298A
CN116233298A CN202211551911.4A CN202211551911A CN116233298A CN 116233298 A CN116233298 A CN 116233298A CN 202211551911 A CN202211551911 A CN 202211551911A CN 116233298 A CN116233298 A CN 116233298A
Authority
CN
China
Prior art keywords
data packet
terminal
language data
server
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211551911.4A
Other languages
Chinese (zh)
Inventor
侯俊康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hubei Xingji Shidai Technology Co Ltd
Original Assignee
Hubei Xingji Shidai 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 Hubei Xingji Shidai Technology Co Ltd filed Critical Hubei Xingji Shidai Technology Co Ltd
Priority to CN202211551911.4A priority Critical patent/CN116233298A/en
Publication of CN116233298A publication Critical patent/CN116233298A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a language data packet updating method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal; determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal; and the terminal updates the local language data packet based on the first updating information to obtain a target language data packet. The embodiment of the application improves the usability of the terminal application.

Description

Language data packet updating method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of terminal file management technologies, and in particular, to a method and apparatus for updating a language data packet, an electronic device, and a storage medium.
Background
With the popularization of mobile terminals and the development of mobile terminal technologies, more and more applications are installed on mobile terminals, and the installed applications cover the life and work of users, especially file managers, and each mobile phone can be provided with an application when leaving the factory. However, due to the difference of languages of various countries and the diversity of characters, it is not guaranteed that all file source names are displayed as characters of the current language environment, and great trouble is brought to software usability.
Disclosure of Invention
The embodiment of the application provides a language data packet updating method, which is applied to a terminal and comprises the following steps:
determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal;
and the terminal updates the local language data packet based on the first updating information to obtain a target language data packet.
In some embodiments, further comprising:
determining the source name of a file stored in the terminal;
and the terminal updates the source name based on the target language data packet.
In some embodiments, further comprising:
confirming the current language type of the terminal;
and the terminal displays the source name based on the current language type.
In some embodiments, the determining that the local language data packet needs to be updated, before the terminal receives the first update information sent by the server, further includes:
the terminal traverses the local language data packet, and determines that the target name of the file does not exist in the local language data packet;
and sending the target name to the server so that the server obtains the first updating information based on the target name.
In some embodiments, the sending the target name to the server includes:
acquiring reporting information of the target name, and determining a first name of an unreported file and a second name of a reported file based on the reporting information;
and under the condition that the terminal network is normal, reporting the first name to the server.
In some embodiments, after determining the network condition of the terminal, the terminal sends the update request to the server, the method further includes:
determining that the local language data packet does not need to be updated, and receiving second updating information sent by the server by the terminal;
and the terminal determines the local language data packet to be a target language data packet based on the second updating information.
The embodiment of the application also provides a language data packet updating method which is applied to the server and comprises the following steps:
the server receives an update request sent by a terminal;
the server detects the update information of the local language data packet of the terminal based on the update request;
determining that the local language data packet needs to be updated, and sending first updating information to the terminal by the server, wherein the first updating information is used for indicating the terminal to update the local language data packet to obtain a target language data packet.
In some embodiments, further comprising:
the server receives a target name of a file sent by the terminal, wherein the target name is determined by the terminal traversing a local language data packet;
the server acquires first name data of different language types corresponding to the target name, and determines the first update information based on the first name data.
In some embodiments, before the server receives the update request sent by the terminal, the method further includes:
selecting X target applications based on the application frequency of the terminal, wherein X is a natural number greater than 0;
the server acquires second name data under the language type corresponding to the application name of the target application, and an initialized language data packet is obtained;
and the server sends the initialized language data packet to the terminal to be used as a local language data packet of the terminal.
In some embodiments, after detecting the update information of the local language data packet of the terminal based on the update request, the server further includes:
and determining that the local language data packet does not need to be updated, and sending second updating information to the terminal by the server, wherein the second updating information is used for determining that the local language data packet is a target language data packet.
The embodiment of the application also provides a device for updating the language data packet, which is applied to the terminal and comprises:
the terminal is used for sending an update request to a server, wherein the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
the information receiving module is used for determining that the local language data packet needs to be updated, and the terminal receives first update information sent by the server;
and the updating module is used for updating the local language data packet based on the first updating information by the terminal to obtain a target language data packet.
The embodiment of the application also provides a language data packet updating device, which is applied to a server and comprises:
the request receiving module is used for receiving an update request sent by the terminal by the server;
the detection module is used for detecting the update information of the local language data packet of the terminal based on the update request by the server;
the information sending module is used for determining that the local language data packet needs to be updated, the server sends first updating information to the terminal, and the first updating information is used for indicating the terminal to update the local language data packet to obtain a target language data packet.
The embodiment of the application also provides electronic equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the language data packet updating method according to any one of the above when executing the program.
The embodiments of the present application also provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a language data packet updating method as described in any of the above.
Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements a method for updating a language data packet as described in any one of the above.
Drawings
For a clearer description of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for updating a language data packet according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for updating a language packet according to one embodiment of the present disclosure;
FIG. 3 is a second flowchart of a method for updating a language packet according to an embodiment of the present disclosure;
FIG. 4 is a second flowchart of a method for updating a language packet according to one embodiment of the present disclosure;
FIG. 5 is a schematic diagram showing the effect of a method for updating a language data packet according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a language data packet updating device according to an embodiment of the present application;
FIG. 7 is a second schematic diagram of a device for updating a language data packet according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
With the popularization of mobile terminals and the development of mobile terminal technologies, more and more applications are installed on mobile terminals, and the installed applications cover the life and work of users, especially file managers, and each mobile phone can be provided with an application when leaving the factory. However, when a new application appears, the originally stored language data packet cannot provide multi-language support for the new application, which causes great trouble to the use of the terminal application.
For this reason, in some scenarios, for convenience of use, the file source names are uniformly displayed as default english, and since english is an international general language, it can also satisfy most people as much as possible. But are still not friendly to those users who are not well English.
In order to improve the readability of software in the prior art, the software names of the application shops, which are ranked at the top, are translated into languages of various countries in advance and are placed in a file manager application package, so that most scenes seem to be satisfied. However, the development of the software is very rapid, and the scheme obviously cannot meet the current situation of the software with vigorous development.
Referring to fig. 1, a method for updating a language data packet is provided in an embodiment of the present application, and is applied to a terminal, and includes steps 110, 120, and 130, where the steps of the method are merely one possible implementation of the present application.
Step 110, determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
step 120, determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal;
and 130, the terminal updates the local language data packet based on the first update information to obtain a target language data packet.
It should be noted that, the language data packet updating method provided in the embodiment of the present application may be applied to a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA) and other terminal devices, and may also be applied to a database, a server and a service response system based on terminal artificial intelligence.
The mobile terminal (terminal device) in the embodiments of the present application includes various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, such as a mobile phone, a tablet, a desktop notebook, and an intelligent device that can run an application program, including a central console of an intelligent automobile, and the like. Specifically, it may refer to a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or a user equipment. The terminal device may also be a satellite phone, a cellular phone, a smart phone, a wireless data card, a wireless modem, a machine type communication device, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle mounted device or a wearable device, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in self-driving (self-driving), a wireless terminal in telemedicine (remote media), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a future terminal in smart home (smart home) network, a terminal in a 5G network or a communication network, etc. The mobile terminal may be powered by a battery, may also be attached to and powered by a power system of the vehicle or vessel. The power supply system of the vehicle or the ship may also charge the battery of the mobile terminal to extend the communication time of the mobile terminal.
In step 110, it should be noted that the network of the terminal may be a complete logical network for the terminal to complete the combination of network functions and resources required for transmitting data to the server and receiving data from the server, and the terminal may also perform functions such as making a call, transmitting information, running an application program, etc. based on the network. By way of example, and not limitation, the wireless network, cellular network, or satellite network may be one network.
The embodiment determines the network condition, namely judges whether the terminal network is normal, and the terminal network is normal, which means that the communication quality between the terminal and the server is good, and data transmission and information interaction can be performed normally.
Under normal conditions of the network, the terminal and the server end normally communicate. And the terminal sends an update request to the server. After receiving the request, the server detects the update information of the local language data packet of the terminal, and then feeds back the update information according to the update condition of the local language data packet.
In step 120, when the local language data packet has been updated, update information "true" is sent to indicate that the local language data packet has been updated, that is, a new application is stored. Colloquially, i.e., 100 applications of the native language data packet are increased to 101 applications (the number is not limited, 101 is merely an example).
Accordingly, when the local language data packet is not updated, update information "false" is sent, that is, no new application is stored, and still 100 applications are still available.
In the step 130, the terminal updates and replaces the local language data packet of the terminal according to the first update information "true" sent by the server, so as to obtain a new target language data packet.
It can be understood that the local language data packet before updating is 100 applications, and the local language data packet is updated to 101 applications, namely 101 applications in the target language data packet.
The method for updating the language data packet can update at the server based on the update requirement of the local language data packet of the terminal, and send the updated voice data packet to the terminal through the update information, and the terminal can provide support for the terminal application by using the updated language data packet, so that the usability of the terminal application is improved.
In some embodiments, the method further comprises:
determining the source name of a file stored in the terminal;
and the terminal updates the source name based on the target language data packet.
It can be understood that the present embodiment updates the terminal file name.
For example, if the source name of the file is "fast-forwarding", since the application software is not commonly used, the initial stored 100 pieces of software do not store the various language text translations of "fast-forwarding", i.e., the local language data packet does not include "fast-forwarding". At this time, the updated language data packet with the translation of the "fast-forwarding" language text is downloaded in the server according to the first update information "wire", and the updated language data packet is used as the target language data packet, so that the "fast-forwarding" can be stored in the local language data packet, and the user can operate according to the locally stored data when using the "fast-forwarding" application.
In some embodiments, the method further comprises:
confirming the current language type of the terminal;
and the terminal displays the source name based on the current language type.
Specifically, in this embodiment, first, a local language data packet stored locally by using a terminal system automatically obtains a text in a current language environment by using a getstring method, so as to confirm a text type, that is, a current language type.
It will be appreciated that there are various language words, such as chinese, english, japanese, etc., in the local language data package stored locally at the terminal system. And marking and storing the file source names of the software in the terminal system through different text types.
For example, the terminal system is an Android system. The Android system is provided with a multilingual translation mechanism, and a plurality of subfolders under the res directory of the system represent source file names of different text types. values represent default English, values-ja represent Japanese, and values-zh-rCN represent Chinese. For example, when the software is a Quark browser, the file source name is defined as "value", value-ja is defined as "quick", and value-zh-rCN is defined as "Quark". That is, when the system language environment of the user terminal is Japanese, the system automatically takes the text in the values-ja.
The local language data packet is obtained by collecting and storing various translation languages of 100 commonly used software in the terminal system in advance, and the software is obtained by investigating the application frequency analysis of the user according to big data collection and investigation, and the software needs to be downloaded and acquired in a server.
In this embodiment, the updated language data packet is used as the target language data packet, and the source name of the file can be displayed in a text type according to the current language type.
It can be understood that the source name of the file will be displayed on the display module of the terminal, such as a mobile phone display screen, for example, if the software corresponding to the source name of the file is Wechat, then when the text type is English, the "wechat" will be displayed on the mobile phone display screen; when the text type is Chinese, a 'WeChat' is displayed on the mobile phone screen.
According to the language data packet updating method, the text type in the current voice environment is confirmed, and the updated target language data packet is utilized to display the source name of the file based on the current type. According to the embodiment, the source name of the file can be displayed in the language type under the current language environment, and the usability of the terminal application is further improved.
In some embodiments, before the terminal receives the first update information sent by the server, the method further includes:
the terminal traverses the local language data packet, and determines that the target name of the file does not exist in the local language data packet;
and sending the target name to the server so that the server obtains the first updating information based on the target name.
It will be appreciated that the present embodiment provides conditions for local language packet updates. That is, a thread needs to be started at the terminal, and the source name of the file is confirmed not to exist in the local source data packet, so that a confirmation result is obtained, which indicates that the source name of the file needs to be uploaded. And uploading the source name of the file which does not exist in the local language data packet to a server so that the server can timely check the update condition of the local file data packet and generate first update information.
In some embodiments, the sending the target name to the server includes:
acquiring reporting information of the target name, and determining a first name of an unreported file and a second name of a reported file based on the reporting information;
and under the condition that the terminal network is normal, reporting the first name to the server.
Specifically, in order to avoid repeated reporting of file names, the embodiment provides an embodiment of uploading target names of files. The destination name is the source name of the file that exists in the updated language packet, but does not exist in the pre-update voice packet.
Firstly, the source name of the first file and the source name of the second file, that is, the source name of the unreported file and the source name of the reported file, need to be confirmed according to the report information of the target name of the acquired file.
Then, under the normal condition of the network, namely when the terminal and the server establish communication, the source names of the unreported files are reported to the server.
It should be noted that, the source name of the first file and the source name of the second file are temporarily stored in the cache when the network is abnormal, that is, when the terminal does not establish communication with the server, and when the network is normal, the source name of the file which is not uploaded is reported to the server, and the source name of the uploaded file can be continuously stored in the cache.
It should be further noted that, after the terminal sends the source name of the first file to the server last time, the update information "false" needs to be set to "true", which indicates that the text corresponding to the source name of the file has been reported, so as to avoid repeated reporting.
According to the method for updating the language data packet, the source name of the first file which is not uploaded is reported when the network is normal, and the corresponding mark is made, so that whether the source name of the file is uploaded or not can be judged, and repeated reporting is avoided.
In some embodiments, after determining the network condition of the terminal, the terminal sends the update request to the server, the method further includes:
determining that the local language data packet does not need to be updated, and receiving second updating information sent by the server by the terminal;
and the terminal determines the local language data packet to be a target language data packet based on the second updating information.
It can be understood that when the update information of the local data packet is the second update information "false", it indicates that the local language data packet at the server side is not updated, that is, no new application is added to the local language data packet, and then the terminal uses the local language data packet as the target language data packet to provide service support for the terminal.
Referring to fig. 2, the embodiment of the present application further provides a method for updating a language data packet, which is applied to a server, and includes: step 210, step 220 and step 230.
Step 210, the server receives an update request sent by a terminal;
step 220, the server detects the update information of the local language data packet of the terminal based on the update request;
step 230, determining that the local language data packet needs to be updated, where the server sends first update information to the terminal, where the first update information is used to instruct the terminal to update the local language data packet to obtain a target language data packet.
When the network is normal, namely when the terminal and the server establish communication, the server receives an update request sent by the terminal. After receiving the request, update information is generated according to the update condition of the local language data packet.
When the local language data packet needs to be updated, first update information "true" is generated and sent, that is, a new application is stored. Colloquially, i.e., 100 applications of the native language data packet are increased to 101 applications (the number is not limited, 101 is merely an example).
Accordingly, when the local language data packet does not need to be updated, the second update information "false" is sent, that is, no new application is stored, and still 100 applications are still stored.
And determining that the local language data packet needs to be updated, and feeding back first updating information to the terminal so that the terminal can update and replace the local language data packet.
According to the language data packet updating method, the server can update the data packet based on the updating requirement of the local language data packet of the terminal, the updated voice data packet is sent to the terminal through the first updating information, and the terminal can provide support for the terminal application by utilizing the updated language data packet, so that the usability of the terminal application is improved.
In some embodiments, the method further comprises:
the server receives a target name of a file sent by the terminal, wherein the target name is determined by the terminal traversing a local language data packet;
the server acquires first name data of different language types corresponding to the target name, and determines the first update information based on the first name data.
It will be appreciated that the present embodiment provides a process in which the server updates the local language data packet and generates the first update information.
After traversing the local language data packet, the server receives the source name of the file reported by the terminal, translates the characters of the source name of the file reported by the terminal into the first name data of each country language corresponding to different language types, adds the characters of the first name data into the local language data packet to obtain an updated language data packet, and generates first update information "true" which indicates that the local language data packet is updated.
In some embodiments, before the server receives the update request sent by the terminal, the method further includes:
selecting X target applications based on the application frequency of the terminal, wherein X is a natural number greater than 0;
the server acquires second name data under the language type corresponding to the application name of the target application, and an initialized language data packet is obtained;
and the server sends the initialized language data packet to the terminal to be used as a local language data packet of the terminal.
It can be appreciated that the present embodiment provides a deployment method for local language data packets.
In this embodiment, X target applications are selected by investigating the frequency of use of the terminal application, where X may be 100, or may be adjusted according to the actual situation, which is not limited herein.
The source names of the 100 application files are translated into second name data of languages of various countries, such as Chinese, english, japanese and the like, and the translated language characters of various countries are stored to obtain a language data packet of the initialization language. And then the initialized language data packet is sent to the terminal, and the terminal downloads and stores the initialized language data packet as a local language data packet.
In some embodiments, after detecting the update information of the local language data packet of the terminal based on the update request, the server further includes:
and determining that the local language data packet does not need to be updated, and sending second updating information to the terminal by the server, wherein the second updating information is used for determining that the local language data packet is a target language data packet.
It can be understood that when the update information of the local data packet is the second update information "false", it indicates that the local language data packet at the server end is not updated, that is, no new application is added to the local language data packet, and then the terminal uses the local language data packet as the target language data packet to provide service support for the terminal application.
Referring to fig. 3, fig. 3 is a flowchart of a display process of a language data packet updating method according to an embodiment of the present application, including:
step 310, starting a file manager;
step 320, using the local internationalization language package to automatically acquire the characters corresponding to the current language environment according to the system getString method;
step 330, judging whether the network is normal;
step 340, sending a request for updating the data packet to the server;
step 350, judging whether the data packet needs to be updated;
step 360, downloading the language data packet issued by the server and covering the local language data packet;
and 370, displaying the file source name on the terminal.
Referring to fig. 4, fig. 4 is a flowchart of a packet update procedure of a language packet update method provided in the present application, including:
step 410, starting a thread, traversing a local language data packet;
step 420, judging whether the source name of the file is in the data packet; if yes, go to step 430; if not, go to step 440;
step 430, the server sets the update required flag to no;
step 440, when the network is normal, reporting the source name of the file as a server;
step 450, the server translates the file reported by the terminal into language of each country and updates the language data packet;
step 460, the server sets the update flag to yes.
Referring to fig. 5, fig. 5 is a schematic diagram showing a display effect of a language data packet updating method provided in the present application.
When the software application of the terminal 510 is a hundred degree web disc and the current language environment is chinese, the file source name is displayed as "hundred degree web disc", and each file under the file source name is displayed in chinese, such as "file one", "file two", "file three".
The language data packet updating device provided by the application is described below, and the language data packet updating device described below and the language data packet updating method described above can be referred to correspondingly.
Referring to fig. 6, an embodiment of the present application further provides a device for updating a language data packet, which is applied to a terminal, including:
a request sending module 610, configured to determine a network condition of the terminal, where the terminal sends an update request to a server, where the update request is used to instruct the server to detect update information of a local language data packet of the terminal;
an information receiving module 620, configured to determine that the local language data packet needs to be updated, where the terminal receives first update information sent by the server;
and the updating module 630 is configured to update the local language data packet based on the first updating information to obtain a target language data packet.
In some embodiments, the system further comprises a name determination module for:
determining the source name of a file stored in the terminal;
and the terminal updates the source name based on the target language data packet.
In some embodiments, the system further comprises a language type determination module for:
confirming the current language type of the terminal;
and the terminal displays the source name based on the current language type.
In some embodiments, the system further comprises a traversal module for:
the terminal traverses the local language data packet, and determines that the target name of the file does not exist in the local language data packet;
and sending the target name to the server so that the server obtains the first updating information based on the target name.
In some embodiments, the traversal module is specifically configured to:
acquiring the target name reporting information, and determining a first name and a second name based on the reporting information;
and under the condition that the terminal network is normal, reporting the first name to the server.
In some embodiments, the system further comprises a local module for:
determining that the local language data packet does not need to be updated, and receiving second updating information sent by the server by the terminal;
and the terminal determines the local language data packet to be a target language data packet based on the second updating information.
Referring to fig. 7, the embodiment of the present application further provides a device for updating a language data packet, which is applied to a server, and includes:
a request receiving module 710, configured to receive, by the server, an update request sent by a terminal;
a detection module 720, configured to detect update information of a local language data packet of the terminal based on the update request by the server;
the information sending module 730 is configured to determine that the local language data packet needs to be updated, where the server sends first update information to the terminal, where the first update information is used to instruct the terminal to update the local language data packet to obtain a target language data packet.
In some embodiments, the system further comprises a translation module for:
the server receives a target name of a file sent by the terminal, wherein the target name is determined by the terminal traversing a local language data packet;
the server acquires first name data of different language types corresponding to the target name, and determines the first update information based on the first name data.
In some embodiments, the method further comprises an initial module for:
selecting X target applications based on the application frequency of the terminal, wherein X is a natural number greater than 0;
the server acquires second name data under the language type corresponding to the application name of the target application, and an initialized language data packet is obtained;
and the server sends the initialized language data packet to the terminal to be used as a local language data packet of the terminal.
In some embodiments, the method further comprises a second local determination module for:
and determining that the local language data packet does not need to be updated, and sending second updating information to the terminal by the server, wherein the second updating information is used for determining that the local language data packet is a target language data packet.
Fig. 8 illustrates a schematic physical structure of an electronic device according to an embodiment of the present application, where, as shown in fig. 8, the electronic device may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. Processor 810 may invoke logic instructions in memory 830 to perform a language data packet update method comprising:
determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal;
the terminal updates the local language data packet based on the first updating information to obtain a target language data packet;
or alternatively, the first and second heat exchangers may be,
the server receives an update request sent by a terminal;
the server detects the update information of the local language data packet of the terminal based on the update request;
determining that the local language data packet needs to be updated, and sending first updating information to the terminal by the server, wherein the first updating information is used for indicating the terminal to update the local language data packet to obtain a target language data packet.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, an embodiment of the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can perform a method for updating a language data packet provided by the above methods, and the method includes:
determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal;
the terminal updates the local language data packet based on the first updating information to obtain a target language data packet;
or alternatively, the first and second heat exchangers may be,
the server receives an update request sent by a terminal;
the server detects the update information of the local language data packet of the terminal based on the update request;
determining that the local language data packet needs to be updated, and sending first updating information to the terminal by the server, wherein the first updating information is used for indicating the terminal to update the local language data packet to obtain a target language data packet.
In yet another aspect, an embodiment of the present application further provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method for updating a language data packet provided by the above methods, the method comprising:
determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal;
the terminal updates the local language data packet based on the first updating information to obtain a target language data packet;
or alternatively, the first and second heat exchangers may be,
the server receives an update request sent by a terminal;
the server detects the update information of the local language data packet of the terminal based on the update request;
determining that the local language data packet needs to be updated, and sending first updating information to the terminal by the server, wherein the first updating information is used for indicating the terminal to update the local language data packet to obtain a target language data packet.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (13)

1. The language data packet updating method is characterized by being applied to a terminal and comprising the following steps:
determining the network condition of the terminal, wherein the terminal sends an update request to a server, and the update request is used for indicating the server to detect the update information of the local language data packet of the terminal;
determining that the local language data packet needs to be updated, and receiving first update information sent by the server by the terminal;
and the terminal updates the local language data packet based on the first updating information to obtain a target language data packet.
2. The method for updating a language data packet according to claim 1, further comprising:
determining the source name of a file stored in the terminal;
and the terminal updates the source name based on the target language data packet.
3. The language data packet updating method according to claim 2, further comprising:
confirming the current language type of the terminal;
and the terminal displays the source name based on the current language type.
4. The method for updating a language data packet according to claim 2, wherein before the terminal receives the first update information transmitted from the server, the method further comprises:
the terminal traverses the local language data packet, and determines that the target name of the file does not exist in the local language data packet;
and sending the target name to the server so that the server obtains the first updating information based on the target name.
5. The method of claim 4, wherein said sending the destination name to the server comprises:
acquiring reporting information of the target name, and determining a first name of an unreported file and a second name of a reported file based on the reporting information;
and under the condition that the terminal network is normal, reporting the first name to the server.
6. The method for updating a language data packet according to claim 1, wherein the determining the network condition of the terminal, after the terminal sends the update request to the server, further comprises:
determining that the local language data packet does not need to be updated, and receiving second updating information sent by the server by the terminal;
and the terminal determines the local language data packet to be a target language data packet based on the second updating information.
7. A method for updating a language data packet, applied to a server, comprising:
the server receives an update request sent by a terminal;
the server detects the update information of the local language data packet of the terminal based on the update request;
determining that the local language data packet needs to be updated, and sending first updating information to the terminal by the server, wherein the first updating information is used for indicating the terminal to update the local language data packet to obtain a target language data packet.
8. The method for updating a language data packet according to claim 7, further comprising:
the server receives a target name of a file sent by the terminal, wherein the target name is determined by the terminal traversing a local language data packet;
the server acquires first name data of different language types corresponding to the target name, and determines the first update information based on the first name data.
9. The method for updating a language data packet according to claim 7, wherein before the server receives the update request sent by the terminal, the method further comprises:
the server selects X target applications based on the application frequency of the terminal, wherein X is a natural number greater than 0;
the server acquires second name data under the language type corresponding to the application name of the target application, and an initialized language data packet is obtained;
and the server sends the initialized language data packet to the terminal to be used as a local language data packet of the terminal.
10. The method for updating a language data packet according to claim 7, wherein after the server detects the update information of the local language data packet of the terminal based on the update request, further comprising:
and determining that the local language data packet does not need to be updated, and sending second updating information to the terminal by the server, wherein the second updating information is used for determining that the local language data packet is a target language data packet.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the language data packet update method of any one of claims 1 to 6 and the language data packet update method of any one of claims 7-10 when the program is executed by the processor.
12. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the language data packet updating method of any one of claims 1 to 6, and the language data packet updating method of any one of claims 7 to 10.
13. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the language data packet updating method according to any one of claims 1 to 6, and the language data packet updating method according to any one of claims 7 to 10.
CN202211551911.4A 2022-12-05 2022-12-05 Language data packet updating method and device, electronic equipment and storage medium Pending CN116233298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211551911.4A CN116233298A (en) 2022-12-05 2022-12-05 Language data packet updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211551911.4A CN116233298A (en) 2022-12-05 2022-12-05 Language data packet updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116233298A true CN116233298A (en) 2023-06-06

Family

ID=86579261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211551911.4A Pending CN116233298A (en) 2022-12-05 2022-12-05 Language data packet updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116233298A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020916A (en) * 2016-07-04 2016-10-12 乐视控股(北京)有限公司 Method for updating application, terminal equipment and server
CN107168724A (en) * 2017-03-29 2017-09-15 联想(北京)有限公司 A kind of data processing method, electronic equipment and server
CN108804175A (en) * 2018-05-21 2018-11-13 Oppo(重庆)智能科技有限公司 Multilingual adaptation method, mobile terminal and computer readable storage medium
CN110457085A (en) * 2019-07-10 2019-11-15 北京奇艺世纪科技有限公司 Document handling method, device, terminal device and computer-readable medium
CN114429145A (en) * 2022-01-27 2022-05-03 深圳Tcl新技术有限公司 Entry translation method and device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106020916A (en) * 2016-07-04 2016-10-12 乐视控股(北京)有限公司 Method for updating application, terminal equipment and server
CN107168724A (en) * 2017-03-29 2017-09-15 联想(北京)有限公司 A kind of data processing method, electronic equipment and server
CN108804175A (en) * 2018-05-21 2018-11-13 Oppo(重庆)智能科技有限公司 Multilingual adaptation method, mobile terminal and computer readable storage medium
CN110457085A (en) * 2019-07-10 2019-11-15 北京奇艺世纪科技有限公司 Document handling method, device, terminal device and computer-readable medium
CN114429145A (en) * 2022-01-27 2022-05-03 深圳Tcl新技术有限公司 Entry translation method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
EP1216561B1 (en) Launching application from embedded indicator in short message service message
JP2017062792A (en) System and method for updating dataset versions resident on wireless device
EP1398692A2 (en) Method of supporting multiple languages for mobile communication terminal and communication system for the same
US9832624B2 (en) Information processing method, information processing device, and storage medium
CN111459594A (en) Display interface processing method, device and system
CN111625371A (en) Text transmission method, device, PC (personal computer) terminal, mobile terminal and system
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN112637281B (en) Terminal equipment data access method and device, electronic equipment and storage medium
CN107894906B (en) Page picture loading method and device, terminal device and server
CN116233298A (en) Language data packet updating method and device, electronic equipment and storage medium
CN112840305B (en) Font switching method and related product
CN106445478B (en) Method and device for converting graphic expressions
CN112905355B (en) Method, apparatus and computer storage medium for information processing
CN106156235B (en) Picture downloading method and system based on Android platform
CN110351710B (en) USIM-based terminal service function calling method and device
CN112286620B (en) Application program interaction method and device, electronic equipment and storage medium
CN112711571A (en) File synchronization method and device
CN105791568B (en) Information processing method and terminal thereof
CN112615911B (en) Picture loading method, picture loading device and electronic equipment
CN111078215A (en) Software product application method and device, storage medium and electronic equipment
JP2003152829A (en) Communication apparatus
CN111625372A (en) Text pasting method, device, PC (personal computer) terminal, mobile terminal and system
CN113472631B (en) Reminding information processing method and device, electronic equipment and storage medium
CN112633908B (en) Advertisement test object generation method and device and computer equipment
CN111917807B (en) Method and system for invoking download client by android system WAP webpage

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: No. B1337, Chuanggu Initiation Zone, Taizihu Cultural Digital Creative Industry Park, No. 18 Shenlong Avenue, Wuhan Economic and Technological Development Zone, Hubei Province, 430058

Applicant after: Hubei Xingji Meizu Technology Co.,Ltd.

Address before: 430014 No. b1337, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant before: Hubei Xingji times Technology Co.,Ltd.