CN102681851A - Multi-language dynamic switching method for embedded device - Google Patents

Multi-language dynamic switching method for embedded device Download PDF

Info

Publication number
CN102681851A
CN102681851A CN201210145741XA CN201210145741A CN102681851A CN 102681851 A CN102681851 A CN 102681851A CN 201210145741X A CN201210145741X A CN 201210145741XA CN 201210145741 A CN201210145741 A CN 201210145741A CN 102681851 A CN102681851 A CN 102681851A
Authority
CN
China
Prior art keywords
language
character string
pack
languages
multilingual
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.)
Granted
Application number
CN201210145741XA
Other languages
Chinese (zh)
Other versions
CN102681851B (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.)
State Grid Corp of China SGCC
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
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 Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN201210145741.XA priority Critical patent/CN102681851B/en
Publication of CN102681851A publication Critical patent/CN102681851A/en
Application granted granted Critical
Publication of CN102681851B publication Critical patent/CN102681851B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a multi-language dynamic switching method for an embedded device. Under the condition that an executable target program is not revised, a language pack is loaded by a built-in multi-language engine of the executable target program; before a character string is output to output terminals (including a display, file output and a printer), a source character string is converted into a target language character string; and then the target language character string is output. The technology disclosed by the invention can be directly applied to the embedded device based on the multi-language dynamic switching technology.

Description

The dynamic switching method that embedded equipment is multilingual
Technical field
The present invention relates to the dynamic multilingual switching in relay protection field, particularly embedded protective relaying device.
Background technology
The embedded equipment of the relay protection automatic field of embedded system, especially power engineering is all very high to the requirement of stability, rapidity and the dirigibility of system; And general multilingual technology adopts the static replacement of source program character string, the static replacement of target program character string or load resource file after with modes such as the internal memory character string replace, all be difficult to satisfy simultaneously the demand of stable, rapidity and dirigibility.
Summary of the invention
The purpose of this invention is to provide the multilingual dynamic switching method of a kind of embedded equipment, in order to solve the problem that prior art is difficult to satisfy simultaneously stability, rapidity and dirigibility demand.
For realizing above-mentioned purpose, scheme of the present invention is: comprise the steps:
The structure of S1, language pack: extract the source language entry information of string resource information the target program as language pack from carrying out; The source language entry is translated the back respectively by the languages of being supported form an orderly HASH table binary format language pack, this language pack comprises specific identifier, supports the word translation information of languages number and each languages information, source string entry information and corresponding languages;
The download of S2, language pack, loading: through download tool language pack is downloaded to device, load language bag after system powers on, languages are given tacit consent to for the first time for carrying out target program acquiescence languages by system;
S3, language environment setting: through the speech selection menu object language can be set, successfully back system be set will get into set language environment immediately, this is provided with the function power down and keeps;
S4, character string conversion and terminal output: after transform engine gets into dynamic multilingual state; HASH value and current language index through source string; In language pack, search corresponding object language character string, the object language character string that finds is exported through outlet terminal; If do not find the object language character string, transform engine will start character string entry intelligence and split locating function, and the reorganization lookup result forms the object language character string through outlet terminal output; Will be in character string entry intelligence fractionation search procedure, not finding entry really by former character string information through terminal output.
Said terminal is that display, file system are or/and printer.Said transform engine is for carrying out the built-in engine of target program.After system powered on, languages were given tacit consent to for the first time for carrying out target program acquiescence languages by system.The unloading of language pack realizes the language pack deletion through download tool.
The present invention is not revising under the situation that can carry out target program; Only through carrying out the built-in multilingual engine load language bag of target program; With character string before outlet terminal (comprising the output of display, file, the printer) output, export after converting source string to the target language character string.
The present invention at first makes up the orderly HASH table of specified format binary language bag; Then this language pack is downloaded to device; After device re-powers; Utilize the embedded built-in transform engine of target program of carrying out; The load language bag; And, in language pack, search corresponding purpose character string and output based on current language index and source output string.
The built-in multilingual transform engine that the present invention adopts adds external language pack pattern; Do not revising under the software object program situation; Because do not change the embedded target program of carrying out itself, on principle, can effectively guarantee the embedded stability of carrying out the target program operation; Adopt the binary format language pack of orderly HASH table can realize that source string splits with intelligence to the quick matched and searched of purpose character string and search, thereby can guarantee the rapidity of terminal (display, file output, printer) output; Through making up and downloading different language bag auto levelizer or discharge mechanism language pack and satisfy embedded system to whether supporting the multi-lingual how many kinds of flexibility of language demand of supporting that mentions; The designer only need pay close attention to designing and developing of business procedure, makes up language pack when needing multi-language environment and download to device to get final product; Only need device be switched under the familiar language environment and can carry out the work smoothly the field maintemance personnel, thereby reliably increase work efficiency.
Technology of the present invention can directly apply in the embedded equipment based on this multilingual dynamic handoff technique.
Description of drawings
Fig. 1 is a principle schematic of the present invention;
Fig. 2 is a process flow diagram of the present invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further detailed explanation.
Fig. 1 is according to know-why synoptic diagram of the present invention; In embedded equipment; Source string behind the corresponding entry of multilingual transform engine query language bag, returns the purpose character string before exporting toward the terminal; Multilingual transform engine outputs to the terminal with the purpose character string of returning, and outlet terminal comprises display, file output, printer.
As shown in Figure 2, the technical scheme flow process is following:
1, the structure of language pack: carry out extraction source character string information the target program from embedded, the source string resource is translated by the languages of supporting respectively, form the orderly HASH table binary language bag of specified format through specific purpose tool;
2, the download of language pack, loading and unloading: through specific purpose tool language pack is downloaded in the embedded equipment, device re-powers, and the automatic load language bag of system is to internal memory; Also can language pack be deleted through download tool, thus the unloading of implementation language bag;
3; Language environment is provided with: through embedded be multilingual choice menus selection object language in the target program; And preservation is provided with; Interior all the current man-machine interfaces of embedded equipment this moment show output, file logging output and printout character string information, all become the corresponding character string of the object language of translating in advance in the language pack; The languages information of supporting in the multilingual choice menus display language bag;
4, the character string conversion: multilingual engine is searched corresponding object language character string according to the HASH value and the current language index of source output string in language pack, the object language character string that finds is exported through outlet terminal; If do not find the object language character string, transform engine will start character string entry intelligence and split locating function, and the reorganization lookup result forms the object language character string through outlet terminal output; Will be in character string entry intelligence fractionation search procedure, not finding entry really by former character string information through terminal output;
5, terminal output: this terminal output comprises totally three types of display, file system, printers.
Language pack adopts orderly HASH sheet format, can guarantee the quick matched and searched location of entry, adopts the binary format language pack, need not during loading to carry out extra conversion expense again, can guarantee quick loading and startup that embedded system powers on.
The download of language pack, loading and unloading scheme are being used under the multilingual situation, when powering on behind the automatic load language bag of system system get into multi-language environment, if language pack does not exist when powering on, then system gets into single language environment; Change the different language bag and can change number, entry capacity and the word translation content of languages that system supports, thereby can guarantee the dirigibility of the multilingual exploitation of embedded equipment.
Language environment is provided with; Under multilingual operating mode; The speech selection menu at first is presented at the languages title that language pack is supported on the interface, and chooses the linguistic index of preserving last time in advance, and the reconfigurable new linguistic index of user is also preserved; All outputs of system environments (display, file output, printer) will change the language environment of relative set synchronously over to, thereby guarantee that the field adjustable personnel that are familiar with the different language environment operate smoothly;
During the character string conversion is exported with the terminal; In the character string transfer process; When full speech matched and searched is failed; Transform engine is launched character string intelligence and is split and search, and adopts from the last recursion forward of character string and searches and carry out intelligence coupling and combination from the mode that character string goes to the back recursion to search most, generation purpose character string; This programme is recommended the full speech coupling of character string; Can be through revising language pack entry and translation and rebuilding language pack; Download to device, this suggested design can guarantee string searching and conversion efficiency, output purpose character string grammatical and semantic clear and coherent perfect effect.

Claims (5)

1. dynamic switching method that embedded equipment is multilingual, and it is characterized in that its step is following:
S1; The structure of language pack: extract the source language entry information of string resource information the target program as language pack from carrying out; The source language entry is translated the back respectively by the languages of being supported form an orderly HASH table binary format language pack, this language pack comprises specific identifier, supports the word translation information of languages number and each languages information, source string entry information and corresponding languages;
S2, the download of language pack, loading: through download tool language pack is downloaded to device, load language bag after system powers on;
S3, the language environment setting: through the speech selection menu object language can be set, being provided with successfully, the back system will get into set language environment immediately;
S4; Character string conversion and terminal output: after transform engine gets into dynamic multilingual state; Through the HASH value and the current language index of source string, in language pack, search corresponding object language character string, the object language character string that finds is exported through outlet terminal; If do not find the object language character string, transform engine will start character string entry intelligence and split locating function, and the reorganization lookup result forms the object language character string through outlet terminal output; Will be in character string entry intelligence fractionation search procedure, not finding entry really by former character string information through terminal output.
2. the multilingual dynamic switching method of embedded equipment according to claim 1, said terminal are that display, file system are or/and printer.
3. the multilingual dynamic switching method of embedded equipment according to claim 1 is characterized in that, said transform engine is for carrying out the built-in engine of target program.
4. the multilingual dynamic switching method of embedded equipment according to claim 1 is characterized in that, after system powered on, languages were given tacit consent to for the first time for carrying out target program acquiescence languages by system.
5. the multilingual dynamic switching method of embedded equipment according to claim 1 is characterized in that, the unloading of language pack realizes the language pack deletion through download tool.
CN201210145741.XA 2012-05-11 2012-05-11 The dynamic switching method that embedded equipment is multilingual Expired - Fee Related CN102681851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210145741.XA CN102681851B (en) 2012-05-11 2012-05-11 The dynamic switching method that embedded equipment is multilingual

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210145741.XA CN102681851B (en) 2012-05-11 2012-05-11 The dynamic switching method that embedded equipment is multilingual

Publications (2)

Publication Number Publication Date
CN102681851A true CN102681851A (en) 2012-09-19
CN102681851B CN102681851B (en) 2016-04-20

Family

ID=46813828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210145741.XA Expired - Fee Related CN102681851B (en) 2012-05-11 2012-05-11 The dynamic switching method that embedded equipment is multilingual

Country Status (1)

Country Link
CN (1) CN102681851B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617046A (en) * 2013-12-12 2014-03-05 用友软件股份有限公司 Method and device for scanning and extracting resources to be translated in target system source codes
CN103927301A (en) * 2014-04-25 2014-07-16 广东欧珀移动通信有限公司 Method for dynamically translating vocabulary entries by utilizing theme package and mobile terminal
CN104951436A (en) * 2015-06-03 2015-09-30 南京国电南自电网自动化有限公司 Multi-language achievement method for relay protection device
CN106339228A (en) * 2016-08-30 2017-01-18 许继电气股份有限公司 Multi-language dynamic switching method and multi-language dynamic switching device for monitoring system of smart substation
CN107203311A (en) * 2017-05-11 2017-09-26 西安诺瓦电子科技有限公司 The display methods and device of multi-language menus
CN107894983A (en) * 2017-11-08 2018-04-10 深圳市沃特沃德股份有限公司 The switching method and device of engine
CN110597591A (en) * 2019-09-17 2019-12-20 深圳融昕医疗科技有限公司 Interface multi-language implementation method and device of embedded equipment and storage medium
CN110795915A (en) * 2018-07-31 2020-02-14 中兴通讯股份有限公司 Method, system, equipment and computer-readable storage medium for modifying xml file in batch
CN111078338A (en) * 2019-11-28 2020-04-28 北京三快在线科技有限公司 Method and device for internationalized processing of software, storage medium and electronic device
CN111104197A (en) * 2019-12-24 2020-05-05 深南电路股份有限公司 Display language switching method and device and storage medium
CN111159616A (en) * 2019-12-31 2020-05-15 深圳市丰润达科技有限公司 Multi-language-based switch management method and device and storage medium
CN112764843A (en) * 2020-12-29 2021-05-07 北京谊安医疗系统股份有限公司 Multi-language processing method and system for medical equipment monitoring system
CN114330248A (en) * 2022-02-22 2022-04-12 深圳市微克科技有限公司 Method for automatically switching multinational languages of intelligent wearable system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567296A (en) * 2003-05-07 2005-01-19 中兴通讯股份有限公司 Multilanguage display method of flushbonding system
CN1577263A (en) * 2003-06-26 2005-02-09 华为技术有限公司 Multilanguage-supporting user interface realizing method and apparatus thereof
CN101093513A (en) * 2007-08-14 2007-12-26 金蝶软件(中国)有限公司 Method and system for solving issue of supporting multilanguage of computer software
CN102289376A (en) * 2011-09-16 2011-12-21 烽火通信科技股份有限公司 Embedded multi-language WEB page realization method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567296A (en) * 2003-05-07 2005-01-19 中兴通讯股份有限公司 Multilanguage display method of flushbonding system
CN1577263A (en) * 2003-06-26 2005-02-09 华为技术有限公司 Multilanguage-supporting user interface realizing method and apparatus thereof
CN101093513A (en) * 2007-08-14 2007-12-26 金蝶软件(中国)有限公司 Method and system for solving issue of supporting multilanguage of computer software
CN102289376A (en) * 2011-09-16 2011-12-21 烽火通信科技股份有限公司 Embedded multi-language WEB page realization method and system

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617046B (en) * 2013-12-12 2017-05-24 用友网络科技股份有限公司 Method and device for scanning and extracting resources to be translated in target system source codes
CN103617046A (en) * 2013-12-12 2014-03-05 用友软件股份有限公司 Method and device for scanning and extracting resources to be translated in target system source codes
CN103927301A (en) * 2014-04-25 2014-07-16 广东欧珀移动通信有限公司 Method for dynamically translating vocabulary entries by utilizing theme package and mobile terminal
CN103927301B (en) * 2014-04-25 2017-06-30 广东欧珀移动通信有限公司 A kind of method and device of utilization theme bag dynamic translation entry
CN104951436A (en) * 2015-06-03 2015-09-30 南京国电南自电网自动化有限公司 Multi-language achievement method for relay protection device
CN106339228A (en) * 2016-08-30 2017-01-18 许继电气股份有限公司 Multi-language dynamic switching method and multi-language dynamic switching device for monitoring system of smart substation
CN106339228B (en) * 2016-08-30 2020-01-03 许继电气股份有限公司 Multi-language dynamic switching method and device for intelligent substation monitoring system
CN107203311B (en) * 2017-05-11 2020-05-19 西安诺瓦星云科技股份有限公司 Display method and device of multi-language menu
CN107203311A (en) * 2017-05-11 2017-09-26 西安诺瓦电子科技有限公司 The display methods and device of multi-language menus
CN107894983A (en) * 2017-11-08 2018-04-10 深圳市沃特沃德股份有限公司 The switching method and device of engine
CN110795915A (en) * 2018-07-31 2020-02-14 中兴通讯股份有限公司 Method, system, equipment and computer-readable storage medium for modifying xml file in batch
CN110597591A (en) * 2019-09-17 2019-12-20 深圳融昕医疗科技有限公司 Interface multi-language implementation method and device of embedded equipment and storage medium
CN110597591B (en) * 2019-09-17 2022-10-14 深圳融昕医疗科技有限公司 Interface multi-language implementation method and device of embedded equipment and storage medium
CN111078338A (en) * 2019-11-28 2020-04-28 北京三快在线科技有限公司 Method and device for internationalized processing of software, storage medium and electronic device
CN111104197A (en) * 2019-12-24 2020-05-05 深南电路股份有限公司 Display language switching method and device and storage medium
CN111159616A (en) * 2019-12-31 2020-05-15 深圳市丰润达科技有限公司 Multi-language-based switch management method and device and storage medium
CN111159616B (en) * 2019-12-31 2023-04-14 深圳市丰润达科技有限公司 Multi-language-based switch management method and device and storage medium
CN112764843A (en) * 2020-12-29 2021-05-07 北京谊安医疗系统股份有限公司 Multi-language processing method and system for medical equipment monitoring system
CN114330248A (en) * 2022-02-22 2022-04-12 深圳市微克科技有限公司 Method for automatically switching multinational languages of intelligent wearable system

Also Published As

Publication number Publication date
CN102681851B (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN102681851A (en) Multi-language dynamic switching method for embedded device
TWI573029B (en) Method, system and recording medium for providing dictionary function and file distribution system
CN100447743C (en) System and method for localizing JAVA GUI application without modifying source code
CN108037961A (en) A kind of application program collocation method, device, server and storage medium
CN105867920A (en) APP multi-language switching method and system
CN105138350A (en) International multi-language implement method of configuration software
CN105988996B (en) Index file generation method and device
CN103309647A (en) Application program multi-language support system and method
CN103077043B (en) A kind of method of quick Start-up and operating performance Linux
CN105354097B (en) Data operation method and device based on clipboard and electronic equipment
US20200296152A1 (en) Blockchain-based file processing method, apparatus, and device, and storage medium
CN112965770A (en) Multi-language resource management method, module, device, system and readable storage medium
CN104375845A (en) Application startup method and device and terminal
CN102364437A (en) Multi-language site development system and implementation method thereof
CN109791497A (en) A kind of method, apparatus and terminal executing hot patch
CN103425509B (en) A kind of method and device for installing language package
CN102609453A (en) Embedded file searching method and embedded file searching system
CN103164122B (en) A kind of method and device calling address list content
CN103473096A (en) Method and system for loading java class on virtual machine of android system
CN111625300B (en) Efficient data acquisition loading method and system
CN103106194A (en) Mobile terminal language transfer method and mobile terminal thereof
CN106484375B (en) Instruction block loading method, soft switch equipment and system
CN101770508B (en) Data access method in mobile communication terminal and equipment thereof
CN105204876A (en) System starting method and electronic equipment
CN112181550A (en) UI multi-language conversion method and system for smart television operating system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: XUJI ELECTRIC CO., LTD. XUCHANG XUJI SOFTWARE TECH

Free format text: FORMER OWNER: XUJI ELECTRIC CO., LTD. XUCHANG XUJI SOFTWARE TECHNOLOGY CO., LTD.

Effective date: 20121129

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20121129

Address after: No. 1298 Xuchang City, Henan province 461000 XJ Avenue

Applicant after: Xuji Group Co., Ltd.

Applicant after: Xuji Electric Co., Ltd.

Applicant after: Xuchang Xuji Software Technology Co., Ltd.

Applicant after: State Grid Corporation of China

Address before: No. 1298 Xuchang City, Henan province 461000 XJ Avenue

Applicant before: Xuji Group Co., Ltd.

Applicant before: Xuji Electric Co., Ltd.

Applicant before: Xuchang Xuji Software Technology Co., Ltd.

ASS Succession or assignment of patent right

Owner name: XUJI ELECTRIC CO., LTD.

Free format text: FORMER OWNER: XUJI GROUP CO., LTD.

Effective date: 20131202

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20131202

Address after: No. 1298 Xuchang City, Henan province 461000 XJ Avenue

Applicant after: Xuji Electric Co., Ltd.

Applicant after: Xuchang Xuji Software Technology Co., Ltd.

Applicant after: State Grid Corporation of China

Address before: No. 1298 Xuchang City, Henan province 461000 XJ Avenue

Applicant before: Xuji Group Co., Ltd.

Applicant before: Xuji Electric Co., Ltd.

Applicant before: Xuchang Xuji Software Technology Co., Ltd.

Applicant before: State Grid Corporation of China

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160420

Termination date: 20190511

CF01 Termination of patent right due to non-payment of annual fee