CN104915336B - Document translation method and device - Google Patents

Document translation method and device Download PDF

Info

Publication number
CN104915336B
CN104915336B CN201410091180.9A CN201410091180A CN104915336B CN 104915336 B CN104915336 B CN 104915336B CN 201410091180 A CN201410091180 A CN 201410091180A CN 104915336 B CN104915336 B CN 104915336B
Authority
CN
China
Prior art keywords
translated
data
translation
translating
user
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
Application number
CN201410091180.9A
Other languages
Chinese (zh)
Other versions
CN104915336A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410091180.9A priority Critical patent/CN104915336B/en
Publication of CN104915336A publication Critical patent/CN104915336A/en
Application granted granted Critical
Publication of CN104915336B publication Critical patent/CN104915336B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Machine Translation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for document translation, relates to the field of Internet operation and maintenance, and can solve the problem of low document translation efficiency. The method comprises the following steps: receiving data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length; respectively translating the received data to be translated corresponding to each user; and if the translation result is correct, displaying the translation result. The invention is mainly applied to the Internet operation and maintenance process.

Description

Document translation method and device
Technical Field
The invention relates to the field of Internet operation and maintenance, in particular to a document translation method and device.
Background
With the increase of the access amount of the internet, problems occasionally occur when a website is accessed, and network operation and maintenance personnel translate browsing records to find out the reason of the problems so as to optimize the network or optimize a browser.
In the prior art, members of a test team had 25 persons, and were equipped with 6 servers. Before testing, 25 people each copied the data to be translated to the server via an instant messaging tool or flash memory device. When a test task is performed, since each server cannot perform parallel work, only 6 persons can use the server at the same time by 25 persons. During translation, a tester carries out manual translation on data to be translated in the server, and after translation is finished, the translated log is copied to the terminal from the server through instant messaging software or flash memory equipment.
In the process of implementing the document translation, the inventor finds that at least the following problems exist in the prior art: because the server can not support synchronous operation, idle personnel appear. Secondly, the problem of translation existence is easy to appear by manual operation of a tester. Again, copying of data through instant messaging facilities or flash memory results in a significant amount of time spent transferring data. In summary, the prior art has low document translation efficiency due to excessive manual operations.
Disclosure of Invention
The embodiment of the invention provides a document translation method and device, which can solve the problem of low document translation efficiency.
In one aspect, the present invention provides a method for document translation, the method comprising:
receiving data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length;
respectively translating the received data to be translated corresponding to each user;
and if the translation result is correct, displaying the translation result.
In another aspect, the present invention further provides a document translation apparatus, including:
the receiving unit is used for receiving data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length;
the translation unit is used for respectively translating the data to be translated corresponding to each user received by the receiving unit;
and the display unit is used for displaying the translation result when the translation result obtained by the translation unit is correct.
The method and the device for translating the document can receive data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length; respectively translating the received data to be translated corresponding to each user; and if the translation result is correct, displaying the translation result. The FTP server can realize data transmission without confirmation, so that the problem of excessive time waste in the process of transporting the data to be translated is reduced. The server translates the data to be translated, so that the translation rate can be improved, a plurality of data to be translated can be translated simultaneously, parallel translation is achieved, and mistakes caused by manual translation are avoided. According to the invention, manual translation is replaced by server translation, so that the steps needing manual operation are reduced, and the document translation efficiency is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram of a first document translation method in accordance with an embodiment of the present invention;
FIG. 2 is a diagram of a system architecture according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a method of translating a second document in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart of a third document translation method in an embodiment of the present invention;
FIG. 5 is a flowchart of a fourth document translation method in accordance with an embodiment of the present invention;
FIG. 6 is a diagram illustrating an apparatus for document translation according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a document translation method, which is applied to a server, wherein the server is used for translating and analyzing a document, and as shown in fig. 1, the method comprises the following steps:
step 101, receiving data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time.
The preset time period is a short time period such as 1 minute or 5 minutes. And using the Mac machine as an execution device for bearing the FTP server, and logging in the server by accessing the network address of the server by the terminal. And a Linux + FTP system structure is obtained through Linux system configuration on Mac. The same user can upload data to be translated through different terminals, and the specific implementation mode is that when the user logs in the FTP server through the terminal, the user logs in a storage space (folder) allocated for the user by the server after inputting a correct user name and a correct password.
The system architecture diagram used in the embodiment of the present invention is shown in fig. 2, and a server a (Mac machine) to which the document translation method is applied may be simultaneously connected to different devices such as an office computer a, an office computer B, a portable computer a, a portable computer B, and a server B. The above-described apparatus provides the user with an operation of accessing the server a through the browser.
The server establishes a corresponding folder for each terminal, and the terminal directly logs in the corresponding folder established for the terminal by the server after inputting the network address of the server. And the terminal copies the data into the folder to realize the transmission of the data to be translated to the server. The data to be translated is a crash log.
When the server is connected with a plurality of terminals, the connection between the server and the plurality of terminals can be realized through a plurality of network segments because the number of links which can be provided by one network segment is limited. In addition, the data to be translated sent by the terminals are received through different network segments, so that the data to be translated sent by the terminals of different types can be distinguished according to the network segments. For example: the division 10.66.X.X is the network segment for receiving the data to be translated sent by the wireless terminal, and the division 10.99.X.X is the network segment for receiving the data to be translated sent by the wired terminal.
And 102, respectively translating the received data to be translated corresponding to each user.
Machine translation is implemented by predetermined software in the Mac machine. The predetermined software may be, but is not limited to, symmolicatecrash.
And 103, if the translation result is correct, displaying the translation result.
And determining whether the translation result is correct or not by checking whether the translation result is English, letters or a preset language. Optionally, whether the translation result is empty is judged, if so, the translation result is determined to be wrong, and if not, the translation result is determined to be correct. Or if the translation result is messy codes, determining that the translation result is wrong.
The document translation method provided by the embodiment of the invention can receive data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length; respectively translating the received data to be translated corresponding to each user; and if the translation result is correct, displaying the translation result. The FTP server can realize data transmission without confirmation, so that the problem of excessive time waste in the process of transporting the data to be translated is reduced. The server translates the data to be translated, so that the translation rate can be improved, a plurality of data to be translated can be translated simultaneously, parallel translation is achieved, and mistakes caused by manual translation are avoided. According to the embodiment of the invention, manual translation is replaced by server translation, so that the steps needing manual operation are reduced, and the document translation efficiency is improved.
As shown in fig. 3, step 101, a step of receiving data to be translated sent by at least one user through a file transfer protocol FTP within a preset time duration includes:
step 301, establishing folders corresponding to each user identifier one to one.
And step 302, receiving data to be translated, which is sent by a terminal where a user identifier corresponding to the folder is located, through a File Transfer Protocol (FTP) within a preset time length.
The naming of the folder may correspond to the user identification ID. No matter which terminal the user logs in, the transmitted data to be translated are stored in the folder corresponding to the user identification. The user identification corresponds to the tester one by one. The tester logs in any terminal connected with the server through the user identification of the tester, and then the data with translation can be sent to the server. After the tester inputs the server website, the server judges the legality of the input user identifier and password by inputting the user identifier and the password in the login interface, and then displays a folder corresponding to the user identifier for the tester.
The document translation method provided by the embodiment of the invention can establish one-to-one folder for each user identifier, and after a tester logs in the system by using the user identifier of the tester, the tester can send data to be translated to the server, so that the uploaded data to be translated can be managed in order, and the translation efficiency is improved.
The embodiment of the present invention further provides a document translation method, which is a specific description of the method shown in fig. 1, and the step 102 of respectively translating the received data to be translated corresponding to each user includes:
firstly, respectively translating the received data to be translated corresponding to each user according to a preset time interval.
The predetermined time interval is, for example, 1 minute. And when the preset time interval is reached, translating the data to be translated in each folder in a round-training mode.
And secondly, when the data to be translated is received, translating the currently received data to be translated corresponding to the user.
When a user logs in the server and sends data to be translated to the server, the sent data to be translated is immediately translated, and then document translation service is provided for the user in real time.
The document translation method provided by the embodiment of the invention can translate the data to be translated in a mode of periodical training or event triggering (sending the data to be translated), and provides a flexible translation mode.
As shown in fig. 4, in step 102, translating the received data to be translated corresponding to each user respectively, the embodiment of the present invention further provides a method for document translation, where as a specific description of the method shown in fig. 1, before the method, the method further includes:
step 401, judging whether the data format and the number of files of the data to be translated meet preset rules.
The preset rule is used for describing the data format and the file number which meet the translation condition. Before the data to be translated is translated, judging whether the data to be translated meets the translation condition, and whether the data format and the file number of the data to be translated are enough to support the translation operation.
Specifically, if the format of the data to be translated is a coast log, the preset rules to be satisfied are files having an ipa format, a zip format, and a coast format, respectively. The data type of the translation result is log.
Step 402, if the preset rule is satisfied, translating the received data to be translated corresponding to each terminal respectively.
The document translation method provided by the embodiment of the invention can check the format and the number of the files of the data to be translated before judging, thereby avoiding blind translation and further improving the translation efficiency.
The following is specifically described by a usage scenario:
the method comprises the steps that a tester inputs a server website such as ftp://10.66.52.56 in an address bar of a browser of a terminal A, the server sends a login interface to the terminal A after receiving a login request sent by the terminal A, a user inputs a user identification and a password in the login interface displayed in the terminal A, the server provides a folder address corresponding to the user identification for the user after judging the legality of the user identification and the password, and the terminal A displays files under the folder address. And the user sends the data to be translated to the folder from the terminal A in a copy and paste mode, and further completes the transmission of the data to be translated. The server translates the data to be translated in each folder every one minute and sends the translation result to the terminal; or after the user uploads the data to be translated to the server, the server immediately translates the data to be translated meeting the preset conditions and sends the translation result to the terminal. Before the server performs translation, as shown in fig. 5, it first determines whether the number of files in a folder is greater than 3, and if so, it sequentially determines whether a zip file, an ipa file, and a crash file exist, and if not, it waits for one minute, and then reselects another folder. And if both exist, decompressing the ipa file and the zip file, and copying the app file for translation into the current folder. And judging whether the log file after translation exists or not, and if not, directly translating. Taking the log file content after translation: echo $ testString | awk-F ' [ ' { print $2} ' | awk-F ' ] "{ print $1} ', if there is content between [ ], then it is determined that the translation has succeeded; and if the judgment is unsuccessful, executing the translation script, and refreshing by a tester at the ftp client to obtain a log after the translation.
An embodiment of the present invention further provides a device 6 for document translation, configured to implement the method shown in fig. 1, where as shown in fig. 6, the device 6 includes:
the receiving unit 61 is configured to receive, within a preset time duration, data to be translated sent by at least one user through a file transfer protocol FTP;
a translating unit 62, configured to translate the to-be-translated data corresponding to each user received by the receiving unit 61;
a display unit 63, configured to display the translation result when the translation result obtained by the translation unit 62 is correct.
Further, the receiving unit 61 is further configured to:
establishing folders corresponding to each user identifier one by one;
and receiving the data to be translated sent by the terminal where the user identification corresponding to the folder is located through a File Transfer Protocol (FTP) within a preset time length.
Further, the translation unit 62 is further configured to:
respectively translating the received data to be translated corresponding to each user according to a preset time interval;
or when the data to be translated is received, translating the currently received data to be translated corresponding to the user.
Further, the translation unit 62 is further configured to:
judging whether the data format and the file number of the data to be translated meet preset rules, wherein the preset rules are used for describing the data format and the file number meeting translation conditions;
and if the preset rules are met, respectively translating the received data to be translated corresponding to each terminal.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for document translation, applied to a server, the method comprising:
receiving data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length, wherein the data to be translated is a crash log;
respectively translating the received data to be translated corresponding to each user, wherein the server executes the translation operation when the data to be translated comprises an ipa format file, a zip format file and a crash file;
and if the translation result is correct, displaying the translation result, wherein the translation result is a log after translating the crash log, and the server determines that the translation result is correct when determining that contents exist among [ ] in the log.
2. The method for translating documents according to claim 1, wherein said step of receiving data to be translated sent by at least one user via file transfer protocol FTP within a preset time period comprises:
establishing folders corresponding to each user identifier one by one;
and receiving the data to be translated sent by the terminal where the user identification corresponding to the folder is located through a File Transfer Protocol (FTP) within a preset time length.
3. The method for translating documents according to claim 2, wherein the step of translating the received data to be translated corresponding to each user comprises:
respectively translating the received data to be translated corresponding to each user according to a preset time interval;
or when the data to be translated is received, translating the currently received data to be translated corresponding to the user.
4. The method for translating documents according to claim 3, wherein before the step of translating the received data to be translated corresponding to each user, the method further comprises:
judging whether the data format and the file number of the data to be translated meet preset rules, wherein the preset rules are used for describing the data format and the file number meeting translation conditions;
and if the preset rules are met, respectively translating the received data to be translated corresponding to each terminal.
5. An apparatus for document translation, applied to a server, the apparatus comprising:
the device comprises a receiving unit, a translation unit and a processing unit, wherein the receiving unit is used for receiving data to be translated sent by at least one user through a File Transfer Protocol (FTP) within a preset time length, and the data to be translated is a coast log;
the translation unit is used for respectively translating the data to be translated corresponding to each user received by the receiving unit, wherein the server executes the translation operation when the data to be translated comprises an ipa format file, a zip format file and a crash file;
and the display unit is used for displaying the translation result when the translation result obtained by the translation unit is correct, wherein the translation result is a log obtained after translating the crash log, and the server determines that the translation result is correct when determining that contents exist among [ ] in the log.
6. The apparatus for translating a document according to claim 5, wherein the receiving unit is further configured to:
establishing folders corresponding to each user identifier one by one;
and receiving the data to be translated sent by the terminal where the user identification corresponding to the folder is located through a File Transfer Protocol (FTP) within a preset time length.
7. The apparatus for translating a document according to claim 6, wherein the translation unit is further configured to:
respectively translating the received data to be translated corresponding to each user according to a preset time interval;
or when the data to be translated is received, translating the currently received data to be translated corresponding to the user.
8. The apparatus for translating a document according to claim 7, wherein the translation unit is further configured to:
judging whether the data format and the file number of the data to be translated meet preset rules, wherein the preset rules are used for describing the data format and the file number meeting translation conditions;
and if the preset rules are met, respectively translating the received data to be translated corresponding to each terminal.
CN201410091180.9A 2014-03-12 2014-03-12 Document translation method and device Active CN104915336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410091180.9A CN104915336B (en) 2014-03-12 2014-03-12 Document translation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410091180.9A CN104915336B (en) 2014-03-12 2014-03-12 Document translation method and device

Publications (2)

Publication Number Publication Date
CN104915336A CN104915336A (en) 2015-09-16
CN104915336B true CN104915336B (en) 2021-03-23

Family

ID=54084408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410091180.9A Active CN104915336B (en) 2014-03-12 2014-03-12 Document translation method and device

Country Status (1)

Country Link
CN (1) CN104915336B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357033A (en) * 2000-06-15 2001-12-26 Happy Net Kk Automatic translation system utilizing network, and server therefor
CN101621537A (en) * 2009-07-24 2010-01-06 北京航空航天大学 Hyperspectral mass data parallel processing system with low cost
CN101821728A (en) * 2008-10-15 2010-09-01 甲骨文国际公司 Batch processing system
CN102385582A (en) * 2010-08-31 2012-03-21 中兴通讯股份有限公司 Method, server and system for processing production test data
CN102693297A (en) * 2012-05-16 2012-09-26 华为技术有限公司 Data processing method, node and ETL (extract transform and load) system
CN103220343A (en) * 2013-03-29 2013-07-24 南京联创科技集团股份有限公司 Big data multi-system forwarding method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7143120B2 (en) * 2004-05-03 2006-11-28 Microsoft Corporation Systems and methods for automated maintenance and repair of database and file systems
US7506203B2 (en) * 2005-11-10 2009-03-17 International Business Machines Corporation Extracting log and trace buffers in the event of system crashes
DE102009024101A1 (en) * 2009-04-17 2010-10-21 Robert Bosch Gmbh Method for processing process state data and / or machine state data of a machine tool
CN102724279B (en) * 2012-05-15 2014-12-31 北京首钢自动化信息技术有限公司 System for realizing log-saving and log-managing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001357033A (en) * 2000-06-15 2001-12-26 Happy Net Kk Automatic translation system utilizing network, and server therefor
CN101821728A (en) * 2008-10-15 2010-09-01 甲骨文国际公司 Batch processing system
CN101621537A (en) * 2009-07-24 2010-01-06 北京航空航天大学 Hyperspectral mass data parallel processing system with low cost
CN102385582A (en) * 2010-08-31 2012-03-21 中兴通讯股份有限公司 Method, server and system for processing production test data
CN102693297A (en) * 2012-05-16 2012-09-26 华为技术有限公司 Data processing method, node and ETL (extract transform and load) system
CN103220343A (en) * 2013-03-29 2013-07-24 南京联创科技集团股份有限公司 Big data multi-system forwarding method

