CN104915228B - Application program language setting method and device - Google Patents
Application program language setting method and device Download PDFInfo
- Publication number
- CN104915228B CN104915228B CN201510280557.XA CN201510280557A CN104915228B CN 104915228 B CN104915228 B CN 104915228B CN 201510280557 A CN201510280557 A CN 201510280557A CN 104915228 B CN104915228 B CN 104915228B
- Authority
- CN
- China
- Prior art keywords
- language
- mobile terminal
- application program
- setting
- current setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure discloses a kind of application program language setting method and device, belongs to computer application field.The method is used in electronic equipment, including:When the electronic equipment is installed or runs application program, detect whether the electronic equipment is connected with mobile terminal;If so, obtaining the language of the mobile terminal current setting;When the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, it sets the corresponding language of the application program to the language of the mobile terminal current setting.The disclosure passes through when installing or running the application program for managing mobile terminal, automatically the language for the mobile terminal being connected with electronic equipment is detected, and the corresponding language of application program is set as consistent with the language of mobile terminal, user's manual setting is not needed, simplify user setting step, improves user experience.
Description
Technical field
This disclosure relates to computer application field, more particularly to a kind of application program language setting method and device.
Background technology
As mobile terminal is also more and more universal, for the ease of in mobile terminal system and application program carry out pipe
Reason, many user's selection application journeys of installation for managing mobile terminal in the electronic equipment easy to operation such as PC
Sequence.
In the related art, the developer of the application program for managing mobile terminal is that application program setting is a variety of in advance
Language, user when the application is installed, can guide the language of manual setting application program in interface in installation;Alternatively, with
Family can also switch the language of application program when running application program in the setting interface of application program.
Invention content
Present disclose provides a kind of application program language setting method and devices.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of application program language setting method is provided, electronic equipment is used for
In, the method includes:
When the electronic equipment is installed or runs application program, detect whether the electronic equipment is connected with movement eventually
End;
If testing result, which is the electronic equipment, is connected with mobile terminal, the language of the mobile terminal current setting is obtained
Speech;
When the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, answered by described in
The language of the mobile terminal current setting is set as with the corresponding language of program.
Optionally, when the operating system of the mobile terminal is Android system, the acquisition mobile terminal is current
Before the language of setting, including:
Judge whether the mobile terminal has been switched on general-purpose serial bus USB debugging function;
If the mobile terminal has been switched on USB debugging functions, the acquisition mobile terminal current setting is executed
Language the step of.
Optionally, the method further includes:
If the mobile terminal is not yet turned on USB debugging functions, show that manual setting prompts, the manual setting prompt
Language for prompting for the corresponding language of the application program to be manually set to the mobile terminal current setting.
Optionally, the language for setting the corresponding language of the application program to the mobile terminal current setting,
Including:
When the electronic equipment installs the application program, by the display language at installation guiding interface and the application
The installation language of program is set as the language of the mobile terminal current setting;
When the electronic equipment runs the application program, it sets the display language of the application program to the shifting
The language of dynamic terminal current setting.
Optionally, the language for obtaining the mobile terminal current setting, including:
The area for obtaining the mobile terminal current setting, by the language corresponding to mobile terminal current setting area
It is determined as the language of the mobile terminal current setting.
Optionally, the method further includes:
Before setting the corresponding language of the application program to the language of the mobile terminal current setting, language is shown
Speech setting prompt, the language setting prompt carry out language setting for prompting whether to determine;
When receiving the operation for determining progress language setting, execute described by the corresponding language setting of the application program
For the mobile terminal current setting language the step of.
According to the second aspect of the embodiment of the present disclosure, a kind of application program language setting device is provided, electronic equipment is used for
In, described device includes:
Detection module, for when the electronic equipment is installed or runs application program, detecting the electronic equipment to be
It is no to be connected with mobile terminal;
Language acquisition module, if the testing result for the detection module, which is the electronic equipment, is connected with movement eventually
End, then obtain the language of the mobile terminal current setting;
Setup module, for differing when the corresponding language of the application program and the language of the mobile terminal current setting
When cause, it sets the corresponding language of the application program to the language of the mobile terminal current setting.
Optionally, described device further includes:
Judgment module, for before the language that the language acquisition module obtains the mobile terminal current setting, examining
Survey whether the mobile terminal has been switched on general-purpose serial bus USB debugging function;
The language acquisition module executes the acquisition if having been switched on USB debugging functions for the mobile terminal
The step of language of the mobile terminal current setting.
Optionally, described device further includes:
First reminding module shows that manual setting carries if being not yet turned on USB debugging functions for the mobile terminal
Show, the manual setting prompt is used to prompt that the corresponding language of the application program to be manually set to the mobile terminal current
The language of setting.
Optionally, the setup module, including:
First setting submodule, for when the electronic equipment installs the application program, the installation to be guided boundary
The display language in face and the installation language of the application program are set as the language of the mobile terminal current setting;
Second setting submodule, is used for when the electronic equipment runs the application program, by the application program
Display language is set as the language of the mobile terminal current setting.
Optionally, the language acquisition module, the area for obtaining the mobile terminal current setting, by the movement
Language corresponding to terminal current setting area is determined as the language of the mobile terminal current setting.
Optionally, described device further includes:
Second reminding module, for setting the corresponding language of the application program to the movement in the setup module
Before the language of terminal current setting, displaying language setting prompt, the language setting prompt is for prompting whether determine progress
Language is arranged;
The setup module, for when receiving the operation for determining progress language setting, executing described by the application
The corresponding language of program is set as the step of language of the mobile terminal current setting.
According to the third aspect of the embodiment of the present disclosure, a kind of application program language setting device is provided, electronic equipment is used for
In, described device includes:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When the electronic equipment is installed or runs application program, detect whether the electronic equipment is connected with movement eventually
End;
If testing result, which is the electronic equipment, is connected with mobile terminal, the language of the mobile terminal current setting is obtained
Speech;
When the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, answered by described in
The language of the mobile terminal current setting is set as with the corresponding language of program.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By when the electronic equipment is installed or runs application program, detecting whether the electronic equipment is connected with movement eventually
End, if so, the language of the mobile terminal current setting is obtained, when the corresponding language of the application program and the mobile terminal are current
When the language of setting is inconsistent, it sets the corresponding language of the application program to the language of the mobile terminal current setting, installs
Or when running the application program for managing mobile terminal, the language for the mobile terminal being connected with electronic equipment is detected automatically
Speech, and the corresponding language of application program is set as consistent with the language of mobile terminal, user's manual setting is not needed, simplifies and uses
Family setting steps improve user experience.
It should be understood that above general description and following detailed description is merely exemplary, this can not be limited
It is open.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of flow chart of application program language setting method shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the application program language setting method shown according to another exemplary embodiment;
Fig. 3 is a kind of flow chart of the application program language setting method shown according to a further exemplary embodiment;
Fig. 4 is a kind of block diagram of application program language setting device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the application program language setting device shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific implementation mode
Here will explanation be executed to exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of application program language setting method shown according to an exemplary embodiment.The application
Program language setting method can be used in the electronic equipments such as PC or laptop.As shown in Figure 1, this applies journey
Sequence language setting method may comprise steps of.
In a step 102, when the electronic equipment is installed or runs application program, detect whether the electronic equipment connects
There is mobile terminal.
At step 104, if testing result, which is the electronic equipment, is connected with mobile terminal, it is current to obtain the mobile terminal
The language of setting.
In step 106, when the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent,
Set the corresponding language of the application program to the language of the mobile terminal current setting.
Optionally, when the operating system of the mobile terminal is Android system, the acquisition mobile terminal current setting
Before language, including:
Judge whether the mobile terminal has been switched on general-purpose serial bus USB debugging function;
If the mobile terminal has been switched on USB debugging functions, the language of the acquisition mobile terminal current setting is executed
The step of.
Optionally, this method further includes:
If the mobile terminal is not yet turned on USB debugging functions, show that manual setting prompts, manual setting prompt is used for
The corresponding language of the application program is manually set to the language of the mobile terminal current setting by prompt.
Optionally, the language for setting the corresponding language of the application program to the mobile terminal current setting, including:
When the electronic equipment installs the application program, which is guided to the display language and the application program at interface
Installation language be set as the language of the mobile terminal current setting;
When the electronic equipment runs the application program, sets the display language of the application program to the mobile terminal and work as
The language of preceding setting.
Optionally, the language of the acquisition mobile terminal current setting, including:
The area for obtaining the mobile terminal current setting determines the language corresponding to the mobile terminal current setting area
For the language of the mobile terminal current setting.
Optionally, this method further includes:
Before setting the corresponding language of the application program to the language of the mobile terminal current setting, displaying language is set
Prompt is set, institute's language setting prompt carries out language setting for prompting whether to determine;
When receiving the operation for determining progress language setting, executes this and set the corresponding language of the application program to this
The step of language of mobile terminal current setting.
In conclusion the application program language setting method provided in the embodiment of the present disclosure, by pacifying in the electronic equipment
When dress or operation application program, detects whether the electronic equipment is connected with mobile terminal, work as if so, obtaining the mobile terminal
The language of preceding setting answers this when the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent
The language of the mobile terminal current setting is set as with the corresponding language of program, installation or operation are for managing mobile terminal
When application program, the language for the mobile terminal being connected with electronic equipment is detected automatically, and the corresponding language of application program is set
It is set to consistent with the language of mobile terminal, does not need user's manual setting, simplify the setting steps of user, improve user experience.
Fig. 2 is a kind of flow chart of the application program language setting method shown according to another exemplary embodiment.This is answered
It can be used in the electronic equipments such as PC or laptop with program language setting method.It answers in this way
With the installation scenario of program, for the operating system of the mobile terminal is Android system, as shown in Fig. 2, the application program language
Setting method may comprise steps of.
In step 202, when electronic equipment installs application program, detect whether the electronic equipment is connected with movement eventually
End, if so, entering step 204.
Wherein, which can be in the electronic device, the mobile terminal to connecting the electronic equipment to carry out
The application program of management.The installation kit that user downloads application program in the electronic device clicks operation later, and application program is being pacified
During dress, installation procedure can detect whether electronic equipment is connected with mobile terminal.
In step 204, judge whether mobile terminal has been switched on general-purpose serial bus USB debugging function, if so, into
Step 206, otherwise, 212 are entered step.
For running on the mobile terminal of Android system, it usually needs the USB in the manually opened mobile terminal of user
(Universal Serial Bus, universal serial bus) debugging function can just be managed mobile terminal.If installing journey
When sequence detects that electronic equipment is currently connected with mobile terminal, then further whether detection mobile terminal has been switched on USB debugging
Function enters step 206, otherwise enters step 212 if having been switched on USB debugging functions.
In step 206, the language of the mobile terminal current setting is obtained.
Installation procedure can obtain mobile terminal by ADB (Android Debug Bridge, Android debug bridge) tool
Language.
Wherein, installation procedure can directly acquire the language of mobile terminal by ADB tools, and code is as follows:
adb getprop ro.product.locale.language;
Alternatively, installation procedure can also first pass through the area that ADB tools obtain mobile terminal current setting, and will be mobile whole
Language corresponding to the current setting area of end is determined as the language of mobile terminal current setting.Installation procedure obtains mobile terminal and works as
The code in the area of preceding setting can be as follows:
adb getprop ro.product.locale.region。
In a step 208, when the language of the corresponding language of application program and mobile terminal current setting is inconsistent, displaying
Language setting prompt, language setting prompt carry out language setting for prompting whether to determine.
Wherein, the corresponding language of the application program can be the display language at the installation guiding interface of installation procedure, logical
In the case of often, the display language at installation guiding interface is also the default installation language of application program.Installation procedure obtains movement
After the language of terminal current setting, the language of the display language and mobile terminal current setting at detection installation guiding interface first is
It is no consistent, if the two is consistent, it is not processed;If the two is inconsistent, language setting prompt is shown, to prompt user installation to draw
The language for leading the display language and mobile terminal current setting at interface is inconsistent, asks the user whether to determine progress language setting.
In step 210, when receiving the operation for determining progress language setting, the display language at guiding interface will be installed
And the installation language of application program is set as the language of mobile terminal current setting.
If user, which selects to determine, carries out language setting, installation procedure is by the display language at installation guiding interface and applies journey
The installation language of sequence is set as consistent with the language of mobile terminal current setting.
Optionally, the display language at disclosure above-mentioned steps default installation guiding interface is the default installation language of application program
Speech, in some cases, the display language at installation guiding interface and the default installation language of application program are possible to not consistent,
In this case, installation guiding interface display language and application program default installation language in one or two with
It when the language of mobile terminal current setting is inconsistent, is required for carrying out above-mentioned setting steps, makes the display language at installation guiding interface
The language of speech and the installation language of application program all with mobile terminal current setting is consistent.
In the step 212, displaying manual setting prompt, manual setting prompt is for prompting the corresponding language of application program
Speech is manually set to the language of mobile terminal current setting.
If installation procedure detects that mobile terminal is not yet turned on USB debugging functions, installation procedure can not obtain movement at this time
The language of terminal current setting, at this point, installation procedure can prompt display language and application of the user at installation guiding interface
When one or two installed in language of program is inconsistent with the language of mobile terminal current setting, decided in its sole discretion by user
Whether the installation language of the display language at installation guiding interface and application program is set to mobile terminal current setting manually
Language.
Optionally, if installation procedure detects that mobile terminal is not yet turned on USB debugging functions, user can also be prompted to open
The USB debugging functions of mobile terminal, and after the USB debugging functions of mobile terminal are successfully opened, execute above-mentioned steps 206.
Using mobile terminal as the smart mobile phone of Android system, application program is for XX mobile phone assistants, user is in personal electricity
When downloading the installation kit of XX mobile phone assistants on brain and running installation, installation procedure has detected whether that smart mobile phone passes through USB automatically
Connecting line is connected with PC, if there is smart mobile phone to be connected with PC by USB connecting lines, further detects
Whether smart mobile phone has been switched on USB debugging functions, if smart mobile phone does not open USB debugging functions, user is prompted voluntarily to examine
It looks into and the language of smart mobile phone current setting and installation is guided into the display language at interface and the installation language of XX mobile phone assistants
It is set as same language.If smart mobile phone has been switched on USB debugging functions, it is current that smart mobile phone is obtained by ADB tools
The language of setting, and detect installation guiding interface display language and XX mobile phone assistants installation language whether all with intelligent hand
The language of machine current setting is consistent, if arbitrary in the installation language for showing language and XX mobile phone assistants at installation guiding interface
One inconsistent with the language of smart mobile phone current setting, then prompts the user whether to determine progress language setting, if user selects
Determine, then will installation guiding interface display language and XX mobile phone assistants installation language in smart mobile phone current setting
Language inconsistent one or two language for being set as smart mobile phone current setting.For example, if installation procedure detects to pacify
The display language at dress guiding interface and the installation language of XX mobile phone assistants are Chinese, and the language of smart mobile phone current setting is
The installation language of the display language at installation guiding interface and XX mobile phone assistants is then both configured to English by English.
It should be noted that the embodiment of the present disclosure is illustrated so that the operating system of mobile terminal is Android system as an example,
In practical applications, this method can be also used for for carrying other operating systems, for example carry iOS system or WP systems
Mobile terminal carries out the language setting of application program, basic principle and principle one shown in the embodiment of the present disclosure above method
It causes, details are not described herein again.
In conclusion the application program language setting method provided in the embodiment of the present disclosure, by pacifying in the electronic equipment
When filling application program, detect whether the electronic equipment is connected with mobile terminal, if so, obtaining the mobile terminal current setting
Language, when the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, by the application program pair
The language answered is set as the language of the mobile terminal current setting, when installing the application program for managing mobile terminal, automatically
The language for the mobile terminal being connected with electronic equipment is detected, and sets and mobile terminal the corresponding language of application program to
Language is consistent, does not need user's manual setting, simplifies the setting steps of user, improves user experience.
Fig. 3 is a kind of flow chart of the application program language setting method shown according to a further exemplary embodiment.This is answered
It can be used in the electronic equipments such as PC or laptop with program language setting method.It answers in this way
With the Run-time scenario of program, for the operating system of the mobile terminal is Android system, as shown in figure 3, the application program language
Setting method may comprise steps of.
In step 302, when electronic equipment runs application program, detect whether the electronic equipment is connected with movement eventually
End, if so, entering step 304.
Wherein, which can be in the electronic device, the mobile terminal to connecting the electronic equipment to carry out
The application program of management.User clicks operation after installing application program in the electronic device, and application program can detect electronics
Whether equipment is connected with mobile terminal.
In step 304, judge whether mobile terminal has been switched on general-purpose serial bus USB debugging function, if so, into
Step 306, otherwise, 312 are entered step.
Within step 306, the language of the mobile terminal current setting is obtained.
Application program can obtain mobile terminal by ADB (Android Debug Bridge, Android debug bridge) tool
Language.
Wherein, application program can directly acquire the language of mobile terminal by ADB tools.Alternatively, application program also may be used
To first pass through the area that ADB tools obtain mobile terminal current setting, and by the language corresponding to mobile terminal current setting area
Speech is determined as the language of mobile terminal current setting.
In step 308, when the language of the corresponding language of application program and mobile terminal current setting is inconsistent, displaying
Language setting prompt, language setting prompt carry out language setting for prompting whether to determine.
Wherein, the corresponding language of the application program is the display language of application program.Application program obtains mobile terminal and works as
After the language of preceding setting, whether the display language for detecting application program first is consistent with the language of mobile terminal current setting, if
The two is consistent, then is not processed;If the two is inconsistent, language setting prompt is shown, to prompt the display of user application
The language of language and mobile terminal current setting is inconsistent, asks the user whether to determine progress language setting.
In the step 310, when receiving the operation for determining progress language setting, the display language of application program is arranged
For the language of mobile terminal current setting.
If user, which selects to determine, carries out language setting, application program will show that language is set as currently setting with mobile terminal
The language set is consistent.
In step 312, displaying manual setting prompt, manual setting prompt is for prompting the corresponding language of application program
Speech is manually set to the language of mobile terminal current setting.
If application program detects that mobile terminal is not yet turned on USB debugging functions, application program can not obtain movement at this time
The language of terminal current setting, at this point, application program can prompt user to work as with mobile terminal in the display language of application program
When the language of preceding setting is inconsistent, is decided in its sole discretion by user and whether manually set the display language application program of application program to
The language of mobile terminal current setting.
Optionally, if application program detects that mobile terminal is not yet turned on USB debugging functions, user can also be prompted to open
The USB debugging functions of mobile terminal, and after the USB debugging functions of mobile terminal are successfully opened, execute above-mentioned steps 306.
Using mobile terminal as the smart mobile phone of Android system, application program is for XX mobile phone assistants, user is in personal electricity
When installing XX mobile phones assistant on brain and running, mobile phone assistant has detected whether that smart mobile phone passes through USB connecting lines and individual automatically
Computer is connected, if there is smart mobile phone to be connected with PC by USB connecting lines, further whether detects smart mobile phone
USB debugging functions are had been switched on, if smart mobile phone does not open USB debugging functions, user are prompted to self check and by intelligent hand
The language of machine current setting is set as same language with the display language of mobile phone assistant.If smart mobile phone has been switched on USB tune
Function is tried, then obtains the language of smart mobile phone current setting by ADB tools, and whether all to detect the display language of mobile phone assistant
It is consistent with the language of smart mobile phone current setting, if the language of the display language and smart mobile phone current setting of mobile phone assistant differs
It causes, then prompts the user whether to determine progress language setting, if user selects to determine, set the display language of mobile phone assistant to
The language of smart mobile phone current setting.If for example, mobile phone assistant detects that oneself display language is Chinese, and smart mobile phone is current
The language of setting is English, then sets the display language of mobile phone assistant to English.
It should be noted that the embodiment of the present disclosure is illustrated so that the operating system of mobile terminal is Android system as an example,
In practical applications, this method can be also used for for carrying other operating systems, for example carry iOS system or WP systems
Mobile terminal carries out the language setting of application program, basic principle and principle one shown in the embodiment of the present disclosure above method
It causes, details are not described herein again.
In conclusion the application program language setting method provided in the embodiment of the present disclosure, by being transported in the electronic equipment
When row application program, detect whether the electronic equipment is connected with mobile terminal, if so, obtaining the mobile terminal current setting
Language, when the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, by the application program pair
The language answered is set as the language of the mobile terminal current setting, when running the application program for managing mobile terminal, automatically
The language for the mobile terminal being connected with electronic equipment is detected, and sets and mobile terminal the corresponding language of application program to
Language is consistent, does not need user's manual setting, simplifies the setting steps of user, improves user experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of application program language setting device shown according to an exemplary embodiment, this applies journey
Sequence language setting device can be used in the electronic equipments such as PC or laptop, and execute such as Fig. 13 are any shown
Method.As shown in figure 4, application program language setting device includes but not limited to:Detection module 401, language acquisition module
402 and setup module 403;
When the detection module 401 is arranged in use in the electronic equipment installation or operation application program, detection
Whether the electronic equipment is connected with mobile terminal;
If the testing result that the language acquisition module 402 is arranged to be used for the detection module 401 is the electronics
Equipment is connected with mobile terminal, then obtains the language of the mobile terminal current setting;
The setup module 403 is arranged to be used for when the corresponding language of the application program and the mobile terminal are current
When the language of setting is inconsistent, it sets the corresponding language of the application program to the language of the mobile terminal current setting.
In conclusion the application program language setting device provided in the embodiment of the present disclosure, by pacifying in the electronic equipment
When dress or operation application program, detect whether the electronic equipment is connected with mobile terminal, if so, it is current to obtain the mobile terminal
The language of setting, when the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, by the application
The corresponding language of program is set as the language of the mobile terminal current setting, and installation or operation are for managing answering for mobile terminal
When with program, the language for the mobile terminal being connected with electronic equipment is detected automatically, and the corresponding language of application program is arranged
It is consistent with the language of mobile terminal, does not need user's manual setting, simplify the setting steps of user, improves user experience.
Fig. 5 is a kind of block diagram of the application program language setting device shown according to another exemplary embodiment, the application
Program language setting device can be used in the electronic equipments such as PC or laptop, execute 3 any institutes such as Fig. 1
The method shown.As shown in figure 5, application program language setting device includes but not limited to:Detection module 401, language obtain mould
Block 402 and setup module 403;
When the detection module 401 is arranged in use in the electronic equipment installation or operation application program, detection
Whether the electronic equipment is connected with mobile terminal;
If the testing result that the language acquisition module 402 is arranged to be used for the detection module 401 is the electronics
Equipment is connected with mobile terminal, then obtains the language of the mobile terminal current setting;
The setup module 403 is arranged to be used for when the corresponding language of the application program and the mobile terminal are current
When the language of setting is inconsistent, it sets the corresponding language of the application program to the language of the mobile terminal current setting.
Optionally, described device further includes:Judgment module 404;
The judgment module 404 is arranged in use in the language acquisition module 402, and to obtain the mobile terminal current
Before the language of setting, detect whether the mobile terminal has been switched on general-purpose serial bus USB debugging function;
If the language acquisition module 402 is arranged to be used for the mobile terminal and has been switched on USB debugging functions, hold
The step of language of the row acquisition mobile terminal current setting.
Optionally, described device further includes:First reminding module 405;
If first reminding module 405 is arranged to be used for the mobile terminal and is not yet turned on USB debugging functions, open up
Show that manual setting prompts, the manual setting prompt is described for prompting the corresponding language of the application program being manually set to
The language of mobile terminal current setting.
Optionally, the setup module 403, including:First setting submodule 403a and the second setting submodule 403b;
It, will when the first setting submodule 403a is arranged in use in the electronic equipment installation application program
The display language at installation guiding interface and the installation language of the application program are set as the mobile terminal and currently set
The language set;
It, will when the second setting submodule 403b is arranged in use in the electronic equipment operation application program
The display language of the application program is set as the language of the mobile terminal current setting.
Optionally, the language acquisition module 402 is arranged to be used for obtaining the area of the mobile terminal current setting,
Language corresponding to mobile terminal current setting area is determined as to the language of the mobile terminal current setting.
Optionally, described device further includes:Second reminding module 406;
Second reminding module 406 is arranged in use in the setup module 403, and the application program is corresponding
Language is set as before the language of the mobile terminal current setting, and displaying language setting prompt, the language setting prompt is used
Language setting is carried out in whether prompt determines;
When the setup module 403 is arranged in use in the operation for receiving determining progress language setting, described in execution
The step of setting the corresponding language of the application program to the language of the mobile terminal current setting.
In conclusion the application program language setting device provided in the embodiment of the present disclosure, by pacifying in the electronic equipment
When dress or operation application program, detect whether the electronic equipment is connected with mobile terminal, if so, it is current to obtain the mobile terminal
The language of setting, when the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, by the application
The corresponding language of program is set as the language of the mobile terminal current setting, and installation or operation are for managing answering for mobile terminal
When with program, the language for the mobile terminal being connected with electronic equipment is detected automatically, and the corresponding language of application program is arranged
It is consistent with the language of mobile terminal, does not need user's manual setting, simplify the setting steps of user, improves user experience.
Fig. 6 is a kind of block diagram of device 600 shown according to an exemplary embodiment.The device 600 can be because of configuration or property
Energy is different and generates bigger difference, may include one or more central processing units (central processing
Units, CPU) 622 (for example, one or more processors) and memory 632, one or more storages apply journey
The storage medium 630 (such as one or more mass memory units) of sequence 642 or data 644.Wherein, 632 He of memory
Storage medium 630 can be of short duration storage or persistent storage.The program for being stored in storage medium 630 may include one or one
With upper module (diagram does not mark), each module may include to the series of instructions operation in device, this series of instruction
Operation can be used to implement all or part of step such as any the methods of Fig. 1 to 3.Further, central processing unit
622 could be provided as communicating with storage medium 630, and the series of instructions operation in storage medium 630 is executed on device 600.
Device 600 can also include one or more power supplys 626, one or more wired or wireless networks connect
Mouthfuls 650, one or more input/output interfaces 658, one or more keyboards 656, and/or, one or one with
Upper operating system 641, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in perform detailed description, explanation will be not set forth in detail herein.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and change can be being executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (13)
1. a kind of application program language setting method, in electronic equipment, which is characterized in that the method includes:
When the electronic equipment is installed or runs application program, detect whether the electronic equipment passes through universal serial bus
USB is connected with mobile terminal;
If testing result is the electronic equipment is connected with mobile terminal by USB, the mobile terminal current setting is obtained
Language;
When the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, journey is applied by described
The corresponding language of sequence is set as the language of the mobile terminal current setting.
2. according to the method described in claim 1, it is characterized in that, when the operating system of the mobile terminal is Android system
When, before the language for obtaining the mobile terminal current setting, including:
Judge whether the mobile terminal has been switched on general-purpose serial bus USB debugging function;
If the mobile terminal has been switched on USB debugging functions, the language for obtaining the mobile terminal current setting is executed
The step of speech.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
If the mobile terminal is not yet turned on USB debugging functions, show that manual setting prompts, the manual setting prompt is used for
The corresponding language of the application program is manually set to the language of the mobile terminal current setting by prompt.
4. according to the method described in claim 1, it is characterized in that, described set the corresponding language of the application program to institute
The language of mobile terminal current setting is stated, including:
When the electronic equipment installs the application program, by the display language at installation guiding interface and the application program
Installation language be set as the language of the mobile terminal current setting;
When the electronic equipment runs the application program, the display language of the application program is set as described mobile whole
Hold the language of current setting.
5. according to the method described in claim 1, it is characterized in that, the language for obtaining the mobile terminal current setting,
Including:
The area for obtaining the mobile terminal current setting determines the language corresponding to mobile terminal current setting area
For the language of the mobile terminal current setting.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
Before setting the corresponding language of the application program to the language of the mobile terminal current setting, displaying language is set
Prompt is set, the language setting prompt carries out language setting for prompting whether to determine;
When receiving the operation for determining progress language setting, execution is described to set the corresponding language of the application program to institute
The step of stating the language of mobile terminal current setting.
7. device is arranged in a kind of application program language, in electronic equipment, which is characterized in that described device includes:
Detection module, for when the electronic equipment is installed or runs application program, detecting whether the electronic equipment leads to
It crosses general-purpose serial bus USB and is connected with mobile terminal;
Language acquisition module, if the testing result for the detection module is the electronic equipment is connected with movement by USB
Terminal then obtains the language of the mobile terminal current setting;
Setup module, it is inconsistent for working as the corresponding language of the application program and the language of the mobile terminal current setting
When, set the corresponding language of the application program to the language of the mobile terminal current setting.
8. device according to claim 7, which is characterized in that described device further includes:
Judgment module, for before the language that the language acquisition module obtains the mobile terminal current setting, detecting institute
State whether mobile terminal has been switched on general-purpose serial bus USB debugging function;
The language acquisition module executes if having been switched on USB debugging functions for the mobile terminal described in the acquisition
The step of language of mobile terminal current setting.
9. device according to claim 8, which is characterized in that described device further includes:
First reminding module shows that manual setting prompts, institute if being not yet turned on USB debugging functions for the mobile terminal
It states manual setting prompt and the corresponding language of the application program is manually set to the mobile terminal current setting for prompting
Language.
10. device according to claim 7, which is characterized in that the setup module, including:
First setting submodule, for when the electronic equipment installs the application program, the installation to be guided interface
Display language and the installation language of the application program are set as the language of the mobile terminal current setting;
Second setting submodule, is used for when the electronic equipment runs the application program, by the display of the application program
Language is set as the language of the mobile terminal current setting.
11. device according to claim 7, which is characterized in that the language acquisition module, it is described mobile whole for obtaining
The area for holding current setting, it is current to be determined as the mobile terminal by the language corresponding to mobile terminal current setting area
The language of setting.
12. device according to claim 7, which is characterized in that described device further includes:
Second reminding module, for setting the corresponding language of the application program to the mobile terminal in the setup module
Before the language of current setting, displaying language setting prompt, the language setting prompt is for prompting whether determine carry out language
Setting;
The setup module, for when receiving the operation for determining progress language setting, executing described by the application program
Corresponding language is set as the step of language of the mobile terminal current setting.
13. device is arranged in a kind of application program language, which is characterized in that in electronic equipment, described device to include:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When the electronic equipment is installed or runs application program, detect whether the electronic equipment passes through universal serial bus
USB is connected with mobile terminal;
If testing result is the electronic equipment is connected with mobile terminal by USB, the mobile terminal current setting is obtained
Language;
When the language of the corresponding language of the application program and the mobile terminal current setting is inconsistent, journey is applied by described
The corresponding language of sequence is set as the language of the mobile terminal current setting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510280557.XA CN104915228B (en) | 2015-05-27 | 2015-05-27 | Application program language setting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510280557.XA CN104915228B (en) | 2015-05-27 | 2015-05-27 | Application program language setting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104915228A CN104915228A (en) | 2015-09-16 |
CN104915228B true CN104915228B (en) | 2018-07-20 |
Family
ID=54084310
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510280557.XA Active CN104915228B (en) | 2015-05-27 | 2015-05-27 | Application program language setting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104915228B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105550006A (en) * | 2016-02-01 | 2016-05-04 | 广东欧珀移动通信有限公司 | Application program language setting method and mobile terminal |
CN105730376A (en) * | 2016-02-17 | 2016-07-06 | 吴伟民 | Debugging method and system for vehicle electronic equipment |
CN106204972B (en) * | 2016-07-22 | 2018-10-12 | 恒宝股份有限公司 | System and method, POS machine and mobile phone is arranged in POS machine language |
CN107515734A (en) * | 2017-06-30 | 2017-12-26 | 广州智富电子智能装备有限公司 | A kind of sound plays method, electronic equipment, storage medium and the device of control |
CN112114921A (en) * | 2020-09-14 | 2020-12-22 | 青岛海尔科技有限公司 | Language recommendation method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1134705A3 (en) * | 2000-02-18 | 2003-08-20 | NRC International Inc. | Self service terminal |
US20040085570A1 (en) * | 2002-10-31 | 2004-05-06 | Jimmy Sfaelos | Visual recognition GUI for localized language selections |
JP5121607B2 (en) * | 2008-07-09 | 2013-01-16 | 沖電気工業株式会社 | Automatic transaction apparatus and system, and information recording medium |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
CN102298559B (en) * | 2010-06-25 | 2015-09-30 | 北京高信达通信科技股份有限公司 | Handheld terminal and with computer method for information interaction between and system |
CN104020991B (en) * | 2014-05-16 | 2017-11-07 | 可牛网络技术(北京)有限公司 | The multi-language switching method and device of application program |
-
2015
- 2015-05-27 CN CN201510280557.XA patent/CN104915228B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104915228A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915228B (en) | Application program language setting method and device | |
CN107656872B (en) | Software testing method, device, equipment and computer storage medium | |
CN110532185B (en) | Test method, test device, electronic equipment and computer readable storage medium | |
CN106021101B (en) | The method and device that mobile terminal is tested | |
CN104915297B (en) | A kind of automated testing method of the APP power consumption of android equipment | |
CN104090751A (en) | Method for acquiring root authority in Android system | |
CN109582377A (en) | BIOS option amending method, device, equipment and storage medium | |
CN104156305A (en) | Application program testing method and device | |
CN103942146B (en) | One kind visualization Monkey method of testings and device | |
CN107783867B (en) | Gesture testing method and device, computer equipment and storage medium | |
CN112241356B (en) | Page test method, device, equipment and storage medium | |
CN103064789B (en) | A kind of automated testing method of software control | |
CN104899122A (en) | Mobile terminal testing system and method | |
CN105095093A (en) | Intelligent terminal performance test method and system | |
CN104866413B (en) | The method and device of multi-process test | |
CN105760288B (en) | Test the method and device of revised application program | |
EP3316171A1 (en) | Apparatus and method for dynamic binary analysis on hardware board | |
CN104391619A (en) | Function presentation method and device of application program | |
CN104461629B (en) | PC terminals and its method for installing application program of mobile phone | |
CN109358564B (en) | Method and device for detecting configuration software and computer readable storage medium | |
CN106484625A (en) | A kind of method based on universal test Software Development Platform test subsystems | |
CN106250260B (en) | Processor overflows monitoring and adjustment method and device | |
CN108733423A (en) | A kind of method and terminal of determining mobile device model | |
CN105868092A (en) | Log file processing method and device | |
CN107390638B (en) | Machine tool machining method, terminal and numerical control machine tool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |