Unlock instant, AI-driven research and patent intelligence for your innovation.
Method and device for displaying interfaces
What is Al technical title?
Al technical title is built by PatSnap Al team. It summarizes the technical point description of the patent document.
An interface display and interface technology, applied in the direction of program control devices, etc., can solve the problems of all storage in the database, the difficulty of maintaining static text, and the large amount of modification work.
Active Publication Date: 2015-02-25
SHANGHAI CTRIP COMMERCE CO LTD
View PDF3 Cites 15 Cited by
Summary
Abstract
Description
Claims
Application Information
AI Technical Summary
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
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
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
Examples
Experimental program
Comparison scheme
Effect test
Embodiment 1
[0115] refer to figure 1 with figure 2 , the interface display method described in this embodiment includes the following steps:
[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:
[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
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
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.