Method and device for displaying interface, electronic equipment, server, and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorYongqing Dong
Life of this patent
Estimating the term…
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.
Claims15
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.
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.
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.
15-18. (canceled)
Dependencies are inferred from the claim text.