Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Interface display method and device

A technology of interface display and interface, which is applied in the direction of instruments, electrical digital data processing, calculation, etc., can solve the problems of inflexible configuration, difficult maintenance of static text, and all storage in the database

Active Publication Date: 2018-07-20
SHANGHAI CTRIP COMMERCE CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] The technical problem to be solved by the present invention is to overcome the localization schemes in the prior art that either all use resource file configuration or all store in the database. For the defect that it is difficult to maintain static text, a multilingual interface display method and device are provided, which combines the use of resource files and databases, making the configuration more flexible, reducing the difficulty of maintenance, and making data modification more convenient

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface display method and device
  • Interface display method and device
  • Interface display method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0115] refer to figure 1 and figure 2 , the interface display method described in this embodiment includes the following steps:

[0116] For static data:

[0117] S 1 , Define multilingual resource files;

[0118] S 2 , Define the entity class for the interface, and the entity class corresponds to the resource file;

[0119] S 3 , The interface elements of the binding interface and the entity class attributes of the entity class make the interface elements correspond to the entity class attributes one by one;

[0120] S 4 , interface rendering;

[0121] S 5 , Select a resource file corresponding to the current language according to the current language, and use the resource file to assign a value to each entity class attribute of the entity class;

[0122] S 6 , Assign the value of each entity class attribute to the corresponding interface element,

[0123] For dynamic data:

[0124] S T1 , Get the dynamic data to be translated from the data source;

[0125] S ...

Embodiment 2

[0169] The interface display method described in this embodiment includes the following steps:

[0170] For static data:

[0171] S 1 , Define a multilingual database;

[0172] S 2 , Define the entity class for the interface, and the entity class corresponds to the database;

[0173] S 3 , The interface elements of the binding interface and the entity class attributes of the entity class make the interface elements correspond to the entity class attributes one by one;

[0174] S 4 , interface rendering;

[0175] S 5 . Select a database corresponding to the current language according to the current language, and use the database to assign values ​​to each entity class attribute of the entity class;

[0176] S 6 , Assign the value of each entity class attribute to the corresponding interface element,

[0177] For dynamic data:

[0178] S T1 , Get the dynamic data to be translated from the data source;

[0179] S T2 , Obtain multilingual data from the database;

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for displaying interfaces. The method includes for static data, defining multi-language resource files; defining entity classes for the interfaces; binding interface elements of the interfaces and entity class attributes of the entity classes; rendering the interfaces; assigning values for each entity class attribute of the corresponding attribute class by the aid of the corresponding resource files; assigning the values of each entity class attribute to the corresponding interface elements; for dynamic data, acquiring to-be-translated dynamic data from data sources; acquiring multi-language data from databases; translating the dynamic data by the aid of the multi-language data; for the static data and the dynamic data, displaying the interface elements with the assigned values and the translated dynamic data. The method and the device have the advantages that the entity classes are introduced, so that Web pages can be bound with the entity classes; the resource files and the databases can be simultaneously utilized, so that simultaneous usage of the resource files and the databases can be localized, and localized data files can be flexibly configured.

Description

technical field [0001] The invention relates to an interface display method and device, in particular to a multilingual interface display method and device. Background technique [0002] With the widespread application of e-commerce, the international situation is becoming more and more open, and the demand for localization is increasing, so the localization of the site is becoming more and more important. At present, most localization solutions are implemented using the following two solutions: [0003] First, all resource file configurations are used, but they cannot cope with the high maintenance frequency and large data volume of dynamic data. Resource files (with a .res file extension) contain bitmaps, strings, and other data that can be changed without reediting the code. For example, if you plan to localize your application in a foreign language, you can store all the text strings and bitmaps for the user interface in resource files and then localize the resource fi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/38
Inventor 陈冬张霖
Owner SHANGHAI CTRIP COMMERCE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products