Language setting method, terminal equipment and computer readable storage medium

Multilingual switching of terminal devices is achieved through server configuration language parameters and floating controls, solving the problem of inconvenient language setting of terminal devices, improving operational convenience and efficiency, and improving user experience.

CN120499307APending Publication Date: 2025-08-15SHENZHEN ZOLON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510717125.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing terminal equipment is inconvenient to set up languages in unattended public places and lacks flexibility. Operations and maintenance personnel need to manually adjust them one by one, resulting in cumbersome operations and low efficiency.

Method used

By configuring the language parameter data on the server, the terminal device does not need to modify the code, and uses suspended controls to achieve fast language switching, and the operation and maintenance personnel remotely manage language types.

Benefits of technology

Simplify system operations, improve the convenience and efficiency of language settings, improve user experience, and reduce operation steps and time consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499307A_ABST
    Figure CN120499307A_ABST
Patent Text Reader

Abstract

The invention provides a language setting method, terminal equipment and a computer readable storage medium. The language setting method is applied to the terminal equipment supporting multi-language switching, and comprises the following steps: acquiring language parameter data sent by a server; and setting the current language of the terminal equipment based on the language parameter data. According to the invention, the system operation is simplified, the time is saved, and the convenience and efficiency of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal application technology, and in particular to a method for setting a language, a terminal device, and a computer-readable storage medium. Background Art

[0002] In unmanned public spaces such as hotels, airports, and international shopping malls, terminal devices need to support multilingual switching to provide convenient services for users from different countries and regions. Existing solutions often hard-code the language type into the terminal devices, requiring operators to configure the language type for each device. This results in insufficient system flexibility and inconvenience in adjusting language settings. Summary of the Invention

[0003] The present application provides a method for setting a language, a terminal device, and a computer-readable storage medium, which are used to solve the problem of inconvenience in language setting for a terminal device supporting multi-language switching. The following introduces various aspects of the present application.

[0004] In a first aspect, the present application provides a method for setting a language, which is applied to a terminal device that supports multi-language switching. The method includes: obtaining language parameter data sent by a server; and setting the current language of the terminal device based on the language parameter data.

[0005] In a second aspect, the present application provides a device for setting a language, which is applied to a terminal device, and the device includes: an acquisition module for acquiring language parameter data sent by a server; and a setting module for setting the current language of the terminal device based on the language parameter data.

[0006] In a third aspect, the present application provides a terminal device, comprising: a memory for storing code; and a processor connected to the memory for executing the code stored in the memory, so that the terminal device executes the method described in the first aspect.

[0007] In a fourth aspect, the present application provides a method for setting a language, which is applied to a server, and the method includes: sending a first notification message to a terminal device, wherein the first notification message is a prompt message for the server to push the language parameter data; receiving a request message sent by the terminal device, wherein the request message is used to request downloading a parameter template including the language parameter data; and in response to receiving the request message, sending the parameter template to the terminal device.

[0008] In the fifth aspect, the present application provides a device for setting the language, which is applied to a server, and the device includes: a first sending module, used to send a first notification message to the terminal device, wherein the first notification message is a prompt message for the server to push the language parameter data; a receiving module, used to receive a request message sent by the terminal device, wherein the request message is used to request downloading a parameter template including the language parameter data; a second sending module, used to send the parameter template to the terminal device in response to receiving the request message.

[0009] In a sixth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, it can implement the method described in the first aspect or the fourth aspect.

[0010] In a seventh aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device can implement the method described in the first aspect or the fourth aspect.

[0011] This application configures language parameters through the server. Operation and maintenance personnel can remotely configure and manage language types without modifying the code on the terminal device side, which helps to simplify system operations, save time, and improve the convenience and efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.

[0013] Figure 1 This is a flow chart of a method for setting a language provided in an embodiment of the present application.

[0014] Figure 2 yes Figure 1 A schematic diagram of a possible implementation of the method shown.

[0015] Figure 3 This is a possible display diagram of the floating control provided in the application embodiment.

[0016] Figure 4 This is a schematic diagram of an interactive process of a floating control provided in an embodiment of the application.

[0017] Figure 5 This is a flowchart of another method for setting the language provided in an embodiment of the present application.

[0018] Figure 6 This is a schematic diagram of the composition of a language setting device provided in an embodiment of the present application.

[0019] Figure 7This is a schematic diagram of the component units / partial component units of the terminal device provided in an embodiment of the present application.

[0020] Figure 8 Schematic diagram of another device for setting a language provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. The same or similar reference numerals are used in the accompanying drawings to represent the same or similar modules. It should be understood that the accompanying drawings are only schematic and the scope of protection of the present application is not limited thereto.

[0022] In unmanned public spaces such as hotels, airports, international shopping malls, and point-of-sale (POS), terminal devices need to support multilingual switching to provide convenient service for users from different countries and regions. Language switching refers to setting the device's display language to another language to meet users' multilingual needs. POS refers to cash registers in sales locations such as stores and supermarkets. Existing solutions often hard-code the language type into the terminal device, requiring operations and maintenance personnel to set the language type for each device. This results in insufficient system flexibility and inconvenience in adjusting language settings.

[0023] Therefore, it is necessary to design a technical solution for convenient language setting of terminal devices.

[0024] Based on this, the embodiment of the present application proposes a method for setting the language. Figure 1 The method for setting the language in an embodiment of the present application is introduced in detail. Figure 1 The method is applied to terminal devices that support multi-language switching. The terminal devices include but are not limited to self-service terminals and point of sale (POS) in hotels, airports, and international shopping malls. The terminal devices support multi-language switching to provide convenient services for users from different countries and regions. Figure 1 As shown, the method for setting the language in the embodiment of the present application may mainly include steps S110 to S120, which are described in detail below.

[0025] It should be pointed out that the size of the serial numbers of the steps in the embodiments of the present application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0026] In step S110 , language parameter data sent by the server is obtained.

[0027] The server can be a central server, an edge server, or a cloud server. Language parameter data may include parameter data such as language type, number, and order. Language switching data refers to the type and order of languages being switched, such as the order of switching between Chinese, English, and French. For example, whether Chinese is in order 1 or order 2.

[0028] The language parameter data received by multiple terminal devices in different areas may be consistent. In some implementations, the language parameter data sent by the server may be data based on a parameter template.

[0029] For example, on the terminal management system (TMS) server, operations and maintenance personnel configure parameter templates and edit and change language parameter data through the management interface. The terminal management system can be used to manage terminal device configurations, parameters, applications, and other information. Parameter templates can be configured with specific parameter values through a visual interface, such as the type, number, and order of languages in the language settings program, helping to improve system visibility, uniformity, and compatibility. Unified server-side management of parameter configurations for multiple clients aligns with TMS multi-terminal management scenarios, avoiding tedious operations for customers and helping to simplify system operations, saving time, and improving efficiency.

[0030] A server can correspond to multiple terminal devices, and multiple terminal devices can be distributed in different regions (locations). Terminal devices in different regions may face different users and have different language setting preferences. The server can set multiple parameter templates to adapt to different types of terminal devices.

[0031] In some implementations, the language parameter data sent by the server can be based on a target parameter template, which is one of multiple parameter templates in the server. The target parameter template matches the terminal device identifier, which is associated with at least one or more of the terminal device's Internet Protocol address and physical address parameters. This helps meet the different language setting preferences of multiple terminal devices.

[0032] In step S120, the current language of the terminal device is set based on the language parameter data.

[0033] For example, the acquired language parameter data is stored locally, and an application programming interface (API) is called to switch the system language. The system language setting program is called through the API to set the current language.

[0034] In the embodiment of the present application, language parameters are configured through the server, and operation and maintenance personnel can remotely configure and manage language types without modifying the code on the terminal device side, which helps to simplify system operations, save time, and improve the convenience and efficiency of the system.

[0035] When users switch languages on the terminal device side, they usually need to enter the settings menu and manually select the language. The operation steps are cumbersome and it is not convenient for users to quickly switch languages.

[0036] In some implementations, the terminal device is configured with a plug-in program, and the floating control of the plug-in program is suspended at a preset position on the operation interface of the terminal device. The floating control has a first display state and a second display state, the first display state and the second display state corresponding to the first floating control and the second floating control respectively, the first display state is the initial display state, and the second floating control is a shortcut list menu, the area of the shortcut list menu is larger than the area of the first floating control. The shortcut list menu is a language selection menu determined based on the aforementioned language parameter data. A floating control is a floating and movable control that can be displayed above other applications and is often used to display notifications, quick operations, etc. The floating control has high visibility and interactivity in the user interface and can enhance the user experience. The floating control and the first floating control can be a floating ball (floating capsule) or a floating window. The preset position is usually a position outside the control display area and the content display area of the operation interface, generally a non-core display area or an empty display area. For example, the preset position can be an empty display area in the lower left corner or lower right corner of the operation interface. Setting the current language of the terminal device based on the language parameter data in step S120 may include:

[0037] In response to an operation triggering a first floating control, the first floating control switches to a quick list menu; based on language parameter data, the quick list menu is displayed; a target language is determined based on the quick list menu; based on the target language, a language setting program of the terminal device's operating system is invoked to set the current language; in response to an operation triggering a first display area, the quick list menu switches to the first floating control; wherein the first display area is the portion of the operation interface not covered by the quick list menu. The target language can be one language or multiple languages, and the multiple languages include the type and order of the languages.

[0038] In an embodiment of the present application, a floating control is displayed on the device screen. The floating control has two forms: contracted and expanded. After the user triggers the floating control, the floating control becomes a shortcut list menu, which can quickly switch between multiple languages. After the language is set, the floating control switches from an expanded form to a contracted form, which can reduce the desktop space occupied. In an embodiment of the present application, a floating control is set in the user interface for language setting, which has high visibility and interactivity, facilitates users to quickly and conveniently switch the language settings of the terminal device, simplifies the operation steps, and helps to improve the user experience, especially in a multilingual environment.

[0039] In some implementations, the method of the embodiment of the present application may further include: displaying a first prompt message based on the first floating control. The first prompt message includes information about the current language and / or prompts the user to set the language. This helps remind the user to quickly discover the floating control and its language setting function, thereby enabling the user to use the floating control, thereby improving visibility and interactivity.

[0040] In some implementations, obtaining the language parameter data sent by the server in step S110 may include: obtaining a first notification message sent by the server, the first notification message being a prompt message for the server to push the language parameter data; in response to receiving the first notification message, calling a download parameter service of a desktop launcher, and sending a request message to the server, the request message being used to request downloading a parameter template (or parameter file) including the language parameter data; obtaining and parsing the parameter template to obtain the language parameter data, and storing the parsed language parameter data.

[0041] Figure 2 This is a flowchart of the push, analysis and setting of language parameter data. Specifically, Figure 2 As shown, the system device may include a TMS server 210 and a terminal device 220. The terminal device 220 may include a launcher 221 and a TMS client 223. It can be understood that the TMS server 210 may refer to an application (App) running on the server side, and the TMS client 223 and the launcher 221 may refer to applications running on the terminal device 220. In the Android system, the launcher is the system's desktop manager, responsible for loading operating system core services, displaying the desktop, launching applications, and other functions when the device starts, providing support for subsequent applications. The TMS client 223 maintains a connection with the TMS server 210, receives instructions (such as configuration updates) and feedbacks the device status. Centralized management and control of the terminal device 220 can be achieved through server linkage.

[0042] The process of pushing language parameter data may mainly include steps S210 to S270 , which are described in detail below.

[0043] In step S210 , the user configures a parameter template on the TMS server 210 .

[0044] The user can create multiple different parameter templates, store them in the server 210, and select and push corresponding parameter templates according to the needs of different terminal devices, for example, select a target parameter template that matches the identifier of the terminal device.

[0045] The parameter template includes language-related settings, such as language data for quick switching. Language switching data refers to the type, number, and position of languages, such as Chinese and English. For example, whether Chinese is ranked first or second in sequence.

[0046] In step S220, the server 210 pushes the parameters to the TMS client 223. For example, the server 210 pushes the configured parameter template to the client. In other words, the server sends a first notification message, which is a prompt message that the server pushes the language parameter data.

[0047] In some implementations, the server may periodically send a first notification message to notify the terminal device to update the latest language parameter data. In other embodiments, the server sends a first notification message to notify the terminal device to update the latest language parameter data after detecting a change in the language parameter data.

[0048] In step S230, in response to receiving the first notification information, the TMS client 223 calls the download parameter service of the launcher 221. That is, after receiving the parameter push, the client calls the download parameter service of the launcher 221.

[0049] In step S240 , the initiator 221 requests the TMS server 210 to download a parameter template (or parameter file).

[0050] In some implementations, parameter push can be performed using a reliable network transmission protocol, such as Hypertext Transfer Protocol Secure (HTTPS). A retry mechanism can be implemented on the client to ensure that parameters can be re-requested when the network is unstable. For example, the initiator 221 sends a request message to the server via HTTPS request, requesting to download a parameter template including language parameter data.

[0051] In other implementations, a message queue or a push service may be used to ensure that the parameter template including the language parameter data can be pushed to the client in a timely manner and that the client can correctly receive and parse the parameters.

[0052] In step S250 , the TMS server 210 sends a parameter template (ie, a parameter template) to the initiator 221 .

[0053] In step S260 , the initiator 221 obtains and parses the parameter template to obtain language parameter data, and stores the parsed language parameter data for subsequent use.

[0054] Implement parameter parsing logic on the client to ensure that the pushed parameter template can be correctly parsed. For example, this can be done using Extensible Markup Language (XML). XML is a language used to describe data structures and information. Parsing can convert data in an XML document into objects or data that can be used by the program.

[0055] Local storage (such as SharedPreferences or SQLite database) can be used to store the parsed language parameters for subsequent use.

[0056] In step S270 , the current language of the terminal device 220 is set based on the stored language parameter data.

[0057] For example, the launcher 221 launches a language setting program based on the parsed language parameters. In some embodiments, the language setting program may be the system's default language setting program. In other embodiments, the language setting program may be a separate plug-in program used to set the language. The plug-in program may be provided with a floating ball, such as a floating ball, to facilitate the user's language switching settings.

[0058] In some implementations, the terminal device 220 can monitor language parameter change events and dynamically update the display and functionality of the language settings when a language parameter change is detected. For example, the display and functionality of the language settings of the floating ball of a plug-in can be dynamically updated. In some specific embodiments, the observer pattern (LiveData) can be used to notify the floating ball component of changes in language parameter data.

[0059] Figure 3 This is a possible display diagram of the floating control provided in the application embodiment. Figure 3As shown, the user can choose to enable the language ball (floating ball), in which the language can be quickly switched, which is particularly suitable for self-service devices. By way of example and not limitation, through the language list menu, you can select the top 4 languages 1, language 2, language 3, and language 4. For example, language 1 can be Chinese, language 2 can be English, language 3 can be French, and language 4 can be Russian. After configuration, set the current language of the terminal device, for example, set the current language of the system to Chinese according to language 1. In some embodiments, only some languages can be selected, for example, language 1 can be Chinese, language 2 can be English, and language 3 and language 4 can be empty. Those not set later can follow the default order of the parameter template.

[0060] Figure 4 This is a schematic diagram of the interactive process of the floating control provided in the application embodiment. Figure 4 As shown, taking the floating ball as an example, the interaction process of the language setting function of the floating control may mainly include steps S410 to S470, and these steps are described in detail below.

[0061] In the initial state, the floating ball is suspended at a preset position on the operating desktop.

[0062] In some implementations, it is necessary to configure the layout parameters of the floating window, including setting the window type to TYPE_APPLICATION_OVERLAY, pixel format, position, flags, size, initial position and other form parameters. For example, by loading the floating window layout through LayoutInflater, you can set the touch and layout detectors, and add the floating window View to the WindowManager in accordance with the form parameters. Among them, LayoutInflater is a key component in Android development for converting XML layout files into View objects. It can dynamically load XML layout files into applications, allowing developers to create and modify interface elements as needed at runtime. WindowManager is a class for managing windows in the Android system, which is used to manage window display, hiding, position, size and other operations.

[0063] In some embodiments, a prompt can be displayed based on the hover ball. The prompt can include information about the current language and / or prompts the user to set the language. This helps remind users to quickly discover the hover ball and its language setting function, allowing them to use it, improving visibility and interactivity.

[0064] In step S410, the user clicks the floating ball.

[0065] In step S420, after the floating ball is clicked, the floating ball is hidden and switched to an expanded form to display a quick list menu.

[0066] In step S430, the language list (ie, language parameter data) is loaded and displayed in the quick list menu.

[0067] In step S440 , a language option button is selected to determine the target language and the order of the target languages.

[0068] In step S450, the language setting of the terminal device is switched according to the selected target language.

[0069] After clicking the corresponding language option button, call the API to switch the current language of the system.

[0070] In step S460, after completing the language setting, click a location outside the shortcut list menu on the operation desktop.

[0071] In step S470, the quick list menu is collapsed and restored to the floating ball form.

[0072] When the user taps anywhere on the screen outside the quick list menu, the quick list menu is hidden and switched to the floating ball form. This means that the floating control returns to the floating ball form from the expanded form.

[0073] In an embodiment of the present application, a floating control is displayed on the device screen. The floating control has two forms: contracted and expanded. After the user triggers the floating control, the floating control becomes a shortcut list menu, which can quickly switch between multiple languages. After the language is set, the floating control switches from an expanded form to a contracted form, which can reduce the desktop space occupied. In an embodiment of the present application, a floating control is set in the user interface for language setting, which has high visibility and interactivity, facilitates users to quickly and conveniently switch the language settings of the terminal device, simplifies the operation steps, and helps to improve the user experience.

[0074] After the user selects the target language, the floating control returns to the first display form (such as a floating ball). Usually, the floating control is located at a certain position on the operation interface and may affect the control display and / or content display of the operation interface.

[0075] In some implementations, the method of the embodiment of the present application may further include: in response to detecting that the first floating control has not been triggered for a period longer than a first period threshold, moving the first floating control to a first side of the operating interface. The first side is the side of the operating interface that is closest to the first floating control. The first period threshold can be 2 minutes or 3 minutes. The time that the floating control has not been triggered exceeds the first period threshold, indicating that the user has not recently operated the floating control. Moving the floating control to the side closest to the operating interface helps reduce the impact on the controls and content display of the operating interface and improves the flexibility and convenience of operation.

[0076] In the prior art, the dragging of the floating ball is usually relatively simple and lacks intelligent interactive prompts. In some implementations, the method of the embodiment of the present application may further include: during the dragging of the first floating control, the background image of the first floating control is different from the background image of the first floating control in a stationary state. And / or, the transparency of the first floating control is different from the transparency of the first floating control in a stationary state. During the dragging process of the floating control, the background image and / or transparency will change, which can prompt the user of the current status of the floating control. For example, in the process of the floating control automatically moving to the side closest to the operation interface, the background color of the floating control will become lighter. After reaching the side position closest to the operation interface, the background color of the floating control gradually darkens and returns to the initial color, which helps to improve the user's operational flexibility, interactivity and intelligence.

[0077] In some implementations, the method of the embodiments of the present application may further include: in response to detecting a change in language parameter data, displaying a shortcut list menu and / or displaying a first prompt message of a first floating control based on the updated language parameter data; wherein the first prompt message is information about the current language and / or a message prompting the user to set the language. This can be dynamically updated based on the new language parameter without restarting the application or device, which helps improve the real-time and stability of language settings.

[0078] It is understood that the first floating control (such as a floating ball) is the initial state of the floating control and supports dragging and moving. Usually, the position of the quick list menu is displayed based on the position of the first floating control. In some embodiments, the quick list menu cannot be directly dragged to move the position. The user can collapse the quick list menu into a floating ball and then adjust the position, which can reduce the obstruction area during the movement.

[0079] The present application embodiment provides another method for setting the language. Figure 5 The method for setting the language in the embodiment of the present application is described in detail. Figure 5 The method is applied to the server. Figure 5 As shown, the method for setting the language in the embodiment of the present application may mainly include steps S510 to S530, which are described in detail below.

[0080] In step S510, first notification information is sent to the terminal device, where the first notification information is prompt information for pushing language parameter data.

[0081] In step S520, a request message sent by the terminal device is received, where the request message is used to request downloading of a parameter template including language parameter data.

[0082] In step S530, in response to receiving the request information, the parameter template is sent to the terminal device.

[0083] In the embodiment of the present application, language parameters can be configured through the server, and operation and maintenance personnel can remotely configure and manage language types without modifying the code on the terminal device side, which helps to simplify system operations, save time, and improve the convenience and efficiency of the system.

[0084] Combined with the above Figure 1-Figure 5 The method embodiment of the present application is described in detail. Figure 6-Figure 8 The device embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so for parts not described in detail, reference can be made to the previous method embodiment.

[0085] This application provides a device for setting language, which is applied to terminal equipment. Figure 6 As shown, the apparatus 600 for setting a language may include: an acquisition module 610 and a setting module 620 .

[0086] The acquisition module 610 is used to acquire language parameter data sent by the server.

[0087] The setting module 620 is used to set the current language of the terminal device based on the language parameter data.

[0088] Figure 7 This is a schematic diagram of the component units / partial component units of the terminal device provided in the embodiment of the present application. Figure 7 As shown, the terminal device 220 may include: a memory 222 and at least one processor 224.

[0089] The memory 222 is used to store codes or computer programs.

[0090] The processor 224 is connected to the memory 222 and is configured to execute the code or computer program stored in the memory 222 to control the terminal device 220 to execute any of the methods shown above.

[0091] For example, the computer program may be divided into one or more modules / units, and one or more modules / units are stored in the memory 222 and executed by the processor 224 to complete the present application.

[0092] In some implementations, the terminal device 220 may include a TMS client and a launcher application. The launcher ensures that the TMS client is properly started and runs, and the TMS client implements centralized management and control of the terminal device 220 through server linkage.

[0093] Those skilled in the art will understand that Figure 7This is merely an example of the terminal device 220 and does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or different components.

[0094] The processor 224 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.

[0095] The terminal device 220 provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be repeated here.

[0096] The embodiment of the present application also provides another device for setting a language, which is applied to a server. Figure 8 This is a schematic diagram of another device for setting a language provided in an embodiment of the present application. Figure 8 As shown, the apparatus 800 for setting a language may include: a first sending module 810 , a receiving module 820 and a second sending module 830 .

[0097] The first sending module 810 is used to send first notification information to the terminal device, where the first notification information is prompt information of the server pushing language parameter data.

[0098] The receiving module 820 is used to receive request information sent by the terminal device, where the request information is used to request downloading of a parameter template including language parameter data.

[0099] The second sending module 830 is configured to send the parameter template to the terminal device in response to receiving the request information.

[0100] An embodiment of the present application provides a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it can implement the steps in the above-mentioned various method embodiments.

[0101] The embodiments of the present application also provide a computer program product. When the computer program product is run on an electronic device, the electronic device can implement the above-mentioned various method embodiments.

[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can at least include: any entity or device capable of carrying computer program code to a camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device. The computer-readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, a non-transitory storage medium.

[0103] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0104] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0105] In the embodiments provided in this application, it should be understood that the disclosed devices / equipment and methods can be implemented in other ways. For example, the device / equipment embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0106] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0107] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0108] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0109] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0110] 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 them. 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 or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for setting a language, characterized in that: Applied to a terminal device supporting multi-language switching, the method includes: Get the language parameter data sent by the server; The current language of the terminal device is set based on the language parameter data.

2. The method according to claim 1, characterized in that The language parameter data sent by the server is data based on a parameter template.

3. The method according to claim 2, characterized in that The language parameter data sent by the server is data based on a target parameter template, which is one of the multiple parameter templates of the server. The target parameter template matches the identifier of the terminal device, and the identifier is associated with at least one or more parameters of the Internet Protocol address and physical address parameters of the terminal device.

4. The method according to claim 1, wherein The acquiring of language parameter data sent by the server includes: Obtaining first notification information sent by the server, where the first notification information is prompt information for the server to push the language parameter data; In response to receiving the first notification information, calling a download parameter service of a desktop launcher and sending a request information to the server, wherein the request information is used to request downloading a parameter template including the language parameter data; The parameter template is acquired and parsed to obtain the language parameter data, and the language parameter data obtained by parsing is stored.

5. The method according to any one of claims 1 to 4, characterized in that The terminal device is configured with a plug-in program, a floating control of the plug-in program is suspended at a preset position on an operation interface of the terminal device, the floating control has a first display state and a second display state, the first display state and the second display state corresponding to the first floating control and the second floating control, respectively, the first display state is an initial display state, the second floating control is a shortcut list menu, the area of the shortcut list menu is larger than the area of the first floating control, and the shortcut list menu is a language selection menu determined based on the language parameter data; The setting of the current language of the terminal device based on the language parameter data includes: In response to an operation of triggering the first floating control, the first floating control switches to the shortcut list menu; Based on the language parameter data, displaying the shortcut list menu; determining a target language based on the quick list menu; According to the target language, calling the language setting program of the operating system of the terminal device to set the current language of the terminal device; In response to an operation of triggering the first display area, the shortcut list menu is converted into the first floating control, and the first display area is a partial area of the operation interface not covered by the shortcut list menu.

6. The method according to claim 5, characterized in that The method further comprises: In response to detecting that the first floating control is not triggered for a period greater than a first period threshold, the first floating control is moved to a first side of the operation interface, where the first side is the side of the operation interface closest to the first floating control.

7. The method according to claim 5, characterized in that The method further comprises: During the dragging of the first floating control, the background image of the first floating control is different from the background image of the first floating control in a stationary state; and / or the transparency of the first floating control is different from the transparency of the first floating control in a stationary state.

8. The method according to claim 5, characterized in that The method further comprises: Displaying the first prompt information based on the first floating control; and / or, In response to detecting the change information of the language parameter data, displaying the shortcut list menu and / or displaying the first prompt information based on the updated language parameter data; The first prompt information is information about the current language and / or information prompting the user to set the language.

9. A terminal device, characterized in that: include: A memory for storing code; A processor is connected to the memory and is used to execute the code stored in the memory so that the terminal device executes the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that A computer program is stored thereon, which is used to implement the method according to any one of claims 1 to 8 when executed.