CN107748746A - A kind of method of automatic management entry - Google Patents
A kind of method of automatic management entry Download PDFInfo
- Publication number
- CN107748746A CN107748746A CN201711080344.8A CN201711080344A CN107748746A CN 107748746 A CN107748746 A CN 107748746A CN 201711080344 A CN201711080344 A CN 201711080344A CN 107748746 A CN107748746 A CN 107748746A
- Authority
- CN
- China
- Prior art keywords
- entry
- server
- translated
- translation
- automatic management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- 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/42—Data-driven translation
-
- 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/55—Rule-based translation
Abstract
The present invention relates to field of software development, discloses a kind of method of automatic management entry, solves the problems, such as when prefinishing entry efficiency is low and error rate is high.When the present invention compiles generation apk every time, entry server is connected, travels through the entry in current engineering, it is if the entry is not present in entry base, entry addition etc. is to be translated, if existed, translated languages are written in engineering.Periodically arrange entry base, it would be desirable to which the entry of translation is organized into excel, issues translation company's translation.Translation company returns to translated entry excel and uploads to entry server, and entry management system is automatically write in entry base, and hereafter application is only needed to recompilate lower apk, and newest entry will be automatically updated in engineering.The present invention is applied to Android system and developed.
Description
Technical field
The present invention relates to field of software development, more particularly to a kind of method of automatic management entry.
Background technology
With the extension of corporate business, product has spread all over the world.Product needs to adapt to the variation of global languages, is each
State user provides language known to them.At present, Android system can support the most of language in the whole world, developing and tieing up
During shield, often additions and deletions change some entries, and the process is mainly manually completed at present, increase the mistake of an entry
Journey is generally, and inquires about whether the entry translates into required languages in entry base according to the English of the entry, if
Translation, translated entry is write in the strings.xml of engineering, if some entry is untranslated, the entry is arranged and arrived
In entry table to be translated, send after being translated by translation company, then translated entry arranged back in meeting strings.xml,
The process efficiency is low, and error rate is high, itself main reason is that, it is synchronous without a kind of and entry management server on stream
Mechanism.
The content of the invention
The technical problem to be solved in the present invention is:A kind of method of automatic management entry is provided, prefinishing word is worked as in solution
The problem of bar efficiency is low and error rate is high.
To solve the above problems, the technical solution adopted by the present invention is:A kind of method of automatic management entry, is applied to
Andriod systems, comprise the following steps:
During compiling generation apk, the entry file in current project file is traveled through, obtains the source entry of entry file, is inquired about
In entry server whether multi-lingual entry corresponding to active entry, if so, then multi-lingual entry according to android
Defined entry organized formats are written in the file directory where the language;If it is not, on the entry that needs are translated
Pass in the sequence to be translated of entry server;
Periodically export needs the entry translated from the sequence to be translated of entry server, after transferring to translation company to translate,
It is synchronized to entry server;
When terminal sends the request of more new term, the entry version information of current application is read, passes through the entry version
Information finds corresponding backup code from code server, by the multi-lingual entry in backup code and current entry service
Entry on device is compared, if variant, by the difference entry on entry server according to android character resources
Organized formats are written in file corresponding to terminal.
Further, by from the sequence to be translated of entry server the derived entry for needing to translate be organized into excel
Table and then translation company is transferred to translate.
Further, can be with one-key update entry using the heavily loaded principle of character resource after difference entry is written to terminal.
Further, the terminal is TV, mobile phone or flat board.
The beneficial effects of the invention are as follows:Statistics to entry and entry transcription function on stream of the invention, are realized
Automation, word statistics and the transcription work of complexity are eliminated, avoids the phenomenon of often leakage translation word bar from occurring.Provide convenient fast
Prompt debugging mechanism, after entry after synchronous translation to server, terminal need to only be synchronized to current newest entry base.
Brief description of the drawings
Fig. 1 is the flow chart of embodiment.
Embodiment
The present invention breaks through original development mode, and during debugging is developed, and entry server keeps synchronous, every time
During compiling generation apk, entry server is connected, travels through the entry in current engineering, if the entry is not present in entry base,
It is then that entry addition etc. is to be translated, if existed, translated languages are written in engineering.Periodically arrange word
Bar storehouse, it would be desirable to which the entry of translation is organized into excel, issues translation company's translation.Translation company returns to translated word
Bar excel uploads to entry server, and entry management system is automatically write in entry base, and hereafter application is only needed under recompilating
Apk, newest entry will be automatically updated in engineering.
The specific implementation process of the present invention is as follows:
1st, in gradle compilation scripts, set and compile multi-lingual switch, if closed, direct compilation generation apk is
Can.If switch is opened, each source entry in strings.xml in engineering is traveled through, these entries is inquired about and whether there is in word
In the entry database of bar server, if not provided, the entry for needing to translate to be uploaded to the sequence to be translated of entry server
In;If existed, multi-lingual entry is written to corresponding to country according to entry organized formats as defined in android
Under catalogue, as translation is organized into strings.xml and is put under the res/values-fr in engineering in entry database.
2nd, the version information in the manifest is changed, by code update to code server, code server records
Version information and code release in lower manifest.
3rd, the entry in entry server sequence to be translated is periodically traveled through, the entry for wherein needing to translate is whole according to country
Excel is synthesized, entry administrative staff periodically download the excel put in order, are sent to translation company's translation.
4th, after translation company has translated entry, entry table is uploaded to entry server by entry administrative staff, and traversal is each
Individual excel, by the renewal of translated entry into the entry database of entry server.
5th, do one in terminal and apply entry trigger, during triggering, terminal will read the version in current application manifest
This information, it is packaged into post requests and is dealt on code server, code server obtains code release by version information, traversal
Entry in entry in code in strings.xml, and the entry database of entry server is compared, will be discrepant
Entry is organized into strings.xml and is put under file corresponding to country, and packing returns to terminal, is put into specifying in complete machine
In position, have resource redirect terminal can preferentially under the catalogue obtain character resource be shown in the interface of application, so
Simplify the entry management process of program.
Embodiment
Embodiment provides a kind of method of automatic management entry, and this method is applied in andriod systems, following end
End can be any one andriod equipment in mobile phone, flat board or TV, and the specific implementation step of this method is as follows:
S1, for gradle configuration compiling entry switches, opening then needs to compile multi-lingual.
When S2, compiling are multi-lingual, in the catalogue values-en where the original language in engineering
The entry used in strings.xml, is traveled through from server, represents that the entry needs to be added into if not traversing
In the sequence to be translated of entry server, with to be translated;
If S3, traversal entry base, are then organized into strings.xml lattice in the presence of the entry by the entry of various countries' language
Formula, and (xx represents two codes of some language, and the code of such as Chinese is zh) is put under corresponding velues-xx catalogues
S4, entry server need the entry that fixed-period crawling is not translated, form excel documents, transfer to translator to turn over
Translate.
After the completion of S5, translation, entry is synchronized on server.
S6, submitting apk or during more new term, terminal is write to current entry version information.
S7, terminal request more new term, current entry version information is read, be sent to entry server, entry service
Device compares the entry difference of the version and current version, and the entry of difference is organized into strings.xml, downloads to terminal formulation
Catalogue.
S8, using entry heavy duty principle, restart application, you can see that entry has been updated from interface.
To sum up, embodiment on stream, moves extraction entry to be translated, the translation company that translation is transferred to be transferred to civilian work
To do, while application version information and code release are associated, application version information are read from terminal, from code administration service
Code corresponding to being searched on device, by comparing the difference of entry in entry and current word data storehouse in code, form difference
Entry, can be with one-key update entry using the heavily loaded principle of character resource after downloading to terminal.
The general principle of the present invention and main feature are the foregoing described, the description of specification simply illustrates the original of the present invention
Reason, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes and improvements
It all fall within the protetion scope of the claimed invention.
Claims (4)
- A kind of 1. method of automatic management entry, it is characterised in that applied to andriod systems, comprise the following steps:During compiling generation apk, the entry file in current project file is traveled through, obtains the source entry of entry file, inquires about entry In server whether multi-lingual entry corresponding to active entry, if so, then multi-lingual entry is provided according to android Entry organized formats be written in the file directory where the language;If it is not, the entry for needing to translate is uploaded to In the sequence to be translated of entry server;Periodically export needs the entry translated from the sequence to be translated of entry server, synchronous after transferring to translation company to translate To entry server;When terminal sends the request of more new term, the entry version information of current application is read, passes through the entry version information Corresponding backup code is found from code server, by the multi-lingual entry in backup code and current entry server Entry be compared, if variant, the tissue by the difference entry on entry server according to android character resources Form is written in file corresponding to terminal.
- 2. a kind of method of automatic management entry as claimed in claim 1, it is characterised in that by treating from entry server The derived entry for needing to translate is organized into excel tables and then transfers to translation company to translate in translation sequences.
- 3. a kind of method of automatic management entry as claimed in claim 1, it is characterised in that difference entry is written to terminal Afterwards, can be with one-key update entry using the heavily loaded principle of character resource.
- 4. a kind of method of automatic management entry as claimed in claim 1, it is characterised in that the terminal is TV, hand Machine or flat board.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711080344.8A CN107748746A (en) | 2017-11-06 | 2017-11-06 | A kind of method of automatic management entry |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711080344.8A CN107748746A (en) | 2017-11-06 | 2017-11-06 | A kind of method of automatic management entry |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107748746A true CN107748746A (en) | 2018-03-02 |
Family
ID=61250604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711080344.8A Pending CN107748746A (en) | 2017-11-06 | 2017-11-06 | A kind of method of automatic management entry |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107748746A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062913A (en) * | 2018-09-17 | 2018-12-21 | 福建天泉教育科技有限公司 | Internationalized resources intelligence acquisition methods, storage medium |
CN109617950A (en) * | 2018-11-26 | 2019-04-12 | 杭州涂鸦信息技术有限公司 | A kind of data-updating method, device, equipment and readable storage medium storing program for executing |
CN110007994A (en) * | 2019-03-29 | 2019-07-12 | 南京南瑞继保电气有限公司 | A kind of International Software method and system |
CN111652003A (en) * | 2020-06-09 | 2020-09-11 | 广东小天才科技有限公司 | Language translation processing method, device, electronic equipment and medium |
CN112632212A (en) * | 2019-10-08 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Method, device, equipment and medium for updating entry to be translated |
CN114330248A (en) * | 2022-02-22 | 2022-04-12 | 深圳市微克科技有限公司 | Method for automatically switching multinational languages of intelligent wearable system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000330992A (en) * | 1999-05-17 | 2000-11-30 | Nec Software Shikoku Ltd | Multilinguistic www server system and its processing method |
US20070282594A1 (en) * | 2006-06-02 | 2007-12-06 | Microsoft Corporation | Machine translation in natural language application development |
CN102932178A (en) * | 2012-10-30 | 2013-02-13 | 北京奇虎科技有限公司 | Method for realizing LVS (Linux virtual server) automatic operation and maintenance and operation and maintenance management equipment |
CN103986765A (en) * | 2014-05-16 | 2014-08-13 | 广东欧珀移动通信有限公司 | Method for synchronizing multiple languages of android through network |
CN104317788A (en) * | 2014-11-03 | 2015-01-28 | 上海鼎讯电子有限公司 | Android multi-language translation method and device |
CN104765635A (en) * | 2015-04-09 | 2015-07-08 | 上海斐讯数据通信技术有限公司 | Method and system for checking multiple languages in APK |
CN106933811A (en) * | 2017-02-14 | 2017-07-07 | 南京南瑞继保电气有限公司 | A kind of entry automatic generation method and device |
CN106951416A (en) * | 2017-03-21 | 2017-07-14 | 成都星阵地科技有限公司 | Multilingual instant translation system based on big data processing and manual intervention |
CN107273549A (en) * | 2017-07-24 | 2017-10-20 | 山东中创软件工程股份有限公司 | A kind of entry method for transformation and device |
-
2017
- 2017-11-06 CN CN201711080344.8A patent/CN107748746A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000330992A (en) * | 1999-05-17 | 2000-11-30 | Nec Software Shikoku Ltd | Multilinguistic www server system and its processing method |
US20070282594A1 (en) * | 2006-06-02 | 2007-12-06 | Microsoft Corporation | Machine translation in natural language application development |
CN102932178A (en) * | 2012-10-30 | 2013-02-13 | 北京奇虎科技有限公司 | Method for realizing LVS (Linux virtual server) automatic operation and maintenance and operation and maintenance management equipment |
CN103986765A (en) * | 2014-05-16 | 2014-08-13 | 广东欧珀移动通信有限公司 | Method for synchronizing multiple languages of android through network |
CN104317788A (en) * | 2014-11-03 | 2015-01-28 | 上海鼎讯电子有限公司 | Android multi-language translation method and device |
CN104765635A (en) * | 2015-04-09 | 2015-07-08 | 上海斐讯数据通信技术有限公司 | Method and system for checking multiple languages in APK |
CN106933811A (en) * | 2017-02-14 | 2017-07-07 | 南京南瑞继保电气有限公司 | A kind of entry automatic generation method and device |
CN106951416A (en) * | 2017-03-21 | 2017-07-14 | 成都星阵地科技有限公司 | Multilingual instant translation system based on big data processing and manual intervention |
CN107273549A (en) * | 2017-07-24 | 2017-10-20 | 山东中创软件工程股份有限公司 | A kind of entry method for transformation and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062913A (en) * | 2018-09-17 | 2018-12-21 | 福建天泉教育科技有限公司 | Internationalized resources intelligence acquisition methods, storage medium |
CN109617950A (en) * | 2018-11-26 | 2019-04-12 | 杭州涂鸦信息技术有限公司 | A kind of data-updating method, device, equipment and readable storage medium storing program for executing |
CN110007994A (en) * | 2019-03-29 | 2019-07-12 | 南京南瑞继保电气有限公司 | A kind of International Software method and system |
CN112632212A (en) * | 2019-10-08 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Method, device, equipment and medium for updating entry to be translated |
CN112632212B (en) * | 2019-10-08 | 2024-03-15 | 腾讯科技(深圳)有限公司 | Method, device, equipment and medium for updating to-be-translated entry |
CN111652003A (en) * | 2020-06-09 | 2020-09-11 | 广东小天才科技有限公司 | Language translation processing method, device, electronic equipment and medium |
CN111652003B (en) * | 2020-06-09 | 2023-08-15 | 广东小天才科技有限公司 | Language translation processing method, device, electronic equipment and medium |
CN114330248A (en) * | 2022-02-22 | 2022-04-12 | 深圳市微克科技有限公司 | Method for automatically switching multinational languages of intelligent wearable system |
CN114330248B (en) * | 2022-02-22 | 2022-05-17 | 深圳市微克科技有限公司 | Method for automatically switching multinational languages of intelligent wearable system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107748746A (en) | A kind of method of automatic management entry | |
CN105138350B (en) | A kind of configuration software internationalizes multilingual implementation method | |
CN105589725B (en) | Upgrade package production method and upgrade method, the upgrade package of a kind of electronic equipment | |
US20150339119A1 (en) | System and Method Thereof for Creating Dynamically Attachable and Detachable Binary Files | |
CN109491695A (en) | A kind of increment updating method of integrated Android application | |
WO2012034440A1 (en) | Method and device for generating database upgrading script | |
CN104615462B (en) | Cross-platform Mobile solution generation service end and system | |
CN104111855A (en) | Method for dynamic update of iOS (Iphone Operation System) client based on Lua | |
CN102567384A (en) | Webpage multi-language dynamic switching method and system based on webpage browser engine | |
CN105718251A (en) | Multilanguage SDK (software development kit) automatic implementation method and system | |
CN102981851A (en) | Rapid development and maintenance system and method for embedded type network device interface language | |
CN113064593B (en) | Method and device for dynamic mobile APP, computer equipment and storage medium | |
CN104391717A (en) | Method for dynamically updating code during debugging | |
CN103488738A (en) | Method and system for automatically realizing JAVA object and data table SQL (structured query language) file | |
CN104978394A (en) | Webpage tag data organization and update method for multi-language display | |
CN114706660B (en) | DAS-based custom function expansion method, device, equipment and storage medium | |
CA3037708C (en) | Method for automated detection, correction, and translation of un-localized lines | |
US9058240B2 (en) | Multi-context remote development | |
CN103309646A (en) | Method and device for localizing software | |
CN107844300A (en) | Script processing method and system | |
CN109947711A (en) | A kind of multilingual file automating management method in pair of IOS project development process | |
CN105094787B (en) | Method and device for processing enterprise internet application | |
CN107544813A (en) | A kind of switching method and system of static library configuration | |
CN109829010B (en) | Entry modification method and entry modification device | |
US7487227B2 (en) | Scripting engine having a sequencer table and a plurality of secondary tables for network communication software |
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: 20180302 |