Also Published As

Publication number Publication date
CN104915336A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CA2881167C (en) Authorization method, apparatus, and system
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN109660639B (en) Data uploading method, device, system and medium
CN104468531A (en) Authorization method, device and system for sensitive data
CN106790085B (en) Vulnerability scanning method, device and system
CN106549989B (en) Data transmission method and system, user terminal and application server
CN110309065B (en) Concurrent execution method, device and equipment of test tasks and storage medium
CN103401907A (en) Synchronous processing method and system for login information of application program
CN103902446A (en) Network server automated testing method and device
CN104079623B (en) Multistage cloud storage synchronisation control means and system
CN105245392A (en) Method and device for base line checking and repairing
CN111400777A (en) Network storage system, user authentication method, device and equipment
CN111625371A (en) Text transmission method, device, PC (personal computer) terminal, mobile terminal and system
CN110851818A (en) Verification code display method and device, computer equipment and readable storage medium
CN105142143A (en) Verification method and system thereof
CN102664945B (en) For document down loading method, device and system that time-out connects
CN112084102A (en) Interface pressure testing method and device
CN103944905A (en) Information interaction method, device and system
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
CN104915336B (en) Document translation method and device
CN107317723B (en) Data processing method and server
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN108737350B (en) Information processing method and client

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant