CN101093443A - Dynamic switching method for multilanguage of system based on Flash representation layer - Google Patents
Dynamic switching method for multilanguage of system based on Flash representation layer Download PDFInfo
- Publication number
- CN101093443A CN101093443A CN 200610028063 CN200610028063A CN101093443A CN 101093443 A CN101093443 A CN 101093443A CN 200610028063 CN200610028063 CN 200610028063 CN 200610028063 A CN200610028063 A CN 200610028063A CN 101093443 A CN101093443 A CN 101093443A
- Authority
- CN
- China
- Prior art keywords
- language
- switching method
- dynamic switching
- presentation layer
- system based
- 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
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
- Digital Computer Display Output (AREA)
Abstract
A method for dynamically switching over system Multilanguage based on Flash presentation layer includes setting up a language packet supervisor to load external language packet file into internal memory and to assign data access interface, setting up typeface supervisor of corresponding language, better utilizing different typeface for different language and processing language switching over information of user.
Description
Technical field
The present invention relates to a kind of multilingual dynamic switching method, relate in particular to the multilingual dynamic switching method of a kind of system based on the Flash presentation layer.
Background technology
Using presentation layer, utilizing the Flash exploitation, developing easily and powerful language support, can reduce cost of development greatly, and can obtain better visual effect and user experience because of it.
Traditional software multi-language version is general to adopt following several modes to realize: issue a plurality of versions at every kind of language; , after switching, need to restart software or refresh the page with the option that provides language to switch in software setting.Above dual mode is more suitable for the sole user that the language-specific deflection is arranged.Because the user generally can be not frequent the change language.But, for some communal facilitys, for example, ATM, ticket sale system etc. because at the crowd more extensive, therefore, even the language manipulation interface that can provide the user to need easily necessitates.
In the Flash exploitation, need such function too, the spoken and written languages that need to show all are present in the text box object of Flash, can pass through to change the literal in the text box, thereby reach the switching of language.If just two TextField.texts change and uncomplicated still, will become and can't imagine for a large-scale application.And Flash is unsatisfactory for the support of multi-language text, and especially the switching between european language and the Asian language is especially supported badly, and at this problem, this paper provides a kind of convenient mode to realize multilingual fast switching method.
Summary of the invention
Purpose of the present invention is exactly to provide a kind of system based on the Flash presentation layer multilingual dynamic switching method for the defective that overcomes above-mentioned prior art existence.
Purpose of the present invention can be achieved through the following technical solutions; Based on the multilingual dynamic switching method of the system of Flash presentation layer, it is characterized in that the performing step of this method comprises:
(1). by setting up a language pack manager, it is responsible for the language pack file of outside is loaded into internal memory, and the specific data access interface;
(2). all text display objects are added in the tabulation;
(3). set up the script management device of corresponding language, different language preferably adopts different fonts; The mode that the font of text display object is made adjustment is to adopt the text element formatted object to realize, when a kind of new language being set for the text display object, and corresponding its text formatting object of modification;
(4). process user language handover information.
Data access interface in the described step (1) adopts the mode of tables of data on data structure.
Tabulation in the described step (2) adopts the singly-bound pattern to set up.
Tabulation in the described step (2) has to be added and delete function.
Tabulation in the described step (2) can be returned all text display objects of registration now.
Process user language handover information comprises the mode that foundation provides the user to switch in the described step (4), and pounces on and obtain user's operation information.
Process user language handover information comprises at user's operation the language data of correspondence is loaded into the text display object in the described step (4).
Process user language handover information comprises text font and the text formatting object that corresponding language is set in the described step (4).
Compared with prior art, the present invention can change language fast, reduces the resource of system and uses, and has optimized the interface.
Description of drawings
Fig. 1 is a structural drawing of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
As shown in Figure 1, based on the multilingual dynamic switching method of the system of Flash presentation layer, carry out following steps:
(1) foundation can comprise multilingual at the language pack of this language in the language pack.
(2) set up regional language text controller, when the user sent the change language, controller was to the data of language pack request correspondence;
(3) language pack is returned the controller request, and the language of needs is returned to controller;
(4) the text display text display that will upgrade in time according to the information that the control phase sends.
Based on the multilingual dynamic switching method of the system of Flash presentation layer, realize in the following manner:
(1) by setting up a language pack manager, it is responsible for the language pack file of outside is loaded into internal memory, and the specific data access interface.Because this interface accessing is very frequent, therefore, preferably adopts the mode of tables of data on data structure, key-value pair should.
(2) all text display objects are added in the tabulation
A) list object adopts the singly-bound pattern to set up, so this is convenient to the text display object accesses
B) tabulation need have the function of adding and deleting
C) can return all text display objects of registration now
(3) set up the script management device of corresponding language, in Flash, different language preferably adopts different fonts, and is normal to guarantee to show.The mode that the font of text display object is made adjustment is to adopt the text element formatted object to realize, when a kind of new language being set for the text display object, and should corresponding its text formatting object of modification.
(4) process user language handover information
A) set up the mode that provides the user to switch, and pounce on and obtain user's operation information
B) at user's operation the language data of correspondence is loaded into the text display object.
C) text font and the text formatting object of corresponding language are set.
This invention has the following advantages:
(1) with respect to issuing multi-language version or need restart software when the user's modification language being provided with, this mode has been avoided the installation and the software restarting of redaction, can change language fast.At the multilingual demand of multi-user the time, outstanding performance is arranged;
(2) adopt the outside mode that in time is written into language pack, can effectively reduce the resource of system and use, simultaneously, the also interface of providing convenience for multilingual exploitation of later stage;
(3) at different language different display fonts is set, can effectively solves, show mistake owing to situations such as font lacks cause literal in different zones.The interface that while is also optimized to a certain extent.
Claims (8)
1. based on the multilingual dynamic switching method of the system of Flash presentation layer, it is characterized in that the performing step of this method comprises:
(1). by setting up a language pack manager, it is responsible for the language pack file of outside is loaded into internal memory, and the specific data access interface;
(2). all text display objects are added in the tabulation;
(3). set up the script management device of corresponding language, different language preferably adopts different fonts; The mode that the font of text display object is made adjustment is to adopt the text element formatted object to realize, when a kind of new language being set for the text display object, and corresponding its text formatting object of modification;
(4). process user language handover information.
2. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1 is characterized in that the data access interface in the described step (1) adopts the mode of tables of data on data structure.
3. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1 is characterized in that, the tabulation in the described step (2) adopts the singly-bound pattern to set up.
4. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1 is characterized in that, the tabulation in the described step (2) has to be added and delete function.
5. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1 is characterized in that, the tabulation in the described step (2) can be returned all text display objects of registration now.
6. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1 is characterized in that, process user language handover information comprises the mode that foundation provides the user to switch in the described step (4), and pounces on and obtain user's operation information.
7. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1, it is characterized in that process user language handover information comprises at user's operation the language data of correspondence is loaded into the text display object in the described step (4).
8. the multilingual dynamic switching method of the system based on the Flash presentation layer according to claim 1 is characterized in that, process user language handover information comprises text font and the text formatting object that corresponding language is set in the described step (4).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610028063 CN101093443A (en) | 2006-06-22 | 2006-06-22 | Dynamic switching method for multilanguage of system based on Flash representation layer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610028063 CN101093443A (en) | 2006-06-22 | 2006-06-22 | Dynamic switching method for multilanguage of system based on Flash representation layer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101093443A true CN101093443A (en) | 2007-12-26 |
Family
ID=38991721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200610028063 Pending CN101093443A (en) | 2006-06-22 | 2006-06-22 | Dynamic switching method for multilanguage of system based on Flash representation layer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101093443A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103886069A (en) * | 2014-03-21 | 2014-06-25 | 福建星网视易信息系统有限公司 | Software multi-language version real-time switching method and software multi-language version real-time switching system |
CN106873971A (en) * | 2016-12-29 | 2017-06-20 | 武汉斗鱼网络科技有限公司 | The multilingual methods of exhibiting and system of a kind of flash applications |
CN110532052A (en) * | 2019-08-26 | 2019-12-03 | 深圳坚朗海贝斯智能科技有限公司 | The multi-lingual switching method of intelligent lock system, intelligent lock system, storage unit |
WO2020063591A1 (en) * | 2018-09-30 | 2020-04-02 | 杭州海康威视数字技术股份有限公司 | Multi-language scheduling method and apparatus, and embedded device |
CN111258702A (en) * | 2020-02-17 | 2020-06-09 | 东风电子科技股份有限公司 | System and method for realizing multi-language text display processing in embedded equipment |
CN112764843A (en) * | 2020-12-29 | 2021-05-07 | 北京谊安医疗系统股份有限公司 | Multi-language processing method and system for medical equipment monitoring system |
-
2006
- 2006-06-22 CN CN 200610028063 patent/CN101093443A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103886069A (en) * | 2014-03-21 | 2014-06-25 | 福建星网视易信息系统有限公司 | Software multi-language version real-time switching method and software multi-language version real-time switching system |
CN103886069B (en) * | 2014-03-21 | 2017-10-03 | 福建星网视易信息系统有限公司 | A kind of real-time switching method of software multi-language version and its system |
CN106873971A (en) * | 2016-12-29 | 2017-06-20 | 武汉斗鱼网络科技有限公司 | The multilingual methods of exhibiting and system of a kind of flash applications |
CN106873971B (en) * | 2016-12-29 | 2020-08-04 | 武汉斗鱼网络科技有限公司 | Multi-language display method and system for flash application |
WO2020063591A1 (en) * | 2018-09-30 | 2020-04-02 | 杭州海康威视数字技术股份有限公司 | Multi-language scheduling method and apparatus, and embedded device |
CN110532052A (en) * | 2019-08-26 | 2019-12-03 | 深圳坚朗海贝斯智能科技有限公司 | The multi-lingual switching method of intelligent lock system, intelligent lock system, storage unit |
CN111258702A (en) * | 2020-02-17 | 2020-06-09 | 东风电子科技股份有限公司 | System and method for realizing multi-language text display processing in embedded equipment |
CN112764843A (en) * | 2020-12-29 | 2021-05-07 | 北京谊安医疗系统股份有限公司 | Multi-language processing method and system for medical equipment monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101916192B (en) | Multi-language switching method and device for user interface | |
EP3667520A1 (en) | Webpage content extraction method and terminal device | |
KR101716802B1 (en) | Client-server input method editor architecture | |
US8031943B2 (en) | Automatic natural language translation of embedded text regions in images during information transfer | |
CN102129364B (en) | Method for embedding widget toolbar in application program and rapid widget accessing method | |
US20130253901A1 (en) | System and method for automatic language translation for applications | |
CN101876907B (en) | Multi-language implementation method and device of human-computer interaction interface | |
CN101093443A (en) | Dynamic switching method for multilanguage of system based on Flash representation layer | |
CN104239284A (en) | Method and device for automatic image-text composition | |
CN110032324B (en) | Text selection method and terminal | |
US10489041B1 (en) | Rule-based user interface layout rearrangement | |
US7272792B2 (en) | Kana-to-kanji conversion method, apparatus and storage medium | |
US20070192686A1 (en) | Figure sizing and positioning on dynamic pages | |
CN104461519B (en) | A kind of flow chart dynamic generation and the method for control of authority | |
CN101566946A (en) | Method for flexibly supporting software multi-language version | |
US20120079367A1 (en) | Method and apparatus for defining an application to allow polymorphic serialization | |
US8566708B1 (en) | Merging electronic document redraws | |
CN107122190A (en) | A kind of multilingual static page generation method, server and storage medium | |
CN101483035B (en) | Method and system for display text on graphical interface | |
CN102364437A (en) | Multi-language site development system and implementation method thereof | |
CN101246420A (en) | Method and system for multi-language system implementing unified development | |
US10007648B2 (en) | Manual creation for a program product | |
CN104572593A (en) | Method, system and electronic device for processing letters | |
CN101431633B (en) | Multi-language supported OSD display method and system | |
CN103488748B (en) | A kind of Tibetan font library configuration method and device of android system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |