CN112835633B - Display device and control method of display language - Google Patents

Display device and control method of display language Download PDF

Info

Publication number
CN112835633B
CN112835633B CN202011495480.5A CN202011495480A CN112835633B CN 112835633 B CN112835633 B CN 112835633B CN 202011495480 A CN202011495480 A CN 202011495480A CN 112835633 B CN112835633 B CN 112835633B
Authority
CN
China
Prior art keywords
language
application
display
interface
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011495480.5A
Other languages
Chinese (zh)
Other versions
CN112835633A (en
Inventor
王秉清
贾亚洲
吴汉勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202011495480.5A priority Critical patent/CN112835633B/en
Publication of CN112835633A publication Critical patent/CN112835633A/en
Application granted granted Critical
Publication of CN112835633B publication Critical patent/CN112835633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a display device and a control method of a display language, wherein the display device comprises a display and a controller, and the controller is configured to: receiving an application starting instruction input by a user; responding to the instruction for starting the application, and setting a resource sequence in a resource library according to a language priority sequence of display equipment when the resource library of the application is initialized, so that the application acquires resources according to the resource sequence and generates interface data; and controlling the display to display the interface of the application according to the interface data. The method and the device solve the problem that when the application on the display device does not support the system language, the display is carried out according to the preset default language, and therefore user experience is poor.

Description

Display device and control method of display language
Technical Field
The present application relates to the field of display technologies, and in particular, to a display device and a control method for a display language.
Background
Nowadays, as an intelligent display device, a television can be provided with an operating system, and a user can install a large number of applications on the operating system to experience various functions. In order to meet the requirement that users using different languages interact with the television, the operating system of the television can support two or more languages, and the users can set the system language of the television into the language familiar to the users, so that the users can smoothly experience the application installed on the television.
In the related art, when a television supports more than two languages, one of the languages may be set as a system language by a user, and one of the languages may be a preset default language, when a user opens an application, if the application does not support the current system language, the application is usually displayed according to the preset default language, however, the preset default language may not be a language familiar to the user, which may cause inconvenience to the user.
Disclosure of Invention
In order to solve the technical problem, the application provides a display device and a control method of a display language.
In a first aspect, the present application provides a display device comprising:
a display;
a controller configured to:
receiving an application starting instruction input by a user;
responding to the instruction for starting the application, and setting a resource sequence in a resource library of the application according to a language priority sequence of display equipment when the resource library of the application is initialized, so that the application acquires resources according to the resource sequence and generates interface data;
and controlling the display to display the interface of the application according to the interface data.
In some embodiments, said setting an order of resources within said resource pool in a language priority order of a display device comprises:
acquiring the language type supported by the application through a preset language identification instruction;
judging whether the language type supported by the application belongs to the language type in the language priority order of the display equipment or not;
if the language type supported by the application belongs to the language type in the language priority order of the display equipment, loading the resource corresponding to the language type supported by the application into a resource library of the application;
and arranging the resource packages corresponding to different language types in the resource library according to the sequence of the language priority of the display equipment from large to small.
In some embodiments, the controlling the display to display the interface of the application according to the interface data includes:
and when the application supports the system language, controlling the display to display the interface of the application under the system language according to the interface data.
In some embodiments, the controlling the display to display the interface of the application according to the interface data includes:
and when the application does not support the system language and supports the preference language, controlling the display to display the interface of the application in the preference language according to the interface data.
In some embodiments, the language priority order of the display device includes a first order, a second order and a third order, wherein the language corresponding to the first order is a system language, the language corresponding to the second order is a preferred language, and the language corresponding to the third order is a preset default language.
In a second aspect, the present application provides a method for controlling a display language, the method including:
receiving an application starting instruction input by a user;
responding to the instruction for starting the application, setting a resource sequence in a resource library according to a language priority sequence of display equipment when the application initializes the resource library, so that the application loads resources according to the resource sequence and generates interface data;
and controlling the display to display the interface of the application according to the interface data.
In some embodiments, said setting the order of resources within said resource pool in the language priority order of the display device comprises:
acquiring language types supported by the application through a preset language identification instruction;
judging whether the language type supported by the application belongs to the language type in the language priority order of the display equipment or not;
if the language type supported by the application belongs to the language type in the language priority order of the display equipment, loading the resource corresponding to the language type supported by the application into a resource library of the application;
and arranging the resource packages corresponding to different language types in the resource library according to the sequence of the language priority of the display equipment from large to small.
In some embodiments, the language priority order of the display device includes a first order, a second order and a third order, wherein the language corresponding to the first order is a system language, the language corresponding to the second order is a preferred language, and the language corresponding to the third order is a preset default language.
The display equipment and the control method of the display language have the advantages that:
according to the method and the device, the language priority order is set on the display device, when the application initializes the resource library, the resource order of the resource library is set according to the language priority order, so that the application can acquire resources according to the resource order and generate interface data, and the problem that when the application does not support a system language, the user experience is poor due to the fact that the display is performed according to the preset default language is solved.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic diagram illustrating an operational scenario between a display device and a control apparatus according to some embodiments;
a block diagram of a hardware configuration of a display device 200 according to some embodiments is illustrated in fig. 2;
a block diagram of the hardware configuration of the control device 100 according to some embodiments is illustrated in fig. 3;
a schematic diagram of the software configuration in the display device 200 according to some embodiments is illustrated in fig. 4;
FIG. 5 is a flow diagram illustrating a control method of a display language according to some embodiments;
FIG. 6 is a flow diagram illustrating a method of controlling resource pool initialization, according to some embodiments;
FIG. 7 is a schematic diagram illustrating an application interface of a display device according to some embodiments;
a schematic diagram of an application interface of a display device according to some embodiments is illustrated in fig. 8.
Detailed Description
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for convenience of understanding of the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that is capable of performing the functionality associated with that element.
Fig. 1 is a schematic diagram of a usage scenario of a display device according to an embodiment. As shown in fig. 1, the display apparatus 200 is also in data communication with a server 400, and a user can operate the display apparatus 200 through the smart device 300 or the control device 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes at least one of an infrared protocol communication or a bluetooth protocol communication, and other short-distance communication methods, and controls the display device 200 in a wireless or wired manner. The user may control the display apparatus 200 by inputting a user instruction through at least one of a key on a remote controller, a voice input, a control panel input, and the like.
In some embodiments, the smart device 300 may include any of a mobile terminal, a tablet, a computer, a laptop, an AR/VR device, and the like.
In some embodiments, the smart device 300 may also be used to control the display device 200. For example, the display device 200 is controlled using an application program running on the smart device.
In some embodiments, the smart device 300 and the display device may also be used for communication of data.
In some embodiments, the display device 200 may also be controlled in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received through a module configured inside the display device 200 to obtain the voice command, or may be received through a voice control apparatus provided outside the display device 200.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display apparatus 200. The server 400 may be a cluster or a plurality of clusters, and may include one or more types of servers.
In some embodiments, software steps executed by one step execution agent may be migrated on demand to another step execution agent in data communication therewith for execution. Illustratively, software steps performed by the server may be migrated to be performed on a display device in data communication therewith, and vice versa, as desired.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 according to an exemplary embodiment. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction of a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, serving as an interaction intermediary between the user and the display device 200.
In some embodiments, the communication interface 130 is used for external communication, and includes at least one of a WIFI chip, a bluetooth module, NFC, or an alternative module.
In some embodiments, the user input/output interface 140 includes at least one of a microphone, a touchpad, a sensor, a key, or an alternative module.
Fig. 3 illustrates a hardware configuration block diagram of the display apparatus 200 according to an exemplary embodiment.
In some embodiments, the display apparatus 200 includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
In some embodiments the controller comprises a central processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, a first interface to an nth interface for input/output.
In some embodiments, the display 260 includes a display screen component for displaying pictures, and a driving component for driving image display, a component for receiving image signals from the controller output, displaying video content, image content, and menu manipulation interface, and a user manipulation UI interface, etc.
In some embodiments, the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In some embodiments, the tuner demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio/video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display apparatus 200 may establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
In some embodiments, the detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; alternatively, the detector 230 includes an image collector, such as a camera, which may be used to collect external environment scenes, attributes of the user, or user interaction gestures, or the detector 230 includes a sound collector, such as a microphone, which is used to receive external sounds.
In some embodiments, the external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. The interface may be a composite input/output interface formed by the plurality of interfaces.
In some embodiments, the controller 250 and the modem 210 may be located in different separate devices, that is, the modem 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display apparatus 200. For example: in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation of connecting to a hyperlink page, document, image, etc., or performing an operation of a program corresponding to the icon.
In some embodiments the controller comprises at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM Random Access Memory (RAM), a ROM (Read-Only Memory), a first to nth interface for input/output, a communication Bus (Bus), and the like.
A CPU processor. For executing operating system and application program instructions stored in the memory, and executing various application programs, data and contents according to various interactive instructions receiving external input, so as to finally display and play various audio-video contents. The CPU processor may include a plurality of processors. E.g. comprising a main processor and one or more sub-processors.
In some embodiments, a graphics processor for generating various graphics objects, such as: at least one of an icon, an operation menu, and a user input instruction display figure. The graphic processor comprises an arithmetic unit which carries out operation by receiving various interactive instructions input by a user and displays various objects according to display attributes; the system also comprises a renderer which renders various objects obtained based on the arithmetic unit, and the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform at least one of video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a signal displayed or played on the direct display device 200.
In some embodiments, the video processor includes at least one of a demultiplexing module, a video decoding module, an image composition module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like. And the image synthesis module is used for carrying out superposition mixing processing on the GUI signal input by the user or generated by the user and the video image after the zooming processing by the graphic generator so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received video output signal after the frame rate conversion, and changing the signal to be in accordance with the signal of the display format, such as outputting an RGB data signal.
In some embodiments, the audio processor is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform at least one of noise reduction, digital-to-analog conversion, and amplification processing to obtain a sound signal that can be played in the speaker.
In some embodiments, a user may enter user commands on a Graphical User Interface (GUI) displayed on display 260, and the user input interface receives the user input commands through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include at least one of an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. visual interface elements.
In some embodiments, user interface 280 is an interface that may be used to receive control inputs (e.g., physical keys on the body of the display device, or the like).
In some embodiments, the system of the display device may include a Kernel (Kernel), a command parser (shell), a file system, and an application. The kernel, shell, and file system together make up the basic operating system structure that allows users to manage files, run programs, and use the system. After power-on, the kernel starts, activates kernel space, abstracts hardware, initializes hardware parameters, etc., runs and maintains virtual memory, scheduler, signals and inter-process communication (IPC). And after the kernel is started, loading the Shell and the user application program. The application program is compiled into machine code after being started, and a process is formed.
Referring to fig. 4, in some embodiments, the system is divided into four layers, which are, from top to bottom, an Application (Applications) layer (abbreviated as "Application layer"), an Application Framework (Application Framework) layer (abbreviated as "Framework layer"), an Android runtime (Android runtime) and system library layer (abbreviated as "system runtime library layer"), and a kernel layer.
In some embodiments, at least one application program runs in the application program layer, and the application programs may be windows (windows) programs carried by an operating system, system setting programs, clock programs or the like; or an application developed by a third party developer. In particular implementations, the application packages in the application layer are not limited to the above examples.
The framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions. The application framework layer acts as a processing center that decides to let the applications in the application layer act. The application program can access the resources in the system and obtain the services of the system in execution through the API interface.
As shown in fig. 4, in the embodiment of the present application, the application framework layer includes a manager (Managers), a Content Provider (Content Provider), and the like, where the manager includes at least one of the following modules: an Activity Manager (Activity Manager) is used for interacting with all activities running in the system; a Location Manager (Location Manager) for providing access to the system Location service to the system service or application; a Package Manager (Package Manager) for retrieving various information related to an application Package currently installed on the device; a Notification Manager (Notification Manager) for controlling display and clearing of Notification messages; a Window Manager (Window Manager) is used to manage the icons, windows, toolbars, wallpapers, and desktop components on a user interface.
In some embodiments, the activity manager is used to manage the lifecycle of the various applications as well as general navigational fallback functions, such as controlling exit, opening, fallback, etc. of the applications. The window manager is used for managing all window programs, such as obtaining the size of a display screen, judging whether a status bar exists, locking the screen, intercepting the screen, controlling the change of the display window (for example, reducing the display window, displaying a shake, displaying a distortion deformation, and the like), and the like.
In some embodiments, the system runtime layer provides support for the upper layer, i.e., the framework layer, and when the framework layer is used, the android operating system runs the C/C + + library included in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software. As shown in fig. 4, the core layer includes at least one of the following drivers: audio drive, display driver, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (like fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
The hardware or software architecture in some embodiments may be based on the description in the above embodiments, and in some embodiments, may be based on other similar hardware or software architectures, and may implement the technical solution of the present application.
In some embodiments, to facilitate use of the display device by users in different countries and regions, the display device may be configured to support display of multiple languages, one of which may be selected by the user on the display device and set as the system language. The system program and system interface of the display device may support the presentation in the system language. Some applications installed on the display device may acquire a system language and may expose an interface in the system language if the application also supports the system language, however, if the application does not support the system language, the applications are typically displayed in a preset default language, which may not be familiar to the user, resulting in poor user interaction with the display device.
In order to solve the technical problem, the system language and the preferred language are set on the display device, so that when the application does not support the system language, the application can display according to the preferred language, and the preferred language can be a language familiar to a user, so that the interaction experience of the user and the display device is improved.
In some embodiments, if the part of users facing the display device is japanese familiar with chinese and unfamiliar with english, the system language of the display device may be set to japanese, the preferred language to chinese, and the default language to english.
In some embodiments, when the system language, the preferred language, and the preset default language are other languages, for example, the system language is a Tibetan language, and the preferred language is set to chinese, the embodiments of the present application may also be referred to improve the user experience of the display device.
In some embodiments, the preferred language may include multiple languages, and when the preferred language includes multiple languages, different language priorities may be set for the multiple languages.
In some embodiments, to meet the requirements of some users, the display device may default the system language to japanese, the preferred language to chinese, and the preset default language to english before leaving the factory, that is, the language priority order includes a first order, a second order, and a third order, where the language corresponding to the first order is the system language, the language corresponding to the second order is the preferred language, and the language corresponding to the third order is the preset default language.
In some embodiments, the user may set the system language on the display device himself. After the display device is started, a user can press a menu key on the remote controller to enter a setting interface, in some embodiments, the setting interface can display a language setting control, and after the user triggers the language setting control, the user can enter the language setting interface of the display device, and the user can set a system language in the language setting interface.
In some embodiments, the display device may be configured to automatically adapt the preferred language according to the system language selected by the user, wherein the adaptation rule may be: according to the country to which the system language belongs, the adaptive preference language is the mainstream language of the country, for example, according to the fact that the system language set by the user is Tibetan, and the adaptive preference language is Chinese. Of course, the adaptation rules can be adjusted and updated according to user habits, cultural factors and the like to meet the requirements of more users.
In some embodiments, the display device may store the language priority order in a preset path or a preset file, and may further quickly obtain the current language priority order by searching the preset path or the preset file.
In some embodiments, after the display device configures the language priority order, if the user starts an application, the controller of the display device may control a starting process of the application in the system process, so that the application generates a top page of the application according to the language priority order.
In some embodiments, the display device may control the display to display through the control method of the display language shown in fig. 5.
As shown in fig. 5, the method for controlling the display language may include the steps of:
step S110: and receiving an instruction for starting the application input by a user.
In some embodiments, when the focus of the display device is on an icon of an installed application, the user presses a confirmation key on the remote control to input an instruction to launch the application to the display device.
In some embodiments, the user may also input an instruction to launch the application to the display device by other means, for example, if the display device supports language control, the user may input a voice instruction to the display device to launch an installed application, which may be an instruction to launch the application.
Step S120: responding to the instruction for starting the application, and when the application initializes the resource library, setting a resource sequence in the resource library according to a language priority sequence of display equipment, so that the application acquires resources according to the resource sequence, and generates interface data.
In some embodiments, the display device sends a start signal to an application selected by a user according to an instruction for starting the application, after receiving the start signal, the application generates a resource library of the application in a memory of the display device, and the application can initialize the resource library, so as to load resources in the resource library and generate interface data. The resources in the resource library may be from an installation file of the application, and the resources in the resource library may include content such as icons, layouts, pictures, and the like.
In some embodiments, the display device may control the process of initializing the resource pool, and the control method may refer to fig. 6, including steps S1201-S1204.
Step S1201: and acquiring the language type supported by the application through a preset language identification instruction.
In some embodiments, the display device may obtain the language types supported by the application from the installation file of the application through the language identification instruction when the application initializes the resource library.
In some embodiments, the language identification instruction may be a ResourcesImpl instruction in ams (system process), the instruction may be a system level instruction, language type declaration information may be set in an installation file of the application, and the ResourcesImpl instruction may be configured to obtain the language type declaration information, and obtain a language type supported by the application according to the language type declaration information.
Step S1202: and judging whether the language type supported by the application belongs to the language type in the language priority order of the display device.
In some embodiments, the language types in the language priority order of the display device are all the language types supported by the display device, and the controller of the display device may obtain the language types supported by the application according to the language types in the installation file of the application, and perform matching judgment on the language types supported by the application and the language types supported by the display device.
In some embodiments, the display device may include chinese, english, and french according to the language types supported by the application, the language types in the language priority order of the display device include japanese, chinese, and english, it is determined that chinese and english belong to the language types in the language priority order of the display device, and it is determined that french is not the language type in the language priority order of the display device.
Step S1203: and if the language type supported by the application belongs to the language type in the language priority order of the display equipment, loading the resource corresponding to the language type supported by the application into the resource library of the application.
In some embodiments, when the application initializes the resource library, a system language of the display device may be obtained, and a resource corresponding to the system language and a resource corresponding to a preset default language are loaded into the resource library, where in some embodiments, the preset default language of the application may be english. The display device can add the resources of the language types supported by the application, except the system language and the preset default language, to the resource library of the application according to the language types supported by the display device.
In some embodiments, when the application initializes the repository, the resource to be displayed on the application home page may be loaded into a folder corresponding to a launcher of the application in the repository, so that the application may generate interface data of the home page according to the resource in the folder corresponding to the launcher.
In some embodiments, the resources of different language types are in different resource packages, and the display device may copy the resource package to the resource library of the application in the memory, for example, to a folder corresponding to the initiator, so as to implement that the resource package is loaded to the resource library of the application.
In some embodiments, when the application initializes the resource library, resources of all language types supported by the application may be loaded into the resource library, and at this time, the display device may directly jump to S1204 according to the resources of all language types of the application already existing in the resource library.
In some embodiments, the display device may obtain, in its own language priority order, the language resources of the nth priority in the installation file of the application and load them into the resource base of the application, where N is greater than or equal to 2, for example, N =3, then obtain the language resources of the (N-1) th priority in the installation file of the application and load them into the resource base of the application, and so on, obtain the language resources of the first priority in the installation file of the application and load them into the resource base of the application, and if the application does not support a language type of a certain priority, may skip the priority and load the language resources of a higher priority into the resource base of the application until all the language types supported by the display device are loaded into the resource base of the application.
Step S1204: and arranging the resource packages corresponding to different language types in the resource library according to the sequence of the language priority of the display equipment from large to small.
In some embodiments, the display device may sort the language resources of the resource library after adding the language resources, and the display device may sort the resource packages of different language types according to a descending order of the language priority of the display device, so that the resource package with a higher language priority is sorted relatively earlier and the resource package with a lower language priority is sorted relatively later.
In some embodiments, the application generates interface data according to resources in the resource library, wherein when acquiring resources in the resource library, the application can acquire resources according to the sequence of the resource packages and preferentially acquire resources of the resource packages ranked in the top, so that according to the resource library initialization method in the embodiments of the present application, when loading resources, the application can preferentially acquire resources with a high language priority, and if resources required by generating an interface of the application are not generated in the resource package with the language priority, corresponding resources can be acquired from the resource package with the next priority, and so on.
Step S130: and controlling the display to display the interface of the application according to the interface data.
In some embodiments, after the application has loaded the resources required for the interface, the application generates interface data and sends the interface data to the controller of the display device, and the controller of the display device may receive the interface data and send the interface data to the display for display.
In some embodiments, the interface data sent by the application to the controller of the display device is interface data of a home page of the application, and the display device may display the home page after the application is started according to the interface data.
According to the control method for displaying the languages, after an application on the display equipment is started, the resources needing to be displayed can be obtained according to the resource sequence set by the display equipment, the resource sequence is determined according to the language priority sequence of the display equipment, when the application needs to generate a home page, if the home page resources corresponding to the system language do not exist but the home page resources corresponding to the preference language exist, the resources of the preference language can be obtained preferentially for displaying due to the fact that the priority of the resources of the preference language is higher than the priority of the resources of the preset default language.
Referring to fig. 7, when the application supports the system language, the display device may control the display to display an interface of the application in the system language according to the interface data, as shown in fig. 7, where the application is a media center APP, and in this scenario, the interface displayed by the display device may be an application interface in japanese.
Referring to fig. 8, when the application does not support the system language and supports the preferred language, the display device may control the display to display an interface of the application in the preferred language according to the interface data, as shown in fig. 8, or, taking the media center APP as an example, in this scenario, the interface displayed by the display device may be an application interface in chinese.
In some embodiments, when the application does not support the system language or the preferred language, the display device may control the display to display an interface of the application in a preset default language according to the interface data.
In some embodiments, when a user operates in an application, an interface of the application may jump from a home page of the application to another page, and when the application generates interface data of another page, resources required for generating the interface may also be acquired according to a resource sequence in the resource library.
In some embodiments, an application may need multiple resources to generate an interface, in an actual use process, resources in a resource package of one language type may only support a part of scenarios, and when the application acquires resources in the resource package according to a resource order, if a certain resource corresponding to the interface to be generated cannot be found, a corresponding resource of a resource package of a next language priority may be found according to the resource order, and so on until a required resource is found. Because the resource sequence is set according to the language priority sequence, when the application searches for a certain resource, if the resource corresponding to the system language does not exist in the resource library, the resource corresponding to the preferred language and the preset default language exists, and the application can preferentially acquire the resource corresponding to the preferred language.
For example, in an application provided with a japanese resource package, a chinese resource package, and an english resource package, since a technician does not adapt a japanese resource, the japanese resource package may omit a control of a top page, such as the japanese name of the control a, in this scenario, by using the methods described in fig. 5 and fig. 6, when the application loads the control a, after the japanese resource package cannot find the icon name of the control a, the resource package of a second priority language, that is, the chinese resource package, obtains the icon name of the control a from the chinese resource package, and then loads the icon name to an application interface, so that the chinese name of the control a on a display device and other resources on the interface can still be displayed as japanese, thereby not displaying all resources of the interface as chinese, and improving the viewing experience of a user.
In some embodiments, the display device may also adopt other control methods to solve the problem that when the application does not support the system language, the display is performed directly according to the preset default language. For example, when an application is installed, the language type supported by the application is obtained by scanning an installation package of the application, and if the application supports the current system language, the identifier of the system language can be sent to the application when the application acquires the system language, so that the application loads the resource corresponding to the system language and completes installation; if the application does not support the current system language and supports the preference language in the language priority order of the display device, the identifier of the preference language can be sent to the application when the application acquires the system language, so that the application loads the resource corresponding to the preference language and completes the installation. After the application is installed, if the user starts the application, the application may load the resources needed for the display interface according to the language selected for installation.
According to the embodiment, the language priority order is set on the display device, when the resource library is initialized by the application, the resource order of the resource library is set according to the language priority order, so that the application can acquire resources according to the resource order to generate interface data, and the problem that when the application does not support a system language, the user experience is poor due to the fact that the display is performed according to the preset default language is solved.
Since the above embodiments are all described by referring to and combining with other embodiments, the same portions are provided between different embodiments, and the same and similar portions between the various embodiments in this specification may be referred to each other. And will not be described in detail herein.
It is noted that, in this specification, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a circuit structure, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such circuit structure, article, or apparatus. Without further limitation, the phrases "comprising a" \8230; "defining an element do not exclude the presence of additional like elements in circuit structures, articles, or devices comprising the element.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
The above embodiments of the present application do not limit the scope of the present application.

Claims (8)

1. A display device, comprising:
a display;
a controller configured to:
receiving an application starting instruction input by a user;
responding to the instruction for starting the application, and acquiring the language type supported by the application through a preset language identification instruction when a resource library of the application is initialized;
judging whether the language type supported by the application belongs to the language type in the language priority order of the display equipment or not;
if the language type supported by the application belongs to the language type in the language priority order of the display equipment, loading the resource packages corresponding to all the language types supported by the application and the display equipment into the resource library of the application;
arranging resource packages corresponding to different language types in the resource library according to the order of language priority of the display equipment from big to small, enabling the application to obtain resources of a first resource package which is arranged at the front according to the order of the resource packages, detecting whether all resources required for generating an interface of the application are contained in the first resource package, if the first resource package only contains first resources required for generating the interface and lacks second resources required for generating the interface, sequentially detecting whether resource packages arranged behind the first resource package contain second resources according to the order of the resource packages until the second resources are obtained from a second resource package arranged behind the first resource package, and loading the first resources in the first resource package and the second resources in the second resource package to obtain interface data, wherein the first resources and the second resources are used for displaying different controls;
and controlling the display to display the interface of the application according to the interface data.
2. The display device according to claim 1, wherein the language priority order of the display device comprises a first order, a second order and a third order, wherein the language corresponding to the first order is a system language, the language corresponding to the second order is a preferred language, and the language corresponding to the third order is a preset default language.
3. The display device according to claim 2, wherein the controlling the display to display the interface of the application according to the interface data comprises:
and when the application supports the system language, controlling the display to display the interface of the application under the system language according to the interface data.
4. The display device according to claim 1, wherein the controlling the display to display the interface of the application according to the interface data comprises:
and when the application does not support the system language and supports the preference language, controlling the display to display the interface of the application in the preference language according to the interface data.
5. A control method of a display language for a display device, comprising:
receiving an application starting instruction input by a user;
responding to the instruction for starting the application, and acquiring the language type supported by the application through a preset language identification instruction when the application initializes a resource library;
judging whether the language type supported by the application belongs to the language type in the language priority order of the display equipment or not;
if the language type supported by the application belongs to the language type in the language priority order of the display equipment, loading the resource packages corresponding to all the language types supported by the application and the display equipment into the resource library of the application;
arranging resource packages corresponding to different language types in the resource library according to the order of language priority of the display equipment from big to small, enabling the application to obtain resources of a first resource package which is arranged at the front according to the order of the resource packages, detecting whether all resources required for generating an interface of the application are contained in the first resource package, if the first resource package only contains first resources required for generating the interface and lacks second resources required for generating the interface, sequentially detecting whether resource packages arranged behind the first resource package contain second resources according to the order of the resource packages until the second resources are obtained from a second resource package arranged behind the first resource package, and loading the first resources in the first resource package and the second resources in the second resource package to obtain interface data, wherein the first resources and the second resources are used for displaying different controls;
and controlling the display to display the interface of the application according to the interface data.
6. The method for controlling display language according to claim 5, wherein the language priority order of the display device includes a first order, a second order and a third order, wherein the language corresponding to the first order is a system language, the language corresponding to the second order is a preferred language, and the language corresponding to the third order is a preset default language.
7. The method for controlling the display language according to claim 5, wherein the controlling the display to display the interface of the application according to the interface data comprises:
and when the application does not support the system language and supports the preference language, controlling the display to display the interface of the application in the preference language according to the interface data.
8. The method for controlling the display language according to claim 5, wherein the controlling the display to display the interface of the application according to the interface data comprises:
and when the application supports the system language, controlling the display to display the interface of the application under the system language according to the interface data.
CN202011495480.5A 2020-12-17 2020-12-17 Display device and control method of display language Active CN112835633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011495480.5A CN112835633B (en) 2020-12-17 2020-12-17 Display device and control method of display language

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011495480.5A CN112835633B (en) 2020-12-17 2020-12-17 Display device and control method of display language

Publications (2)

Publication Number Publication Date
CN112835633A CN112835633A (en) 2021-05-25
CN112835633B true CN112835633B (en) 2022-11-11

Family

ID=75923677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011495480.5A Active CN112835633B (en) 2020-12-17 2020-12-17 Display device and control method of display language

Country Status (1)

Country Link
CN (1) CN112835633B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550006A (en) * 2016-02-01 2016-05-04 广东欧珀移动通信有限公司 Application program language setting method and mobile terminal
CN105979403A (en) * 2016-05-10 2016-09-28 天脉聚源(北京)传媒科技有限公司 Method and device for selecting identification version of video resource automatically
CN110457085A (en) * 2019-07-10 2019-11-15 北京奇艺世纪科技有限公司 Document handling method, device, terminal device and computer-readable medium
CN110990105A (en) * 2019-12-10 2020-04-10 北京小米移动软件有限公司 Interface display method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714086A (en) * 2009-12-22 2010-05-26 中兴通讯股份有限公司 Method and device for choosing software interface languages
CN103164245B (en) * 2013-03-19 2016-11-23 华为终端有限公司 The method of application display language-specific and terminal
CN104123150A (en) * 2013-04-28 2014-10-29 百度在线网络技术(北京)有限公司 Language resource management method and device for application program
CN105094905B (en) * 2015-07-21 2018-09-11 北京金山安全软件有限公司 Method and device for dynamically loading language resources
CN105824633A (en) * 2016-03-16 2016-08-03 北京小米移动软件有限公司 Multi-language resource switching method and device of application program
CN109634684B (en) * 2018-12-07 2022-04-01 万兴科技股份有限公司 Method and device for loading language to application program, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550006A (en) * 2016-02-01 2016-05-04 广东欧珀移动通信有限公司 Application program language setting method and mobile terminal
CN105979403A (en) * 2016-05-10 2016-09-28 天脉聚源(北京)传媒科技有限公司 Method and device for selecting identification version of video resource automatically
CN110457085A (en) * 2019-07-10 2019-11-15 北京奇艺世纪科技有限公司 Document handling method, device, terminal device and computer-readable medium
CN110990105A (en) * 2019-12-10 2020-04-10 北京小米移动软件有限公司 Interface display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112835633A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN112672195A (en) Remote controller key setting method and display equipment
CN114302201B (en) Method for automatically switching on and off screen in sound box mode, intelligent terminal and display device
CN113395556A (en) Display device and method for displaying detail page
CN113490042A (en) Display device and channel searching method
CN112165641A (en) Display device
CN112612525A (en) Display device and display device starting method
CN113794914B (en) Display equipment and method for configuring startup navigation
CN112584229A (en) Method for switching channels of display equipment and display equipment
CN112256449A (en) Interface calling method of webpage application program, display equipment and server
CN113542852B (en) Display device and control method for fast pairing with external device
CN113132809B (en) Channel switching method, channel program playing method and display equipment
CN113064691B (en) Display method and display equipment for starting user interface
CN112835633B (en) Display device and control method of display language
CN113286185A (en) Display device and homepage display method
CN116340680A (en) Display equipment and control method for managing life cycle of plug-in object
CN112637683A (en) Display equipment system optimization method and display equipment
CN113064534A (en) Display method and display equipment of user interface
CN113703705A (en) Display device and list updating method
CN112668546A (en) Video thumbnail display method and display equipment
CN112584210A (en) Display device, video recording method and recorded file display method
CN113971049A (en) Background service management method and display device
CN114390190A (en) Display equipment and method for monitoring application to start camera
CN111787350A (en) Display device and screenshot method in video call
CN113076042B (en) Local media resource access method and display device
CN111913755B (en) Application scanning method and display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant