CN100472439C - Human-machine interface localization method and system - Google Patents

Human-machine interface localization method and system Download PDF

Info

Publication number
CN100472439C
CN100472439C CNB2007101220668A CN200710122066A CN100472439C CN 100472439 C CN100472439 C CN 100472439C CN B2007101220668 A CNB2007101220668 A CN B2007101220668A CN 200710122066 A CN200710122066 A CN 200710122066A CN 100472439 C CN100472439 C CN 100472439C
Authority
CN
China
Prior art keywords
localization
human
configuration file
interface
word message
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.)
Active
Application number
CNB2007101220668A
Other languages
Chinese (zh)
Other versions
CN101122858A (en
Inventor
马坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101220668A priority Critical patent/CN100472439C/en
Publication of CN101122858A publication Critical patent/CN101122858A/en
Application granted granted Critical
Publication of CN100472439C publication Critical patent/CN100472439C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to a human computer interaction interface localization method. The method includes: a configuration file generation procedure which is used to generate a corresponding configuration file in accordance with the word information displayed on the interaction interface, a localization module setting procedure which is used to judge the present language environment and acquire the localized text information from the configuration file in according to the key words entered, and a localized text information displaying procedure which is used to display the localized information on the interaction interface. The present invention can realize an arbitrary switching among Chinese, English or other language environment to satisfy the needs of different users. If contents of the interface should be changed, only the relative content of the configuration file module needs modifying without recompiling the edition. When a software edition which supports a plurality of language environments has to support a new language, only the contents of the localized language in the configuration file need to be changed. It is unnecessary to use a new edition and easy to operate.

Description

A kind of method and system of human-machine interface localization
Technical field
The present invention relates to human-computer interaction interface, especially a kind of method and system of human-machine interface localization.
Background technology
For software, human-computer interaction interface and user the most directly come into contacts with, and whether human-computer interaction interface is clear understandable, and whether text description is accurate, are important judgment criteria that whether handy software is.
On the other hand, constantly carry out along with international, it is domestic that right user of software demand side no longer is confined to probably, and will face external user, how quickly and easily just must solve provides the multilingual problem of environment, how to realize handing over the problem of human-machine interface localization.
In the prior art, a kind of localized scheme is to adopt when software application is used the operation of source language user interface, from the bytecode of this software application, extract source language graphical user interface (GUI) assembly literal, the source language GUI assembly literal that extracts is formed a localized APMB package, source language GUI assembly character translation in the described localized APMB package is become target language, when moving this software application once more, from the localized APMB package of translation, load the GUI assembly literal after translating; And the GUI assembly that will translate into target language is presented on the display screen.This scheme loads different localization file bags for different language environments, realizes the localization of man-machine interface.But this scheme can easily not switched between various language environments arbitrarily; Revise the man-machine interface content displayed if desired, the scheme above adopting just must be revised source code and recompilate version and software is upgraded.
Summary of the invention
The problem to be solved in the present invention provides a kind of method and system of human-machine interface localization, solves the problem that how to realize human-machine interface localization.
The invention provides a kind of method of human-machine interface localization, comprising:
Configuration file generates step, is used for the Word message according to the human-computer interaction interface demonstration, generates corresponding configuration file; Described configuration file comprises the macaronic at least Word message of key word and this key word correspondence;
Localized module step is set, is used to judge current language environment, and from configuration file, obtain the Word message of localization according to the key word of input;
Localization Word message step display is used for showing localized Word message at human-computer interaction interface.
The localization module is judged current language environment by the JAVA virtual machine or by configuration file.
The localization module also is used to be written into and parsing and the corresponding configuration file of Word message that human-computer interaction interface shows, the localized Word message of key word and key word correspondence is formed name-value pair.
The localization module also is used to provide external interface, and the Word message of the pairing localization of output key word calls when showing for human-computer interaction interface.
In the localization Word message step display, to localized module request, localized module is obtained the Word message of localization to human-computer interaction interface, and returns to human-computer interaction interface by key word, and human-computer interaction interface shows.
The invention provides a kind of system of human-machine interface localization, comprising:
The configuration file generation module is used for the Word message according to interface display, generates corresponding configuration file; Described configuration file comprises the macaronic at least Word message of key word and this key word correspondence;
The localization module is used to judge current language environment, and obtains the Word message of localization from configuration file according to the key word of input;
Localization Word message display module is used for showing localized Word message at human-computer interaction interface.
The configuration file that the localization module also is used to be written into and parsing is corresponding with the Word message of interface display is with the localized Word message composition name-value pair of key word and key word correspondence.
The localization module also is used to provide external interface, and the Word message by the pairing localization of this external interface output key word calls when showing for human-computer interaction interface.
The present invention can be implemented between Chinese, English and other various language environments switches arbitrarily, satisfies requirements of different users; If when revising interface content, do not need to recompilate version, only need to revise content relevant in the profile module and get final product; A software version can be supported the multilingual environment, supports new language if desired, also only needs to revise the content of local language item in the configuration file, and does not need to replace version, and is convenient to operation.
Description of drawings
Fig. 1 is the method flow diagram of human-machine interface localization provided by the invention;
Fig. 2 is the system diagram of human-machine interface localization provided by the invention.
Embodiment
Technical matters to be solved by this invention has provided a kind of method that simply realizes localization by profile module, has solved the localized problem of facing the different language user in software.
Among the present invention, all Word messages that need be shown to the user all are kept in the profile module, when interface display is given the user, it or not direct display text information, but by a key word (key) to localized module application, localized module can be obtained the information that be shown to the user (spoken and written languages of English, Chinese or any country of being provided with) according to current language environment and the key word that imports in configuration file from profile module.
The method that provides among the present invention comprises:
Step 101 according to the Word message of interface display, generates corresponding configuration file.
As shown in the table, can adopt delegation's multiple row, cut apart by comma between the row.
Key English explanation Other language ...
Comprise following content:
Key: first row are key words, are equivalent to index, and each literal term that need show can not repeat on the corresponding interface.
English explanation: when adopting English interface, key word corresponding character item should be shown to user's english information.
Other language: when adopting other language, other language messages that should be shown to the user of key word correspondence.
Step 102 is provided with localized module; The localization module can be judged current language environment, can obtain correct Word message from configuration file according to the key word (key) of input.In order to realize this function, localized module need be judged current language environment, can obtain the correct language environment (java.util.Locale) of current operation from the JAVA virtual machine, also can pass through configuration file; Be written into configuration file, and resolve,, the Word message that each Key value and man-machine interface need show is formed correct name-value pair according to current language environment according to the Word message correspondence of boundary's display surface; External interface is provided, and input is the Key value, finds out content displayed and output according to name-value pair, calls when showing for man-machine interface.
Step 103 shows localized Word message at human-computer interaction interface.By human-computer interaction interface in the needs display text information, directly do not use the Word message that needs demonstration, but by key word to localized module request, from configuration file, obtain the Word message that real needs show by localized module according to current language environment and key word, and return to the interface, be shown to the user again.
Realize system for carrying out said process as shown in Figure 2, this system 200 comprises: configuration file generation module 201, be used for Word message according to interface display, and generate corresponding configuration file; Localization module 202 is used to judge current language environment, and obtains the Word message of localization from configuration file according to the key word of input; Localization Word message display module 203 is used for showing localized Word message at human-computer interaction interface.Configuration file comprises the macaronic at least Word message of key word and this key word correspondence.The configuration file that localization module 202 also is used to be written into and parsing is corresponding with the Word message of interface display, the localized Word message of key word and key word correspondence is formed name-value pair, and provide external interface, Word message by the pairing localization of this external interface output key word calls when showing for human-computer interaction interface.
Those skilled in the art can also carry out various modifications to above content under the condition that does not break away from the definite the spirit and scope of the present invention of claims.Therefore scope of the present invention is not limited in above explanation, but determine by the scope of claims.

Claims (8)

1. the method for a human-machine interface localization is characterized in that, comprising:
Configuration file generates step, is used for the Word message according to the human-computer interaction interface demonstration, generates corresponding configuration file; Described configuration file comprises the macaronic at least Word message of key word and this key word correspondence;
Localized module step is set, is used to judge current language environment, and from configuration file, obtain the Word message of localization according to the key word of input;
Localization Word message step display is used for showing localized Word message at human-computer interaction interface.
2. the method for human-machine interface localization as claimed in claim 1 is characterized in that, localized module is judged current language environment by the JAVA virtual machine or by configuration file.
3. the method for human-machine interface localization as claimed in claim 1, it is characterized in that, the localization module also is used to be written into and parsing and the corresponding configuration file of Word message that human-computer interaction interface shows, the localized Word message of key word and key word correspondence is formed name-value pair.
4. the method for human-machine interface localization as claimed in claim 3 is characterized in that, localized module also is used to provide external interface, and the Word message of the pairing localization of output key word calls when showing for human-computer interaction interface.
5. the method for human-machine interface localization as claimed in claim 4, it is characterized in that, in the localization Word message step display, human-computer interaction interface by key word to localized module request, the localization module is obtained the Word message of localization, and returning to human-computer interaction interface, human-computer interaction interface shows.
6. the system of a human-machine interface localization is characterized in that, comprising:
The configuration file generation module is used for the Word message according to interface display, generates corresponding configuration file; Described configuration file comprises the macaronic at least Word message of key word and this key word correspondence;
The localization module is used to judge current language environment, and obtains the Word message of localization from configuration file according to the key word of input;
Localization Word message display module is used for showing localized Word message at human-computer interaction interface.
7. the system of human-machine interface localization as claimed in claim 6, it is characterized in that, the configuration file that the localization module also is used to be written into and parsing is corresponding with the Word message of interface display is with the localized Word message composition name-value pair of key word and key word correspondence.
8. the system of human-machine interface localization as claimed in claim 7, it is characterized in that, the localization module also is used to provide external interface, and the Word message by the pairing localization of this external interface output key word calls when showing for human-computer interaction interface.
CNB2007101220668A 2007-09-20 2007-09-20 Human-machine interface localization method and system Active CN100472439C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101220668A CN100472439C (en) 2007-09-20 2007-09-20 Human-machine interface localization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101220668A CN100472439C (en) 2007-09-20 2007-09-20 Human-machine interface localization method and system

Publications (2)

Publication Number Publication Date
CN101122858A CN101122858A (en) 2008-02-13
CN100472439C true CN100472439C (en) 2009-03-25

Family

ID=39085203

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101220668A Active CN100472439C (en) 2007-09-20 2007-09-20 Human-machine interface localization method and system

Country Status (1)

Country Link
CN (1) CN100472439C (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882082B (en) * 2010-06-23 2015-08-12 中兴通讯股份有限公司 The method and apparatus of a kind of Java edit box localization
CN101950251B (en) * 2010-09-14 2013-05-29 浙江大学 Localization method for mobile Widget
CN102033774A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Local interface display method and system
CN102360284B (en) * 2011-05-10 2014-01-22 中国人民解放军徐州空军学院 Liquid crystal display English interface universal Chinese chinesization system and method
CN103309646B (en) * 2012-03-07 2017-11-14 腾讯科技(深圳)有限公司 A kind of method and apparatus of software localization
CN102880459A (en) * 2012-08-14 2013-01-16 张涛 Compiling implementation method and system based on Visual Lisp programming language
CN108446157B (en) * 2018-04-04 2022-05-10 沈阳东北电力调节技术有限公司 Multi-language display interface design method capable of realizing real-time switching of control system of vertical mill auxiliary machine
CN110908744B (en) * 2018-09-17 2023-07-07 福建天泉教育科技有限公司 Message multilingual support method for instant messaging software system and storage medium
CN109582414A (en) * 2018-11-06 2019-04-05 福建天泉教育科技有限公司 Using international method, storage medium
CN109669422B (en) * 2018-12-29 2021-09-14 宝信软件(武汉)有限公司 Real-time data acquisition system
CN110457085B (en) * 2019-07-10 2022-10-21 北京奇艺世纪科技有限公司 File processing method and device, terminal equipment and computer readable medium

Also Published As

Publication number Publication date
CN101122858A (en) 2008-02-13

Similar Documents

Publication Publication Date Title
CN100472439C (en) Human-machine interface localization method and system
CN100447743C (en) System and method for localizing JAVA GUI application without modifying source code
CN108595445A (en) Interpretation method, device and terminal
CN101842243B (en) Dynamic virtual input device configuration
CN103324613A (en) System and method for automatic language translation for applications
US20020133523A1 (en) Multilingual graphic user interface system and method
CN101566946A (en) Method for flexibly supporting software multi-language version
KR100676697B1 (en) Language displaying method and system of software for computer, recording media of computer program therefor
CN102298578A (en) Translation method based on handheld device and system
CN107404508B (en) Client page access method, client and electronic equipment
US20080266145A1 (en) Multi-lingual text entry using a dynamically reconfigurable keyboard
Arroba et al. A methodology for developing accessible mobile platforms over leading devices for visually impaired people
CN113641433A (en) Multi-language page conversion method and unit of front-end internationalized multi-language file based on i18n technology
CN102023805A (en) Method for assisting in browsing text messages on software interface
CN103870172A (en) Information input method and device
CN102651023B (en) Method and device for controlling input data
CN108052212A (en) A kind of method, terminal and computer-readable medium for inputting word
CN103607414A (en) Mobile forepart service display system and mobile forepart service display method
CN101431633B (en) Multi-language supported OSD display method and system
CN109634711A (en) A kind of Dynamic Configuration of dummy keyboard
CN105700703A (en) Method and device for inserting expressions in character input interface of keyboard and supporting user-defined expressions
JP5766651B2 (en) Multilingual Web server system and multilingual support method in Web server system
CN106873866B (en) Content amplification display method and device
CN103281433A (en) Method and device for displaying literal contents
CN102446063A (en) Alerting users to notice shortcut on computer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant