# US 2021/0173681 A1 · Method and device for displaying interface, electronic equipment, server, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0173681 A1
- Document ID: US20210173681A1
- Status: Published application
- Kind: A1
- Application number: 16/882,261
- Filed: 2020-05-22
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Beijing Xiaomi Mobile Software Co., Ltd.
- Applicants: Beijing Xiaomi Mobile Software Co., Ltd.
- Inventors: Yongqing Dong
- Web page: https://patentgrep.com/patent/US20210173681A1

## CPC

- G06F 9/454: {Multi-language systems; Localisation; Internationalisation}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 3/0481: 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
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the disclosure are directed to a system and method for displaying an interface, where interface data of a to-be-displayed interface of a first target application (APP) are acquired. A first request is sent to a server. At least one language resource returned by the server is received. For each interface element in the interface data, a target language resource corresponding to the each interface element in the interface data is determined in the at least one language resource. The to-be-displayed interface of the first target APP is displayed based on the interface data and the target language resource.

## Claims

### Claim 1

A method for displaying an interface, comprising:
sending a server a request for a target language environment the request for the target language environment comprising information on a location of a first target application (APP);
receiving the target language environment returned by the server;
acquiring interface data having interface elements of a to-be-displayed interface of the first target APP;
sending a first request to the server;
receiving at least one language resource returned by the server;
determining, in the at least one language resource, a target language resource corresponding to each interface element in the interface data; and
displaying the to-be-displayed interface of the first target APP based on the interface data and the target language resource corresponding to each interface element in the interface data.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
the at least one language resource includes language resources in multiple language environments corresponding to the first target APP, and
determining, in the at least one language resource, the target language resource corresponding to each interface element in the interface data further comprises:
determining the target language resource corresponding to each interface element in the interface data in the at least one language resource according to the target language environment and each interface element in the interface data.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
each language resource in the at least one language resource includes a language identifier and an interface element identifier, the language identifier being adapted to identifying a language environment corresponding to the each language resource, and the interface element identifier being adapted to identifying an interface element corresponding to the each language resource, and
determining the target language resource corresponding to the each interface element in the interface data in the at least one language resource according to the target language environment and each interface element in the interface data further comprises:
determining, in the at least one language resource according to the target language environment, the language identifier, each interface element in the interface data, and the interface element identifier, the target language resource matching the target language environment and each interface element in the interface data.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
the at least one language resource includes a language resource corresponding to the first target APP in the target language environment,
each language resource in the at least one language resource includes an interface element identifier, the interface element identifier being adapted to identifying an interface element corresponding to each language resource, and
determining, in the at least one language resource, the target language resource corresponding to the each interface element in the interface data further comprises:
determining, in the at least one language resource according to the interface element identifier, the target language resource matching each interface element in the interface data.

### Claim 5 (depends on 1)

The method of claim 1, wherein the displaying the to-be-displayed interface of the first target APP based on the interface data and the target language resource corresponding to each interface element in the interface data further comprises:
assigning the target language resource to each interface element in the interface data; and
displaying each interface element in the interface data that has been assigned the target language resource in the to-be-displayed interface of the first target APP according to the interface data.

### Claim 6 (depends on 1)

The method of claim 1, wherein acquiring the interface data having the interface elements of the to-be-displayed interface of the first target APP comprises:
sending a second request to the server to acquire the interface data of the to-be-displayed interface of the first target APP; and
receiving the interface data returned by the server.

### Claim 7

A method for displaying an interface, comprising:
receiving a request for a target language environment sent by electronic equipment, the request for the target language environment comprising information on a location of a first target application (APP);
determining the target language environment corresponding to the first target APP according to the information on the location;
returning the target language environment to the electronic equipment;
receiving a first request sent by the electronic equipment, the first request including at least an APP identifier of the first target APP;
acquiring a language resource file corresponding to the first target APP according to the APP identifier;
acquiring at least one language resource by parsing the language resource file; and
returning the at least one language resource to the electronic equipment.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
the first request further includes the target language environment corresponding to the first target APP, and
acquiring the at least one language resource by parsing the language resource file further comprises:
acquiring multiple language resources by parsing the language resource file; and
selecting, in the multiple language resources, the at least one language resource matching the target language environment.

### Claim 9

Electronic equipment, comprising a processor and a non-transitory memory that is adapted to store an instruction executable by the processor, the processor being adapted to:
send a server a request for a target language environment, the request for the target language environment comprising information on a location of a first target application (APP);
receive the target language environment returned by the server;
acquire interface data having interface elements of a to-be-displayed interface of the first target APP;
send a first request to the server;
receive at least one language resource returned by the server;
determine, in the at least one language resource, a target language resource corresponding to each interface element in the interface data; and
display the to-be-displayed interface of the first target APP based on the interface data and the target language resource corresponding to each interface element in the interface data.

### Claim 10 (depends on 9)

The electronic equipment of claim 9, wherein:
the at least one language resource includes language resources in multiple language environments corresponding to the first target APP, and
when determining, in the at least one language resource, the target language resource corresponding to the each interface element in the interface data, the processor is further adapted to:
determine, in the at least one language resource according to the target language environment and each interface element in the interface data, the target language resource corresponding to each interface element in the interface data.

### Claim 11 (depends on 10)

The electronic equipment of claim 10, wherein:
each language resource in the at least one language resource includes a language identifier and an interface element identifier, the language identifier being adapted to identifying a language environment corresponding to the each language resource, and the interface element identifier being adapted to identifying an interface element corresponding to the each language resource, and
when determining, in the at least one language resource according to the target language environment and each interface element in the interface data, the target language resource corresponding to each interface element in the interface data, the processor is further adapted to:
determine, in the at least one language resource according to the target language environment, the language identifier, each interface element in the interface data, and the interface element identifier, the target language resource matching the target language environment and each interface element in the interface data.

### Claim 12 (depends on 9)

The electronic equipment of claim 9, wherein:
the at least one language resource includes a language resource corresponding to the first target APP in the target language environment,
each language resource in the at least one language resource includes an interface element identifier, the interface element identifier being adapted to identifying an interface element corresponding to the each language resource, and
when determining, in the at least one language resource, the target language resource corresponding to the each interface element in the interface data, the processor is further adapted to:
determine, in the at least one language resource according to the interface element identifier, the target language resource matching each interface element in the interface data.

### Claim 13 (depends on 9)

The electronic equipment of claim 9, wherein when displaying the to-be-displayed interface of the first target APP based on the interface data and the target language resource corresponding to the each interface element in the interface data, the processor is further adapted to:
assign the target language resource to each interface element in the interface data; and
display, in the to-be-displayed interface of the first target APP according to the interface data, each interface element in the interface data that has been assigned the target language resource.

### Claim 14 (depends on 9)

The electronic equipment of claim 9, wherein the processor is further adapted to acquire the interface data having the interface elements of the to-be-displayed interface of the first target APP by:
sending a second request to the server to acquire the interface data of the to-be-displayed interface of the first target APP; and
receiving the interface data returned by the server.

### Claim at position 15

15-18. (canceled)
