CN109445779A - The rendering method and terminal device of multiple-language user interface - Google Patents
The rendering method and terminal device of multiple-language user interface Download PDFInfo
- Publication number
- CN109445779A CN109445779A CN201811066340.9A CN201811066340A CN109445779A CN 109445779 A CN109445779 A CN 109445779A CN 201811066340 A CN201811066340 A CN 201811066340A CN 109445779 A CN109445779 A CN 109445779A
- Authority
- CN
- China
- Prior art keywords
- language
- text information
- user interface
- user
- log
- 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
- 238000009877 rendering Methods 0.000 title claims abstract description 71
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000004048 modification Effects 0.000 claims description 59
- 238000012986 modification Methods 0.000 claims description 59
- 238000012544 monitoring process Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 19
- 238000013507 mapping Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 13
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 238000013461 design Methods 0.000 description 5
- 230000002085 persistent effect Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000002045 lasting effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
Abstract
The present invention is suitable for field of computer technology, provides the rendering method and terminal device of a kind of multiple-language user interface, comprising: receives the log-on message of user's input by user interface, and judges whether active user is to first log into according to the log-on message;If active user is to first log into, the corresponding text information of default language is obtained, and by the corresponding text information of the default language labeled as rendering text information;If active user does not first log into, the corresponding text information of habit language is obtained, and by the corresponding text information of the habit language labeled as rendering text information, the habit language is language corresponding with the log-on message;The user interface is rendered according to the rendering text information.By the above method, it is effectively simplified the render process of multiple-language user interface, improves rendering efficiency.
Description
Technical field
The present invention relates to the rendering methods and terminal of field of computer technology more particularly to a kind of multiple-language user interface to set
It is standby.
Background technique
User interface (User Interface, UI) refers to the operation interface of user.UI design had both included the sample to interface
The design of label/prompting message/element pattern, further includes the design to human-computer interaction, operation logic in formula, interface.Alright
UI not only makes software become have individual character to have good taste, and so that the operation of software is become comfortable, simple, free, fully demonstrate software
Positioning and feature.
For international application software, UI design need to consider different language.If it is desired to allowing existing application software
Adapt to multilingual application environment, then need to recompilate code, this process can consume a large amount of manpower and time, efficiency compared with
It is low.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of rendering method of multiple-language user interface and terminal device, with
Solve the problems, such as that the rendering method of multiple-language user interface in the prior art is cumbersome, low efficiency.
The embodiment of the present invention in a first aspect, provide the rendering method of multiple-language user interface, may include:
The log-on message of user's input is received by user interface, and whether active user is judged according to the log-on message
To first log into;
If active user is to first log into, the corresponding text information of default language is obtained, and by the default language pair
The text information answered is labeled as rendering text information;
If active user does not first log into, the corresponding text information of habit language is obtained, and by the habit language
For corresponding text information labeled as rendering text information, the habit language is language corresponding with the log-on message;
The user interface is rendered according to the rendering text information.
The second aspect of the embodiment of the present invention, provides a kind of computer readable storage medium, described computer-readable to deposit
Storage media is stored with computer program, and the computer program realizes following steps when being executed by processor:
The log-on message of user's input is received by user interface, and whether active user is judged according to the log-on message
To first log into;
If active user is to first log into, the corresponding text information of default language is obtained, and by the default language pair
The text information answered is labeled as rendering text information;
If active user does not first log into, the corresponding text information of habit language is obtained, and by the habit language
For corresponding text information labeled as rendering text information, the habit language is language corresponding with the log-on message;
The user interface is rendered according to the rendering text information.
The third aspect of the embodiment of the present invention, provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
Realize following steps:
The log-on message of user's input is received by user interface, and whether active user is judged according to the log-on message
To first log into;
If active user is to first log into, the corresponding text information of default language is obtained, and by the default language pair
The text information answered is labeled as rendering text information;
If active user does not first log into, the corresponding text information of habit language is obtained, and by the habit language
For corresponding text information labeled as rendering text information, the habit language is language corresponding with the log-on message;
The user interface is rendered according to the rendering text information.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
The embodiment of the present invention is by judging whether active user is to first log into according to log-on message, if first logging into,
Then directly user interface is rendered according to default language corresponding text information;If not first logging into, then according to user
The corresponding text envelope of habit language when logging in front of renders user interface.By the above method, it is effectively simplified more
The render process at language users interface, improves rendering efficiency.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram of the rendering method of multiple-language user interface provided in an embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram of the rendering method for the multiple-language user interface that further embodiment of this invention provides;
Fig. 3 is the schematic diagram of the rendering device of multiple-language user interface provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is the implementation process schematic diagram of the rendering method of multiple-language user interface provided in an embodiment of the present invention, is such as schemed
Shown, the method may include following steps:
Step S101 is received the log-on message of user's input by user interface, and is worked as according to log-on message judgement
Whether preceding user is to first log into.
In practical applications, log-on message can be account, password etc..
Step S102 obtains the corresponding text information of default language, and will be described silent if active user is to first log into
The corresponding text information of language is recognized labeled as rendering text information.
Wherein, default language is preset, can be and is arranged in installation system.Text information can be user
Label, prompting message in interface etc..
Step S103 obtains the corresponding text information of habit language, and will be described if active user does not first log into
It is accustomed to the corresponding text information of language labeled as rendering text information, the habit language is language corresponding with the log-on message
Speech.
Wherein, habit language refers to the language of user oneself setting.After user sets habit language, by the login of user
Information is bound with habit language, in this way, can directly be carried out using habit language to user interface when next user logs in
Rendering.
Step S104 renders the user interface according to the rendering text information.
In one embodiment, it before being rendered according to the rendering text information to the user interface, also wraps
It includes:
Obtain preset language and the corresponding text information of the preset language.
It will be in the preset language corresponding text information deposit preset cache library.
By the preset language alternatively item, and the options is shown to user by user interface.
In practical applications, preset language may include the multilinguals such as Chinese, English, French, Japanese, Korean, be pre-
First set.In general, the corresponding text information of preset language is stored in the database of data Layer, and user interface is then located
Text information is called in the user interface of presentation layer, each presentation layer, requires to arrive data Layer again by application layer, persistent layer,
Text information is obtained from the database of data Layer.In the embodiment of the present invention, by preset language and the corresponding text of preset language
Information is stored into preset cache library, and preset cache warehouse compartment is in application layer, can be in this way, when user selects preset language
The corresponding text information of preset language is directly transferred from the preset cache library of application layer, avoids and obtains from data Layer, is reduced
Calling depth improves the speed for obtaining text information.
In one embodiment, after the options is shown to user by user interface, further includes:
The selection instruction of user is monitored in the preset time being shown to the options by user interface after user,
The selection instruction includes selection language.
If not monitoring the choosing of user in the preset time being shown to the options by user interface after user
Instruction is selected, then is bound using current language as habit language with the log-on message.
If monitoring the selection of user in the preset time being shown to the options by user interface after user
Instruction, then obtain the corresponding text information of the selection language, and be by text information flag from the preset cache library
Render text information.
Language is selected to bind as habit language with the log-on message using described.
Wherein, preset time can be preset, and preset time can be the specific time, when being also possible to one
Between section.Illustratively, it is assumed that preset time is the time from user's logged-on user interface to closing user interface, during this period,
If user has selected preset language A from options, i.e. the processor selection instruction that monitors user, then from preset cache library
The corresponding text information of middle acquisition preset language A, renders user interface with text information, and preset language A is made
Log-on message for habit language and user is bound;If during this period, the non-selected language of user, i.e. processor do not monitor
To the selection instruction of user, then bound current language as the log-on message of habit language and user.
In one embodiment, it after being rendered according to the rendering text information to the user interface, also wraps
It includes:
View jump instruction is monitored, the view jump instruction includes target view position.
If monitoring view jump instruction, according to the target view position acquisition target view, and according to the habit
The used corresponding text information of language renders the target view.
In practical applications, view is jumped if necessary, then target view is rendered according to current language.
The embodiment of the present invention is by judging whether active user is to first log into according to log-on message, if first logging into,
Then directly user interface is rendered according to default language corresponding text information;If not first logging into, then according to user
The corresponding text envelope of habit language when logging in front of renders user interface.By the above method, it is effectively simplified more
The render process at language users interface, improves rendering efficiency.
Fig. 2 is the implementation process schematic diagram of the rendering method for the multiple-language user interface that further embodiment of this invention provides,
As shown in Fig. 2, the method can also wrap after receiving the log-on message that user inputs by user interface in step s101
It includes:
Step S201, judge the log-on message it is corresponding whether be administrator.
Administrator can be judged whether it is according to the account information in log-on message.Before this, it needs to set in advance
Determine the account information of administrator.
Step S202 works as if it is not administrator that the log-on message is corresponding according to log-on message judgement
Whether preceding user is to first log into.
If corresponding log-on message is not administrator, carried out according to step S102-S104, particular content can join
See the description of embodiment in step S102-S104, details are not described herein.
Step S203 monitors text modification request, the text if it is administrator that the log-on message is corresponding
Modification request includes modification content.
Step S204 requests the modification according to the modification content if monitoring the text modification request
Corresponding text information is modified.
In practical applications, only administrator can modify to the text information of user interface.
In one embodiment, described to request corresponding text information to be repaired the modification according to the modification content
Change, comprising:
The configuration that Object Relation Mapping is carried out to modified text information, obtains perdurable data.
Text information corresponding with the modification request in presetting database is replaced with into the perdurable data, and is generated
Modification record.
The modification record is shown to the administrator by the user interface.
In practical applications, administrator is to the modification of text in presentation layer, and the text controller of application layer is according to administrator
Modification request modify to correspondingly content of text, and modified modification text is transmitted to persistent layer;Persistent layer connects
After receiving modification text, the configuration of Object Relation Mapping is carried out, to modification text to complete the persistence of data;Persistent layer will be held
Modification text after longization is sent to data Layer, modifies in data Layer to data corresponding in database;After successfully modified,
Successively from data Layer, persistent layer to application layer, text controller of the result back to application layer will be modified, and then in presentation layer
It is shown in user interface.
In one embodiment, by the modification record by the user interface be shown to the administrator it
Afterwards, further includes:
Text information corresponding with the modification request in preset cache library is replaced with into the modified text information.
The corresponding text information of the acquisition default language, comprising:
The corresponding text information of default language is obtained from the preset cache library.
The corresponding text information of language is accustomed in the acquisition, comprising:
The corresponding text information of habit language is obtained from the preset cache library.
The corresponding text information of preset language is directly transferred from the preset cache library of application layer, is avoided and is obtained from data Layer
It takes, reduces calling depth, improve the speed for obtaining text information.
Modification operation is provided in the embodiment of the present invention, administrator can modify to text information, can be at any time
Increase, delete, the text information of modification user interface is not necessarily to manual amendment's generation when needing to modify user interface text information
Code recompilates, and saves manpower, improves efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Fig. 3 is the schematic diagram of the rendering device of multiple-language user interface provided in an embodiment of the present invention, for ease of description,
Part related to the embodiment of the present invention is only shown.
The rendering device of multiple-language user interface shown in Fig. 3 can be the software list being built in existing terminal device
Member, hardware cell or soft or hard combination unit, can also be used as independent pendant and be integrated into the terminal device, can be with
Exist as independent terminal device.
The rendering device 3 of the multiple-language user interface includes:
First judging unit 31, for receiving the log-on message of user's input by user interface, and according to the login
Information judges whether active user is to first log into.
First acquisition unit 32 obtains the corresponding text information of default language if being to first log into for active user,
And by the corresponding text information of the default language labeled as rendering text information.
Second acquisition unit 33 obtains the corresponding text envelope of habit language if not first logging into for active user
Breath, and by the corresponding text information of the habit language labeled as rendering text information, the habit language is and the login
The corresponding language of information.
First rendering unit 34, for being rendered according to the rendering text information to the user interface.
Optionally, described device 3 further include:
Third acquiring unit, for obtaining before being rendered according to the rendering text information to the user interface
Take preset language and the corresponding text information of the preset language.
Storage unit, for the corresponding text information of the preset language to be stored in preset cache library.
Display unit for by the preset language alternatively item, and the options is shown by user interface
To user.
Optionally, described device 3 further include:
First monitoring unit, for after the options is shown to user by user interface, by the choosing
The selection instruction of monitoring user in the preset time after item is shown to user by user interface is selected, the selection instruction includes choosing
Select language.
First binding unit, if in the preset time being shown to the options by user interface after user
The selection instruction of user is not monitored, then is bound using current language as habit language with the log-on message.
4th acquiring unit, if in the preset time being shown to the options by user interface after user
It monitors the selection instruction of user, then obtains the corresponding text information of the selection language from the preset cache library, and will
Text information flag is rendering text information;
Second binding unit, for selecting language to bind as habit language with the log-on message for described.
Optionally, described device 3 further include:
Second monitoring unit, for supervising after being rendered according to the rendering text information to the user interface
Surveys view jump instruction, the view jump instruction include target view position.
Second rendering unit, if for monitoring view jump instruction, according to the target view position acquisition target
View, and the target view is rendered according to the habit language corresponding text information.
Optionally, described device 3 further include:
Second judgment unit, for being stepped on described in judgement after the log-on message for receiving user's input by user interface
Whether it is administrator that it is corresponding to record information.
Third judging unit is believed if corresponding for the log-on message is not administrator according to the login
Breath judges whether active user is to first log into.
Third monitoring unit monitors text modification request if corresponding for the log-on message is administrator,
The text modification request includes modification content.
Unit is modified, if for monitoring the text modification request, according to the modification content to the modification
Corresponding text information is requested to be modified.
Optionally, the modification unit includes:
Mapping block obtains perdurable data for carrying out the configuration of Object Relation Mapping to modified text information.
Generation module, it is described lasting for replacing with text information corresponding with the modification request in presetting database
Change data, and generates modification record.
Display module, for the modification record to be shown to the administrator by the user interface.
Optionally, the modification unit further include:
Replacement module, for by the modification record by the user interface be shown to the administrator it
Afterwards, text information corresponding with the modification request in preset cache library is replaced with into the modified text information.
The first acquisition unit 32 includes:
First obtains module, for obtaining the corresponding text information of default language from the preset cache library.
The second acquisition unit 33 includes:
Second obtains module, for obtaining the corresponding text information of habit language from the preset cache library.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Fig. 4 is the schematic diagram of terminal device provided in an embodiment of the present invention.As shown in figure 4, the terminal device 4 of the embodiment
Include: processor 40, memory 41 and is stored in the calculating that can be run in the memory 41 and on the processor 40
Machine program 42.The processor 40 realizes the rendering side of above-mentioned each multiple-language user interface when executing the computer program 42
Step in method embodiment, such as step S101 to S104 shown in FIG. 1.Alternatively, the processor 40 executes the computer
The function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 34 shown in Fig. 3 are realized when program 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
It is cut into the first judging unit, first acquisition unit, second acquisition unit, the first rendering unit, each unit concrete function is as follows:
First judging unit is believed for receiving the log-on message of user's input by user interface, and according to the login
Breath judges whether active user is to first log into.
First acquisition unit obtains the corresponding text information of default language if being to first log into for active user, and
By the corresponding text information of the default language labeled as rendering text information.
Second acquisition unit obtains the corresponding text information of habit language if not first logging into for active user,
And by the corresponding text information of the habit language labeled as rendering text information, the habit language is and the log-on message
Corresponding language.
First rendering unit, for being rendered according to the rendering text information to the user interface.
Optionally, described device further include:
Third acquiring unit, for obtaining before being rendered according to the rendering text information to the user interface
Take preset language and the corresponding text information of the preset language.
Storage unit, for the corresponding text information of the preset language to be stored in preset cache library.
Display unit for by the preset language alternatively item, and the options is shown by user interface
To user.
Optionally, described device further include:
First monitoring unit, for after the options is shown to user by user interface, by the choosing
The selection instruction of monitoring user in the preset time after item is shown to user by user interface is selected, the selection instruction includes choosing
Select language.
First binding unit, if in the preset time being shown to the options by user interface after user
The selection instruction of user is not monitored, then is bound using current language as habit language with the log-on message.
4th acquiring unit, if in the preset time being shown to the options by user interface after user
It monitors the selection instruction of user, then obtains the corresponding text information of the selection language from the preset cache library, and will
Text information flag is rendering text information;
Second binding unit, for selecting language to bind as habit language with the log-on message for described.
Optionally, described device further include:
Second monitoring unit, for supervising after being rendered according to the rendering text information to the user interface
Surveys view jump instruction, the view jump instruction include target view position.
Second rendering unit, if for monitoring view jump instruction, according to the target view position acquisition target
View, and the target view is rendered according to the habit language corresponding text information.
Optionally, described device further include:
Second judgment unit, for being stepped on described in judgement after the log-on message for receiving user's input by user interface
Whether it is administrator that it is corresponding to record information.
Third judging unit is believed if corresponding for the log-on message is not administrator according to the login
Breath judges whether active user is to first log into.
Third monitoring unit monitors text modification request if corresponding for the log-on message is administrator,
The text modification request includes modification content.
Unit is modified, if for monitoring the text modification request, according to the modification content to the modification
Corresponding text information is requested to be modified.
Optionally, the modification unit includes:
Mapping block obtains perdurable data for carrying out the configuration of Object Relation Mapping to modified text information.
Generation module, it is described lasting for replacing with text information corresponding with the modification request in presetting database
Change data, and generates modification record.
Display module, for the modification record to be shown to the administrator by the user interface.
Optionally, the modification unit further include:
Replacement module, for by the modification record by the user interface be shown to the administrator it
Afterwards, text information corresponding with the modification request in preset cache library is replaced with into the modified text information.
The first acquisition unit includes:
First obtains module, for obtaining the corresponding text information of default language from the preset cache library.
The second acquisition unit includes:
Second obtains module, for obtaining the corresponding text information of habit language from the preset cache library.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of rendering method of multiple-language user interface characterized by comprising
By user interface receive user input log-on message, and according to the log-on message judge active user whether headed by
Secondary login;
If active user is to first log into, the corresponding text information of default language is obtained, and the default language is corresponding
Text information is labeled as rendering text information;
If active user does not first log into, the corresponding text information of habit language is obtained, and the habit language is corresponding
Text information labeled as rendering text information, the habit language be language corresponding with the log-on message;
The user interface is rendered according to the rendering text information.
2. the rendering method of multiple-language user interface as described in claim 1, which is characterized in that according to the rendering text
Before information renders the user interface, further includes:
Obtain preset language and the corresponding text information of the preset language;
It will be in the preset language corresponding text information deposit preset cache library;
By the preset language alternatively item, and the options is shown to user by user interface.
3. the rendering method of multiple-language user interface as claimed in claim 2, which is characterized in that pass through by the options
User interface is shown to after user, further includes:
The selection instruction of user is monitored in the preset time being shown to the options by user interface after user, it is described
Selection instruction includes selection language;
If not monitoring that the selection of user refers in the preset time being shown to the options by user interface after user
It enables, is then bound using current language as habit language with the log-on message;
If monitoring the selection instruction of user in the preset time being shown to the options by user interface after user,
The corresponding text information of the selection language is then obtained from the preset cache library, and is rendering text by text information flag
This information;
Language is selected to bind as habit language with the log-on message using described.
4. the rendering method of multiple-language user interface as claimed in claim 3, which is characterized in that according to the rendering text
After information renders the user interface, further includes:
View jump instruction is monitored, the view jump instruction includes target view position;
If monitoring view jump instruction, according to the target view position acquisition target view, and according to the expression
Say that corresponding text information renders the target view.
5. the rendering method of multiple-language user interface as claimed in claim 2, which is characterized in that received by user interface
After the log-on message of user's input, comprising:
Judge the log-on message it is corresponding whether be administrator;
If the corresponding log-on message is not administrator, according to the log-on message judge active user whether headed by
Secondary login;
If the corresponding log-on message is administrator, text modification request is monitored, the text modification request includes
Modify content;
If monitoring the text modification request, corresponding text information is requested to the modification according to the modification content
It modifies.
6. the rendering method of multiple-language user interface as claimed in claim 5, which is characterized in that described according in the modification
Hold and request corresponding text information to be modified the modification, comprising:
The configuration that Object Relation Mapping is carried out to modified text information, obtains perdurable data;
Text information corresponding with the modification request in presetting database is replaced with into the perdurable data, and generates modification
Record;
The modification record is shown to the administrator by the user interface.
7. the rendering method of multiple-language user interface as claimed in claim 6, which is characterized in that lead to by the modification record
The user interface is crossed to be shown to after the administrator, further includes:
Text information corresponding with the modification request in preset cache library is replaced with into the modified text information;
The corresponding text information of the acquisition default language, comprising:
The corresponding text information of default language is obtained from the preset cache library;
The corresponding text information of language is accustomed in the acquisition, comprising:
The corresponding text information of habit language is obtained from the preset cache library.
8. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realizing the multiple-language user interface as described in any one of claims 1 to 7 when the computer program is executed by processor
The step of rendering method.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes following steps when executing the computer program:
By user interface receive user input log-on message, and according to the log-on message judge active user whether headed by
Secondary login;
If active user is to first log into, the corresponding text information of default language is obtained, and the default language is corresponding
Text information is labeled as rendering text information;
If active user does not first log into, the corresponding text information of habit language is obtained, and the habit language is corresponding
Text information labeled as rendering text information, the habit language be language corresponding with the log-on message;
The user interface is rendered according to the rendering text information.
10. terminal device as claimed in claim 9, which is characterized in that in the login for receiving user's input by user interface
Before information, further includes:
Obtain preset language and the corresponding text information of the preset language;
It will be in the preset language corresponding text information deposit preset cache library;
By the preset language alternatively item, and the options is shown to user by user interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811066340.9A CN109445779A (en) | 2018-09-13 | 2018-09-13 | The rendering method and terminal device of multiple-language user interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811066340.9A CN109445779A (en) | 2018-09-13 | 2018-09-13 | The rendering method and terminal device of multiple-language user interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109445779A true CN109445779A (en) | 2019-03-08 |
Family
ID=65530446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811066340.9A Pending CN109445779A (en) | 2018-09-13 | 2018-09-13 | The rendering method and terminal device of multiple-language user interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445779A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110618812A (en) * | 2019-03-18 | 2019-12-27 | 北京无限光场科技有限公司 | Information presentation method and device |
CN113867665A (en) * | 2021-09-17 | 2021-12-31 | 珠海格力电器股份有限公司 | Display language modification method and device, electrical equipment and terminal equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1577263A (en) * | 2003-06-26 | 2005-02-09 | 华为技术有限公司 | Multilanguage-supporting user interface realizing method and apparatus thereof |
CN101398845A (en) * | 2008-11-05 | 2009-04-01 | 深圳市金蝶中间件有限公司 | Multi-language binding method and system in web applications |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
CN101916192A (en) * | 2010-09-14 | 2010-12-15 | 深圳市华力特电气股份有限公司 | Multi-language switching method and device for user interface |
CN102109958A (en) * | 2011-03-04 | 2011-06-29 | 深圳市开立科技有限公司 | Method and system for realizing multilingual user interface |
WO2013136344A2 (en) * | 2012-03-14 | 2013-09-19 | Rao K V Ramalingeswara | Method and system for transliterating text from one language to multiple language scripts |
CN104375808A (en) * | 2013-07-11 | 2015-02-25 | 携程计算机技术(上海)有限公司 | Method and device for displaying interfaces |
CN105138555A (en) * | 2015-07-20 | 2015-12-09 | 新浪网技术(中国)有限公司 | Webpage multi-language internationalization loading method and apparatus |
CN105867920A (en) * | 2016-03-29 | 2016-08-17 | 海尔优家智能科技(北京)有限公司 | APP multi-language switching method and system |
CN106569822A (en) * | 2016-11-03 | 2017-04-19 | 深圳市证通电子股份有限公司 | Language matching method and device of WEB system |
-
2018
- 2018-09-13 CN CN201811066340.9A patent/CN109445779A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1577263A (en) * | 2003-06-26 | 2005-02-09 | 华为技术有限公司 | Multilanguage-supporting user interface realizing method and apparatus thereof |
CN101398845A (en) * | 2008-11-05 | 2009-04-01 | 深圳市金蝶中间件有限公司 | Multi-language binding method and system in web applications |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
CN101916192A (en) * | 2010-09-14 | 2010-12-15 | 深圳市华力特电气股份有限公司 | Multi-language switching method and device for user interface |
CN102109958A (en) * | 2011-03-04 | 2011-06-29 | 深圳市开立科技有限公司 | Method and system for realizing multilingual user interface |
WO2013136344A2 (en) * | 2012-03-14 | 2013-09-19 | Rao K V Ramalingeswara | Method and system for transliterating text from one language to multiple language scripts |
CN104375808A (en) * | 2013-07-11 | 2015-02-25 | 携程计算机技术(上海)有限公司 | Method and device for displaying interfaces |
CN105138555A (en) * | 2015-07-20 | 2015-12-09 | 新浪网技术(中国)有限公司 | Webpage multi-language internationalization loading method and apparatus |
CN105867920A (en) * | 2016-03-29 | 2016-08-17 | 海尔优家智能科技(北京)有限公司 | APP multi-language switching method and system |
CN106569822A (en) * | 2016-11-03 | 2017-04-19 | 深圳市证通电子股份有限公司 | Language matching method and device of WEB system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110618812A (en) * | 2019-03-18 | 2019-12-27 | 北京无限光场科技有限公司 | Information presentation method and device |
CN113867665A (en) * | 2021-09-17 | 2021-12-31 | 珠海格力电器股份有限公司 | Display language modification method and device, electrical equipment and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108038009B (en) | Front-end and back-end interaction method and device based on Web application and computer equipment | |
US20120260229A1 (en) | Software tool and method for generating a virtual appliance | |
CN109145539A (en) | A kind of right management method and electronic equipment of more programming projects | |
CN108958881A (en) | Data processing method, device and computer readable storage medium | |
CN108959605A (en) | For the screenshot method of webpage, device, computer equipment and storage medium | |
CN107944000A (en) | Flight freight rate update method, device, electronic equipment, storage medium | |
CN110018765A (en) | Page display method, device, terminal and storage medium | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
US10262155B1 (en) | Disabling features using feature toggle | |
CN107807935B (en) | Using recommended method and device | |
CN110244963A (en) | Data-updating method, device and terminal device | |
CN110795181A (en) | Application program interface display method and device based on skip protocol and electronic equipment | |
CN109857575A (en) | Interface call method, device, electronic equipment and storage medium | |
CN107506494B (en) | Document handling method, mobile terminal and computer readable storage medium | |
CN107894945A (en) | Bury an adding method, mobile terminal and computer-readable recording medium | |
CN109976823A (en) | A kind of application program launching method, device and terminal device | |
CN111538659B (en) | Interface testing method, system, electronic equipment and storage medium of business scene | |
CN109445779A (en) | The rendering method and terminal device of multiple-language user interface | |
CN111611514A (en) | Page display method and device based on user login information and electronic equipment | |
US20210397646A1 (en) | Method, electronic device, and storage medium for processing visual data of deep model | |
JP2022091904A (en) | Mini program page skin changeover method, device, and electronic apparatus | |
CN108490824B (en) | Intelligent electric appliance control method, device and mobile terminal | |
CN112052152A (en) | Simulation test method and device | |
CN109271266A (en) | Document transmission method, device and terminal device | |
CN115712422A (en) | Form page generation method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |