CN103049260A - Method and system for displaying user interface of software at client - Google Patents
Method and system for displaying user interface of software at client Download PDFInfo
- Publication number
- CN103049260A CN103049260A CN2012105286472A CN201210528647A CN103049260A CN 103049260 A CN103049260 A CN 103049260A CN 2012105286472 A CN2012105286472 A CN 2012105286472A CN 201210528647 A CN201210528647 A CN 201210528647A CN 103049260 A CN103049260 A CN 103049260A
- Authority
- CN
- China
- Prior art keywords
- user interface
- software
- client
- language
- xml file
- 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.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and system for displaying a user interface of software at a client. The method for displaying the user interface of the software at the client includes: A, receiving language types selected by a user when the software logs in; B, analyzing an extensive makeup language (XML) file, and configuring character information of a plurality of language types used by the user interface and prompt information in advance in the XML file; and C, outputting the user interface and the prompt information. The system for displaying the user interface of the software at the client is further provided. Data formats are described in the XML file, change of a software system caused by increase, modification and deletion of the data formats can be avoided, relative stability of the system is kept, flexibility of the system during processing of multi-language data is improved also, and the system can complete switch of various languages rapidly.
Description
Technical field
The present invention relates to software field, relate in particular to a kind of user interface of software in display packing and the system of client.
Background technology
Along with the development of information interchange globalization, no longer be towards a country as a large system, so relevant software systems also need to adopt multilingual external issue, provide the software of multi-language version.
The tight coupling of client user interface exploitation has caused very large difficulty to the subsequent process of software development and software transplanting and reusing of each stage work of software development, and user interface development has a large amount of spoken and written languages information, it is the important component part of software systems, main reception user's input message and the result that display routine is processed of being responsible for, in a sense, for the user, the user interface of client is exactly whole system.
Traditional software development generally is the program of developing first a kind of language version, then develops on demand multilingual installation kit, and this mode has been brought very large difficulty to upgrading and the maintenance of software version.When needs switch other language, to revise resource file by static state and finish, and need to recompilate the generation executable file, efficient descends greatly.
Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned when needs switch other Languages for prior art, need the static resource file of revising, and need to recompilate defective, display packing and the system of a kind of user interface of software in client are provided, when needs switch other Languages, do not need to revise resource file, do not need to recompilate yet.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of user interface of software in the display packing of client, comprising:
A. when logining, software receives the category of language of user selection;
B. according to selected category of language, the XML file is resolved, wherein, the Word message with user interface and the used multilingual kind of information is configured in the XML file in advance;
C. export user interface and information.
In the display packing of user interface in client of software of the present invention, in described step B, come the analyzing XML file with DOM Document Object Model.
In the display packing of user interface in client of software of the present invention, described step C is:
Control output user interface and information by graphic user interface.
The present invention also constructs a kind of user interface of software in the display system of client, comprising:
Receiver module is for the category of language that receives user selection when software is logined;
Parsing module is used for according to selected category of language, and the XML file is resolved, and wherein, the Word message with user interface and the used multilingual kind of information is configured in the XML file in advance;
Output module is used for output user interface and information.
In the display system of user interface in client of software of the present invention, described parsing module comes the analyzing XML file with DOM Document Object Model.
In the display system of user interface in client of software of the present invention,
Described output module is by control output user interface and the information of graphic user interface.
Implement technical scheme of the present invention, by the pre-configured XML file that comprises multilingual words information, when logining software, the user selects needed languages, then according to selected languages the XML file is resolved, like this can be in user interface and the information of the corresponding languages of client output.Like this, can realize the independence of user interface definition and specific procedure design and development platform.Data of description form in the XML file, the change of the software systems that can avoid increasing newly, revise, deleting of factor data form and cause, the relative stability that has not only kept system, system also improved the dirigibility of system when processing multi-language data, so that can finish the switching of various language fast.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is that the user interface of software of the present invention is at the process flow diagram of the display packing embodiment one of client;
Fig. 2 is that the user interface of software of the present invention is at the logical diagram of the display system embodiment one of client.
Embodiment
Fig. 1 be the user interface of software of the present invention at the process flow diagram of the display packing embodiment one of client, the user interface of this software comprises in the display packing of client:
A. receive the category of language of user selection when software is logined, about this step, it should be noted that, the user selects a kind of language to enter client end interface when login software, and client just can be remembered user's selection and mark;
B. according to selected category of language, the XML file is resolved, wherein, Word message with user interface and the used multilingual kind of information is configured in the XML file in advance, about this step, it should be noted that, the Word message that in advance user interface of software will be used is configured in the self-defining XML file, can be according to developer's habitual definition, form is simple, be convenient to management, and is easy to expansion.For example, in an example, the content of a node is:<ZH〉alarm level</ZH 〉,<EN〉AlarmLevel</EN 〉, wherein<and ZH〉node is corresponding to Chinese,<EN〉node is corresponding to English, and the user can expand as required accordingly, as<KR〉corresponding Korean etc.;
C. export user interface and information.
Implement the technical scheme of this embodiment, by the pre-configured XML file that comprises multilingual words information, when logining software, the user selects needed languages, then according to selected languages the XML file is resolved, like this can be in user interface and the information of the corresponding languages of client output.Like this, can realize the independence of user interface definition and specific procedure design and development platform.Data of description form in the XML file, the change of the software systems that can avoid increasing newly, revise, deleting of factor data form and cause, the relative stability that has not only kept system, system also improved the dirigibility of system when processing multi-language data, so that can finish the switching of various language fast.
Preferably, in step B, can use DOM(Document Object Model, the document object pattern) come the XML file is resolved, DOM is the analysis mode with platform and language independent.DOM can be understood as a kind of tree-shaped hierarchical structure, and namely DOM becomes one tree to an XML File Mapping, and each node (Node) on the tree is an object.Certain logical relation is arranged, for example set membership, neighborhood between the node.In addition, node has separately attribute and interface according to the difference of type.By calling API(Application Programming Interface, application programming interface) travels through these nodes, call attribute and the interface of node, then the control by graphic user interface (for example, button, label, text box) just can export user interface and information, like this, each control and client Pop-up message for client, the language of selecting when the capital is logined according to the user, in the XML file, read configuration information, finally the user interface in client shows, and realizes the unitarity of user interface.It should be noted that at this, graphic user interface is combined by various controls, all are presented on the computer screen and can carry out mutual object with the user in patterned mode and can be called control, control also has the text description information that shows spatially except having the attributes such as position, width and height.
Fig. 2 is that the user interface of software of the present invention is at the logical diagram of the display system embodiment one of client, this user interface comprises receiver module 10, parsing module 20 and the output module 30 that is connected in the display system of client, wherein, receiver module 10 is used for receiving the category of language of user selection when software is logined; Parsing module 20 is used for according to selected category of language, and the XML file is resolved, and wherein, the Word message with user interface and the used multilingual kind of information is configured in the XML file in advance; Output module 30 is used for output user interface and information.
Preferably, parsing module comes the analyzing XML file with DOM Document Object Model.In addition, export user interface and information by the control of graphic user interface.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within the claim scope of the present invention.
Claims (6)
1. the user interface of a software is characterized in that in the display packing of client, comprising:
A. when logining, software receives the category of language of user selection;
B. according to selected category of language, the XML file is resolved, wherein, the Word message with user interface and the used multilingual kind of information is configured in the XML file in advance;
C. export user interface and information.
2. the user interface of software according to claim 1 is characterized in that in the display packing of client, in described step B, comes the analyzing XML file with DOM Document Object Model.
3. the user interface of software according to claim 2 is characterized in that in the display packing of client, and described step C is:
Control output user interface and information by graphic user interface.
4. the user interface of a software is characterized in that in the display system of client, comprising:
Receiver module is for the category of language that receives user selection when software is logined;
Parsing module is used for according to selected category of language, and the XML file is resolved, and wherein, the Word message with user interface and the used multilingual kind of information is configured in the XML file in advance;
Output module is used for output user interface and information.
5. the user interface of software according to claim 4 is characterized in that in the display system of client, and described parsing module comes the analyzing XML file with DOM Document Object Model.
6. the user interface of software according to claim 5 is characterized in that in the display system of client, and described output module is by control output user interface and the information of graphic user interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105286472A CN103049260A (en) | 2012-12-10 | 2012-12-10 | Method and system for displaying user interface of software at client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105286472A CN103049260A (en) | 2012-12-10 | 2012-12-10 | Method and system for displaying user interface of software at client |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103049260A true CN103049260A (en) | 2013-04-17 |
Family
ID=48061912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105286472A Pending CN103049260A (en) | 2012-12-10 | 2012-12-10 | Method and system for displaying user interface of software at client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103049260A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366059A (en) * | 2013-07-08 | 2013-10-23 | 国电南瑞科技股份有限公司 | Model data description method for secondary equipment of substation simulation and training system |
CN103617046A (en) * | 2013-12-12 | 2014-03-05 | 用友软件股份有限公司 | Method and device for scanning and extracting resources to be translated in target system source codes |
CN103778211A (en) * | 2014-01-16 | 2014-05-07 | 北京乐动卓越科技有限公司 | Method and device for switching language of mobile terminal game software |
CN104808970A (en) * | 2014-01-23 | 2015-07-29 | 深圳中兴网信科技有限公司 | Method and system for realizing internationalized software |
CN105573993A (en) * | 2015-12-31 | 2016-05-11 | 深圳市科陆电子科技股份有限公司 | Software multi-language translation method and system |
CN109445890A (en) * | 2018-10-09 | 2019-03-08 | 北京达佳互联信息技术有限公司 | A kind of method for showing interface, device, terminal device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120198218A1 (en) * | 2011-01-27 | 2012-08-02 | Wyse Technology Inc. | Generating, validating and applying custom extensible markup language (xml) configuration on a client having a windows-based embedded image |
CN102810060A (en) * | 2011-06-01 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Method and device for configuring Android picture resource |
-
2012
- 2012-12-10 CN CN2012105286472A patent/CN103049260A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120198218A1 (en) * | 2011-01-27 | 2012-08-02 | Wyse Technology Inc. | Generating, validating and applying custom extensible markup language (xml) configuration on a client having a windows-based embedded image |
CN102810060A (en) * | 2011-06-01 | 2012-12-05 | 腾讯科技(深圳)有限公司 | Method and device for configuring Android picture resource |
Non-Patent Citations (1)
Title |
---|
佚名: "Android:多语言对应", 《HTTP://WWW.CNBLOGS.COM/WUYUNAN/ARCHIVE/2009/09/16/1567960.HTML》, 16 September 2009 (2009-09-16), pages 1 - 4 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366059A (en) * | 2013-07-08 | 2013-10-23 | 国电南瑞科技股份有限公司 | Model data description method for secondary equipment of substation simulation and training system |
CN103366059B (en) * | 2013-07-08 | 2016-05-04 | 国电南瑞科技股份有限公司 | A kind of Substation Training Simulator secondary device model data describing method |
CN103617046A (en) * | 2013-12-12 | 2014-03-05 | 用友软件股份有限公司 | Method and device for scanning and extracting resources to be translated in target system source codes |
CN103617046B (en) * | 2013-12-12 | 2017-05-24 | 用友网络科技股份有限公司 | Method and device for scanning and extracting resources to be translated in target system source codes |
CN103778211A (en) * | 2014-01-16 | 2014-05-07 | 北京乐动卓越科技有限公司 | Method and device for switching language of mobile terminal game software |
CN103778211B (en) * | 2014-01-16 | 2017-08-18 | 北京乐动卓越科技有限公司 | The language switching method and device of game of mobile terminal software |
CN104808970A (en) * | 2014-01-23 | 2015-07-29 | 深圳中兴网信科技有限公司 | Method and system for realizing internationalized software |
CN104808970B (en) * | 2014-01-23 | 2018-08-07 | 深圳兴路通科技有限公司 | A kind of method and system for realizing internationalized software |
CN105573993A (en) * | 2015-12-31 | 2016-05-11 | 深圳市科陆电子科技股份有限公司 | Software multi-language translation method and system |
CN109445890A (en) * | 2018-10-09 | 2019-03-08 | 北京达佳互联信息技术有限公司 | A kind of method for showing interface, device, terminal device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101916192B (en) | Multi-language switching method and device for user interface | |
CN102096588B (en) | Control-containing page establishing method | |
CN103049260A (en) | Method and system for displaying user interface of software at client | |
CN101694603B (en) | Cross-platform Mongolian display and intelligent input method based on Unicode | |
US9817811B2 (en) | Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method | |
US20130117657A1 (en) | Designing interactive web templates | |
CN104407863A (en) | Abstract control model programming device and method | |
CN110968294B (en) | Business domain model establishing system and method | |
CN110297636A (en) | A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device | |
CN102609252A (en) | Intelligent configuration method for logic menu resources on basis of measurement instruments | |
CN103020237A (en) | Webpage updating method and device | |
US20230222286A1 (en) | Dynamically generating documents using natural language processing and dynamic user interface | |
CN115495069A (en) | Model-driven coal industry software flow implementation method, device and equipment | |
CN103810292A (en) | Method and device for configuring graphical interface | |
CN106873989A (en) | Application program building method and device | |
CN103593188A (en) | System and method for managing what-you-see-is-what-you-get menus of instrument | |
CN109783083A (en) | WEB application development approach and its system | |
CN110929100B (en) | Method and device for acquiring value taking path, storage medium and electronic equipment | |
CN101303663A (en) | Simulation test method for digital set-top box software development | |
CN115809058A (en) | Method and related device for generating user interface framework logic tree | |
CN101252650A (en) | Television set OSD generating and display control device and method | |
KR20040103497A (en) | Method and apparatus for generating a graphical user interface | |
CN114548056A (en) | Rich text editing method, device and equipment | |
JP2988911B1 (en) | Automatic program generator | |
Awwad | Localization to bidirectional languages for a visual programming environment on smartphones |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130417 |