Language data package updating method, device, electronic device, storage medium and computer program product

By updating language packets on mobile terminals, the file source name display problem caused by language differences is solved, and better terminal application availability and user experience are achieved.

CN116233298BActive Publication Date: 2025-04-01HUBEI QIGUANG TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211551911.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-05
Publication Date
2025-04-01
Estimated Expiration
2042-12-05

AI Technical Summary

Technical Problem

Due to language differences, applications installed on mobile terminals cannot guarantee that all file source names are displayed in text in the current locale, resulting in limited software availability.

Method used

By determining the network situation of the terminal, sending an update request to the server, receiving and applying the language packet update information sent by the server to update the local language packets, and ensuring that the file source name can be displayed correctly.

Benefits of technology

It realizes the correct display of file source names according to the terminal's current language type, improving the usability and user experience of terminal applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233298B_ABST
    Figure CN116233298B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a language data packet update method, device, electronic device and storage medium, the method comprising: determining the network status of the terminal, the terminal sending an update request to a server, the update request being used to instruct the server to detect update information of the local language data packet of the terminal; determining that the local language data packet needs to be updated, the terminal receiving first update information sent by the server; the terminal updates the local language data packet based on the first update information to obtain a target language data packet. The embodiment of the present application improves the availability of terminal applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of terminal file management, and in particular to a language data packet updating method, device, electronic device and storage medium. Background Art

[0002] With the popularity of mobile terminals and the development of mobile terminal technology, more and more applications are installed on mobile terminals, covering aspects of user life and work, especially file managers, which are installed on every mobile phone when it leaves the factory. However, due to the differences in languages ​​and the diversity of characters in different countries, it is impossible to ensure that all file source names are displayed in the text of the current language environment, which brings great trouble to the usability of software. Summary of the invention

[0003] The embodiment of the present application provides a language data packet updating method, which is applied to a terminal, and includes:

[0004] Determining the network status of the terminal, the terminal sending an update request to a server, the update request being used to instruct the server to detect update information of a local language data packet of the terminal;

[0005] Determining that the local language data packet needs to be updated, the terminal receiving first update information sent by the server;

[0006] The terminal updates the local language data packet based on the first update information to obtain a target language data packet.

[0007] In some embodiments, it also includes:

[0008] determining a source name of a file stored in the terminal;

[0009] The terminal updates the source name based on the target language data packet.

[0010] In some embodiments, it also includes:

[0011] confirming the current language type of the terminal;

[0012] The terminal displays the source name based on the current language type.

[0013] In some embodiments, the determining that the local language data package needs to be updated, before the terminal receives the first update information sent by the server, further includes:

[0014] 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;

[0015] The target name is sent to the server, so that the server obtains the first update information based on the target name.

[0016] In some embodiments, sending the target name to the server includes:

[0017] Acquire the reporting information of the target name, and determine the first name of the unreported file and the second name of the reported file based on the reporting information;

[0018] When the terminal network is normal, the first name is reported to the server.

[0019] In some embodiments, the determining of the network status of the terminal, after the terminal sends an update request to the server, further includes:

[0020] Determining that the local language data packet does not need to be updated, the terminal receiving second update information sent by the server;

[0021] The terminal determines, based on the second update information, that the local language data packet is a target language data packet.

[0022] The embodiment of the present application also provides a language data packet updating method, which is applied to a server and includes:

[0023] The server receives an update request sent by the terminal;

[0024] The server detects update information of the local language data package of the terminal based on the update request;

[0025] It is determined that the local language data packet needs to be updated, and 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.

[0026] In some embodiments, it also includes:

[0027] The server receives a target name of a file sent by the terminal, where the target name is determined by the terminal by traversing a local language data packet;

[0028] The server obtains first name data corresponding to the target name in different language types, and determines the first update information based on the first name data.

[0029] In some embodiments, before the server receives the update request sent by the terminal, the method further includes:

[0030] Based on the usage frequency of the application of the terminal, select X target applications, where X is a natural number greater than 0;

[0031] The server obtains second name data under the language type corresponding to the application name of the target application, and obtains an initialized language data packet;

[0032] The server sends the initialized language data packet to the terminal as a local language data packet of the terminal.

[0033] In some embodiments, after the server detects update information of the local language data package of the terminal based on the update request, the server further includes:

[0034] It is determined that the local language data packet does not need to be updated, and the server sends second update information to the terminal, where the second update information is used to determine that the local language data packet is a target language data packet.

[0035] The embodiment of the present application also provides a language data packet updating device, applied to a terminal, comprising:

[0036] A request sending module, used for determining the network status of the terminal, the terminal sending an update request to the server, the update request being used for instructing the server to detect update information of the local language data packet of the terminal;

[0037] An information receiving module, configured to determine that the local language data packet needs to be updated, and the terminal receives first update information sent by the server;

[0038] An updating module is used for the terminal to update the local language data packet based on the first updating information to obtain a target language data packet.

[0039] The embodiment of the present application also provides a language data packet updating device, which is applied to a server and includes:

[0040] A request receiving module, used for the server to receive an update request sent by a terminal;

[0041] A detection module, configured for the server to detect update information of the local language data packet of the terminal based on the update request;

[0042] The information sending module is used to determine that the local language data packet needs to be updated, and 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.

[0043] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a language data packet updating method as described above is implemented.

[0044] An embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the language data packet updating method as described in any one of the above is implemented.

[0045] An embodiment of the present application further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the language data packet updating method described in any one of the above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 This is one of the flow charts of a method for updating a language data packet provided by an embodiment of the present application;

[0048] Figure 2 This is the second flow chart of the language data packet updating method provided by one embodiment of the present application;

[0049] Figure 3 This is the second flow chart of the language data packet updating method provided by one embodiment of the present application;

[0050] Figure 4 This is the second flow chart of the language data packet updating method provided by one embodiment of the present application;

[0051] Figure 5 It is a schematic diagram of the display effect of a language data packet updating method provided by an embodiment of the present application;

[0052] Figure 6 This is one of the structural schematic diagrams of a language data packet updating device provided by an embodiment of the present application;

[0053] Figure 7 This is the second structural diagram of a language data packet updating device provided by an embodiment of the present application;

[0054] Figure 8 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely in conjunction with the drawings in the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0056] With the popularity of mobile terminals and the development of mobile terminal technology, more and more applications are installed on mobile terminals, covering aspects of user life and work, especially file managers, which are built-in applications for each mobile phone when it leaves the factory. However, when new applications appear, the originally stored language data packets cannot provide multi-language support for the new applications, which causes great trouble to the use of terminal applications.

[0057] Therefore, in some scenarios, for the convenience of use, the file source name is uniformly displayed in the default English. Since English is an international language, this can satisfy most people as much as possible. However, it is still not friendly enough for users who are not good at English.

[0058] In order to improve the readability of software, the existing technology translates the top-ranked software names in the app store into various languages ​​in advance and puts them in the file manager application package, which seems to meet most scenarios. However, software is developing rapidly, and this solution obviously cannot meet the current situation of booming software development.

[0059] Reference Figure 1 A language data packet updating method provided by an embodiment of the present application is applied to a terminal, and includes steps 110, 120, and 130. The method flow steps are merely a possible implementation of the present application.

[0060] Step 110: Determine the network status of the terminal, and the terminal sends an update request to the server, wherein the update request is used to instruct the server to detect update information of the local language data packet of the terminal;

[0061] Step 120: Determine that the local language data package needs to be updated, and the terminal receives first update information sent by the server;

[0062] Step 130: The terminal updates the local language data packet based on the first update information to obtain a target language data packet.

[0063] First of all, it should be pointed out that the language data packet updating method provided in the embodiment of the present application can be applied to terminal devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc., and can also be applied to databases, servers, and service response systems based on terminal artificial intelligence. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices.

[0064] The mobile terminal (terminal device) in the embodiments of the present application includes various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, such as mobile phones, tablets, desktop notebooks, and smart devices that can run applications, including the central console of smart cars, etc. Specifically, it can refer to user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device. 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 (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, 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 (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a terminal device in 5G network or future communication network, etc. The mobile terminal may be powered by a battery, and may also be attached to and powered by the power system of a vehicle or ship. The power system of the vehicle or ship can also charge the battery of the mobile terminal to extend the communication time of the mobile terminal.

[0065] In step 110, it should be noted that the network of the terminal can be a combination of network functions and resources required by the terminal to send data to the server and receive data sent by the server, which is a complete logical network. Based on the network, the terminal can also perform functions such as making calls, sending messages, and running applications. As an example but not a limitation, a wireless network, a cellular network, or a satellite network can all be a network.

[0066] In this embodiment, determining the network status means judging whether the terminal network is normal. The normal terminal network means that the communication quality between the terminal and the server is good, and data transmission and information exchange can be performed normally.

[0067] Under normal network conditions, the terminal and the server will communicate normally. The terminal sends an update request to the server. After receiving the request, the server detects the update information of the terminal's local language data packet, and then provides feedback based on the update status of the local language data packet.

[0068] In the above step 120, when the local language data package is updated, an update message "true" will be sent, indicating that the local language data package has been updated, that is, new applications are stored in. In layman's terms, the 100 applications in the local language data package are increased to 101 applications (the number is not limited, 101 is just an example).

[0069] Correspondingly, when the local language data package is not updated, an update message "false" will be sent, which means that no new applications are stored and the number of applications remains 100.

[0070] In the above 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 to obtain a new target language data packet.

[0071] It can be understood that the local language data package before the update contains 100 applications, and after the local language data package is updated, it becomes 101 applications, that is, there are 101 applications in the target language data package.

[0072] The language data packet updating method provided in this embodiment can be updated on the server side based on the update requirements of the local language data packet of the terminal, and the updated voice data packet is sent to the terminal through update information. The terminal can use the updated language data packet to provide support for terminal applications, thereby improving the availability of terminal applications.

[0073] In some embodiments, the method further comprises:

[0074] determining a source name of a file stored in the terminal;

[0075] The terminal updates the source name based on the target language data packet.

[0076] It can be understood that this embodiment is a process of updating the terminal file name.

[0077] For example, if the source name of the file is "Quick Transfer", since the application software is not often used, the various language translations of "Quick Transfer" are not stored in the 100 initially stored software, that is, "Quick Transfer" is not included in the local language data package. At this time, it is necessary to download the updated language data package with the language translation of "Quick Transfer" from the server according to the first update information "ture", and use the updated language data package as the target language data package, so that "Quick Transfer" can be stored in the local language data package, and the user can operate according to the locally stored data when using the "Quick Transfer" application.

[0078] In some embodiments, the method further comprises:

[0079] confirming the current language type of the terminal;

[0080] The terminal displays the source name based on the current language type.

[0081] Specifically, this embodiment first uses the local language data package stored locally in the terminal system to automatically obtain the text in the current language environment through the getstring method, thereby confirming the text type, that is, the current language type.

[0082] It is understandable that the local language data package stored locally in the terminal system contains various languages, such as Chinese, English, Japanese, etc. The file source names of various software in the terminal system are marked and stored by different text types.

[0083] For example, the terminal system is an Android system. The Android system itself has a multi-language translation mechanism. The multiple subfolders under the system's res directory represent the source file names of different text types. values ​​represents the default English, values-ja represents Japanese, and values-zh-rCN represents Chinese. For example, when the software is the Quark browser, its file source name is values.xml defined as "Quark", defined as "クォーク" in values-ja, and defined as "Quark" in values-zh-rCN. In other words, when the system language environment of the user's terminal is Japanese, the system will automatically take the text in values-ja.

[0084] It should be noted that the local language data package is a pre-aggregation of various translated languages ​​of 100 commonly used software and stored in the terminal system. These software are obtained based on big data collection and investigation, and through investigation of user application frequency analysis, and need to be downloaded from the server.

[0085] In this embodiment, the updated language data package is used as the target language data package, and the source name of the file can be displayed in text type according to the current language type.

[0086] It is understandable that the source name of the file will be displayed on the display module of the terminal, such as the mobile phone display. For example, if the software corresponding to the source name of the file is WeChat, then when the text type is English, "wechat" will be displayed on the mobile phone display; when the text type is Chinese, "WeChat" will be displayed on the mobile phone screen.

[0087] The language data packet updating method provided in the embodiment of the present application confirms the text type in the current voice environment and uses the updated target language data packet to display the source name of the file based on the current type. This embodiment can display the source name of the file in the language type in the current language environment, further improving the usability of the terminal application.

[0088] In some embodiments, before the terminal receives the first update information sent by the server, the method further includes:

[0089] 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;

[0090] The target name is sent to the server, so that the server obtains the first update information based on the target name.

[0091] It can be understood that this embodiment provides the conditions for updating the local language data package. That is, it is necessary to start a thread in the terminal, confirm that the source name of the file does not exist in the local source data package, and obtain a confirmation result, indicating that the source name of the file needs to be uploaded. Then, the source name of the file that does not exist in the local language data package is uploaded to the server, so that the server can timely check the update status of the local file data package and generate the first update information.

[0092] In some embodiments, sending the target name to the server includes:

[0093] Acquire the reporting information of the target name, and determine the first name of the unreported file and the second name of the reported file based on the reporting information;

[0094] When the terminal network is normal, the first name is reported to the server.

[0095] Specifically, in order to avoid repeated reporting of file names, this embodiment provides an implementation method for uploading the target name of the file. It should be noted that the target name is the source name of the file that exists in the updated language data packet but does not exist in the voice data packet before the update.

[0096] First, it is necessary to confirm the source name of the first file and the source name of the second file according to the reported information of the target name of the acquired file, that is, the source name of the unreported file and the source name of the reported file.

[0097] Then, when the network is normal, that is, when the terminal and the server establish communication, the source name of the unreported file is reported to the server.

[0098] It should be noted that the source name of the first file and the source name of the second file are temporarily saved in the cache when the network is abnormal, that is, when the terminal fails to establish communication with the server. When the network is normal, the source name of the file that has not been uploaded is reported to the server, and the source name of the uploaded file can continue to remain in the cache.

[0099] It should be further explained that after the terminal reports the source name of the first file to the server for the last time, the update information "false" needs to be set to "true", indicating that the text corresponding to the source name of the file has been reported to avoid duplicate reporting.

[0100] The language data packet updating method provided in the embodiment of the present application reports the source name of the first file that has not been uploaded when the network is normal and makes a corresponding mark, so as to determine whether the source name of the file has been uploaded, thereby avoiding repeated reporting.

[0101] In some embodiments, the determining of the network status of the terminal, after the terminal sends an update request to the server, further includes:

[0102] Determining that the local language data packet does not need to be updated, the terminal receiving second update information sent by the server;

[0103] The terminal determines, based on the second update information, that the local language data packet is a target language data packet.

[0104] It can be understood that when the update information of the local data package is the second update information "false", it means that the local language data package on the server side has not been updated, that is, no new application has been added to the local language data package. Then the terminal uses the local language data package as the target language data package to provide service support to the terminal.

[0105] Reference Figure 2The embodiment of the present application also provides a language data packet updating method, which is applied to a server and includes: step 210, step 220 and step 230.

[0106] Step 210: The server receives an update request sent by the terminal;

[0107] Step 220: the server detects update information of the local language data packet of the terminal based on the update request;

[0108] Step 230: Determine that the local language data package needs to be updated, and 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 package to obtain a target language data package.

[0109] When the network is normal, that is, when the terminal and the server establish communication, the server receives the update request sent by the terminal. After receiving the request, it generates update information according to the update status of the local language data package.

[0110] When the local language data package needs to be updated, the first update information "true" will be generated and sent, which means that new applications are stored in. In layman's terms, the 100 applications in the local language data package are increased to 101 applications (the number is not limited, 101 is just an example).

[0111] Correspondingly, when the local language data package does not need to be updated, the second update information "false" will be sent, that is, no new application is stored, and the number of applications remains 100.

[0112] It is determined that the local language data packet needs to be updated, and first update information is fed back to the terminal, so that the terminal updates and replaces the local language data packet.

[0113] The language data packet updating method provided in this embodiment enables the server to update the data packet based on the update requirements of the terminal's local language data packet, and send the updated voice data packet to the terminal via the first update information. The terminal can use the updated language data packet to provide support for the terminal application, thereby improving the availability of the terminal application.

[0114] In some embodiments, the method further comprises:

[0115] The server receives a target name of a file sent by the terminal, where the target name is determined by the terminal by traversing a local language data packet;

[0116] The server obtains first name data corresponding to the target name in different language types, and determines the first update information based on the first name data.

[0117] It can be understood that this embodiment provides a process in which a server updates a local language data package and generates first update information.

[0118] After the terminal traverses the local language data packet and confirms that the target name of the file does not exist in the local language data packet, the server receives the source name of the file reported by the terminal, and translates the text of the source name of the file reported by the terminal into different languages ​​according to different language types, i.e., the first name data, and adds these texts of the first name data to the local language data packet to obtain an updated language data packet, and generates the first update information "true", indicating that the local language data packet has been updated.

[0119] In some embodiments, before the server receives the update request sent by the terminal, the method further includes:

[0120] Based on the usage frequency of the application of the terminal, select X target applications, where X is a natural number greater than 0;

[0121] The server obtains second name data under the language type corresponding to the application name of the target application, and obtains an initialized language data packet;

[0122] The server sends the initialized language data packet to the terminal as a local language data packet of the terminal.

[0123] It can be understood that this embodiment provides a deployment method for local language data packets.

[0124] In this embodiment, X target applications are selected by investigating the usage frequency of terminal applications, where X can be 100, and can also be adjusted according to actual conditions, which is not limited here.

[0125] The source names of the files of the 100 applications are translated into the second name data in various languages, such as Chinese, English, Japanese, etc., and the translated languages ​​are stored to obtain the language data packet of the initialization language. The initialization language data packet is then sent to the terminal, which downloads and stores it as the local language data packet.

[0126] In some embodiments, after the server detects update information of the local language data package of the terminal based on the update request, the server further includes:

[0127] It is determined that the local language data packet does not need to be updated, and the server sends second update information to the terminal, where the second update information is used to determine that the local language data packet is a target language data packet.

[0128] It is understandable that when the update information of the local data package is the second update information "false", it means that the local language data package on the server side has not been updated, that is, no new application has been added to the local language data package. Then the terminal uses the local language data package as the target language data package to provide service support for the terminal application.

[0129] Reference Figure 3 , Figure 3 This is a flow chart of a display process of a method for updating a language data packet provided by an embodiment of the present application, including:

[0130] Step 310: Start the file manager;

[0131] Step 320: Use the local international language package to automatically obtain the text corresponding to the current language environment according to the system getString method;

[0132] Step 330: determine whether the network is normal;

[0133] Step 340: Send a request to the server whether to update the data packet;

[0134] Step 350: determine whether the data packet needs to be updated;

[0135] Step 360: Download the language data packet sent by the server to overwrite the local language data packet;

[0136] Step 370: Display the file source name on the terminal.

[0137] Reference Figure 4 , Figure 4 The present application provides a flow chart of a data packet updating process of a language data packet updating method, including:

[0138] Step 410: start a thread and traverse the local language data packet;

[0139] Step 420, determine whether the file source name is in the data packet; if so, execute step 430; if not, execute step 440;

[0140] Step 430: The server sets the whether update is needed flag to no;

[0141] Step 440: When the network is normal, the source name of the reported file is the server;

[0142] Step 450: The server translates the file reported by the terminal into the language of each country and updates the language data package;

[0143] Step 460: The server sets the whether update is needed flag to yes.

[0144] Reference Figure 5 , Figure 5 It is a schematic diagram of the display effect of a language data packet updating method provided by the present application.

[0145] When the software application of terminal 510 is Baidu Netdisk and the current language environment is Chinese, the file source name is displayed as "Baidu Netdisk", and each file under the file source name is displayed in Chinese, such as "File 1", "File 2", and "File 3".

[0146] The language data packet updating device provided by the present application is described below. The language data packet updating device described below and the language data packet updating method described above can be referenced to each other.

[0147] Reference Figure 6 The embodiment of the present application also provides a language data packet updating device, applied to a terminal, comprising:

[0148] A request sending module 610, configured to determine the network status of the terminal, wherein the terminal sends an update request to the server, wherein the update request is configured to instruct the server to detect update information of a local language data packet of the terminal;

[0149] An information receiving module 620 is used to determine that the local language data package needs to be updated, and the terminal receives first update information sent by the server;

[0150] The updating module 630 is configured to cause the terminal to update the local language data packet based on the first updating information to obtain a target language data packet.

[0151] In some embodiments, a name determination module is further included, wherein the name determination module is used to:

[0152] determining a source name of a file stored in the terminal;

[0153] The terminal updates the source name based on the target language data packet.

[0154] In some embodiments, a language type determination module is further included, wherein the language type determination module is used to:

[0155] confirming the current language type of the terminal;

[0156] The terminal displays the source name based on the current language type.

[0157] In some embodiments, a traversal module is further included, wherein the traversal module is used to:

[0158] 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;

[0159] The target name is sent to the server, so that the server obtains the first update information based on the target name.

[0160] In some embodiments, the traversal module is specifically used to:

[0161] Obtaining the target name reporting information, and determining the first name and the second name based on the reporting information;

[0162] When the terminal network is normal, the first name is reported to the server.

[0163] In some embodiments, a local module is further included, wherein the local module is configured to:

[0164] Determining that the local language data packet does not need to be updated, the terminal receiving second update information sent by the server;

[0165] The terminal determines, based on the second update information, that the local language data packet is a target language data packet.

[0166] Reference Figure 7 The embodiment of the present application also provides a language data packet updating device, which is applied to a server and includes:

[0167] A request receiving module 710, configured for the server to receive an update request sent by a terminal;

[0168] A detection module 720, configured for the server to detect update information of the local language data packet of the terminal based on the update request;

[0169] The information sending module 730 is used to determine that the local language data package needs to be updated, and 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 package to obtain a target language data package.

[0170] In some embodiments, a translation module is further included, wherein the translation module is used to:

[0171] The server receives a target name of a file sent by the terminal, where the target name is determined by the terminal by traversing a local language data packet;

[0172] The server obtains first name data corresponding to the target name in different language types, and determines the first update information based on the first name data.

[0173] In some embodiments, an initial module is further included, wherein the initial module is used to:

[0174] Based on the usage frequency of the application of the terminal, select X target applications, where X is a natural number greater than 0;

[0175] The server obtains second name data under the language type corresponding to the application name of the target application, and obtains an initialized language data packet;

[0176] The server sends the initialized language data packet to the terminal as a local language data packet of the terminal.

[0177] In some embodiments, a second local determination module is further included, and the second local determination module is used to:

[0178] It is determined that the local language data packet does not need to be updated, and the server sends second update information to the terminal, where the second update information is used to determine that the local language data packet is a target language data packet.

[0179] Figure 8 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present application is illustrated. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the language data packet updating method, which includes:

[0180] Determining the network status of the terminal, the terminal sending an update request to a server, the update request being used to instruct the server to detect update information of a local language data packet of the terminal;

[0181] Determining that the local language data packet needs to be updated, the terminal receiving first update information sent by the server;

[0182] The terminal updates the local language data packet based on the first update information to obtain a target language data packet;

[0183] or,

[0184] The server receives an update request sent by the terminal;

[0185] The server detects update information of the local language data package of the terminal based on the update request;

[0186] It is determined that the local language data packet needs to be updated, and 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.

[0187] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0188] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the language data packet updating method provided by the above methods, the method includes:

[0189] Determining the network status of the terminal, the terminal sending an update request to a server, the update request being used to instruct the server to detect update information of a local language data packet of the terminal;

[0190] Determining that the local language data packet needs to be updated, the terminal receiving first update information sent by the server;

[0191] The terminal updates the local language data packet based on the first update information to obtain a target language data packet;

[0192] or,

[0193] The server receives an update request sent by the terminal;

[0194] The server detects update information of the local language data package of the terminal based on the update request;

[0195] It is determined that the local language data packet needs to be updated, and 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.

[0196] On the other hand, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the language data packet updating method provided by the above methods is implemented, and the method includes:

[0197] Determining the network status of the terminal, the terminal sending an update request to a server, the update request being used to instruct the server to detect update information of a local language data packet of the terminal;

[0198] Determining that the local language data packet needs to be updated, the terminal receiving first update information sent by the server;

[0199] The terminal updates the local language data packet based on the first update information to obtain a target language data packet;

[0200] or,

[0201] The server receives an update request sent by the terminal;

[0202] The server detects update information of the local language data package of the terminal based on the update request;

[0203] It is determined that the local language data packet needs to be updated, and 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.

[0204] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0205] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for updating a language data packet, characterized in that: Applied to terminals, including: Determining a network status of the terminal, the terminal sending an update request to a server, the update request being used to instruct the server to detect update information of a local language data packet of the terminal, the update request being determined based on the source name of a file stored in the terminal not existing in the local language data packet; Determining that the local language data package needs to be updated, the terminal receives first update information sent by the server; the first update information includes first name data translated by the server into various languages ​​based on the source name of the file; The terminal updates the local language data packet based on the first update information to obtain a target language data packet, including: adding the first name data to the local language data packet to obtain the target language data packet; the local language data packet stores different text types of source names of files of various software of the terminal, the source names indicating application names corresponding to the files; confirming the current language type of the terminal; The terminal displays the source name based on the current language type.

2. The language data packet updating method according to claim 1, characterized in that: Also includes: determining a source name of a file stored in the terminal; The terminal updates the source name based on the target language data packet.

3. The language data packet updating method according to claim 2, characterized in that: 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; The target name is sent to the server, so that the server obtains the first update information based on the target name.

4. The language data packet updating method according to claim 3, characterized in that: The sending the target name to the server comprises: Acquire the reporting information of the target name, and determine the first name of the unreported file and the second name of the reported file based on the reporting information; When the terminal network is normal, the first name is reported to the server.

5. The language data packet updating method according to claim 1, characterized in that: Determining the network status of the terminal, after the terminal sends an update request to the server, further comprising: Determining that the local language data packet does not need to be updated, the terminal receiving second update information sent by the server; The terminal determines, based on the second update information, that the local language data packet is a target language data packet.

6. A method for updating a language data packet, characterized in that: Applicable to servers, including: The server receives an update request sent by a terminal; the update request is determined based on the source name of the file stored in the terminal not existing in the local language data packet; the local language data packet stores different text types of the source name of the file of each software of the terminal, the source name indicating the application name corresponding to the file; The server detects update information of the local language data package of the terminal based on the update request; When it is determined that the local language data packet needs to be updated, the server sends first update information to the terminal, wherein the first update information is used to instruct the terminal to add the first name data to the local language data packet to update the target language data packet; the first update information includes the first name data of various languages ​​translated by the server based on the source name of the file.

