CN110457085A - Document handling method, device, terminal device and computer-readable medium - Google Patents
Document handling method, device, terminal device and computer-readable medium Download PDFInfo
- Publication number
- CN110457085A CN110457085A CN201910620517.3A CN201910620517A CN110457085A CN 110457085 A CN110457085 A CN 110457085A CN 201910620517 A CN201910620517 A CN 201910620517A CN 110457085 A CN110457085 A CN 110457085A
- Authority
- CN
- China
- Prior art keywords
- language
- target application
- response
- object language
- default
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- 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/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Machine Translation (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the present application discloses document handling method, device, terminal device and computer-readable medium.The embodiment of this method includes: to send language profile acquisition request to Cloud Server, and receive multiple language profiles of Cloud Server return in response to detecting that the target application starts;Received each language profile is stored in sandbox;Determine target application object language ready for use;The object language configuration file of the object language is searched from the sandbox;In response to finding, it is based on the object language configuration file, the text of the object language is shown in the target application.The embodiment, which is reduced, is increasing development cost when newspeak is supported to iOS application.
Description
Technical field
The invention relates to field of computer technology, and in particular to document handling method, device, terminal device and meter
Calculation machine readable medium.
Background technique
With the development of computer technology, the category of language that the application (Application, APP) of terminal device is supported is got over
Come abundanter.In general, with the expansion of use scope and user demand, developer can be further after application publication
Increase new language to application to support.For example, original application supports Chinese and English, the language such as Japanese, Korean can be increased.
For running on a kind of application (i.e. iOS application) of iOS system (Mobile operating system), existing mode is usually adopted
Language file (such as Localizable.strings file) is added in the executable file (bundle file) of existing application
Mode increase newspeak, to generate the application of new version.User, can be in the application after updating the application of new version
Show newspeak.However, this mode is required to issue new application version when every increase newspeak is supported, so as to cause
Increasing application, development cost when newspeak is supported is higher.
Summary of the invention
The embodiment of the present application proposes document handling method, device, terminal device and computer-readable medium, existing to solve
Have in technology and is increasing iOS application the higher technical problem of development cost when language is supported.
In a first aspect, the embodiment of the present application provides a kind of document handling method, it is applied to terminal device, terminal device fortune
Row has iOS operating system and is equipped with target application, this method comprises: in response to detecting that target application starts, to cloud service
Device sends language profile acquisition request, and receives multiple language profiles of Cloud Server return;It will be received
Each language profile is stored in sandbox;Determine target application object language ready for use;Object language is searched from sandbox
Object language configuration file;In response to finding, it is based on object language configuration file, the displaying target language in target application
Text.
In some embodiments, after the object language configuration file for searching object language in sandbox, this method is also
It include: to read the preset language profile in the executable file of target application in response to not finding, preset language is matched
Set file deposit sandbox.
In some embodiments, target application object language ready for use is determined, comprising: obtain current location information, use
The preset default language in family and default area;It is obtained successfully in response to current location information, determines current location information institute
Whether the current location of instruction is located at default area;It is not located at default area in response to determining, determines that current time and last time are aobvious
Show whether the time interval of prompting message is greater than or equal to default reminder time interval, wherein prompting message is for reminding user
The display language of target application is switched to the language in current location location;When being greater than or equal to default remind in response to determining
Between be spaced, display alarm information;In response to detecting that user is directed to the language switching instruction that prompting message is triggered, by present bit
It sets language used in location and is determined as target application object language ready for use.
In some embodiments, target application object language ready for use is determined, further includes: under following either case,
Default language is determined as target application object language ready for use: current location information obtains failure;Or present bit set
In default area;Or the time interval of current time and last time display alarm information is less than default reminder time interval;Or
User is not detected and is directed to the language switching instruction that prompting message is triggered.
In some embodiments, in response to finding, object language configuration file, the displaying target in target application are based on
The text of language, comprising: in response to finding, execute following steps: object language configuration file is stored in memory;Triggering
Text idsplay order, wherein text idsplay order includes keyword;From the object language configuration file for being located at memory, search
Keyword;Return to corresponding with keyword, object language text, and the display text in target application.
Second aspect, the embodiment of the present application provide a kind of document handling apparatus, are applied to terminal device, terminal device fortune
Row has iOS operating system and is equipped with target application, which includes: transmission unit, is configured in response to detect target
Using starting, language profile acquisition request is sent to Cloud Server, and receives multiple language configuration of Cloud Server return
File;First deposit unit, is configured to received each language profile being stored in sandbox;Determination unit is matched
It is set to determining target application object language ready for use;Searching unit is configured to search the target of object language from sandbox
Language profile;Display unit is configured in response to find, and object language configuration file is based on, in target application
The text of displaying target language.
In some embodiments, device further include: the second deposit unit is configured in response to not find, read
Preset language profile is stored in sandbox by the preset language profile in the executable file of target application.
In some embodiments, determination unit is further configured to: obtaining current location information, user presets
Default language and default area;It obtains successfully, determines current indicated by current location information in response to current location information
Whether position is located at default area;It is not located at default area in response to determining, determines current time and last time display alarm information
Time interval whether be greater than or equal to default reminder time interval, wherein prompting message is for reminding user by target application
Display language be switched to the language in current location location;It is greater than or equal to default reminder time interval in response to determining, shows
Show prompting message;In response to detecting that user is directed to the language switching instruction that prompting message is triggered, by current location location
Used language is determined as target application object language ready for use.
In some embodiments, determination unit is further configured to: under following either case, default language is true
Be set to target application object language ready for use: current location information obtains failure;Or current location is located at default area;Or
The time interval of person's current time and last time display alarm information is less than default reminder time interval;Or user's needle is not detected
The language switching instruction that prompting message is triggered.
In some embodiments, display unit is further configured to: in response to finding, executing following steps: by mesh
Mark language profile is stored in memory;Trigger text idsplay order, wherein text idsplay order includes keyword;From position
In the object language configuration file of memory, keyword is searched;Corresponding with keyword, object language the text of return, and
Display text in target application.
The third aspect, the embodiment of the present application provide a kind of terminal device, comprising: one or more processors;Storage dress
Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or
Multiple processors realize the method such as any embodiment in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should
The method such as any embodiment in above-mentioned first aspect is realized when program is executed by processor.
Document handling method, device, terminal device and computer-readable medium provided by the embodiments of the present application, have in operation
After the terminal device of iOS operating system detects the target application starting being mounted thereon, multiple language are obtained from Cloud Server
Received each language profile is then stored in sandbox by configuration file, determines target application mesh ready for use later
Poster speech, and search from sandbox the object language configuration file of object language, so as to based on being found from sandbox
Object language configuration file, the text of displaying target language in target application.It as a result, can be from trend after target application starting
Cloud Server requests newest language profile, and the storage of language profile is carried out by sandbox, does not need to update application
Executable file (bundle file), without issuing new application version when increasing newspeak.It reduces as a result,
Increasing iOS application development cost when newspeak is supported.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart according to one embodiment of the document handling method of the application;
Fig. 2 be set the goal really according to the application language method one embodiment flow chart;
Fig. 3 is the flow chart according to another embodiment of the document handling method of the application;
Fig. 4 is the structural schematic diagram according to one embodiment of the document handling apparatus of the application;
Fig. 5 is adapted for the structural schematic diagram for the computer system for realizing the terminal device of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Referring to FIG. 1, it illustrates the processes 100 according to one embodiment of the document handling method of the application.This article
Part processing method can be applied to terminal device.In practice, terminal device includes but is not limited to smart phone, tablet computer, knee
Mo(u)ld top half portable computer etc..
Wherein, above-mentioned terminal device can run iOS operating system, and can be equipped with target application and (can be fortune
Row is in the various iOS applications of iOS system).
Above-mentioned process 100 may comprise steps of:
Step 101, in response to detecting that target application starts, language profile acquisition request is sent to Cloud Server,
And receive multiple language profiles of Cloud Server return.
In the present embodiment, the executing subject (such as above-mentioned terminal device) of document handling method is in response to detecting target
Using starting, language profile acquisition request can be sent to Cloud Server, and receive multiple language of Cloud Server return
Configuration file.
Wherein, language profile can be the file for carrying out language support to above-mentioned target application.It is above-mentioned multiple
Language profile can support multilingual.Each language profile can be supported a kind of language.For example, above-mentioned
Multiple language profiles can include but is not limited to: Chinese configuration file, configured in English file, Japanese configuration file, Korean
Configuration file etc..
In practice, when target application starts for the first time, language profile is not yet stored in sandbox.It is sent out to Cloud Server
Send language profile acquisition request, and receive Cloud Server return each language profile after, sandbox can be stored in.
When target application starts next time, each language profile being stored in when last starting is stored in sandbox.
At this point, after sending language profile acquisition request to Cloud Server, if the multiple language for receiving Cloud Server return are matched
File is set, the language profile in sandbox can be updated.For example, the language being stored in sandbox can be configured text
Part carries out full dose update.Specifically, each language profile in sandbox is deleted first, then matches each language newly received
Set file deposit sandbox.For another example incremental update can be carried out to the language profile being stored in sandbox.Specifically, may be used
New received language profile to be compared with the language profile in sandbox first, the language newly increased is determined
Configuration file and the language profile for needing to update;Then, sandbox can be written into newly-increased language profile, and will be husky
The language profile for needing to update in box is accordingly replaced.
Step 102, received each language profile is stored in sandbox.
In the present embodiment, above-mentioned in the case where being successfully received multiple language profiles of Cloud Server return
Received each language profile can be stored in sandbox (sandbox, and be translated into sandbox) by executing subject.
In practice, sandbox is a kind of security mechanism, the isolation environment provided for active program.Typically as some
Source it is insincere or can not decision procedure be intended to program provide experiment be used.The usual strict control of sandbox program institute energy therein
The resource of access.All changes in sandbox not will cause any loss to operating system.Software can be run on one by sandbox
In a limited system environments, resource (such as filec descriptor, memory, disk space) workable for program is controlled.Due to sand
The above-mentioned characteristic of box, thus, above-mentioned multiple language profiles are stored in sandbox, the change (example of the content in sandbox can be made
Such as increase new language profile) normal use of target application is not influenced.Content in sandbox is changed, is not related to
The version updating of target application.New language configuration is stored in the case where target application not more new version it is thus possible to realize
File, or language profile is updated.
It should be noted that preset language profile can be one or more.When preset language profile is one
When a, which, which can be, provides the default language configuration file supported to default language (such as Chinese).
It can be that multiple language (such as Chinese, English, Japanese, Korean etc.) are mentioned respectively when preset language profile is multiple
It is may include for multiple language profiles of support, and in multiple preset language profiles to default language (such as Chinese)
The default language configuration file being supported.
Step 103, target application object language ready for use is determined.
In the present embodiment, above-mentioned executing subject can use various default rules and determine target application mesh ready for use
Poster speech.
As an example, the default language that terminal device can be arranged in user, is determined as target application mesh ready for use
Poster speech.
As another example, it can be positioned first, determine current location;It then, can be by current location location
The language in area is determined as target application object language ready for use.
As another example, if target application non-initial start, can be started to used language, as mesh the last time
Mark applies object language ready for use.
It should be noted that determine target application object language ready for use mode or rule, can according to need and
It presets, is not construed as limiting herein.
Step 104, the object language configuration file of object language is searched from sandbox.
In the present embodiment, above-mentioned executing subject can search target language after determining object language from sandbox
The object language configuration file of speech.If finding, step 105 can be executed.
In practice, when target application starts for the first time, and does not receive the feedback of Cloud Server, due to not yet being deposited in sandbox
Enter any language profile, thus object language configuration file can not be found.In general, when network is not connected or is connected
Network it is unavailable when, then can not receive the feedback of Cloud Server.
In addition, working as target application non-initial start, and when not receiving the feedback of Cloud Server, although being stored in sandbox
Acquired language profile after last time starting, if but not including target language for object language in the file that has been stored in
Say that (such as in upper primary starting, technical staff not yet develops the object language configuration text for object language to configuration file
Part), then it can not find.
In addition, after any one-shot (including start for the first time and non-initial start) of target application, if receiving cloud
The feedback of server, but (such as technical staff is not yet when not including object language configuration file in the content of Cloud Server feedback
Exploitation is directed to the object language configuration file of object language), then object language configuration file can not be found out from sandbox.
In some optional implementations of the present embodiment, if not finding, can read above-mentioned target application can
The preset language profile in file (such as bundle file) is executed, above-mentioned preset language profile is stored in above-mentioned sand
Box.
It should be noted that above-mentioned preset language profile can be one or more.When preset language profile
When being one, which can be the default language configuration text for providing default language (such as Chinese) and supporting
Part.It can be to multiple language (such as Chinese, English, Japanese, Korean etc.) respectively when preset language profile is multiple
The multiple language profiles supported are provided, and may include to default language (in such as in multiple preset language profiles
Text) the default language configuration file that is supported
It, optionally, can be again from above-mentioned after preset language profile is stored in sandbox in above-mentioned implementation
The object language configuration file of above-mentioned object language is searched in sandbox.If finding, step 105 can be continued to execute;If not looking into
It finds, the default language configuration file of default language (such as Chinese) can be searched from sandbox, to be shown in target application
Show the text of default language.
Step 105, in response to finding, object language configuration file, the displaying target language in target application are based on
Text.
In the present embodiment, above-mentioned in response to finding the object language configuration file of above-mentioned object language from sandbox
Executing subject can be based on above-mentioned object language configuration file, and the text of above-mentioned object language is shown in above-mentioned target application.
Herein, above-mentioned executing subject can take technical staff's customized reading manner in advance, search simultaneously from sandbox
The text of object language is returned, rather than uses the reading side of the calling NSLocalizedString function of iOS operating system default
Formula reads text.It specifically, can be customized for reading the interface of text.The interface can be packaged with from language profile
The method of middle reading of content.It is calling the interface, and by keyword and is being used to characterize the mark of object language and is input to this and connects
After mouthful, which can be read content corresponding with the keyword in language profile, and return to the content.
In some optional implementations of the present embodiment, in response to finding the mesh of above-mentioned object language from sandbox
Language profile is marked, above-mentioned executing subject can show the text of above-mentioned object language as follows:
The first step stores above-mentioned object language configuration file into above-mentioned memory.As a result, convenient for inquiring repeatedly, improve
Reading text efficiency.
Second step triggers text idsplay order.Wherein, above-mentioned text idsplay order includes keyword (key).Herein, literary
Above-mentioned object language configuration file can stored into above-mentioned memory rear automatic trigger by this idsplay order.Text idsplay order
It can serve to indicate that inquiry and show the corresponding text of keyword.
Third step searches above-mentioned keyword from the above-mentioned object language configuration file for being located at above-mentioned memory.In practice,
The text of the above-mentioned customized interface polls of calling object language corresponding with above-mentioned keyword, above-mentioned can be passed through.
4th step returns to the text of object language corresponding with above-mentioned keyword, above-mentioned, and shows in above-mentioned target application
Show above-mentioned text.
The method provided by the above embodiment of the application detects installation in the terminal device that operation has iOS operating system
After target application starting thereon, multiple language profiles are obtained from Cloud Server, then by received each language
It says that configuration file is stored in sandbox, determines target application object language ready for use later, and search above-mentioned mesh from above-mentioned sandbox
The object language configuration file of poster speech, so as to based on the object language configuration file found from sandbox, above-mentioned
The text of above-mentioned object language is shown in target application.Since software can be run on a limited system environments by sandbox
In, resource workable for program is controlled, and the change (such as increasing new language profile) of the content in sandbox is not to mesh
Other codes or function for marking application impact, thus, it can be requested from trend Cloud Server after target application starting newest
Language profile, and by sandbox carry out language profile storage, do not need update application executable file
(bundle file), without issuing new application version when increasing newspeak.It reduces and is applied to iOS as a result,
Increase development cost when newspeak is supported.
It, can be with further reference to Fig. 2 for the method for the language that sets the goal really in step 103.Fig. 2 gives according to this Shen
Please set the goal really language method one embodiment flow chart.The process 200 of the method for the determination object language, can be with
The following steps are included:
Step 201, current location information, the preset default language of user and default area are obtained.
In the present embodiment, above-mentioned executing subject can obtain current location information (such as longitude and latitude by positioning
Degree), and it is possible to obtain default language and default area of the user in advance to terminal device setting.
Step 202, determine whether current location information obtains success.
In the present embodiment, it is obtained successfully in response to current location information, step 203 can be performed.In response to current location
Acquisition of information failure, can execute step 208.
Step 203, it is obtained successfully in response to current location information, determines that current location indicated by current location information is
It is no to be located at default area.
In the present embodiment, in response to determining that current location information obtains successfully, above-mentioned executing subject can be determined currently
Whether current location indicated by location information is located at default area.
As an example, if the position where current location information instruction terminal equipment is some street of Haidian District, Beijing City,
Default area is Beijing, then can determine that current location information obtains successfully.
Herein, in response to determining that current location is not located at default area, step 204 can be executed.It is current in response to determining
Position is located at default area, can execute step 208.
Step 204, it is not located at default area in response to determining, determines the time of current time Yu last time display alarm information
Whether interval is greater than or equal to default reminder time interval.
In the present embodiment, in response to determine be located at default area, above-mentioned executing subject can determine current time with
Whether the time interval of last time display alarm information is greater than or equal to default reminder time interval (such as one day).Wherein, it reminds
The language that information can be used for reminding user that the display language of target application is switched to current location location.Above-mentioned preset mentions
Awake time interval can according to need and preset, and be not construed as limiting herein to its specific value.
Herein, in response to determining that the time interval of current time and last time display alarm information is greater than or equal to default remind
Time interval can execute step 205.In response to determining that it is upper that the time interval of current time and last time display alarm information is less than
Default reminder time interval is stated, step 208 can be executed.
Step 205, it is greater than or equal to default reminder time interval, display alarm information in response to determining.
Step 206, it is determined whether detect that user is directed to the language switching instruction that prompting message is triggered.
In the present embodiment, the language switching instruction that above-mentioned executing subject can trigger user for prompting message into
Row detection.Herein, user can be default after display alarm information for the language switching instruction that prompting message is triggered
The language switching instruction triggered in duration by user.In practice, above-mentioned language switching instruction can click that " language is cut by user
Change " modes such as key trigger.
Herein, in response to detecting that user is directed to the language switching instruction that prompting message is triggered, step can be executed
207.It is directed to the language switching instruction that prompting message is triggered in response to user is not detected, step 208 can be executed.
Step 207, in response to detecting that user is directed to the language switching instruction that prompting message is triggered, by current location institute
The language used in ground is determined as target application object language ready for use.
Step 208, under following either case, default language is determined as above-mentioned target application target language ready for use
Speech: current location information obtains failure;Alternatively, current location is located at default area;Alternatively, current time and last time display alarm
The time interval of information is less than default reminder time interval;Alternatively, user, which is not detected, is directed to the language that prompting message is triggered
Switching command.
The method provided by the above embodiment of the application, by obtaining current location information, the preset default of user
Language and default area, then successively detection current location information obtains successfully, current location whether be located at above-mentioned default it is regional,
The time interval of current time and last time display alarm information whether be greater than or equal to default reminder time interval, user whether needle
Language switching instruction is triggered to above-mentioned prompting message, so that it is determined that above-mentioned target application object language ready for use.As a result, may be used
To be arranged according to language/area of user's positioning and terminal device, automatically prompting user modifies language setting, improves target language
The convenience of accuracy and the object language switching of speech.
With further reference to Fig. 3, it illustrates the processes 300 of another embodiment of document handling method.This document processing
The process 300 of method, comprising the following steps:
Step 301, in response to detecting that target application starts, language profile acquisition request is sent to Cloud Server,
And receive multiple language profiles of Cloud Server return.
In the present embodiment, the executing subject (such as above-mentioned terminal device) of document handling method is in response to detecting target
Using starting, language profile acquisition request can be sent to Cloud Server, and receive multiple language of Cloud Server return
Configuration file.
Wherein, language profile can be the file for carrying out language support to above-mentioned target application.It is above-mentioned multiple
Language profile can support multilingual.Each language profile can be supported a kind of language.For example, above-mentioned
Multiple language profiles can include but is not limited to: Chinese configuration file, configured in English file, Japanese configuration file, Korean
Configuration file etc..
Step 302, received each language profile is stored in sandbox.
In the present embodiment, above-mentioned in the case where being successfully received multiple language profiles of Cloud Server return
Received each language profile can be stored in sandbox by executing subject.
Step 303, target application object language ready for use is determined.
In the present embodiment, the method that above-mentioned executing subject can use determining object language shown in Fig. 2, determines target
Using object language ready for use, details are not described herein again.
Step 304, the object language configuration file of object language is searched from sandbox.
In the present embodiment, above-mentioned executing subject can search target language after determining object language from sandbox
The object language configuration file of speech.If finding, step 305-308 can be executed.If not finding, step 309 can be executed.
Step 305, in response to finding, object language configuration file is stored in memory.
In the present embodiment, in response to finding, above-mentioned executing subject can be stored above-mentioned object language configuration file
To in above-mentioned memory.As a result, convenient for inquiring repeatedly, Reading text efficiency is improved.
Step 306, text idsplay order is triggered.
In the present embodiment, above-mentioned text idsplay order includes keyword (key).Herein, text idsplay order can be
Automatic trigger after above-mentioned object language configuration file is stored into above-mentioned memory.Text idsplay order can serve to indicate that inquiry
And show the corresponding text of keyword.
It should be noted that above-mentioned keyword can be localization corresponding to the text of current object language to be shown
Word.Localization word can be the word of technical staff's default language set when developing.For example, above-mentioned key
Word is Chinese " confirmation ", and object language is English, then the text of current object language to be shown can be " done ".Above-mentioned
The text of ground word and above-mentioned object language has corresponding relationship.In practice, key-value pair is can be used in above-mentioned corresponding relationship
Form indicates.It continues the example presented above, it can be using above-mentioned Chinese " confirmation " as key (key), by above-mentioned English " done " value
(value), it is stored in the form of key-value pair into object language configuration file.
Step 307, from the object language configuration file for being located at memory, keyword is searched.
In the present embodiment, herein, above-mentioned executing subject can take technical staff's customized reading manner in advance, from
The text of object language is searched and returned in sandbox, rather than uses the calling NSLocalizedString of iOS operating system default
The reading manner of function reads text.It specifically, can be customized for reading the interface of text.The interface can be packaged with from
The method of reading of content in language profile.The interface is being called, and by keyword and the mark for being used to characterize object language
After knowledge is input to the interface, which can be read content corresponding with the keyword in language profile, and it is interior to return to this
Hold.
Step 308, corresponding with keyword, object language text, and the display text in target application are returned.
Step 309, in response to not finding, the preset language profile in the executable file of target application is read,
Preset language profile is stored in sandbox.
In the present embodiment, in response to not finding the object language configuration file of above-mentioned object language from sandbox, on
It is literary to state the preset language configuration that executing subject can be read in the executable file (such as bundle file) of above-mentioned target application
Above-mentioned preset language profile is stored in above-mentioned sandbox by part.Then, above-mentioned object language is searched from above-mentioned sandbox again
Object language configuration file.
It should be noted that above-mentioned preset language profile can be one or more.When preset language profile
When being one, which can be the default language configuration text for providing default language (such as Chinese) and supporting
Part.It can be to multiple language (such as Chinese, English, Japanese, Korean etc.) respectively when preset language profile is multiple
The multiple language profiles supported are provided, and may include to default language (in such as in multiple preset language profiles
Text) the default language configuration file that is supported.
Step 310, the object language configuration file of object language is searched from sandbox again.
In the present embodiment, again after the object language configuration file for searching above-mentioned object language in above-mentioned sandbox,
If finding object language configuration file, step 305- step 308 can be executed.If not finding object language configuration file,
Step 311 can be executed.
Step 311, in response to not finding again, default language configuration file is searched from sandbox, is based on default language
Configuration file shows the text of default language in target application.
In the present embodiment, the step of text of default language being shown based on default language configuration file, and based on buying not
The step of text of language profile displaying target language, is essentially identical, and details are not described herein again.
From figure 3, it can be seen that compared with the corresponding embodiment of Fig. 1, the process of the document handling method in the present embodiment
300 relate to the step of reading keyword corresponding text using customized interface, read from sandbox thus, it is possible to realize
Object language configuration file and text corresponding with keyword is found out from object language configuration file.Meanwhile it relating to
After finding object language configuration file, above-mentioned object language configuration file is stored to the step into above-mentioned memory.As a result, just
In the inquiry repeatedly to object language configuration file is stated, Reading text efficiency is improved.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides a kind of file process dresses
The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in FIG. 1, which specifically can be applied to end
In end equipment.Above-mentioned terminal device operation has iOS operating system and is equipped with target application.
As shown in figure 4, document handling apparatus 400 described in the present embodiment includes: transmission unit 401, it is configured to respond to
In detecting above-mentioned target application starting, language profile acquisition request is sent to Cloud Server, and receive above-mentioned cloud service
Multiple language profiles that device returns;First deposit unit 402, is configured to received each language profile
It is stored in sandbox;Determination unit 403 is configured to determine above-mentioned target application object language ready for use;Searching unit 404, quilt
It is configured to search the object language configuration file of above-mentioned object language from above-mentioned sandbox;Display unit 405, is configured to respond to
In finding, it is based on above-mentioned object language configuration file, the text of above-mentioned object language is shown in above-mentioned target application.
In some optional implementations of the present embodiment, above-mentioned apparatus further include: the second deposit unit is configured to
In response to not finding, the preset language profile in the executable file of above-mentioned target application is read, by above-mentioned preset language
Say that configuration file is stored in above-mentioned sandbox.
In some optional implementations of the present embodiment, above-mentioned determination unit is further configured to: being obtained current
Location information, the preset default language of user and default area;It obtains successfully, determines in response to above-mentioned current location information
Whether current location indicated by above-mentioned current location information is located at above-mentioned default area;It is not located at above-mentioned default in response to determining
Area, determines whether current time and the time interval of last time display alarm information are greater than or equal to default reminder time interval,
Wherein, the language that above-mentioned prompting message is used to remind user that the display language of above-mentioned target application is switched to current location location
Speech;It is greater than or equal to above-mentioned default reminder time interval in response to determining, shows above-mentioned prompting message;In response to detecting user
For the language switching instruction that above-mentioned prompting message is triggered, language used in above-mentioned current location location is determined as on
State target application object language ready for use.
In some optional implementations of the present embodiment, above-mentioned determination unit is further configured to: at following
In the case of one, above-mentioned default language is determined as above-mentioned target application object language ready for use: above-mentioned current location information is obtained
Take failure;Or above-mentioned current location is located at above-mentioned default area;Or the time of current time and last time display alarm information
Interval is less than above-mentioned default reminder time interval;Or the language switching that user is triggered for above-mentioned prompting message is not detected
Instruction.
In some optional implementations of the present embodiment, above-mentioned display unit is further configured to: in response to looking into
It finds, executes following steps: above-mentioned object language configuration file is stored into above-mentioned memory;Text idsplay order is triggered,
In, above-mentioned text idsplay order includes keyword;From the above-mentioned object language configuration file for being located at above-mentioned memory, search above-mentioned
Keyword;The text of object language corresponding with above-mentioned keyword, above-mentioned is returned, and shows above-mentioned text in above-mentioned target application
This.
The device provided by the above embodiment of the application detects installation in the terminal device that operation has iOS operating system
After target application starting thereon, multiple language profiles are obtained from Cloud Server, then by received each language
It says that configuration file is stored in sandbox, determines target application object language ready for use later, and search above-mentioned mesh from above-mentioned sandbox
The object language configuration file of poster speech, so as to based on the object language configuration file found from sandbox, above-mentioned
The text of above-mentioned object language is shown in target application.It can be requested most from trend Cloud Server after target application starting as a result,
New language profile, and by the storage of sandbox progress language profile, do not need the executable file for updating application
(bundle file), without issuing new application version when increasing newspeak.It reduces and is applied to iOS as a result,
Increase development cost when newspeak is supported.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in
Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and
Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data.
CPU501, ROM 502 and RAM 503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always
Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;Including such as liquid crystal
Show the output par, c 507 of device (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.;And including such as LAN
The communications portion 509 of the network interface card of card, modem etc..Communications portion 509 is executed via the network of such as internet
Communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as disk, CD, magneto-optic
Disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to from the computer program root read thereon
According to needing to be mounted into storage section 508.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 509, and/or from detachable media
511 are mounted.When the computer program is executed by central processing unit (CPU) 501, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, wherein the title of these units is in certain situation
Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: in response to detecting that the target application starts, language profile acquisition request is sent to Cloud Server, and receive the cloud
Multiple language profiles that server returns;Received each language profile is stored in sandbox;Determine the target
Using object language ready for use;The object language configuration file of the object language is searched from the sandbox;In response to finding,
Based on the object language configuration file, the text of the object language is shown in the target application.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (12)
1. a kind of document handling method, which is characterized in that be applied to terminal device, the terminal device operation has iOS operation system
It unites and target application is installed, which comprises
In response to detecting the target application starting, language profile acquisition request is sent to Cloud Server, and receive institute
State multiple language profiles of Cloud Server return;
Received each language profile is stored in sandbox;
Determine target application object language ready for use;
The object language configuration file of the object language is searched from the sandbox;
In response to finding, it is based on the object language configuration file, the object language is shown in the target application
Text.
2. the method according to claim 1, wherein searching the object language from the sandbox described
After object language configuration file, the method also includes:
In response to not finding, the preset language profile in the executable file of the target application is read, it will be described pre-
It sets language profile and is stored in the sandbox.
3. the method according to claim 1, wherein determination target application target language ready for use
Speech, comprising:
Obtain current location information, the preset default language of user and default area;
Obtained successfully in response to the current location information, determine current location indicated by the current location information whether position
In the default area;
Be not located at default area in response to determining, determine current time and last time display alarm information time interval whether
More than or equal to default reminder time interval, wherein the prompting message is for reminding user by the display of the target application
Language is switched to the language in current location location;
It is greater than or equal to the default reminder time interval in response to determining, shows the prompting message;
In response to detecting that user is directed to the language switching instruction that the prompting message is triggered, by the current location location
Used language is determined as target application object language ready for use.
4. according to the method described in claim 3, it is characterized in that, determination target application target language ready for use
Speech, further includes:
Under following either case, the default language is determined as target application object language ready for use:
The current location information obtains failure;Or
The current location is located at the default area;Or
The time interval of current time and last time display alarm information is less than the default reminder time interval;Or
User is not detected and is directed to the language switching instruction that the prompting message is triggered.
5. being matched based on the object language the method according to claim 1, wherein described in response to finding
File is set, the text of the object language is shown in the target application, comprising:
In response to finding, execution following steps:
The object language configuration file is stored into the memory;
Trigger text idsplay order, wherein the text idsplay order includes keyword;
From the object language configuration file for being located at the memory, the keyword is searched;
The text of object language corresponding with the keyword, described is returned, and shows the text in the target application.
6. a kind of document handling apparatus, which is characterized in that be applied to terminal device, the terminal device operation has iOS operation system
It unites and target application is installed, described device includes:
Transmission unit is configured in response to detect the target application starting, sends language profile to Cloud Server
Acquisition request, and receive multiple language profiles that the Cloud Server returns;
First deposit unit, is configured to received each language profile being stored in sandbox;
Determination unit is configured to determine target application object language ready for use;
Searching unit is configured to search the object language configuration file of the object language from the sandbox;
Display unit is configured in response to find, and is based on the object language configuration file, shows in the target application
Show the text of the object language.
7. device according to claim 6, which is characterized in that described device further include:
Second deposit unit, is configured in response to not find, read preset in the executable file of the target application
The preset language profile is stored in the sandbox by language profile.
8. device according to claim 6, which is characterized in that the determination unit is further configured to:
Obtain current location information, the preset default language of user and default area;
Obtained successfully in response to the current location information, determine current location indicated by the current location information whether position
In the default area;
Be not located at default area in response to determining, determine current time and last time display alarm information time interval whether
More than or equal to default reminder time interval, wherein the prompting message is for reminding user by the display of the target application
Language is switched to the language in current location location;
It is greater than or equal to the default reminder time interval in response to determining, shows the prompting message;
In response to detecting that user is directed to the language switching instruction that the prompting message is triggered, by the current location location
Used language is determined as target application object language ready for use.
9. device according to claim 8, which is characterized in that the determination unit is further configured to:
Under following either case, the default language is determined as target application object language ready for use:
The current location information obtains failure;Or
The current location is located at the default area;Or
The time interval of current time and last time display alarm information is less than the default reminder time interval;Or
User is not detected and is directed to the language switching instruction that the prompting message is triggered.
10. device according to claim 6, which is characterized in that the display unit is further configured to:
In response to finding, execution following steps:
The object language configuration file is stored into the memory;
Trigger text idsplay order, wherein the text idsplay order includes keyword;
From the object language configuration file for being located at the memory, the keyword is searched;
The text of object language corresponding with the keyword, described is returned, and shows the text in the target application.
11. a kind of terminal device characterized by comprising
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
Shi Shixian method for example as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910620517.3A CN110457085B (en) | 2019-07-10 | 2019-07-10 | File processing method and device, terminal equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910620517.3A CN110457085B (en) | 2019-07-10 | 2019-07-10 | File processing method and device, terminal equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110457085A true CN110457085A (en) | 2019-11-15 |
CN110457085B CN110457085B (en) | 2022-10-21 |
Family
ID=68482648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910620517.3A Active CN110457085B (en) | 2019-07-10 | 2019-07-10 | File processing method and device, terminal equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110457085B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817655A (en) * | 2021-01-29 | 2021-05-18 | 北京达佳互联信息技术有限公司 | Document information processing method, device, storage medium and electronic equipment |
CN112835633A (en) * | 2020-12-17 | 2021-05-25 | 海信视像科技股份有限公司 | Display device and control method of display language |
CN112949252A (en) * | 2021-03-23 | 2021-06-11 | 上海掌门科技有限公司 | Text display method, text display device, and computer-readable medium |
CN116233298A (en) * | 2022-12-05 | 2023-06-06 | 湖北星纪时代科技有限公司 | Language data packet updating method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101122858A (en) * | 2007-09-20 | 2008-02-13 | 中兴通讯股份有限公司 | Human-machine interface localization method and system |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
CN101876907A (en) * | 2010-05-18 | 2010-11-03 | 杭州海康威视数字技术股份有限公司 | Multi-language implementation method and device of human-computer interaction interface |
US20110173607A1 (en) * | 2010-01-11 | 2011-07-14 | Code Systems Corporation | Method of configuring a virtual application |
CN103544306A (en) * | 2013-11-01 | 2014-01-29 | 广东威创视讯科技股份有限公司 | Multi-language display supporting method and device of website |
CN103595868A (en) * | 2013-11-13 | 2014-02-19 | 广东欧珀移动通信有限公司 | Language extension method and system based on geographic position and applied to handheld device |
CN104020991A (en) * | 2014-05-16 | 2014-09-03 | 可牛网络技术(北京)有限公司 | Method and device for multi-language switching of application program |
CN108304207A (en) * | 2018-03-01 | 2018-07-20 | 上海找钢网信息科技股份有限公司 | Mix the resource regeneration method and system of APP application programs |
-
2019
- 2019-07-10 CN CN201910620517.3A patent/CN110457085B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101122858A (en) * | 2007-09-20 | 2008-02-13 | 中兴通讯股份有限公司 | Human-machine interface localization method and system |
CN101714086A (en) * | 2009-12-22 | 2010-05-26 | 中兴通讯股份有限公司 | Method and device for choosing software interface languages |
US20110173607A1 (en) * | 2010-01-11 | 2011-07-14 | Code Systems Corporation | Method of configuring a virtual application |
CN101876907A (en) * | 2010-05-18 | 2010-11-03 | 杭州海康威视数字技术股份有限公司 | Multi-language implementation method and device of human-computer interaction interface |
CN103544306A (en) * | 2013-11-01 | 2014-01-29 | 广东威创视讯科技股份有限公司 | Multi-language display supporting method and device of website |
CN103595868A (en) * | 2013-11-13 | 2014-02-19 | 广东欧珀移动通信有限公司 | Language extension method and system based on geographic position and applied to handheld device |
CN104020991A (en) * | 2014-05-16 | 2014-09-03 | 可牛网络技术(北京)有限公司 | Method and device for multi-language switching of application program |
CN108304207A (en) * | 2018-03-01 | 2018-07-20 | 上海找钢网信息科技股份有限公司 | Mix the resource regeneration method and system of APP application programs |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112835633A (en) * | 2020-12-17 | 2021-05-25 | 海信视像科技股份有限公司 | Display device and control method of display language |
CN112835633B (en) * | 2020-12-17 | 2022-11-11 | 海信视像科技股份有限公司 | Display device and control method of display language |
CN112817655A (en) * | 2021-01-29 | 2021-05-18 | 北京达佳互联信息技术有限公司 | Document information processing method, device, storage medium and electronic equipment |
CN112817655B (en) * | 2021-01-29 | 2024-05-14 | 北京达佳互联信息技术有限公司 | Document information processing method and device, storage medium and electronic equipment |
CN112949252A (en) * | 2021-03-23 | 2021-06-11 | 上海掌门科技有限公司 | Text display method, text display device, and computer-readable medium |
CN112949252B (en) * | 2021-03-23 | 2023-08-04 | 上海掌门科技有限公司 | Text display method, apparatus and computer readable medium |
CN116233298A (en) * | 2022-12-05 | 2023-06-06 | 湖北星纪时代科技有限公司 | Language data packet updating method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110457085B (en) | 2022-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110457085A (en) | Document handling method, device, terminal device and computer-readable medium | |
US10216514B2 (en) | Identification of a component for upgrade | |
CN109062563B (en) | Method and device for generating page | |
US10291565B2 (en) | Incorporating selectable application links into conversations with personal assistant modules | |
CN105049486A (en) | Version management and file pulling control methods for static files, version management and file pulling control devices, and version control system | |
CN103649876A (en) | Performing actions on a computing device using a contextual keyboard | |
US20180129925A1 (en) | Smart card information querying method and apparatus, and storage medium | |
US12061595B2 (en) | Facilitating performance of database operations using microservices | |
CN105745646A (en) | Native application search results | |
CN103902331A (en) | Information processing apparatus and information processing method | |
CN110222775A (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN102750081A (en) | Information processing apparatus, information processing method, and program | |
CN116774893A (en) | Location platform for managing and providing user experience | |
CN107203372A (en) | Control shows method and device | |
KR20160118846A (en) | Method, system and recording medium for providing word learning | |
CN112988583A (en) | Method and device for testing syntax compatibility of database | |
CN114780019A (en) | Electronic device management method and device, electronic device and storage medium | |
CN110955449B (en) | Gray scale release method and device for client | |
CN110413165A (en) | Icon configuration method, device, electronic equipment and computer-readable medium | |
KR102081232B1 (en) | Apparatus for creating contents using tag | |
CN111723134A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN109857698A (en) | A kind of rocket flight data processing method, device | |
CN112433741B (en) | Page processing method, device and system, electronic equipment and storage medium | |
CN110019479A (en) | Data manipulation detection method and device | |
CN103812908A (en) | Cloud file processing method and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |