Multilingual language updating method and device and storage medium

By storing language resources on a cloud server and allowing applications to dynamically download expandable packages, the method addresses inefficiencies in language updates, reducing data volume and development time while maintaining consistent language usage and user experience.

CN120295645APending Publication Date: 2025-07-11QINGDAO HAIER TECH +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510219981.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

Existing language update methods for applications result in large installation package sizes, performance degradation, and lengthy update cycles due to the need for repeated development and submission to app stores for each language addition, leading to inefficient language adaptation.

Method used

A method where language resources are stored on a cloud server, with each language corresponding to a core and an expandable package, allowing applications to dynamically download only the necessary expandable package, sharing a core language package within a program group and updating locally without full re-development.

Benefits of technology

This approach reduces data volume for each update, eliminates redundant development work, and shortens the language update cycle while ensuring consistent language usage across applications and a seamless user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295645A_ABST
    Figure CN120295645A_ABST
Patent Text Reader

Abstract

The invention discloses a multilingual language updating method and device and a storage medium, and relates to the technical field of smart home / smart home, and the multilingual language updating method comprises the steps: obtaining a core language package corresponding to a program group to which an application program belongs when it is determined that the application program needs a target language, the application programs in the same program group share the core language package of the same language; if it is determined that the core language package is locally stored, an extended language package obtaining request corresponding to the application program is sent to a server, and the extended language package corresponding to the application program comprises dictionary information of special vocabularies of the application program; obtaining the extension language package according to first downloading information of the extension language package fed back by the server so as to update local language resources of the application program according to the core language package and the extension language package; according to the method, the data volume required by the client for updating and downloading the language package each time is reduced, the work of repeatedly developing the core language package by developers is omitted, and the development period of language updating is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home / smart family. Specifically, it relates to a multi-language language update method, device, and storage medium. Background Art

[0002] With the continuous improvement of production technology levels and the continuous development of the global economy, more and more enterprises conduct various operations globally. Since users in different countries use different languages, when the same application is provided to users in different countries, it needs to be adapted to different languages.

[0003] In the prior art, developers usually build the corresponding language packs into the application during the development stage, and then compile the language resources into the installation package of the application during the application compilation stage.

[0004] However, such a language update method not only causes the installation package to become larger, affecting the performance of the application and the update speed of users, but also requires developers to re-develop the application every time a new language is added to the application, and submit it to the app store for review and release after development is completed, resulting in a long language update cycle and untimely language adaptation of the application. Summary of the Invention

[0005] This application provides a multi-language language update method, device, and storage medium to solve the problems of a long language update cycle and a large amount of repetitive work in the application.

[0006] In a first aspect, this application provides a multi-language language update method applied to a smart terminal. The method includes:

[0007] When it is determined that the application needs a target language, obtain the core language pack corresponding to the program group to which the application belongs; where applications in the same program group share the core language pack of the same language.

[0008] If it is determined that the core language pack of the target language corresponding to the program group to which the application belongs is locally stored, send a request to obtain an extended language pack to the server to obtain the extended language pack corresponding to the application; where the extended language pack corresponding to the application includes dictionary information of the application's proprietary vocabulary.

[0009] Receive the first download information of the extended language pack fed back by the server, and obtain the extended language pack according to the first download information, so as to update the local language resources of the application according to the core language pack and the extended language pack; where the first download information includes the first download address and the extended language pack version number.

[0010] Optionally, the method further includes:

[0011] If it is determined that the core language package in the target language corresponding to the program group to which the application belongs is not stored locally, a language resource package acquisition request is sent to the server;

[0012] Receive second download information of the language resource package feedback by the server, where the second download information includes: the group identifier of the program group to which the core language package belongs, the members of the program group, the second download address, the version number of the core language package, and the version number of the extended language package;

[0013] Obtain the language resource package according to the second download information.

[0014] Optionally, the core language package includes a plurality of sub-modules, and each sub-module corresponds to a different function or interface; before sending the extended language package acquisition request to the server, the method further includes:

[0015] Obtain the usage frequency of each application for each sub-module within a preset duration;

[0016] Determine an update method for version updating the core language package according to the usage frequency of each application for each sub-module, where the update method is partial update or full update;

[0017] Send a version update request for the core language package to the server.

[0018] Optionally, the determining an update method for version updating the core language package according to the usage frequency of each sub-module of each application includes:

[0019] Obtain the total usage frequency corresponding to each sub-module according to the usage frequency of each application for each sub-module;

[0020] If the total usage frequencies corresponding to the first preset number of sub-modules are all higher than the first preset frequency, determine that the update method of the core language package is full update.

[0021] Optionally, if there is no first preset number of sub-modules whose usage frequencies are all higher than the first preset frequency, the method further includes:

[0022] If there is a target application whose usage frequencies for the second preset number of sub-modules are all higher than the second preset frequency, determine that the update method of the core language package is full update; where the second preset number is greater than the first preset number.

[0023] Optionally, if there is no target application whose usage frequencies of the second preset number of sub-modules are all higher than the second preset frequency, the method further includes:

[0024] Determine that the update method of the core language pack is partial update, and obtain target sub-modules whose total usage frequencies are higher than the third preset frequency, and use the target sub-modules as the sub-modules to be updated; wherein, the third preset frequency is higher than the first preset frequency.

[0025] Optionally, if the update method is full update, the version update request carries the group identifier of the program group and the current version number, so that the server determines whether the core language pack needs to be updated, where the current version number is the lowest version number among the version numbers of each sub-module;

[0026] If the update method is partial update, the version update request carries the group identifier of the program group and the current version number of the target sub-module to be updated, so that the server determines whether the target sub-module needs to be updated.

[0027] In a second aspect, the present application provides a language update device, the device includes:

[0028] An acquisition module, configured to acquire the core language pack corresponding to the program group to which the application belongs when it is determined that the application needs a target language; wherein, applications in the same program group share the core language pack of the same language;

[0029] A communication module, configured to send an extended language pack acquisition request to the server to acquire the extended language pack corresponding to the application when it is determined that the core language pack of the target language corresponding to the program group to which the application belongs is locally stored; wherein, the extended language pack corresponding to the application includes dictionary information of the application's proprietary vocabulary; receive the first download information of the extended language pack fed back by the server, and acquire the extended language pack according to the first download information, so as to update the local language resources of the application according to the core language pack and the extended language pack; wherein, the first download information includes a first download address and an extended language pack version number.

[0030] In a third aspect, the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium includes a stored program, wherein the program, when running, executes the multi-language language update method as described in the first aspect.

[0031] Fourthly, the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the multi-language update method as described in the first aspect through the computer program.

[0032] Fifthly, the present application provides a computer program product, including a computer program, which implements the multi-language update method as described in the first aspect when executed by a processor.

[0033] The present application provides a multi-language update method, device and storage medium. When it is determined that an application program requires a target language, a core language package corresponding to the program group to which the application program belongs is obtained; wherein, application programs in the same program group share the core language package of the same language; if it is determined that the core language package of the target language corresponding to the program group to which the application program belongs is locally stored, a request for obtaining an extended language package is sent to the server to obtain the extended language package corresponding to the application program; wherein, the extended language package corresponding to the application program includes dictionary information of the proprietary vocabulary of the application program; the first download information of the extended language package is received, and the extended language package is obtained according to the first download information, so as to update the local language resources of the application program according to the core language package and the extended language package; wherein, the first download information includes a first download address and an extended language package version number; the amount of data required for the client to download and update the language package each time is reduced, the work of developers to repeatedly develop the core language package is eliminated, and the development cycle of language update is shortened. Description of the Drawings

[0034] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without creative efforts.

[0036] Figure 1 It is a schematic diagram of the hardware environment of a multi-language update method according to an embodiment of the present application;

[0037] Figure 2 It is a flowchart of the multi-language update method provided by the present application Figure 1 ;

[0038] Figure 3Flow schematic diagram of the multi - language update method provided by this application Figure 2 ;

[0039] Figure 4 Structural schematic diagram of a language update device provided by this application;

[0040] Figure 5 Structural schematic diagram of an electronic device provided by this application. Detailed implementation manners

[0041] In order to enable the personnel in the technical field to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of this application.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above - mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non - exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0043] With the continuous improvement of production technology levels and the continuous development of the global economy, more and more enterprises conduct various businesses globally. Since users in different countries use different languages, when the same application is provided for users in different countries, it needs to be adapted to the languages of different countries.

[0044] In the prior art, developers usually build corresponding language packs into the application during the development stage, and then compile the language resources into the installation package of the application during the application compilation stage.

[0045] However, such a language update method not only causes the installation package to become larger, affecting the performance of the application and the update speed of users, but also when a new language is added to the application each time, developers need to re - develop the application, and after the development is completed, submit it to the application store for review and release, resulting in a long language update cycle and untimely language adaptation of the application.

[0046] In view of the above problems, the present application proposes the following technical concept: uploading language resources corresponding to each language to a cloud server for storage, where the language resources corresponding to each language include a core language pack and an extended language pack for that language; each core language pack includes language resources for common terms shared by a group of programs, that is, the application programs in the same program group share a core language pack; and each extended language pack includes language resources for special terms required by an application program, that is, each application program has its own exclusive extended language pack; when an application program on a smart terminal needs to obtain language resources in a new target language, the smart terminal first obtains the core language pack corresponding to the program group to which the application program belongs, determines whether the core language pack of the target language corresponding to the program group to which the application program belongs is stored locally, and if the core language pack of the target language has been downloaded and stored locally, sends a request to the server to obtain the extended language pack; according to the download information feedback by the server for the obtain request, downloads the extended language pack of the target language, and thus completes the language update for the target language; by means of dynamically downloading language pack updates, there is no need to re-develop and re-release the application program installation package, shortening the development cycle of language updates; and by adopting the method of sharing the core language pack by program groups and each application program having its own exclusive extended language pack, when the smart terminal has already stored the core language pack of the target language locally, only the corresponding extended language pack needs to be downloaded, reducing the amount of data required for the client to download and update the language pack each time; at the same time, the same program group shares the same core language pack, which not only saves the work of developers repeating the development of the core language pack, but also ensures the consistency of the terminology of the same series of application programs and the coherence of the user experience.

[0047] According to one aspect of the embodiments of the present application, a multi-language language update method is provided. The multi-language language update method is widely applied to whole-house intelligent digital control application scenarios such as Smart Home, smart home, smart home appliance ecosystem, Intelligence House ecosystem, etc. Optionally, in this embodiment, the above multi-language language update method can be applied to, for example Figure 1 the hardware environment composed of a terminal device 101 and a server 102 as shown. As Figure 1As shown in the figure, the server 102 is connected to the terminal device 101 through a network. It can be used to provide services for the terminal or the applications installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 102. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data operation services for the server 102. When the terminal device 101 determines that the application needs the target language, it obtains the core language package corresponding to the program group to which the application belongs; if it is determined that the core language package corresponding to the program group to which the application belongs is locally stored, it sends an extended language package acquisition request to the server 102 to obtain the extended language package corresponding to the application; wherein, the extended language package corresponding to the application includes the dictionary information of the proprietary vocabulary of the application; after receiving the extended language package acquisition request sent by the terminal device 101, the server 102 verifies the extended language package acquisition request, and after the verification of the extended language package acquisition request passes, it generates and sends the first download information to the terminal device 101; the terminal device 101 receives the first download information of the extended language package fed back by the server 102 and obtains the extended language package corresponding to the application according to the first download information.

[0048] The above network may include, but is not limited to, at least one of the following: wired network, wireless network. The above wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The above wireless network may include, but is not limited to, at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 101 is not limited to a PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projection device, smart TV, smart clothes hanger, smart curtain, smart audio and video, smart socket, smart speaker, smart sound box, smart fresh air device, smart kitchen and bathroom equipment, smart bathroom equipment, smart floor sweeping robot, smart window cleaning robot, smart mopping robot, smart air purification device, smart steam box, smart microwave oven, smart kitchen water heater, smart purifier, smart water dispenser, smart door lock, etc.

[0049] The following will describe in detail some embodiments of the present application with reference to the accompanying drawings. Without conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step sequence in the following method embodiments is only an example and is not strictly limited.

[0050] Figure 2 It is a flowchart showing a multi-language language update method according to an embodiment of the present application Figure 1The execution subject of the method can be, for example, a language update device of a smart terminal, and the language update device can be implemented in software, hardware, or a combination of software and hardware. As Figure 2 shown, the method includes:

[0051] S201: When it is determined that an application needs a target language, obtain the core language package corresponding to the program group to which the application belongs.

[0052] Among them, the applications in the same program group share the core language package of the same language. The core language package includes the dictionary information of the common terms shared by the applications in the same program group, and can be a serialized file such as json or excel that stores the translation key-value pairs corresponding to each common term; the applications belonging to the same program group can be applications with close business associations, or a series of applications developed by the same development team or multiple development teams affiliated with the same management team. For example, the retail applications for consumers and retail merchants and the wholesale applications for manufacturers and wholesale merchants under the same e-commerce platform belong to the same program group.

[0053] Specifically, when an application in a certain language is needed, the user selects the target language to be updated on the corresponding interface of the client, and the client sends a new language update request of the user to the smart terminal. After receiving the new language update request of the user, the language update device of the smart terminal determines that the application needs the target language; or after the application is started, it checks the local language resource information. When the language resource information meets the corresponding language package update conditions, such as the language of the local language package is not the language of the user's operating system, the time duration from the last update time of the target language package to the current time reaches a preset threshold, etc., it is determined that the application needs the target language; after determining that the application needs the target language, the language update device reads the core language package corresponding to the program group to which the application belongs from the corresponding local storage location.

[0054] S202: If it is determined that the core language package of the target language corresponding to the program group to which the application belongs is stored locally, send a request to obtain an extended language package to the server.

[0055] Among them, the extended language packages of the applications in the same program group are different. The extended language package includes the dictionary information of the unique vocabulary associated with the characteristics such as the application's own business logic. The extended language package of each application is different from that of other applications. For example, in two applications of different e-commerce platforms, the Chinese words referring to consumer points are different, namely "seeds" and "rice"; the request to obtain an extended language package can include, for example, the identifier of the application, the group identifier to which the application belongs, the target language identifier, and the corresponding authentication information.

[0056] Specifically, the language update device searches for the core language package of the target language in the core language package according to the identifier of the target language. If the core language package of the target language is not found, an extended language package acquisition request is generated according to the communication protocol and the preset data format, and the extended language package acquisition request is sent to the server.

[0057] S203: Receive the first download information of the extended language package fed back by the server, and obtain the extended language package according to the first download information, so as to update the local language resources of the application program according to the core language package and the extended language package.

[0058] Wherein, the first download information includes a first download address and an extended language package version number.

[0059] Specifically, after receiving the extended language package acquisition request sent by the intelligent terminal, the server verifies the extended language package acquisition request. After the extended language package acquisition request passes the verification, the first download information is generated and sent to the intelligent terminal according to the communication protocol and the preset data format; the language update device verifies and parses the first download information, determines the first download address and the extended language package version number according to the parsing result, and downloads the language package corresponding to the extended language package version number from the first download address.

[0060] In the multi-language language update method provided by the embodiment of the present application, when it is determined that the application program needs the target language, the core language package corresponding to the program group to which the application program belongs is obtained; wherein, the application programs in the same program group share the core language package of the same language; if it is determined that the core language package of the target language corresponding to the program group to which the application program belongs is locally stored, an extended language package acquisition request is sent to the server to obtain the extended language package corresponding to the application program; wherein, the extended language package corresponding to the application program includes the dictionary information of the proprietary vocabulary of the application program; receive the first download information of the extended language package fed back by the server, and obtain the extended language package according to the first download information, so as to update the local language resources of the application program according to the core language package and the extended language package; wherein, the first download information includes a first download address and an extended language package version number; it is ensured that when the intelligent terminal has locally stored the core language package of the target language, only the corresponding extended language package needs to be downloaded, reducing the amount of data required for the client to download and update the language package each time; at the same time, the same program group shares the same core language package, which not only saves the developers from the repetitive work of developing the core language package, but also ensures the consistency of the language used in the same series of application programs and the coherence of the user experience.

[0061] Figure 3 Schematic diagram of another single number generation method according to an embodiment of the present application Figure 2 . As Figure 3 shown, the method includes:

[0062] S301: When it is determined that the application needs the target language, obtain the core language package corresponding to the program group to which the application belongs.

[0063] Among them, applications in the same program group share the core language package of the same language. The core language package includes the dictionary information of common terms shared by the applications in the same program group, and can be a serialized file such as json or excel that stores the translation key-value pairs corresponding to each common term; applications belonging to the same program group can be applications with close business associations, or series of applications developed by the same development team or multiple development teams affiliated with the same management team. For example, the retail programs for consumers and retail merchants and the wholesale programs for manufacturers and wholesale merchants under the same e-commerce platform belong to the same program group; applications in the same program group share the core language package of the same language, and the core language package includes multiple sub-modules, and each sub-module corresponds to different functions or interfaces.

[0064] The implementation manner of step S301 is similar to that of step S201, and will not be elaborated here in this embodiment.

[0065] S302: Determine whether the core language package of the target language corresponding to the program group to which the application belongs is stored locally.

[0066] Specifically, the language update device searches for the core language package of the target language in the core language package according to the identifier of the target language, and determines whether the core language package corresponding to the program group is stored locally according to the search result.

[0067] S303: If it is determined that the core language package of the target language corresponding to the program group to which the application belongs is not stored locally.

[0068] Among them, the language resource package acquisition request may include, for example, the identifier of the application, the group identifier to which the application belongs, the target language identifier, and corresponding authentication information.

[0069] Specifically, if the core language package of the target language is found in the local storage, the language update device generates an extended language package acquisition request according to the communication protocol and the preset data format, and sends the extended language package acquisition request to the server.

[0070] S304: Receive the second download information of the language resource package fed back by the server.

[0071] Among them, the second download information includes: the group identifier of the program group to which the core language package belongs, the members of the program group, the second download address, the version number of the core language package, and the version number of the extended language package.

[0072] S305: Obtain the language resource package according to the second download information.

[0073] The implementation manners of steps S304 and S305 are similar to that of step S203, and are not described herein again in this embodiment.

[0074] S306: If it is determined that the core language package of the target language corresponding to the program group to which the application program belongs is stored locally, obtain the usage frequency of each application program for each sub-module within a preset duration.

[0075] Specifically, if the core language package is not found in the local storage, for any one application program in the application program group, the language update device reads the usage frequency of each function or interface from the cache of the application program; according to the usage frequency of each function or interface of each application program and the corresponding relationship between each sub-module and each function or interface, determine the usage frequency of each application program for each sub-module.

[0076] S307: Determine the update manner for version updating the core language package according to the usage frequency of each application program for each sub-module.

[0077] Among them, the update manner is partial update or full update.

[0078] Optionally, the specific method steps for the language update device to determine the update manner for version updating the core language package according to the usage frequency of each application program for each sub-module may be as follows:

[0079] Step 1: Obtain the total usage frequency corresponding to each sub-module respectively according to the usage frequency of each application program for each sub-module.

[0080] Step 2: If there are a first preset number of sub-modules whose corresponding total usage frequencies are all higher than the first preset frequency, determine that the update manner of the core language package is full update.

[0081] Step 3: If there are not a first preset number of sub-modules whose corresponding total usage frequencies are all higher than the first preset frequency and there is a target application program whose usage frequencies for a second preset number of sub-modules are all higher than the second preset frequency, determine that the update manner of the core language package is full update.

[0082] Wherein, the second preset quantity is greater than the first preset quantity.

[0083] Step 4: If there is no case where the total usage frequencies corresponding to the first preset quantity of sub-modules are all higher than the first preset frequency and there is no case where the usage frequencies of the second preset quantity of sub-modules by the target application are all higher than the second preset frequency, determine that the update method of the core language pack is partial update, and obtain the target sub-modules with total usage frequencies higher than the third preset frequency, and use the target sub-modules as the sub-modules to be updated.

[0084] Wherein, the third preset frequency is higher than the first preset frequency.

[0085] It can be understood that the overall data volume of the core language pack is large, and the traffic required for a full update is large and the time is long. Usually, the functions that users often use are only part of the functions of the application, and the corresponding language resources need to be updated in time to ensure the normal use of users; while the remaining functions are used occasionally or even never, and the version update frequency of the corresponding language resources can be appropriately reduced without affecting the normal use of users. Therefore, when performing the version update check of the core language pack each time, the specific scope of the version update of the core language pack can be determined according to the total usage frequency corresponding to each sub-module, so as to reduce the traffic consumption and required time for the version update of the core language pack without affecting the normal use of the application by users.

[0086] S308: Send a version update request for the core language pack to the server.

[0087] Optionally, the specific method steps for the language update device to send a version update request for the core language pack to the server can be as follows:

[0088] Step 1: If the update method is full update, the group identifier of the program group and the current version number are carried in the version update request, so that the server can determine whether the core language pack needs to be updated.

[0089] Wherein, the current version number is the lowest version number among the version numbers of each sub-module.

[0090] Specifically, the language update device generates a version update request for the core language pack according to the communication protocol and the preset data format, and sends the version update request for the core language pack to the server; after receiving the version update request for the core language pack, the server verifies the version update request, and after the version update request passes the verification, determines whether the current version number therein is the latest version number stored by the server. If not, the server determines that the core language pack needs to be fully updated, and generates and sends the third download information for the core resource pack to the intelligent terminal according to the communication protocol and the preset data format.

[0091] Step two: If the update method is partial update, the group identifier of the program group and the current version number of the target sub-module to be updated are carried in the version update request, so that the server determines whether the target sub-module needs to be updated.

[0092] Specifically, the language update device generates a version update request for the target sub-module of the core language pack according to the communication protocol and the preset data format, and sends the version update request to the server; after receiving the version update request, the server verifies the version update request, and after the version update request passes the verification, determines whether the current version number of the target sub-module is the latest version number of the target sub-module stored by the server. If not, the server determines that the target sub-module needs to be updated, and generates and sends the third download information for the core language pack to the intelligent terminal according to the communication protocol and the preset data format.

[0093] S309: Receive the third download information for the core language pack fed back by the server, and obtain the core language pack according to the third download information.

[0094] Wherein, the third download information includes: the group identifier of the program group to which the core language pack belongs, the members of the program group, the third download address, and the version number of each sub-module in the core language pack.

[0095] The implementation manner of step S309 is similar to that of step S203, and will not be elaborated herein in this embodiment.

[0096] S310: Send an extended language pack acquisition request to the server.

[0097] Wherein, the extended language packs of the application programs in the same program group are different.

[0098] The implementation manner of step S310 is similar to that of step S202, and will not be elaborated herein in this embodiment.

[0099] S311: Receive the first download information of the extended language pack fed back by the server, and obtain the extended language pack according to the first download information.

[0100] Wherein, the first download information includes a first download address and an extended language pack version number.

[0101] The implementation manner of step S311 is similar to that of step S203, and will not be elaborated herein in this embodiment.

[0102] The multi-language language update method provided by the embodiments of the present application determines the specific scope of the core language pack version update according to the total usage frequency corresponding to each sub-module each time the version update check of the core language pack is performed, realizing reducing the traffic consumption and required time for the core language pack version update without affecting the normal use of the application by the user, and improving the user experience.

[0103] Figure 4 It is a structural schematic diagram of a language update device provided by the embodiments of the present application; as Figure 4 shown, the language update device 400 provided by the embodiments of the present application includes:

[0104] An acquisition module 401, configured to obtain the core language pack corresponding to the program group to which the application belongs when it is determined that the application needs a target language; wherein, the applications in the same program group share the core language pack of the same language;

[0105] A communication module 402, configured to send a request for obtaining an extended language pack to the server when it is determined that the core language pack of the target language corresponding to the program group to which the application belongs is stored locally, so as to obtain the extended language pack corresponding to the application; wherein, the extended language pack corresponding to the application includes dictionary information of the proprietary vocabulary of the application; receive the first download information of the extended language pack fed back by the server, and obtain the extended language pack according to the first download information, so as to update the local language resources of the application according to the core language pack and the extended language pack; wherein, the first download information includes a first download address and an extended language pack version number.

[0106] Optionally, the communication module 402 is specifically configured to send a request for obtaining a language resource pack to the server when it is determined that the core language pack of the target language corresponding to the program group to which the application belongs is not stored locally; receive the second download information of the language resource pack, where the second download information includes: a group identifier of the program group to which the core language pack belongs, members of the program group, a second download address, a version number of the core language pack, and a version number of the extended language pack; obtain the language resource pack according to the second download information.

[0107] Optionally, the core language pack includes multiple sub-modules, each sub-module corresponding to a different function or interface; before sending a request for obtaining an extended language pack to the server, the communication module 402 is further configured to obtain the usage frequency of each application program for each sub-module within a preset duration; determine an update method for version updating of the core language pack according to the usage frequency of each application program for each sub-module, where the update method is partial update or full update; and send a version update request for the core language pack to the server.

[0108] Optionally, the communication module 402 is specifically configured to obtain the total usage frequency corresponding to each sub-module according to the usage frequency of each application program for each sub-module; when there are a first preset number of sub-modules whose corresponding total usage frequencies are all higher than a first preset frequency, determine that the update method for the core language pack is full update.

[0109] Optionally, when there is no target application program whose usage frequencies for a second preset number of sub-modules are all higher than a second preset frequency, the communication module 402 is further configured to determine that the update method for the core language pack is partial update, and obtain target sub-modules whose total usage frequencies are higher than a third preset frequency, and use the target sub-modules as sub-modules to be updated; where the third preset frequency is higher than the first preset frequency.

[0110] Optionally, if the update method is full update, the group identifier of the program group and the current version number are carried in the version update request, so that the server determines whether the core language pack needs to be updated, where the current version number is the lowest version number among the version numbers of each sub-module; if the update method is partial update, the group identifier of the program group and the current version number of the target sub-module to be updated are carried in the version update request, so that the server determines whether the target sub-module needs to be updated.

[0111] The language update device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.

[0112] Figure 5 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As Figure 5 shown, the present application provides an electronic device, and this electronic device 500 includes: at least one processor 501 and a memory 502; in addition, this electronic device 500 may further have a communication interface 504 for receiving and sending instructions.

[0113] Wherein, the processor 501, the memory 502 and the communication interface 504 are connected through a bus 503;

[0114] Among them, the computer program is stored in the memory 502 and is configured to be executed by the processor 501 to implement the multi-lingual language update method provided by any of the embodiments corresponding to the present application. Figures 2 - 3 The electronic device of the illustrated embodiment can be used to execute the technical solutions of the above method embodiments. The implementation principles and technical effects are similar and will not be elaborated here.

[0115] Figure 5 The electronic device of the illustrated embodiment can be used to execute the technical solutions of the above method embodiments. The implementation principles and technical effects are similar and will not be elaborated here.

[0116] In addition, this embodiment also provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed by a processor to implement the multi-lingual language update method of the above embodiment.

[0117] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.

[0118] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0119] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0120] The integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units stored in a storage medium include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute some steps of the methods according to various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.

