CN109344412A - A kind of language transfer method, device, equipment and storage medium - Google Patents

A kind of language transfer method, device, equipment and storage medium Download PDF

Info

Publication number
CN109344412A
CN109344412A CN201811099795.0A CN201811099795A CN109344412A CN 109344412 A CN109344412 A CN 109344412A CN 201811099795 A CN201811099795 A CN 201811099795A CN 109344412 A CN109344412 A CN 109344412A
Authority
CN
China
Prior art keywords
language
dictionary
text
application program
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811099795.0A
Other languages
Chinese (zh)
Inventor
刘孟
吕庆春
彭飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201811099795.0A priority Critical patent/CN109344412A/en
Publication of CN109344412A publication Critical patent/CN109344412A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a kind of language transfer method, device, equipment and storage mediums, which comprises after the application program launching for supporting fixed language, whether consistent with system language detects supported fixation language;When testing result is inconsistent, obtains language corresponding with the system language and map dictionary;Dictionary is mapped using the language, language conversion is carried out to the page text that the application program is shown.Fixed language can be supported using the application program of scheme of the present invention, when the system language of user is other language, it can temporarily go to download corresponding language mapping dictionary, dictionary is mapped according to language, the conversion that can complete language, realizes the internationalization of application program, and the program provides the language pack of various language without developer in advance, reach and saved memory headroom, has reduced the purpose of development cost.

Description

A kind of language transfer method, device, equipment and storage medium
Technical field
The present invention relates to data processing field more particularly to a kind of language transfer method, device, equipment and storage mediums.
Background technique
Many app (application program) on intelligent terminal can also be promoted abroad not just towards domestic user.And The internationalization of app is exactly to be arranged according to the language of operating system of user, automatically sets the language of app to and operating system of user The consistent language of language.
Currently, realizing that the international mode of app includes: the multilingual packet that addition is supported in app packet.It is needing to show According to the language of system when showing, the spoken and written languages for obtaining corresponding language pack are removed.This technology is realized by system.Below with For iOS system, the international implementation of app is illustrated, specific:
Firstly, developer adds supported language pack, for example, supporting Chinese and English, it is necessary to two files are created, It is the corresponding relationship of multirow (label-text) in file, it is specific as shown in Figure 1.In Fig. 1,101 be the multilingual file of creation, 102 be English language packet, and 103 be Chinese language packet.It is label on the left of equal sign, right side is corresponding corresponding language inside language pack The text of speech.
Secondly, when view needs to show a text, not be directly disposed as the text of a certain language in development process Word, but realized by a systems approach NSLocalizedString ().Specifically, as shown in Fig. 2, being iOS in figure The line code of label text is set.
Third, after App operation, when system language is English, Fig. 2 code is shown in English language packet label1 pairs " the hello answered!world!", " breathed out when system language is Chinese, it is shown that label1 is corresponding in Chinese language packet! The world!".It is the appearance that demonstration operates in english language environment and Chinese language environment as shown in Figure 3.
However, there are the following problems for above-mentioned app internationalization implementation:
1) it needs to set language pack in advance, supports how many kinds of language that will make how many a language packs, increase exploitation Cost.
2) wasting space.For a kind of user of language, the language pack of other language is never used, other languages Speech wastes extra memory headroom.
It is asked so how to solve high, waste memory headroom of development cost existing for existing app internationalization implementation etc. Topic, becomes a technical problem to be solved urgently.
Summary of the invention
In view of the above problems, the embodiment of the present invention is proposed in order to provide a kind of language conversion side to solve the above problems Method, device, equipment and storage medium.
One aspect according to an embodiment of the present invention provides a kind of language transfer method, comprising:
After the application program launching for supporting fixed language, detect supported fixation language whether with system language one It causes;
When testing result is inconsistent, obtains language corresponding with the system language and map dictionary;
Dictionary is mapped using the language, language conversion is carried out to the page text that the application program is shown.
Optionally, it when testing result is inconsistent, obtains language corresponding with the system language and maps dictionary, specifically Include:
When testing result is inconsistent, whether detection has been downloaded language corresponding with the system language and has been reflected preceding Dictionary is penetrated, if so, mapping dictionary as the language obtained using the language downloaded maps dictionary;Otherwise, downloading and the system The corresponding language of language of uniting maps dictionary.
Optionally, described to map dictionary using the language, language is carried out to the page text that the application program is shown Conversion, comprising:
Obtain the view level of the page to be shown;
The view level is traversed, determines the view elements for needing to carry out language conversion;
The language mapping dictionary is searched, the text conversion that the view elements are shown is corresponding with the system language Spoken and written languages.
Optionally, include: in the language mapping dictionary
Text that each view elements are shown under the fixed language and between the text shown under the system language Mapping relations;Wherein, each view elements are each view elements in each view level of the application program.
Other side according to an embodiment of the present invention provides a kind of language converting device, comprising:
Detection module, for whether detecting supported fixation language after the application program launching for supporting fixed language It is consistent with system language;
Module is obtained, for language corresponding with the system language being obtained and mapping word when testing result is inconsistent Allusion quotation;
Language conversion module, for mapping dictionary using the language, the page text that the application program is shown into Row language conversion.
Optionally, the acquisition module is specifically used for when testing result is inconsistent, and whether detection has downloaded preceding Language corresponding with the system language maps dictionary, if so, the language using the language mapping dictionary downloaded as acquisition Speech mapping dictionary;Otherwise, it downloads language corresponding with the system language and maps dictionary.
Optionally, the language conversion module traverses the view specifically for obtaining the view level of the page to be shown Level determines the view elements for needing to carry out language conversion, searches the language mapping dictionary, the view elements are shown Text conversion is spoken and written languages corresponding with the system language.
Optionally, include: in the language mapping dictionary
Text that each view elements are shown under the fixed language and between the text shown under the system language Mapping relations;Wherein, each view elements are each view elements in each view level of the application program.
In terms of third according to an embodiment of the present invention, a kind of calculating equipment is provided, the calculating equipment includes: storage Device, processor and communication bus;The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing the language coversion program stored in memory, to realize described in the embodiment of the present invention The step of language transfer method.
The 4th aspect according to an embodiment of the present invention, provides a kind of computer readable storage medium, the computer can It reads to be stored with computer program on storage medium, realizes that language described in the embodiment of the present invention turns when which is executed by processor The step of changing method.
Fixed language can be supported using the application program of scheme described in the embodiment of the present invention, when the system language of user is When other language, it can temporarily go to download corresponding language mapping dictionary, dictionary is mapped according to language, turning for language can be completed It changes, provides the language pack of tens kinds of language in advance without developer to realize, reached and saved memory headroom, reduction is opened Send out the purpose of cost.
Above description is only the general introduction of technical solution of the embodiment of the present invention, in order to better understand the embodiment of the present invention Technological means, and can be implemented in accordance with the contents of the specification, and in order to allow above and other mesh of the embodiment of the present invention , feature and advantage can be more clearly understood, the special specific embodiment for lifting the embodiment of the present invention below.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention The limitation of embodiment.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the corresponding relationship of label and text in the language pack of the prior art;
Fig. 2 is the line code schematic diagram that label text is arranged in iOS in the prior art;
Fig. 3 is the schematic diagram that demonstration operates in english language environment and Chinese language environment in the prior art;
Fig. 4 is a kind of flow chart for language transfer method that first embodiment of the invention provides;
Fig. 5 is to support the code of the application program of fixed language that schematic diagram is arranged in the embodiment of the present invention;
Fig. 6 is the code schematic diagram that text text in certain app is arranged in the embodiment of the present invention;
Fig. 7 is a kind of flow chart for language transfer method that second embodiment of the invention provides;
Fig. 8 is the schematic diagram of the hierarchical structure of the page view of application program in the embodiment of the present invention;
Fig. 9 is a kind of flow chart for language transfer method that third embodiment of the invention provides;
Figure 10 is the schematic diagram that language maps dictionary in the embodiment of the present invention;
Figure 11 is a kind of structural block diagram for language converting device that fourth embodiment of the invention provides;
Figure 12 is a kind of structural block diagram for calculating equipment that fifth embodiment of the invention provides.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
In the first embodiment of the invention, a kind of language transfer method is provided, as shown in figure 4, described in the embodiment of the present invention Method includes the following steps:
Step S401, after the application program launching for supporting fixed language, detect supported fixation language whether be Language of uniting is consistent;
In the embodiment of the present invention, application program supports fixed language to can be understood as only supporting a kind of language, alternatively, supporting The more common language of one to two kinds of users.Wherein, more common language can be, but not limited to by carrying out market tune in advance It grinds to obtain.That is, supporting the application program of fixed language no longer to store other in addition to fixed language in the present embodiment The language pack of language.
That is, in the embodiment of the present invention, when downloading application program, only comprising one or two kinds of in application package Language pack, specific language pack are stored in the file of entitled Localizable.strings.
Further, in the embodiment of the present invention, when detecting that supported fixation language is consistent with system language, directly Calling system method NSLocalizedString () realizes the display of text in application view.
Step S402 obtains language corresponding with the system language and maps dictionary when testing result is inconsistent;
In the embodiment of the present invention, it is different from language pack in the prior art (language pack in the prior art can be found in Fig. 1), It include the text that each view elements are shown under the fixed language in application program in the mapping dictionary of language described in the present embodiment With the mapping relations between the text shown under the system language.Utilize the mapping relations, it can will be in application program Text conversion in each view elements is text identical with system language.For example, the fixation language that application program is supported is Text, system language are English, the texts of certain view elements of application program is " title ", then mapping relations be " title "= " Title ", then " title " will be shown as " Title " when render view element.
In one particular embodiment of the present invention, it when testing result is inconsistent, obtains and the system language pair The language mapping dictionary answered, specifically includes:
When testing result is inconsistent, whether detection has been downloaded language corresponding with the system language and has been reflected preceding Penetrate dictionary;
If so, mapping dictionary as the language obtained using the language downloaded maps dictionary;
Otherwise, it downloads language corresponding with the system language and maps dictionary.
Illustratively, it is assumed that the fixation language that application program is supported is Chinese, when user goes to country of English Department, will be System language is switched to English, at this point, needing to download and English language if user opens application program described in the present embodiment Say corresponding language mapping dictionary.If user switches back into after Chinese when switching back into English again, due to having downloaded language preceding Dictionary is mapped, so, directly to be the dictionary got in the language of preceding downloading mapping dictionary, without repeated downloads.
It can be mentioned that, in order to improve the utilization rate of memory space, application program can also be use in the present embodiment Family provides the interface of cleaning language mapping dictionary, and by the interface, user can will map dictionary in the preceding language downloaded It deletes.
Furthermore in the embodiment of the present invention, when determine it is preceding downloaded language mapping dictionary after, can also will be current Language mapping dictionary version information be sent to server, judge whether current dictionary is latest edition for server, if It is not latest edition, receives the version updating information that issues of server, and dictionary is mapped as getting using updated language Dictionary.
Step S403 maps dictionary using the language, carries out language to the page text that the application program is shown and turns It changes.
In a specific embodiment of the present invention, the language mapping dictionary of acquisition can be stored in preassigned any position It sets.When carrying out language conversion, memory is written into language mapping dictionary, and read specific mapping relations in memory, The conversion of language is carried out to page text.
In one particular embodiment of the present invention, a language map component is set in application program, which can To be the multiplexing to existing component, the newly-increased component being also possible in application program.Realize that above-mentioned language turns using the component Change process.
In summary, fixed language can be supported using the application program of the method for the embodiment of the present invention, when user's When system language is switched to other language, it can temporarily go to download corresponding language mapping dictionary, dictionary is mapped according to language, it can To complete the conversion of language.That is, not having to the redevelopment stage just in application program when there is application program internationalization demand The language pack of middle exploitation storage multilingual, but when there is internationalization demand, it is only necessary to develop corresponding mapping dictionary. And the mapping dictionary that user is all without downloading, but go judgement which kind of is downloaded according to system language, after downloading, directly map Display.So realizing internationalization, and reach and saved memory headroom, has reduced the purpose of development cost.
It should be noted that in the prior art in the case where application program supports fixed language, if it is desired to realize language Conversion, common practice are as follows:
The application program for supporting fixed language, in exploitation, title that view show, button, prompt etc. are all to write extremely For fixed language (such as Chinese), specific implementation is as shown in Figure 5.If realizing internationalization, need to be revised as the side of above-mentioned Fig. 2 Formula.But often there are many page by mature app, to realize that figure 2 above mode cost is very high one by one, as shown in fig. 6, being certain app The code of middle setting text text.It can be seen that there is 3900 many places to need to handle, if wanting manually implemented, development cost is very It is high.
And in the embodiment of the present invention, to carry out the internationalization of app, need to only develop corresponding language maps dictionary, In specific implementation, the language conversion of each element in view is done directly according to the dictionary, without carrying out in the way of Fig. 2 Modification, not only development cost is low for which, but also greatly improves transfer efficiency.
In second embodiment of the invention, a kind of language transfer method is provided, the present embodiment compared to the first embodiment will Language conversion process is illustrated emphatically, and the part being identical with the first embodiment is referring to first embodiment.
Specifically, as shown in fig. 7, the embodiment of the present invention described method includes following steps:
Step S701, after the application program launching for supporting fixed language, detect supported fixation language whether be Language of uniting is consistent;
Step S702 obtains language corresponding with the system language and maps dictionary when testing result is inconsistent;
Step S703 obtains the view level of the page to be shown;
In the embodiment of the present invention, the page view of application program has hierarchical structure, as shown in figure 8, showing view Hierarchical structure and display text text.
Step S704 traverses the view level, determines the view elements for needing to carry out language conversion;
In the embodiment of the present invention, under view level, there is the text of language conversion to be carried out in some view elements, and has Element do not have, the present embodiment is exactly that the view elements for carrying out language conversion will be needed to traverse out in view elements.
Step S705, searches the language mapping dictionary, and the text conversion that the view elements are shown is and the system The corresponding spoken and written languages of system language.
It include: that each view elements are shown under the fixed language in the language mapping dictionary in the embodiment of the present invention Text and the mapping relations between the text shown under the system language;Wherein, each view elements are described using journey Each view elements in each view level of sequence.
In summary, fixed language can be supported using the application program of the method for the embodiment of the present invention, when user's When system language is other language, it can temporarily go to download corresponding language mapping dictionary, traverse view level, will need to carry out The view elements of language conversion map dictionary using language, can complete the conversion of language, that is to say, that having application program When internationalization demand, without the redevelopment stage, just exploitation stores the language pack of multilingual in the application, but is having state When the demand of border, it is only necessary to develop corresponding mapping dictionary.And the mapping dictionary that user is all without downloading, but root Go which kind of judgement downloads according to system language, after downloading, directly mapping display.So realizing internationalization, and reach Memory headroom is saved, the purpose of development cost is reduced.
In third embodiment of the invention, a kind of language transfer method is provided, the present embodiment will combine concrete application example Implementation process of the invention is described in detail.The present embodiment will be Chinese, app for installation with the initial development language of app It is illustrated for app in mobile phone.As shown in figure 9, described method includes following steps for the present embodiment:
Step 1, app starts;
Step 2, detect whether that there are system language corresponding language mapping dictionaries, and in the absence of, execute step 3;
Step 3, it according to the system language of user mobile phone, goes to download corresponding language mapping dictionary;
Step 4, the file that the language mapping dictionary of downloading is saved as to an entitled Localizable.strings, than If User System Language is English, then the language mapping dictionary issued is as shown in Figure 10, wherein Localizable.strings File only one.Left side is the text that the page writes dead fixation in app in file, and right side is corresponding English words.
Step 5, in page presentation or refreshing, using language conversion component, the view of current page stack is obtained, then View level is traversed, the text text of view elements is obtained, the text that dictionary replaces with current language is then mapped according to language.
In specific implementation, language conversion component searches all sub- view subviews of UIWindow, then checks whether Display text, there are texts then to replace with the corresponding right side text of text according to the language mapping dictionary of Figure 10.
Utilize method described in the present embodiment, it is desirable to realize that app internationalizes, need to only download on demand corresponding with system language Language maps dictionary, rather than gets out the language pack of all supports in advance, can move after mapping dictionary using the language of downloading State alternate language text does not need to realize according to Fig. 2 manually and internationalize, greatly reduces development cost, and do not need in advance The language pack for storing tens kinds of language, saves memory headroom.
In fourth embodiment of the invention, a kind of language converting device is provided, as shown in figure 11, described device includes:
Detection module 1110, for detecting supported fixation language after the application program launching for supporting fixed language It is whether consistent with system language;
Module 1120 is obtained, for language corresponding with the system language being obtained and being reflected when testing result is inconsistent Penetrate dictionary;
Language conversion module 1130, for mapping dictionary using the language, the page shown to the application program is literary Word carries out language conversion.
Optionally, in the embodiment of the present invention, the acquisition module is specifically used for the detection when testing result is inconsistent Language mapping dictionary corresponding with the system language whether is downloaded preceding, if so, with the language mapping downloaded Dictionary maps dictionary as the language obtained;Otherwise, it downloads language corresponding with the system language and maps dictionary.
Optionally, in the embodiment of the present invention, the language conversion module, specifically for obtaining the view layer of the page to be shown Grade traverses the view level, determines the view elements for needing to carry out language conversion, the language mapping dictionary is searched, by institute Stating the text conversion that view elements are shown is spoken and written languages corresponding with the system language.
Optionally, in the embodiment of the present invention, being different from language pack in the prior art, (language pack in the prior art can join See Fig. 1), include: in the mapping dictionary of language described in the present embodiment
Text that each view elements are shown under the fixed language and between the text shown under the system language Mapping relations;Wherein, each view elements are each view elements in each view level of the application program.Utilize the mapping Relationship, it can by the text conversion in view elements each in application program be text identical with system language.For example, using The fixation language that program is supported is Chinese, and system language is English, and the text of certain view elements of application program is " title ", then Mapping relations are " title "=" Title ", then " title " will be shown as " Title " when render view element.
The present embodiment is each functional module in the present embodiment with Installation practice corresponding to the first and second embodiment of the method Specific implementation can be found in the first and second embodiment record content, this embodiment is not repeated.
In summary, described device of the embodiment of the present invention, the application program allowed supports fixed language, when user's When system language is other language, it can temporarily go to download corresponding language mapping dictionary, traverse view level, will need to carry out The view elements of language conversion map dictionary using language, can complete the conversion of language, that is to say, that having application program When internationalization demand, without the redevelopment stage, just exploitation stores the language pack of multilingual in the application, but is having state When the demand of border, it is only necessary to develop corresponding mapping dictionary.And the mapping dictionary that user is all without downloading, but root Go which kind of judgement downloads according to system language, after downloading, directly mapping display.So realizing internationalization, and reach Memory headroom is saved, the purpose of development cost is reduced.
In fifth embodiment of the invention, a kind of calculating equipment is provided, a kind of calculating equipment, as shown in figure 12, institute are provided Stating and calculating equipment includes: memory 1210, processor 1220 and communication bus 1230;The communication bus 1230 is for realizing place Manage the connection communication between device 1220 and memory 1210;
Specifically, processor 1220 can be general processor, such as central processing unit in the embodiment of the present invention (Central Processing Unit, CPU), can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.Wherein, memory 1210 is used for Store the executable instruction of the processor 1220;
Memory 1210 is transferred to processor 1220 for storing program code, and by the program code.Memory 1210 It may include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 1210 also may include nonvolatile memory (Non-Volatile Memory), such as read-only Memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, ) or solid state hard disk (Solid-State Drive, SSD) HDD;Memory 1210 can also include the memory of mentioned kind Combination.
Specifically, processor 1220 is for executing in the application program stored in memory 1210 in the embodiment of the present invention Language coversion program, to realize following method and step:
Step 1, after the application program launching for supporting fixed language, detect supported fixation language whether with system language Speech is consistent;
Step 2, it when testing result is inconsistent, obtains language corresponding with the system language and maps dictionary;
Step 3, dictionary is mapped using the language, language conversion is carried out to the page text that the application program is shown.
The implementation process of each step can be found in first to second embodiment in the present embodiment, and this embodiment is not repeated.
In sixth embodiment of the invention, a kind of computer readable storage medium, the computer-readable storage medium are provided Computer program is stored in matter, which realizes following method and step when being executed by processor:
Step 1, after the application program launching for supporting fixed language, detect supported fixation language whether with system language Speech is consistent;
Step 2, it when testing result is inconsistent, obtains language corresponding with the system language and maps dictionary;
Step 3, dictionary is mapped using the language, language conversion is carried out to the page text that the application program is shown.
The implementation process of each step can be found in first to second embodiment in the present embodiment, and this embodiment is not repeated.
Wherein, computer storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM Memory, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art storage medium.
In embodiment provided herein, it should be understood that disclosed device and method, it can also be by other Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown Device, the architectural framework in the cards of method and computer program product, function of multiple embodiments according to the present invention And operation.In this regard, each box in flowchart or block diagram can represent one of a module, section or code Point, a part of the module, section or code includes one or more for implementing the specified logical function executable Instruction.It should also be noted that function marked in the box can also be attached to be different from some implementations as replacement The sequence marked in figure occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes may be used To execute in the opposite order, this depends on the function involved.It is also noted that each of block diagram and or flow chart The combination of box in box and block diagram and or flow chart can be based on the defined function of execution or the dedicated of movement The system of hardware is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
In short, the foregoing is merely illustrative of the preferred embodiments of the present invention, it is not intended to limit the scope of the present invention. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (10)

1. a kind of language transfer method characterized by comprising
After the application program launching for supporting fixed language, whether consistent with system language supported fixation language is detected;
When testing result is inconsistent, obtains language corresponding with the system language and map dictionary;
Dictionary is mapped using the language, language conversion is carried out to the page text that the application program is shown.
2. the method as described in claim 1, which is characterized in that when testing result is inconsistent, obtain and the system language It says corresponding language mapping dictionary, specifically includes:
When testing result is inconsistent, whether detection has downloaded language mapping word corresponding with the system language preceding Allusion quotation, if so, mapping dictionary as the language obtained using the language downloaded maps dictionary;Otherwise, downloading and the system language Say corresponding language mapping dictionary.
3. the method as described in claim 1, which is characterized in that it is described to map dictionary using the language, journey is applied to described The page text that sequence is shown carries out language conversion, comprising:
Obtain the view level of the page to be shown;
The view level is traversed, determines the view elements for needing to carry out language conversion;
The language mapping dictionary is searched, the text conversion that the view elements are shown is language corresponding with the system language Say text.
4. the method as claimed in claim 1 or 2 or 3, which is characterized in that include: in the language mapping dictionary
The text and reflecting between the text shown under the system language that each view elements are shown under the fixed language Penetrate relationship;Wherein, each view elements are each view elements in each view level of the application program.
5. a kind of language converting device characterized by comprising
Detection module, for after the application program launching for supporting fixed language, detect supported fixation language whether be Language of uniting is consistent;
Module is obtained, for language corresponding with the system language being obtained and mapping dictionary when testing result is inconsistent;
Language conversion module carries out language to the page text that the application program is shown for mapping dictionary using the language Speech conversion.
6. device as claimed in claim 5, which is characterized in that the acquisition module is specifically used in testing result being different When cause, whether detection has downloaded corresponding with system language language mapping dictionary preceding, if so, to have downloaded Language maps dictionary as the language obtained and maps dictionary;Otherwise, it downloads language corresponding with the system language and maps dictionary.
7. device as claimed in claim 5, which is characterized in that the language conversion module is specifically used for obtaining page to be shown The view level in face traverses the view level, determines the view elements for needing to carry out language conversion, searches the language mapping Dictionary, the text conversion that the view elements are shown are spoken and written languages corresponding with the system language.
8. the device as described in claim 5 or 6 or 7, which is characterized in that include: in the language mapping dictionary
The text and reflecting between the text shown under the system language that each view elements are shown under the fixed language Penetrate relationship;Wherein, each view elements are each view elements in each view level of the application program.
9. a kind of calculating equipment, which is characterized in that the calculating equipment includes: memory, processor and communication bus;It is described logical Believe bus for realizing the connection communication between processor and memory;
The processor is for executing the language coversion program stored in memory, to realize such as any one of claims 1 to 4 The step of described language transfer method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium The step of program, which realizes language transfer method according to any one of claims 1 to 4 when being executed by processor.
CN201811099795.0A 2018-09-20 2018-09-20 A kind of language transfer method, device, equipment and storage medium Pending CN109344412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811099795.0A CN109344412A (en) 2018-09-20 2018-09-20 A kind of language transfer method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811099795.0A CN109344412A (en) 2018-09-20 2018-09-20 A kind of language transfer method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109344412A true CN109344412A (en) 2019-02-15

Family

ID=65305856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811099795.0A Pending CN109344412A (en) 2018-09-20 2018-09-20 A kind of language transfer method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109344412A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142965A (en) * 2019-12-16 2020-05-12 深圳市优必选科技股份有限公司 Language configuration method and device, electronic equipment and storage medium
CN112162813A (en) * 2020-09-27 2021-01-01 北京恒华伟业科技股份有限公司 System internationalization configuration method and device
CN112988297A (en) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 Language switching method and device based on touch screen, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198971A1 (en) * 2001-06-22 2002-12-26 Wonderware Corporation Internationalization of objects executable in a supervisory process control and manufacturing information system
CN104281711A (en) * 2014-10-27 2015-01-14 浪潮(北京)电子信息产业有限公司 Multi-language processing method and multi-language processing device for WEB application
CN105824633A (en) * 2016-03-16 2016-08-03 北京小米移动软件有限公司 Multi-language resource switching method and device of application program
CN108399074A (en) * 2018-01-30 2018-08-14 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198971A1 (en) * 2001-06-22 2002-12-26 Wonderware Corporation Internationalization of objects executable in a supervisory process control and manufacturing information system
CN104281711A (en) * 2014-10-27 2015-01-14 浪潮(北京)电子信息产业有限公司 Multi-language processing method and multi-language processing device for WEB application
CN105824633A (en) * 2016-03-16 2016-08-03 北京小米移动软件有限公司 Multi-language resource switching method and device of application program
CN108399074A (en) * 2018-01-30 2018-08-14 努比亚技术有限公司 A kind of update method of application program, terminal and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
伍华聪: "在WinForm应用程序中快速实现多语言的处理", 《HTTPS://WWW.CNBLOGS.COM/WUHUACONG/P/9007270.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142965A (en) * 2019-12-16 2020-05-12 深圳市优必选科技股份有限公司 Language configuration method and device, electronic equipment and storage medium
CN112162813A (en) * 2020-09-27 2021-01-01 北京恒华伟业科技股份有限公司 System internationalization configuration method and device
CN112988297A (en) * 2021-03-10 2021-06-18 深圳市创想三维科技有限公司 Language switching method and device based on touch screen, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103473067B (en) Built-in Linux subregion and data restoration method, system and system development method
CN109344412A (en) A kind of language transfer method, device, equipment and storage medium
US20130061139A1 (en) Server-based spell checking on a user device
CN106648638B (en) A kind of optimization method and optimization system of the R.java file based on python
CN102647701B (en) A kind of method and device upgrading the application message of mobile terminal
CN101571850B (en) Display packing and device of text document in support of page turn function
US20130060560A1 (en) Server-based spell checking
CN103049261A (en) Mobile terminal font changing method
CN109062572A (en) A kind of component call method, apparatus, equipment and storage medium
CN108491398B (en) Method for translating updated software text and electronic equipment
CN103034625A (en) System and method for detecting and correcting mismatched Chinese character
CN108776609A (en) A kind of method, apparatus, computer storage media and the terminal of management navigation menu
CN108287880A (en) A kind of international method and device of homepages language
CN104462036A (en) Method and system for synchronously editing format information of document
CN109408176A (en) Application resource file compiles method, apparatus, equipment and the storage medium of packet
CN109828759A (en) Code compiling method, device, computer installation and storage medium
CN102346561A (en) Method and device for adding user words in input method
CN111190895B (en) Organization method, device and storage medium of column-type storage data
EP4134802A1 (en) Method and apparatus for data access of nand flash file, and storage medium
CN106844192A (en) A kind of detection method of program's source code, device and electronic equipment
CN103116601A (en) Method and system of improving accuracy degree of intelligent association of input method
CN102880653A (en) Document combination method and system
CN103036798A (en) Third generation telecommunication (3G) router and method for identifying 3G data cards by 3G router
CN105893512A (en) Any version compatible data structure access method and device based on metadata
CN101325758A (en) Mobile communication equipment capable of displaying multiple languages and method thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190215