CN104169872B - Translation application resource - Google Patents
Translation application resource Download PDFInfo
- Publication number
- CN104169872B CN104169872B CN201280069010.XA CN201280069010A CN104169872B CN 104169872 B CN104169872 B CN 104169872B CN 201280069010 A CN201280069010 A CN 201280069010A CN 104169872 B CN104169872 B CN 104169872B
- Authority
- CN
- China
- Prior art keywords
- word
- computing device
- application program
- language
- resources
- 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
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/451—Execution arrangements for user interfaces
- G06F9/454—Multi-language systems; Localisation; Internationalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/40—Processing or translation of natural language
- G06F40/58—Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Machine Translation (AREA)
- Stored Programmes (AREA)
Abstract
According to a general aspect, a kind of system includes identification module, translation module and display module.The identification module is configured to identify when the application program run in the system attempts the user that word is shown to the application program with first language.The translation module is configured to translating into the word into the second language different from the first language from the first language.The display module is configured and the word is shown to the user with the second language.
Description
Technical field
The present invention relates generally to the translations of computer applied algorithm.
Background technology
User commercially can get many computer applied algorithms or computer program.For example, many people possess
The mobile device of computer applied algorithm, such as smart phone can be run.
However, many computer applied algorithms or computer program only can be with several language uses.For example, many meters
Calculation machine application program or computer program can only be used with the native language of the developer of specific program.And not all meter therefore,
Calculation machine application program or computer program can easily be used by owner.For example, the people not known English may not
It is only used with English or only with the computer program or computer applied algorithm of English and user interaction using user is needed.
Accordingly, it is desirable to provide a kind of source-computer application program uses the application program for the user of different language
System.
Invention content
According to a general aspect, a kind of system includes identification module, translation module and display module.The identification module
It is configured to identify when the application program run in the system attempts that word is shown to application program with first language
User.The translation module is configured to translating into the word into second different from the first language from the first language
Language.The display module is configured and word is shown to the user with the second language.
According to another general aspect, a kind of method includes:(1) when recognition application attempts word being shown to described
The user of application program, the word are in first language;(2) it will attempt to be shown to the word of the user from the first language
Second language is translated into, the second language is different from the first language;And (3) are shown the word with the second language
To the user.
According to another general aspect, a kind of computer program product, the computer program product are visibly embodied in
On computer-readable media and include to be configured to cause at least one processor when being executed to carry out the following instruction operated:
(1) when recognition application attempts the user that word is shown to the application program, and the word is in first language;It (2) will examination
Figure is shown to the word of the user and translates into second language from the first language, and the second language is different from described the
One language;And the word is shown to the user by (3) with the second language.According to another general aspect, one kind is by having
Have the computing device of at least one processor and a memory execute method include:From just being held by least one processor
Capable application program receives to provide the first word for the request that is used by the application program, wherein the application program by
It entity issued and the application program and is stored in the memory of the computing device and by the one of the entity issued
Or multiple resources are associated;Determine the default language of the computing device;It is accessed in the memory of the computing device
One or more described resources;Determine one or more described resources whether comprising first word in the default language;If
One or more described resources include first word in the default language, then providing first word to the application
Program;And if one or more described resources do not include first word in the default language,:By first word
And the instruction of the default language is transferred to translating server;It is received from the translating server by translating first word
The second word obtained at the default language;And provide second word to the application program.
According to another general aspect, a kind of computing device at least one processor and a memory includes:It connects
Module is received, is configured to from application program reception providing the first word for the request that is used by the application program, institute
State application program by entity issued and be stored in the memory of the computing device and by the one of the entity issued
Or multiple resources are associated;First determining module is configured to determine the default language of the computing device;Access module,
It is configured to one or more described resources of access;Second determining module is configured to determine that one or more described resources are
No first word comprising in the default language;And transmission module, the transmission module are configured to:If described one or
Multiple resources include first word in the default language, then by being transferred in first word of the default language
The application program, the transmission module are configured to the instruction of first word and the default language being transferred to translation clothes
Business device receives the second word obtained by first word is translated into the default language from the translating server and incites somebody to action
Second word is transferred to the application program.
According to another general aspect, a kind of computer program product is visibly embodied on computer-readable media and wraps
The following instruction operated is carried out if including and executing at least one processor for so causing computing device:From just by described at least one
The application program that a processor executes receives to provide the first word for the request that is used by the application program, wherein described
Application program by entity issued and the application program be stored in the memory of the computing device and sent out by the entity
One or more resources of cloth are associated;Determine the default language of the computing device;In the memory of the computing device
One or more resources described in middle access;Determine one or more described resources whether comprising in described the first of the default language
Word;If one or more described resources include first word in the default language, first word is provided
The application program;And if one or more described resources do not include first word in the default language,:By institute
The instruction for stating the first word and the default language is transferred to translating server;It is received from the translating server by by described the
One word translates into the default language and the second word for obtaining;And provide second word to the application program.
According to another general aspect, a kind of method is executed by computing device.The method includes:By the computing device
The Preferred Language of the application program executed on the computing device is identified, wherein the application program utilizes word;Described in access
One or more resources of application program;Determine that one or more described resources do not include the word in the Preferred Language;And it will
The instruction of the word and the Preferred Language is transferred to computing system.
According to another general aspect, a kind of computing device includes:Identification module is configured to identification in the calculating
The Preferred Language of the application program executed on device, wherein the application program utilizes word;Access module is configured to access
One or more resources of the application program;Determining module, it is in institute to be configured to determine that one or more described resources do not include
State the word of Preferred Language;And transmission module, it is configured to the instruction of the word and the Preferred Language being transferred to meter
Calculation system.
According to another general aspect, a kind of computer program product is visibly embodied on computer-readable media and wraps
The following instruction operated is carried out if including and executing at least one processor for so causing computing device:Identification is filled in the calculating
The Preferred Language of the application program of execution is set, wherein the application program utilizes word;Access the one or more of the application program
A resource;Determine that one or more described resources do not include the word in the Preferred Language;And by the word and it is described preferably
The instruction of language is transferred to computing system.
According to another general aspect, a kind of method is executed by computing device.The method includes:It is received from first instance
The application program that will be run on the computing device, the application program include at least one resource, at least one resource packet
Containing the word in first language;From second instance reception to download the request of the application program, the second instance has excellent
Language, the Preferred Language is selected to be different from the first language;And by the word from the first language translate into it is described preferably
Language.
The details of one or more embodiments is stated in the accompanying drawings and the description below.From the explanation and schema and from right
Claim will become apparent from other feature.
Description of the drawings
Fig. 1 is the block diagram according to the system for translating the information provided by application program of an embodiment.
Fig. 2 is the flow chart according to the example operation of the diagram illustrating computer program product of an embodiment.
Fig. 3 is the flow chart according to the example operation of the diagram illustrating computer program product of an embodiment.
Fig. 4 is the screenshot capture for the application program for showing user interface.
Fig. 5 is the method for the text for showing application program or computer program according to the diagram illustrating of an embodiment
Flow chart.
Fig. 6 is the block diagram according to the system of an embodiment.
Fig. 7 is the flow chart according to the example operation of the diagram illustrating computer program product of an embodiment.
Fig. 8 is the block diagram according to the system of an embodiment.
Fig. 9 is the flow chart according to the example operation of the diagram illustrating computer program product of an embodiment.
Figure 10 is the flow chart according to the example operation of the diagram illustrating computer program product of an embodiment.
Specific implementation mode
Fig. 1 is the block diagram according to the system 100 for translating the information provided by application program of an embodiment.System
100 can be by user or consumer for running or executing program or application program.For example, system 100 can be for example hand-held
The computing device of formula computing device or personal computer can be incorporated into the computing device.
In some embodiments, application program and computer program developer can develop on the system 100 or its
The application program or computer program of interior operation or execution.In some embodiments, application program or computer program are through matching
It sets to be communicated with the user of application program or computer program via language be written or word be written.In some embodiments
In, system 100 is configured to translation application or computer program attempts the word for being supplied to user.
System 100 includes identification module 110, translation module 120, display module 130 and determining module 140.In some realities
It applies in scheme, one or more of the component or module of system 100 or other systems disclosed herein or computing device can
For or may include hardware based module (for example, digital signal processor (DSP), field programmable gate array (FPGA), storage
Device), firmware module and/or based on software module (for example, computer code module, can one group of calculating performed by computer
Machine readable instruction).For example, in some embodiments, identification module 110 can be or may include being configured for by least
The software module that one processor (not shown) executes.Similarly, translation module 120 can be or may include being configured for by extremely
The software module that a few processor (not shown) executes.In some embodiments, the functionality of module or component may include
In the module and/or component different from module those of demonstrated in Figure 1 and/or component.For example, although not showing,
But the functionality of identification module 110 may be included in the module different from identification module 110 or can be divided into several disparate modules.
Identification module 110 is operatively coupled to application program 105 and determining module 140.Identification module 110 is configured to know
When other application program attempts to communicate with user to remove user's understanding or preferred extralinguistic language.For example, if
User likes communicating with Japanese and application program 105 is just attempting that word is shown to user with English, then identification module will identify
This inconsistent or difference.
Translation module 120 is operatively coupled to identification module 110.Translation module 120 is configured to translation application 105
Just attempt be shown to user U one or several words.For example, in some embodiments, translation module 130 is configured to
Described one or several words are translated into several different language (such as Chinese, Japanese, German, Spanish etc.).
In some embodiments, translation module 120 includes the software for being configured to translation one or several words.Other
In embodiment, translation module 120 is configured to be communicated with third party's (such as via network) to ask or obtain in other ways
Take described one or the translation of several words.
Translation module 120 is operatively coupled to display module 130.Display module 130 is configured to provide output to use
Family U.For example, in some embodiments, display module 130 is configured to (for example) put forward visual output via display screen
Supply user U.In some embodiments, if display module 130 be configured to output by translation module 120 translate one or
Dry word.
Determining module 140 is configured to determine the Preferred Language of user U.For example, in some embodiments, determine
Module 140 is configured to determine the native language of user U.In some embodiments, determining module 140 is configured to really
Determine the position (such as country) of user and keeps Preferred Language determination true based on language used in the position or country
Determine the Preferred Language of user.In some embodiments, determining module 140 be configured to based on the device such as set by user U,
The setting of system or application program and the Preferred Language for determining user U.
In some embodiments, determining module 140 includes enquiry module 142 and receiving module 144.Enquiry module 142
It is configured to inquire and is supplied to user.In some embodiments, inquiry request user U provides the Preferred Language of user U
Instruction.In these embodiments, receiving module 144 is configured to receive to such as by the response of the user U inquiries provided.
In some embodiments, the operating system or platform of device or system 100 are configured to identification or recognizer
Or when application program is communicated using word be written with user.For example, in some embodiments, operating system is configured
When attempt menu or other user interface items being supplied to user with identification program or application program 105.Then, operating system
Or platform can be configured to identify menu or other user interface items language and can be by translated menu or other user interfaces
Item provides to application program (for being supplied to user) or is supplied directly to user.In some embodiments, operating system
Or platform is configured to communicate with third party's translation service to obtain must translating for menu or other user interface items.Other
In embodiment, operating system or platform itself can be configured to translate menu or other user interface items.
In other embodiments, program or application program 105 can be configured with will be providing menu or other users
The request of the translation of interface items is provided to operating system or is provided to platform.
In other embodiments, auxiliary program or application program act on and can be configured to identify or recognize master
Want when program or application program attempts to communicate with the user of device using word be written.In these embodiments, journey is assisted
Sequence or application program can be configured to interrupt the communication between main program and user.Then, auxiliary program can be turned over third party
Translate communication for service any must translate or can provide interpretative function to obtain.Then, HELPER APPLICATIONS can be by translated menu
Or other user interface items provide to main program or application program 105 (for being supplied to user) or can directly carry translation
Supply user.
Fig. 2 is the flow chart according to the diagram illustrating method 200 of an embodiment.In some embodiments, method 200
The user of application program or computer program is allowed to be communicated with application program or computer program with the Preferred Language of the user
Or it is interactive.For example, if application program or computer program attempt via will include in and non-user preferably or user
The one of the language of native language or the display of several words communicated with user, if then method 200 can be used for by described one or
A dry word is shown to user and this or these words is translated into the preferred language of user before.
In some embodiments, computer program product is visibly embodied on computer-readable media and is included in and holds
The instruction of at least one processor implementation 200 is configured to cause when row.
At 210, make being supplied to user really about whether application program or computer program product attempt to show
It is fixed.For example, at 210, when method recognition application or computer program product attempt include a word or one group
The display of word is supplied to user.For example, at 210, if application program or computer program attempt by being carried to user
Communicated with user for inquiry or it is interactive or if application program or computer program product just providing a user spoken command or
Information, then the method recognition application.
At 220, prevent application program or computer program product from providing a user display.For example, in some realities
It applies in scheme, interrupted application program or computer program product.Specifically, in some embodiments, the device (example of user
Such as handheld apparatus or personal computer) system or another application program or computer program can interrupt or intercept and capture using journey
Sequence or computer program product provide a user the trial of display.
At 230, make about application program attempt be shown to user one or several words language whether be in user
Preferred Language determination.For example, can make about one or several words language whether be user native language
It determines.In some embodiments, publicly available resource can be used to determine the language of one or several words.
If one or several words of display are not in the language of user, at 240, it is described to determine whether user allows
One or several words translation.If user allows the translation of search result, at 250, translation one or several words, and
At 260, translated display (have one or several translated words) is supplied to user.If user does not allow one or several
The translation of a word, then not executing translation and user will be supplied in the one of source language or several words.
In some embodiments, user is adjustable or whether setting instruction user it is expected or allow the translation of search result
Setting.In addition, in some embodiments, user can provide the instruction of the Preferred Language of user.In other embodiments,
It can provide a user to allow the user to indicate that the prompt or request whether user it is expected translation search result.
Fig. 3 is the flow chart according to the diagram illustrating method 300 of an embodiment.In some embodiments, method 300
Allow the user of application program or computer program logical with the Preferred Language of the user of device and application program or computer program
Letter is interactive.Fig. 4 illustrate with multilingual (user of device may not understand the language) provide word or with device
The screenshot capture of the application program of user's communication.For example, if application program or computer program attempt via will include
In and non-user preferably or understand or the one of language or the display of several words of native language of user is communicated with user, that
Method 300 can be used for before described one or several words are shown to user this word or these words translating into user preferred
Language.
In some embodiments, computer program product is visibly embodied on computer-readable media and is included in and holds
The instruction of at least one processor implementation 300 is configured to cause when row.
At 310, method includes when recognition application or computer program attempt include in different from user's
It is preferred that or the display of word of language of native language be supplied to user.In some embodiments, using publicly available resource (example
Such as obtainable resource via internet) come determine application program or computer program attempt be shown to user one or several
The language of word.
In some embodiments, the operating system of device or platform are configured to identification or recognizer or application program
When communicated with user using word be written.For example, in some embodiments, operating system is configured to identification program
Or when application program attempts menu or other user interface items being supplied to user.Then, operating system or platform can be through matching
It sets the language to identify menu or other user interface items and translated menu or other user interface items can be provided to application
Program (for being supplied to user) is supplied directly to user.In some embodiments, operating system or platform are configured
Must translating for menu or other user interface items is obtained to be communicated with third party's translation service.In other embodiments,
Operating system or platform itself can be configured to translate menu or other user interface items.
In other embodiments, program or application program can be configured with will be providing menu or other user interfaces
The request of the translation of item is provided to operating system or is provided to platform.
In other embodiments, auxiliary program or application program act on and can be configured to identify or recognize master
Want when program or application program attempts to communicate with the user of device using word be written.In these embodiments, journey is assisted
Sequence or application program can be configured to interrupt the communication between main program and user.Then, auxiliary program can be turned over third party
Translate communication for service any must translate or can provide interpretative function to obtain.Then, HELPER APPLICATIONS can be by translated menu
Or other user interface items provide to main program or application program (for being supplied to user) or can directly provide translation
To user.
In some embodiments, user provides the instruction of the Preferred Language of user.For example, in some embodiments
In, method 300 includes that the instruction of Preferred Language is asked to user.In some embodiments it is preferred that language is the machine of user
Language.
In some embodiments, interrupted application program or computer program are in order to avoid by with the word in its source language
Display is supplied to user.For example, in some embodiments, the operating system of the device of user or other program interrupts are answered
With program or computer program in order to avoid the display with the word in its source language is supplied to user.
At 320, in translation display is in not the word of the Preferred Language of user.For example, if user's is preferred
Language is that the source language of Chinese and word is English, then word will be translated into Chinese.In some embodiments, public affairs can be used
Available translation services are total to translate word.For example, obtainable translation service via internet can be used to translate into word
The Preferred Language of user.At 330, the display comprising translated word is supplied to user.
Fig. 5 is according to an embodiment for showing application program or the text (example of computer program with different language
Such as menu) method 500 flow chart.In this example, resource-based text string can use that is translated and being shown to device
Family.
For example, in some embodiments, be below menu item embodiment and this menu item display.
@Override
public boolean onCreateOptionsMenu(final Menu menu){
Final boolean result=super.onCreateOptionsMenu (menu);
String menuTitle=getString (R.string.menu_title);
MenuItem item=menu.add (menuTitle);
return result&&item!=null;
In addition, the string Resource TOC containing R.string.menu_title can following article.
values/string.xml
values-mcc232-de/strings.xml
values-en/string.xml
values-fr-rCA/string.xml
values-en-port/string.xml
values-en-notouch-12key/string.xml
Method 500 can be used for showing menu with the Preferred Language of the user of device.In illustrated embodiment,
At 510, local resource, such as values/string.xml are determined.Specifically, at 512, it is positioned for given resource
All Resource TOCs.At 514, eliminates and configure the resource file contradicted with device.At 516, qualifier is identified.518
Place eliminates the Resource TOC for not including specified qualifier.Duplicate keys 516 and 518 until remaining only one catalogue (such as
Values/string.xml until).
At 520, the platform of device can determine or detect whether to have requested that automatic translation.It is complete if not yet asked
At the process.If having requested that automatic translation, at 530, determine or detection local resource language whether with user
Preferred Language it is identical.If it is then completing the process.If not, so at 540, translation service can be used to turn over
Translate the resource.For example, translation service can be used that the string of resource (it is with any language) is translated into the excellent of user
Select language (any other language).
In some embodiments, translation service can be that the program run with device sheet or device can be with third parties
Translation service (such as the translation service that can be accessed via internet) communicates.
In some embodiments, device is configured to identify or detect the Preferred Language of user.For example, at some
In embodiment, user can be asked to provide Preferred Language.In other embodiments, device is configured to the position of detection user
Or the Preferred Language that region is arranged and selects the language that the position of user or region are arranged as user.
In some embodiments, application programming interface (API) is can be changed or changes to support method 500.Citing
For, API can be modified as follows.
" String getString (int resourceId) " can be revised as " String getString (int
resourceId,boolean autoTranslateWhenNeeded)”。
It therefore, can be by " String menuTitle=getString (R.string.menu_ according to above example
Title it) " is revised as " String menuTitle=getString (R.string.menu_title, true) ".
In some embodiments, text string or resource identification language.For example, in some embodiments, text
The language of string or resource identification text string.In other embodiments, device, application program or program include and are configured to identify
The identifier of the default language of text string.
In some embodiments, application program or program include the height of the language translation of the text string for application program
Speed caching.In these embodiments, the new translation of translated text string and non-executing text string can be searched or identified.
In some embodiments, the application program of device or platform include the choosing of enabling or deactivated automatic translation feature
.In these embodiments, user can determine whether application program or program should provide translated text string.
In some embodiments, the developer of application program or program may specify an object language or more than one targets
Language.Then, resource and text string can all be translated into all object languages.In these embodiments, in application program
Run time during need not carry out resource or the actual translations of text string.
In some embodiments, the text string in the code of application program or computer program can be translated.Citing
For, it can be as follows by the text string of display.
myTextView.setText(“Hello World”);
API can be modified as follows.
TextView::setText(String text,Language language,Boolean
autoTranslateWhenNeeded);
Parameter " language " may specify the language of given string.If the language of not specified string, translation service can analyze string
And provide the language.If the language of string is not identical as the Preferred Language of user, application program or computer program can
Contact translation service (such as via internet) translates into Preferred Language will go here and there.It then can will be in the string of the Preferred Language of user
It is displayed or presented to user.
In some embodiments, following pseudocode can be used.
String text=" hello world ";
String textTranslated=getTranslateService () .translate (text,
originalLanguage,targetLanguage);
myTextView.setText(textTranslated);
In these embodiments, the platform of device makes the developer of application program or computer program know translation clothes
Business.If desired, translation service can be used in the developer of application program or computer program.
Such as computer system or the system of computing device 600 as illustrated in FIG. 6, in some embodiments,
Including processor 610 and memory 620.The system also includes receiving module 630, the first determining module 640, access module
650, the second determining module 660 and transmission module 670.
Receiving module 630 is configured to from application program reception providing the first word so that is used by application program asks
It asks.For example, in some embodiments, application program can be stored in memory 620.Application program can just ask described
Word so that the word can be displayed or presented to the user of system or device 600.In some embodiments, application program is by reality
Body, which is issued or distributed or provides in other ways, arrives device 600.Application program can be with the resource (example that is stored in memory 620
Such as text file or code (such as compiled code)) it is associated.Can be positioned at the money by the first word of application requests
In one of source or word associated with one of the resource.In some embodiments, resource is also by offer application
The entity issued of program or distribution.
Receiving module 630 is operatively coupled to the first determining module 640.First determining module 640, which is configured to determine, is
The default language of system or computing device 600.In some embodiments, the first determining module 640 be configured to via device or
Setting in system 600 and identify default language.In other embodiments, the first determining module 640 is configured to device
600 user provides to determine the inquiry of acquiescence or Preferred Language.
Access module 650 is configured to the resource of access application program.The resource can be located in compiled code or deposit
It is stored in text-type file.Second determining module 660 be configured to determine application program resource whether comprising in acquiescence or it is excellent
Select one or several words of language.
If the one of resource or several words in preferably or default language, transmission module 670 is configured to will be described
One or several words be transferred to application program.
If the one of resource or several words be in preferably or default language, transmission module 670 be configured to institute
State one or the translations of several words provide to application program.In some embodiments, transmission module 670 be configured to one or
The instruction of several words and acquiescence or Preferred Language is transferred to translating server, such as what can publicly be obtained via internet turn over
Translate server or service.In these embodiments, transmission module 670 is also configured to the result to receive translation and ties these
Fruit (one or several translated words), which provides, arrives application program.
Fig. 7 is the flow chart according to the method 700 of an embodiment.Method 700 can by comprising at least one processor and
The computing device of one memory executes.Method 700 includes:At 710, receive to provide word for being used by application program
Request.In some embodiments, application program just executes on the processor of device.Application program is by entity issued or distribution
And with it is also associated by the entity issued or the resource of offer (such as compiled code or text file).In some embodiment party
In case, resource associated with application program is stored in the memory of device 700.
At 720, one or more resources for including institute's request word are accessed in the memory of device.At 730, institute is determined
Request word whether be in device default language or Preferred Language.In some embodiments, this determines silent comprising determining device
Recognize or Preferred Language.For example, in some embodiments, method includes to provide request or determining device to the user of device
The acquiescence of (or user of device) or the inquiry of Preferred Language.
At 740, word is transmitted or provided to application program.In some embodiments, if word is in the acquiescence of device
Language, then providing word to application program.In some embodiments, if word is not in default language, word is translated
It is provided to application program at default language and by the word (the second word).In some embodiments, method 700 includes by first
The instruction of word and default language is transferred to translating server or service.It for example, can be via internet by the first word and acquiescence
The instruction of language is provided to translation service.In these embodiments, method 700 also includes to be received from translation service or server
Second word (the first word is translated into the result of default language) and provide second word to application program.
As illustrated in fig. 8, in some embodiments, system or computing device 800 include identification module 810,
Access module 820, determining module 830 and transmission module 840.In some embodiments, system 800 also can include one or more of
Processor and one or more memories.
Identification module 810 is configured to the acquiescence or Preferred Language for the application program that identification is just executing on device 800.
In some embodiments, application program utilizes one or several words.For example, application program can pass through the display in device
It is upper display one or several words and communicated with the user of device 800.Described one or several words can be located at application program code
In or its can be located at and be stored in other resources (such as text file) used in application program.
Access module 820 is configured to one or more moneys used in the application program that access is just executing on device 800
Source.Determining module 830 be configured to determine one or several words whether be in device 800 acquiescence or Preferred Language.If one or
Several words are not in acquiescence or Preferred Language, then transmission module 840 is configured to transmit described one or several words and preferably
The instruction of language.For example, in some embodiments, can by one or several words and preferably or default language be transferred to through
Configuration by described one or several words to translate into preferred or default language system, such as computing system.In some embodiment party
In case, it is stored in the memory or cache memory of computing device in the word of Preferred Language.
In some embodiments, system 800 be configured to determine one or several words whether should be automatically translated into it is excellent
Select language.
Fig. 9 is the flow chart according to the method 900 of an embodiment.Method 900 can be executed by computing device.Method 900
Including:At 910, the Preferred Language of the application program executed on the computing device is identified.In some embodiments, using journey
Sequence utilizes word.For example, in some embodiments, application program communicates (citing with the user of computing device using word
For, by the user that word is shown to computing device).
In some embodiments, application program is associated with one or more resources.One or more resources may include by answering
One or several words utilized with program.For example, in some embodiments, one or more resources are stored in device
Compiled code in memory or text file.At 920, one or more resources of access application program.
At 930, whether make about one or more resources comprising the determination in user or the word of the Preferred Language of device.
In some embodiments, method includes to provide a user to determine the inquiry of Preferred Language.
At 940, the instruction of word and Preferred Language is provided to computing system.In some embodiments, provide word and
The instruction of Preferred Language is to allow the word translating into Preferred Language.In some embodiments, computing system is local meter
Calculation system.In other embodiments, computing system is remote computing system, and the instruction of word and Preferred Language can be via because of spy
Net transmission.
In some embodiments, method 900 include determine computing system memory or cache memory whether
Including in the word of Preferred Language.
In some embodiments, the use for being displayed to device can be carried out in compiling, when distribution, when downloading or when management
The translation of the text or text string at family.
In some embodiments, the translation of text is carried out in compiling.The developer of application program or computer program
Default resource and its language message can be provided.In compiled code, developer may specify several language.Then, compiler can incite somebody to action
Default resource is automatically translated into appointed language and is encapsulated as binary system so that in the Preferred Language with matching object language
User use application program when, application program will provide or be shown to user in the text of the Preferred Language of user.It is real herein
It applies in scheme, network connection can not needed at runtime.
In some embodiments, the translation of text is carried out in distribution.Similar to above, by application program or calculating
When machine program distribution is to market, developer may specify object language.In this embodiment, extra resource encapsulation can be held by market
The person of having rather than developer sign.
In some embodiments, application program can be downloaded or the string of cypher text or text when computer program in user
Translation.For example, when user downloads application program or computer program, market or market participant are detectable using journey
Whether sequence supports the Preferred Language of user in the machine.If application program does not support the Preferred Language of user, market or city
Field supplier can prompt user that application program can be translated into its language (or may specify more multilingual).Then, user is acceptable
The suggestion, and related resource will be downloaded or translate into the Preferred Language of user and is downloaded.
Figure 10 is the flow chart according to the method 1000 of an embodiment.Method 1000 can be with one or more processors
And it is executed on the computing device of one or more memories.The method includes:At 1010, it will calculated from first instance reception
The application program run on device.For example, computing system may include being configured to receive application program from first instance
Receiving module.In some embodiments, application program includes at least one resource with the word in first language.At some
In embodiment, resource can be compiled code.In other embodiments, resource can be text file.In some embodiments
In, application program is communicated using word with the user of application program.
At 1020, from second instance reception downloading the request of application program.For example, second instance can be with
First instance different entity or individual.Second instance has Preferred Language, such as second instance is described or is understood main
Language.
In some embodiments, computing system includes the second reception mould for being configured to receive request from second instance
Block.Second receiving module can be to be configured to application program be provided or distributed to the component in the market of consumer.
At 1030, word is translated into Preferred Language from first language.In some embodiments, method include by word from
First language is locally translating into second language.For example, translation software can execute on the computing device with by word from first
Language translation is at Preferred Language.In other embodiments, (for example) the instruction of word and Preferred Language can be passed via internet
It is defeated to arrive translation service or server.
In some embodiments, method 1000 includes excellent to determine whether that word should be translated into second instance offer
Select the inquiry of language.
In some embodiments, can in management cypher text or text string.For example, such as above for compiling
Shi Jinhang translations are discussed, application program management person or supplier may specify for application program object language (or one kind with
Upper language).Application program management person or supplier can log-off cypher text or text strings.In this embodiment, it is transporting
Without translation when row.
The embodiment of various technologies described herein can be with Fundamental Digital Circuit or with computer hardware, solid
Part, software are implemented with a combination thereof.Embodiment can be embodied as computer program product, that is, visibly be embodied in information load
The calculating of (for example, be embodied in machine-readable storage device (computer-readable media) or be embodied in institute's transmitting signal) in body
Machine program, for being handled by data processing equipment (for example, programmable processor, a computer or multiple computers) or being controlled
The operation of the data processing equipment.In terms of being written by any type of programming language (including compiler language or interpretive language)
Calculation machine program (for example, computer program as described above), and the computer program can be disposed in any form, including
It is deployed as stand-alone program or is deployed as module, component, subroutine or is suitble to the other units used in a computing environment.Computer
Program can be deployed to be distributed and by communication network on a computer or at a site or across multiple sites
It is handled on multiple computers of network interconnection.
Method and step can be executed by one or more programmable processors of execution computer program, with by input data
It is operated and generates output to execute function.Method and step can also be by dedicated logic circuit (for example, FPGA (field-programmables
Gate array) or ASIC (special application integrated circuit)) execute, and equipment can be embodied as the dedicated logic circuit.
By way of example, the processor for being suitable for handling computer program includes general purpose microprocessor and special microprocessor two
One or more any processors of person and any kind of digital computer.In general, processor will from read-only memory or with
Machine accesses memory or both and receives instruction and data.The element of computer may include at least one processing for executing instruction
Device and for storing instruction and one or more memory devices of data.In general, computer also may include for storing data
One or more mass storage devices (for example, disk, magneto-optic disk or CD) can be through being operatively coupled with from described one or more
A mass storage device receives data or transfers data to one or more described mass storage devices or both receive number
According to transmission data again.The non-volatile memories for being suitble to the information carrier for embodying computer program instructions and data to include form of ownership
Device, by way of example, including:Semiconductor memory system, such as EPROM, EEPROM and flash memory device;Disk, example
Such as internal hard drive or removable disk;Magneto-optic disk;And CD-ROM and DVD-ROM disks.The processor and memory can be by
Supplemented is incorporated in dedicated logic circuit.
For the interaction for providing with user, embodiment may be implemented on computer, and the computer has for user
The display device (for example, cathode-ray tube (CRT) or liquid crystal display (LCD) monitor) and user for showing information can pass through it
The keyboard and indicator device (for example, mouse or trace ball) of input are provided to computer.The device of other types can also be used
Interaction with user is provided;For example, it can be any type of sensory feedback to be supplied to the feedback of user, for example, vision is anti-
Feedback, audio feedback or touch feedback;And input from the user can receive in any form, including sound, voice or tactile
Input.
It (includes aft-end assembly, for example, as data server that embodiment, which may be implemented in computing system,;Or include centre
Part component, for example, apps server;Or comprising front end assemblies, for example, can be via itself and embodiment interaction with user
Graphical user interface or Web browser client computer) or such rear end, middleware or front end assemblies any combination
In.Component can be interconnected by any digital data communications form or media (for example, communication network).The example of communication network includes office
Domain network (LAN) and Wide Area Network (WAN), such as internet.
Although as described in this article, having illustrated some features of described embodiment, fields
Technical staff will find out many modifications, replacement, change and equivalents now.It will be understood, therefore, that the appended claims are beaten
Calculate all such modifications and changes covered in the range of belonging to embodiment.It should be understood that only by way of example rather than limit
The embodiment is presented in mode processed, and can make the various changes of form and details.Equipment described herein and/or side
Any portion of method can be combined in the form of any combination, except mutual exclusion combination.Embodiment described herein may include
The function of described different embodiments, the various combinations of component and/or feature and/or sub-portfolio.
Claims (21)
1. a kind of method by being executed with the computing device of at least one processor and a memory, the method includes:
It is received from the application program just executed by least one processor to provide the first word for applying journey by described
The request that sequence uses, wherein:
The application program by entity issued, and
The application program and be stored in the memory of the computing device and by the entity issued one or more
Resource is associated;
Determine the default language of the computing device;
One or more described resources are accessed in the memory of the computing device;
By repeatedly eliminating the Resource TOC of one or more resources based on the qualifier identified until residue only one
It is described to determine whether one or more described resources include first word for being in the default language until a Resource TOC
One Resource TOC excludes the resource file contradicted with the configuration of the computing device;
If one or more described resources include first word in the default language, by first word from described one
A Resource TOC is provided to the application program;And
If one or more described resources do not include first word in the default language,:
The instruction of first word and the default language is transferred to translating server;
The second word obtained by first word is translated into the default language is received from the translating server;And
There is provided second word to the application program.
2. according to the method described in claim 1, one or more wherein described resources include to be stored as the resource of text file.
3. according to the method described in claim 1, wherein described access described one in the memory of the computing device
Or multiple resources are included in one or more resources that text file is stored as in the memory of the computing device.
4. according to the method described in claim 1, one or more wherein described resources include the money being stored in compiled code
Source.
5. according to the method described in claim 1, wherein described access described one in the memory of the computing device
Or multiple resources are included in one or more moneys being stored in the memory of the computing device in compiled code
Source.
6. according to the method described in claim 1, the wherein described default language is the Preferred Language of the user of the computing device.
7. according to the method described in claim 1, the default language of the wherein described determination computing device includes to institute
The user for stating computing device provides the inquiry of the default language to identify the computing device.
8. a kind of computing device at least one processor and a memory comprising:
Receiving module is configured to from application program reception providing the first word so that is used by the application program asks
Ask, the application program by entity issued and be stored in the memory of the computing device and by the entity issued
One or more resources it is associated;
First determining module is configured to determine the default language of the computing device;
Access module is configured to one or more described resources of access;
Second determining module is configured to repeatedly eliminate one or more described resources based on the qualifier identified
Resource TOC until remaining only one Resource TOC, to determine one or more described resources whether comprising being in the acquiescence
First word of language, one Resource TOC exclude the resource file contradicted with the configuration of the computing device;And
Transmission module, the transmission module are configured to:If one or more described resources include the institute in the default language
The first word is stated, then will be transferred to the application program from one Resource TOC in first word of the default language,
The transmission module is configured to the instruction of first word and the default language being transferred to translating server, from institute
It states translating server and receives the second word for being obtained by first word is translated into the default language and by described second
Word is transferred to the application program.
9. computing device according to claim 8, wherein one or more described resources include to be stored as the money of text file
Source.
10. computing device according to claim 8, wherein one or more described resources include to be stored in compiled code
Resource.
11. computing device according to claim 8, wherein the default language is the preferred of the user of the computing device
Language.
12. computing device according to claim 8, wherein first determining module includes to be configured to the calculating
The user of device provides the enquiry module of the inquiry of the default language to identify the computing device.
13. a kind of system for translation application resource, including:
For from just by least one processor of computing device execute application program receive to provide the first word for by
The device for the request that the application program uses, wherein:
The application program by entity issued, and
It the application program and is stored in the memory of the computing device and by one or more resources of the entity issued
It is associated;
Device for the default language for determining the computing device;
Device for accessing one or more resources in the memory of the computing device;
For the Resource TOC by repeatedly eliminating one or more resources based on the qualifier identified until residue
Determine one or more described resources whether comprising first word in the default language until only one Resource TOC
Device, one Resource TOC exclude the resource file contradicted with the configuration of the computing device;
If including first word in the default language for one or more described resources, by first word from institute
It states Resource TOC and device to the application program is provided;And
If not including first word in the default language for one or more described resources, dress below is carried out
It sets:
The instruction of first word and the default language is transferred to translating server;
The second word obtained by first word is translated into the default language is received from the translating server;And
There is provided second word to the application program.
14. system according to claim 13, wherein one or more described resources include to be stored as the resource of text file.
15. system according to claim 13, wherein one or more described resources include to be stored in compiled code
Resource.
16. system according to claim 13, wherein the default language is the preferred language of the user of the computing device
Speech.
17. system according to claim 13, further comprise by making at least one processor to based on described
User's offer of device is calculated to identify the device of the inquiry of the default language of the computing device.
18. computing device according to claim 8, wherein the access module is configured as by being stored as text
One or more resources of this document access one or more described resources.
19. computing device according to claim 8, wherein the access module be configured as by be stored in through
One or more resources in compiled code access one or more described resources.
20. system according to claim 13, wherein the device for accessing one or more resources include for
The device of one or more resources of text file is stored as in the memory of the computing device.
21. system according to claim 13, wherein described for being accessed in the memory of the computing device
The device of one or more resources includes for being stored in compiled code in the memory of the computing device
One or more resources device.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/000142 WO2013113135A1 (en) | 2012-02-03 | 2012-02-03 | Translating application resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104169872A CN104169872A (en) | 2014-11-26 |
CN104169872B true CN104169872B (en) | 2018-07-31 |
Family
ID=48904350
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280069010.XA Active CN104169872B (en) | 2012-02-03 | 2012-02-03 | Translation application resource |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP2810160A4 (en) |
CN (1) | CN104169872B (en) |
WO (1) | WO2013113135A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10162819B2 (en) | 2016-08-17 | 2018-12-25 | Netflix, Inc. | Change detection in a string repository for translated content |
TWI659369B (en) * | 2017-07-12 | 2019-05-11 | 金腦數位股份有限公司 | Message processing device |
CN110414011A (en) * | 2019-06-21 | 2019-11-05 | 北京三快在线科技有限公司 | Multilingual translation device, method, electronic equipment and storage medium |
CN112632212B (en) * | 2019-10-08 | 2024-03-15 | 腾讯科技(深圳)有限公司 | Method, device, equipment and medium for updating to-be-translated entry |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474312A (en) * | 2003-06-04 | 2004-02-11 | 无敌科技(西安)有限公司 | Device capable of supporting multiple languages and its display method |
CN1928813A (en) * | 2006-09-22 | 2007-03-14 | 华为技术有限公司 | Translation method and system for man/machine interaction interface of application program |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6993568B1 (en) | 2000-11-01 | 2006-01-31 | Microsoft Corporation | System and method for providing language localization for server-based applications with scripts |
US7437704B2 (en) * | 2003-08-28 | 2008-10-14 | Ines Antje Dahne-Steuber | Real-time generation of software translation |
US20060117304A1 (en) | 2004-11-23 | 2006-06-01 | Microsoft Corporation | Method and system for localizing a package |
US8249854B2 (en) * | 2005-05-26 | 2012-08-21 | Microsoft Corporation | Integrated native language translation |
CN100447743C (en) * | 2005-06-24 | 2008-12-31 | 国际商业机器公司 | System and method for localizing JAVA GUI application without modifying source code |
US8347287B2 (en) * | 2008-10-03 | 2013-01-01 | Hewlett-Packard Development Company, L.P. | System and method for localizing a server application using a client-side translator |
US20120022851A1 (en) * | 2010-07-23 | 2012-01-26 | International Business Machines Corporation | On-demand translation of application text |
-
2012
- 2012-02-03 CN CN201280069010.XA patent/CN104169872B/en active Active
- 2012-02-03 EP EP12867194.8A patent/EP2810160A4/en not_active Withdrawn
- 2012-02-03 WO PCT/CN2012/000142 patent/WO2013113135A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1474312A (en) * | 2003-06-04 | 2004-02-11 | 无敌科技(西安)有限公司 | Device capable of supporting multiple languages and its display method |
CN1928813A (en) * | 2006-09-22 | 2007-03-14 | 华为技术有限公司 | Translation method and system for man/machine interaction interface of application program |
Also Published As
Publication number | Publication date |
---|---|
WO2013113135A1 (en) | 2013-08-08 |
CN104169872A (en) | 2014-11-26 |
EP2810160A1 (en) | 2014-12-10 |
EP2810160A4 (en) | 2015-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220247833A1 (en) | Installable web applications | |
US10862979B2 (en) | Techniques for supporting remote micro-services as native functions in spreadsheet applications | |
KR102535791B1 (en) | Determining agents for performing actions based at least in part on image data | |
JP6644882B2 (en) | Managing delivery of code and dependent data using application containers | |
CN109145078B (en) | The application page of the machine application is indexed | |
JP2014512037A (en) | Method and system for providing a state model of an application program | |
EP2300937B1 (en) | System and method for web-based control of desktop | |
US20120071155A1 (en) | Method and Apparatus for Binding Mobile Device Functionality to an Application Definition | |
US20160224586A1 (en) | System and methods thereof for dynamically updating the contents of a folder on a device | |
KR20180101063A (en) | Electronic apparatus for processing user input and method for processing user input | |
CN108885740A (en) | Active Intelligent Personal Assistant | |
CN101101603A (en) | Method and system for configuring order aiming at cooperative network page | |
US9805027B2 (en) | Translating application resources | |
US20160050512A1 (en) | Method and apparatus for developing, distributing and executing applications | |
CN101490674A (en) | Method for defining a Wiki page layout using a Wiki page | |
CN113805973B (en) | Application program control method and device, application program development method and device | |
KR20160130034A (en) | Apparatus for providing financial service based on financial open flatform | |
CN104169872B (en) | Translation application resource | |
US10262155B1 (en) | Disabling features using feature toggle | |
JP2007293860A (en) | Mapping new user interface onto existing integrated interface background | |
US8862455B2 (en) | Creating and implementing language-dependent string pluralizations | |
CN110502699B (en) | Method and device for acquiring information | |
US9280401B2 (en) | Type agnostic data engine | |
US11880659B2 (en) | Hierarchical natural language understanding systems | |
US10860535B1 (en) | Systems and methods for utilizing machine learning and natural language processing to provide a dual-panel user interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: American California Applicant after: Google limited liability company Address before: American California Applicant before: Google Inc. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |