CN106227550A - Generation method, system and the computer of a kind of Internationalized Graphical User Interface - Google Patents
Generation method, system and the computer of a kind of Internationalized Graphical User Interface Download PDFInfo
- Publication number
- CN106227550A CN106227550A CN201610638486.0A CN201610638486A CN106227550A CN 106227550 A CN106227550 A CN 106227550A CN 201610638486 A CN201610638486 A CN 201610638486A CN 106227550 A CN106227550 A CN 106227550A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- graphical user
- user interface
- native language
- internationalized
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Abstract
The invention discloses a kind of generation method of Internationalized Graphical User Interface, including: after system initialization, the native language of detecting system is arranged, and determines the native language type of described system;Load the configuration file that described native language type is corresponding, generate system graphical user interface;The native language of the method detecting system after system initialization is arranged, and load the configuration file of corresponding language, the software that can support B/S framework can also support C/S Framework Software, supports more international language, and makes the internationalization function of system have the highest extensibility;The invention also discloses generation system and the computer of a kind of Internationalized Graphical User Interface, there is the effect above.
Description
Technical field
The present invention relates to computing technique field, particularly to generation method, the system of a kind of Internationalized Graphical User Interface
And computer.
Background technology
Under international background, for adapting to internationalization business, enterprise application software also needs to internationalize, for differently
Branch of district or user provide multilingual user interface.
A lot of senior development languages all provide international support, provide the foundation for Developing International Software.But
The internationalization function degree of freedom that senior development language provides is the lowest, only can be used in the system of single language development, to multiple
The enterprise software of language development is the most inapplicable.And the internationalization function after high-level language encapsulation is difficult to revise extension again.Pass
The language internationalization function of the system i.e. resource file of Resource file often loads when program compiles, and this causes internationalization function
Extending very inconvenient, each extension all must be recompilated, and restarts system.And owing to category of language is numerous and diverse, often have unrest
Code occurs.Therefore, how to accurately generate user and internationalize interface, be those skilled in the art's technical issues that need to address.
Summary of the invention
It is an object of the invention to provide generation method, system and the computer of a kind of Internationalized Graphical User Interface, equal energy
Enough support that the software of B/S framework can also support C/S Framework Software, supports more international language, and makes the world of system
Change function and have the highest extensibility.
For solving above-mentioned technical problem, the present invention provides a kind of generation method of Internationalized Graphical User Interface, including:
After system initialization, the native language of detecting system is arranged, and determines the native language type of described system;
Load the configuration file that described native language type is corresponding, generate system graphical user interface.
Wherein, the described native language detecting equipment after system initialization is arranged, and determines the native language of described equipment
Type, including:
After system initialization, the locale information of the computer operating system of detecting system, according to described language ground
District's information determines the native language type of described system.
Wherein, load the configuration file that described native language type is corresponding, including:
Configuration file loading procedure is utilized to load the configuration file that described native language type is corresponding, wherein, described configuration
File includes key-value pair and the statement of ASCII character version.
Wherein, after loading the configuration file that described native language type is corresponding, also include:
When detecting that described configuration file is modified, reload the configuration file after being modified.
The present invention also provides for the generation system of a kind of Internationalized Graphical User Interface, including:
Language form detection module, the native language for detecting system after system initialization is arranged, and determines described system
The native language type of system;
Configuration file load-on module, for loading the configuration file that described native language type is corresponding, generates system figure
User interface.
Wherein, described language form detection module is specially after system initialization, the computer operation system of detecting system
The locale information of system, determines the module of the native language type of described system according to described locale information.
Wherein, described configuration file load-on module specially utilizes configuration file loading procedure to load described native language class
The module of the configuration file that type is corresponding, wherein, described configuration file includes key-value pair and the statement of ASCII character version.
Wherein, described configuration file load-on module is additionally operable to, when detecting that described configuration file is modified, reload
Configuration file after being modified.
The present invention also provides for a kind of computer, including: according to the Internationalized Graphical User Interface described in any of the above-described item
Generation system.
The generation method of a kind of Internationalized Graphical User Interface provided by the present invention, including: examine after system initialization
The native language of examining system is arranged, and determines the native language type of described system;Load described corresponding the joining of native language type
Put file, generate system graphical user interface;
Visible, the native language of the method detecting system after system initialization is arranged, and loads the configuration of corresponding language
File, the mode detected after system start-up can support that the software of B/S framework can also support C/S Framework Software, Ke Yizhi
As long as holding more international language to increase corresponding configuration file, and the internationalization function of system is made to have had the highest
Extensibility;Present invention also offers generation system and the computer of a kind of Internationalized Graphical User Interface, have above-mentioned useful
Effect, does not repeats them here.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to
The accompanying drawing provided obtains other accompanying drawing.
The flow chart of the generation method of the Internationalized Graphical User Interface that Fig. 1 is provided by the embodiment of the present invention;
The Internationalized Graphical User Interface that Fig. 2 is provided by the embodiment of the present invention generates process schematic;
The structured flowchart of the generation system of the Internationalized Graphical User Interface that Fig. 3 is provided by the embodiment of the present invention.
Detailed description of the invention
The core of the present invention is to provide generation method, system and the computer of a kind of Internationalized Graphical User Interface, equal energy
Enough support that the software of B/S framework can also support C/S Framework Software, supports more international language, and makes the world of system
Change function and have the highest extensibility.
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Refer to the flow process of the generation method of the Internationalized Graphical User Interface that Fig. 1, Fig. 1 are provided by the embodiment of the present invention
Figure;The method may include that
S100, the native language setting of detecting system after system initialization, determine the native language type of described system;
Wherein, the method is to carry out after system initializes, and so can support the soft of C/S and B/S framework simultaneously
Part system.When, after system initialization, automatically detection judging that the i.e. native language of computer language setting of user is arranged, determine meter
Calculate the native language type (such as Chinese, English, French etc.) arranged.
Here the native language of detecting system arranges the language ground of the computer operating system that can be direct detecting system
District's information, can judge when system initialization is restarted every time, the most both can support that the software of B/S framework can also support C/
S Framework Software.
S110, load the configuration file that described native language type is corresponding, generate system graphical user interface.
Wherein it is determined that the configuration corresponding with this language form can be found in the place depositing configuration file after language form
File, loads, it is achieved the initialization to system graphical user interface.Such as when language form is Chinese, determine Chinese
Corresponding configuration file, and load the configuration file that this Chinese is corresponding, generate corresponding Chinese language users interface.Here each is joined
Put file can be placed in configuration file storehouse, to increase the language form of user interface, it is only necessary to increase in configuration file storehouse
Add corresponding configuration file, in order to support more abundant international language.
Based on technique scheme, the generation method that the embodiment of the present invention provides, the mode detected after system start-up can
To support that the software of B/S framework can also support C/S Framework Software, as long as it is corresponding to support that more international language increases
Configuration file, and make the internationalization function of system have the highest extensibility.
Based on technique scheme, the appearance of mess code during in order to reduce loading further, improves the reliability of system;The party
Method may include that
Configuration file loading procedure is utilized to load the configuration file that described native language type is corresponding, wherein, described configuration
File includes key-value pair and the statement of ASCII character version.
Wherein, configuration file is stated by key-value pair and ASCII character version and is formed, and the key name of each configuration file is corresponding
Unique key assignments, wherein, such as key name can have 26 English alphabets comprise capital and small letter and " _ " composition, same configuration file
Key name can not repeat, and key assignments is represented by ASCII character, and ASCII character is international coding, and nearly all language can use
ASCII character standard edition or extended edition coding, the ASCII character version that different language uses may be different, it is therefore necessary in configuration
File is stated.
Wherein, key assignments (key) is the concept in registration table in windows.Key assignments is positioned at registration table structural chain end, and literary composition
The file of part system is similar to, the actual disposition information used when comprising current computer and application program execution and data.Key assignments
Comprise several data type, to adapt to the use demand of varying environment.
Based on technique scheme, the generation method that the embodiment of the present invention provides, use ASCII character key-value pair configuration file
Automatically graphic user interface internationalization, and the mechanism of automatic loading configuration file when program is run are carried out, by each
Configuration file all states that the method for ASCII character version can reduce mess code.
Based on above-mentioned any technical scheme, after loading the configuration file that described native language type is corresponding, also include:
When detecting that described configuration file is modified, reload the configuration file after being modified.
Wherein, configuration file loading procedure runs after system initialization, therefore can quilt when configuration file is modified
Again calling loading configuration file, each configuration file correspondence one language internationalizes, and configuration file can all be placed on configuration
In library, the most only load the file of required language.Configuration file has real-time loading mechanism, configuration detected the most every time
File is modified, and system can reload amended configuration file.To improve the extensibility of the internationalization function of system.
Refer to Fig. 2, give the process schematic of this embodiment loading configuration file.
Based on technique scheme, the generation method of the Internationalized Graphical User Interface that the embodiment of the present invention provides, in enterprise
In industry software system, the key-value pair configuration file being arranged mechanism and ASCII character by retrieval computer language automatically is entered automatically
Row graphic user interface internationalizes, configuration file real-time update real-time loading, and ASCII character version needs sound in configuration file
Bright, so can support the software system of C/S and B/S framework simultaneously, support more international language, by each configuration file
The method of statement ASCII character version can reduce mess code and make the internationalization function of system have the highest extensibility.
Generation system and computer to the Internationalized Graphical User Interface that the embodiment of the present invention provides are introduced below,
The generation system of Internationalized Graphical User Interface described below and computer and above-described Internationalized Graphical User Interface
Generation method can be mutually to should refer to.
Refer to the structure of the generation system of the Internationalized Graphical User Interface that Fig. 3, Fig. 3 are provided by the embodiment of the present invention
Block diagram;This system may include that
Language form detection module 100, the native language for detecting system after system initialization is arranged, and determines described
The native language type of system;
Configuration file load-on module 200, for loading the configuration file that described native language type is corresponding, generates system diagram
Shape user interface.
Optionally, described language form detection module 100 is specially after system initialization, the computer behaviour of detecting system
Make the locale information of system, determine the module of the native language type of described system according to described locale information.
Optionally, described configuration file load-on module 200 specially utilizes configuration file loading procedure to load described this locality
The module of the configuration file that language form is corresponding, wherein, described configuration file includes key-value pair and the statement of ASCII character version.
Optionally, described configuration file load-on module 200 is additionally operable to when detecting that described configuration file is modified, again
Load the configuration file after being modified.
Based on above-described embodiment, the generation system of the Internationalized Graphical User Interface that the present invention provides, to detect computer
Language arrange be as the criterion, simultaneously support C/S and B/S framework software system;Avoid version different by statement ASCII version
The mess code caused, supports nearly all language;Configuration file real-time loading, it is simple to Function Extension is revised.
The present invention also provides for a kind of computer, including: according to internationalization graphical user circle described in above-mentioned any embodiment
The generation system in face.
In description, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is real with other
Executing the difference of example, between each embodiment, identical similar portion sees mutually.For device disclosed in embodiment
Speech, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part explanation
?.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes
And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and
The interchangeability of software, the most generally describes composition and the step of each example according to function.These
Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty
Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not
Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held
The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Above generation method, system and the computer of Internationalized Graphical User Interface provided by the present invention is carried out in detail
Thin introduction.Principle and the embodiment of the present invention are set forth by specific case used herein, saying of above example
Bright method and the core concept thereof being only intended to help to understand the present invention.It should be pointed out that, the ordinary skill for the art
For personnel, under the premise without departing from the principles of the invention, it is also possible to the present invention is carried out some improvement and modification, these improve
Also fall in the protection domain of the claims in the present invention with modifying.
Claims (9)
1. the generation method of an Internationalized Graphical User Interface, it is characterised in that including:
After system initialization, the native language of detecting system is arranged, and determines the native language type of described system;
Load the configuration file that described native language type is corresponding, generate system graphical user interface.
The generation method of Internationalized Graphical User Interface the most according to claim 1, it is characterised in that described at the beginning of system
The native language detecting equipment after beginningization is arranged, and determines the native language type of described equipment, including:
After system initialization, the locale information of the computer operating system of detecting system, believe according to described locale
Breath determines the native language type of described system.
The generation method of Internationalized Graphical User Interface the most according to claim 2, it is characterised in that load described this locality
The configuration file that language form is corresponding, including:
Configuration file loading procedure is utilized to load the configuration file that described native language type is corresponding, wherein, described configuration file
State including key-value pair and ASCII character version.
4. according to the generation method of the Internationalized Graphical User Interface described in any one of claim 1-3, it is characterised in that load
After the configuration file that described native language type is corresponding, also include:
When detecting that described configuration file is modified, reload the configuration file after being modified.
5. the generation system of an Internationalized Graphical User Interface, it is characterised in that including:
Language form detection module, the native language for detecting system after system initialization is arranged, and determines described system
Native language type;
Configuration file load-on module, for loading the configuration file that described native language type is corresponding, generates system graphical user
Interface.
The generation system of Internationalized Graphical User Interface the most according to claim 5, it is characterised in that described language form
Detection module is specially after system initialization, and the locale information of the computer operating system of detecting system, according to described
Locale information determines the module of the native language type of described system.
The generation system of Internationalized Graphical User Interface the most according to claim 6, it is characterised in that described configuration file
Load-on module specially utilizes configuration file loading procedure to load the module of configuration file corresponding to described native language type, its
In, described configuration file includes key-value pair and the statement of ASCII character version.
8. according to the generation system of the Internationalized Graphical User Interface described in any one of claim 5-7, it is characterised in that described
Configuration file load-on module is additionally operable to when detecting that described configuration file is modified, and reloads the literary composition of the configuration after being modified
Part.
9. a computer, it is characterised in that including: according to internationalization graphical user circle described in any one of claim 5-8
The generation system in face.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610638486.0A CN106227550A (en) | 2016-08-05 | 2016-08-05 | Generation method, system and the computer of a kind of Internationalized Graphical User Interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610638486.0A CN106227550A (en) | 2016-08-05 | 2016-08-05 | Generation method, system and the computer of a kind of Internationalized Graphical User Interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106227550A true CN106227550A (en) | 2016-12-14 |
Family
ID=57547944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610638486.0A Pending CN106227550A (en) | 2016-08-05 | 2016-08-05 | Generation method, system and the computer of a kind of Internationalized Graphical User Interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227550A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391100A (en) * | 2017-04-20 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of configuration file generation method and device for supporting multilingual bill |
WO2019007414A1 (en) * | 2017-07-07 | 2019-01-10 | 惠州Tcl移动通信有限公司 | Method for realizing support of application for multiple languages, storage device, and mobile terminal |
CN109284162A (en) * | 2018-09-14 | 2019-01-29 | 山东浪潮通软信息科技有限公司 | A kind of implementation method of the multi-lingual opinion on public affairs of enterprise software |
CN113064647A (en) * | 2021-03-26 | 2021-07-02 | 山东英信计算机技术有限公司 | Method, device, terminal and storage medium for configuring project port in BIOS |
CN113110892A (en) * | 2021-05-12 | 2021-07-13 | 湖南快乐阳光互动娱乐传媒有限公司 | Configuration method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710282A (en) * | 2009-11-16 | 2010-05-19 | 金蝶软件(中国)有限公司 | Method and device for realizing system support for multi-language resource |
CN101876907A (en) * | 2010-05-18 | 2010-11-03 | 杭州海康威视数字技术股份有限公司 | Multi-language implementation method and device of human-computer interaction interface |
CN105824633A (en) * | 2016-03-16 | 2016-08-03 | 北京小米移动软件有限公司 | Multi-language resource switching method and device of application program |
-
2016
- 2016-08-05 CN CN201610638486.0A patent/CN106227550A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710282A (en) * | 2009-11-16 | 2010-05-19 | 金蝶软件(中国)有限公司 | Method and device for realizing system support for multi-language resource |
CN101876907A (en) * | 2010-05-18 | 2010-11-03 | 杭州海康威视数字技术股份有限公司 | Multi-language implementation method and device of human-computer interaction interface |
CN105824633A (en) * | 2016-03-16 | 2016-08-03 | 北京小米移动软件有限公司 | Multi-language resource switching method and device of application program |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391100A (en) * | 2017-04-20 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of configuration file generation method and device for supporting multilingual bill |
CN107391100B (en) * | 2017-04-20 | 2020-10-02 | 阿里巴巴集团控股有限公司 | Configuration file generation method and device supporting multi-language bill |
WO2019007414A1 (en) * | 2017-07-07 | 2019-01-10 | 惠州Tcl移动通信有限公司 | Method for realizing support of application for multiple languages, storage device, and mobile terminal |
CN109284162A (en) * | 2018-09-14 | 2019-01-29 | 山东浪潮通软信息科技有限公司 | A kind of implementation method of the multi-lingual opinion on public affairs of enterprise software |
CN113064647A (en) * | 2021-03-26 | 2021-07-02 | 山东英信计算机技术有限公司 | Method, device, terminal and storage medium for configuring project port in BIOS |
CN113110892A (en) * | 2021-05-12 | 2021-07-13 | 湖南快乐阳光互动娱乐传媒有限公司 | Configuration method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2019210603B2 (en) | Processing data for use in a cognitive insights platform | |
CN106227550A (en) | Generation method, system and the computer of a kind of Internationalized Graphical User Interface | |
US11010283B2 (en) | Mock-based unit test(s) for an end-to-end test of a code snippet | |
CN102667730B (en) | Design time debugging | |
US7996816B2 (en) | Method and apparatus for dynamically binding service component implementations for specific unit test cases | |
KR20210044685A (en) | Naming robotic process automation activities according to automatically detected target labels | |
US20170052824A1 (en) | Method and system for process automation in computing | |
US20070220347A1 (en) | Automatic testing for dynamic applications | |
US8086996B2 (en) | Binding an image descriptor of a graphical object to a text descriptor | |
CN104375858B (en) | Many browser platforms perform the method and device of javascript scripts | |
WO2019090994A1 (en) | Script testing automated execution method, apparatus, equipment and storage medium | |
US9038019B2 (en) | Paige control for enterprise mobile applications | |
Whiting et al. | Creating an iPhone application for collecting continuous ABC data | |
US8302070B2 (en) | Output styling in an IDE console | |
US8904346B1 (en) | Method and system for automated load testing of web applications | |
US20170371764A1 (en) | Framework for automated globalization enablement on development operations | |
CN106502770A (en) | A kind of HMI state transfer methods based on finite state machine | |
US20190196944A1 (en) | System for writing and executing unit test cases | |
JP2007172602A (en) | Method and apparatus for persistently resolving event to event source | |
US20160266999A1 (en) | Generation of automated unit tests for a controller layer system and method | |
US20080154574A1 (en) | Application emulation on a non-production computer system | |
CN109710474A (en) | A kind of hard disk fault detection method, device, terminal and readable storage medium storing program for executing | |
Lämsä | Comparison of GUI testing tools for Android applications | |
US20140250251A1 (en) | Automatically and transparently preserving testing state across sessions | |
Johansen | Test-driven JavaScript development |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161214 |