7. The language data packet updating method according to claim 6, characterized in that: Also includes: The server receives a target name of a file sent by the terminal, where the target name is determined by the terminal by traversing a local language data packet; The server obtains first name data corresponding to the target name in different language types, and determines the first update information based on the first name data.

8. The method for updating a language data packet according to claim 6, characterized in that: Before the server receives the update request sent by the terminal, the method further includes: The server selects X target applications based on the usage frequency of the applications of the terminal, where X is a natural number greater than 0; The server obtains second name data under the language type corresponding to the application name of the target application, and obtains an initialized language data packet; The server sends the initialized language data packet to the terminal as a local language data packet of the terminal.

9. The method for updating a language data packet according to claim 6, characterized in that: After the server detects update information of the local language data package of the terminal based on the update request, the server further includes: It is determined that the local language data packet does not need to be updated, and the server sends second update information to the terminal, where the second update information is used to determine that the local language data packet is a target language data packet.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the language data packet updating method according to any one of claims 1 to 5 and the language data packet updating method according to any one of claims 6 to 9 are implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the language data packet updating method according to any one of claims 1 to 5 and the language data packet updating method according to any one of claims 6 to 9 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the language data packet updating method according to any one of claims 1 to 5 and the language data packet updating method according to any one of claims 6 to 9 are implemented.

Citation Information

Patent Citations

  • Method for updating application, terminal equipment and server

    CN106020916A

  • Data processing method, electronic device and server

    CN107168724A

  • Multi-language adaption method, mobile terminal and computer readable storage medium

    CN108804175A