[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the foregoing method embodiments, and will not be elaborated herein.

[0122] The foregoing is only the preferred embodiment of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A multilingual language update method, characterized in that, Applied to a smart terminal, the method includes: When it is determined that an application requires a target language, obtaining a core language pack corresponding to the program group to which the application belongs; wherein, applications in the same program group share the core language pack of the same language. If it is determined that the core language pack of the target language corresponding to the program group to which the application belongs is locally stored, sending a request for obtaining an extended language pack to the server to obtain the extended language pack corresponding to the application; wherein, the extended language pack corresponding to the application includes dictionary information of the application's proprietary vocabulary. Receiving first download information of the extended language pack fed back by the server, and obtaining the extended language pack according to the first download information, so as to update the local language resources of the application according to the core language pack and the extended language pack; wherein, the first download information includes a first download address and an extended language pack version number.

2. The multilingual language update method according to claim 1, wherein The method further includes: If it is determined that the core language pack of the target language corresponding to the program group to which the application belongs is not locally stored, sending a request for obtaining a language resource pack to the server. Receiving second download information of the language resource pack fed back by the server, where the second download information includes: a group identifier of the program group to which the core language pack belongs, members of the program group, a second download address, a version number of the core language pack, and a version number of the extended language pack. Obtaining the language resource pack according to the second download information.

3. The multilingual language update method according to claim 1, characterized in that The core language pack includes a plurality of sub-modules, and each sub-module corresponds to a different function or interface. Before sending the request for obtaining the extended language pack to the server, the method further includes: Obtaining the usage frequency of each application for each sub-module within a preset duration. Determining an update method for version updating of the core language pack according to the usage frequency of each application for each sub-module, and the update method is partial update or full update. Sending a version update request for the core language pack to the server.

4. The multilingual language update method according to claim 3, wherein, The determining of the update method for version updating of the core language pack according to the usage frequency of each sub-module of each application includes: Obtaining the total usage frequency corresponding to each sub-module according to the usage frequency of each application for each sub-module. If there are a first preset number of sub-modules whose respective total usage frequencies are all higher than a first preset frequency, determining that the update method of the core language pack is full update.

5. The multilingual language update method according to claim 4, characterized in that If there are not a first preset number of sub-modules whose respective usage frequencies are all higher than the first preset frequency, the method further includes: If there is a target application whose usage frequencies for a second preset number of sub-modules are all higher than a second preset frequency, determining that the update method of the core language pack is full update; wherein, the second preset number is greater than the first preset number.

6. The multilingual language update method according to claim 5, characterized in that If there is no target application whose usage frequencies for a second preset number of sub-modules are all higher than the second preset frequency, the method further includes: Determine that the update method of the core language pack is partial update, and obtain target sub-modules whose total usage frequency is higher than a third preset frequency, and use the target sub-modules as the sub-modules to be updated; wherein, the third preset frequency is higher than the first preset frequency.

7. The multilingual language update method according to claim 3, wherein If the update method is full update, the group identifier of the program group and the current version number are carried in the version update request, so that the server determines whether the core language pack needs to be updated, wherein the current version number is the lowest version number among the version numbers of each sub-module; If the update method is partial update, the group identifier of the program group and the current version number of the target sub-module to be updated are carried in the version update request, so that the server determines whether the target sub-module needs to be updated.

8. A language update device, characterized in that The device includes: An acquisition module, configured to acquire a core language pack corresponding to a program group to which the application program belongs when it is determined that the application program requires a target language; wherein, application programs in the same program group share the core language pack of the same language; A communication module, configured to send an extended language pack acquisition request to the server to acquire the extended language pack corresponding to the application program when it is determined that the core language pack of the target language corresponding to the program group to which the application program belongs is locally stored; wherein, the extended language pack corresponding to the application program includes dictionary information of the proprietary vocabulary of the application program; receive the first download information of the extended language pack fed back by the server, and acquire the extended language pack according to the first download information, so as to update the local language resources of the application program according to the core language pack and the extended language pack; wherein, the first download information includes a first download address and an extended language pack version number.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when running, executes the multi-language update method according to any one of claims 1 to 7.

10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the multi-language update method according to any one of claims 1 to 7 through the computer program.

Citation Information

Cited By

  • Multi-language after-loading method, system and equipment based on overlay resource bundle and medium

    CN122261589A