Translation resource processing system and terminal equipment
Through the resource management platform and code warehouse server in the translation resource processing system, the complete copy path and the project copy are generated, which solves the translation timeliness and code security problems in the existing technology, realizes accurate translation and secure storage, and improves work efficiency.
Patent Information
- Application Number
- CN202410978072.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-05
AI Technical Summary
Existing translation systems are difficult to ensure the timeliness of translations, and there is a risk of source code leakage, which makes it difficult to guarantee code security and translation project timeliness.
Provide a translation resource processing system, including a resource management platform and code warehouse server, to accurately locate the copy to be translated by generating the complete path of copy and processed project copy, and translate it on the translation client to ensure the security of the code copy .
It realizes accurate acquisition of the copy to be translated based on the complete copy path, without returning the source copy, ensuring the security of the code, reducing the degree of participation of developers, and improving work efficiency.
Smart Images

Figure CN118898056A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a translation resource processing system and terminal device. Background Art
[0002] In order to meet the development of code in different language environments, the text in the code files that have been produced needs to be translated through translation plug-ins.
[0003] In the prior art, the text to be translated in the file is translated by reversing the translation of the application package (Android Package, APK) to parse the resource file or provide a clone address of the source code repository.
[0004] However, although the existing reverse translation system can ensure the security of the code, it is difficult to guarantee the timeliness of the translation. Although providing the source code library clone address can update the translation in time, there is a risk of source code leakage. Therefore, the existing system can hardly ensure the timeliness of the translation project and cannot ensure the security of the code. Summary of the invention
[0005] The purpose of this application is to provide a translation resource processing system and terminal device to improve the accuracy of translation resource processing in view of the deficiencies in the above-mentioned prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a translation resource processing system, wherein the translation resource processing system includes a resource management platform and a code repository server;
[0008] The resource management platform is used to obtain a translation request instruction, wherein the translation request is used to indicate a target project to be translated;
[0009] The resource management platform is also used to determine at least one document to be translated based on the complete document path of each document under the target project and the processed project document, and generate a translation task table based on each document to be translated, and send the translation task table to the translation client so that the translation client translates the document to be translated in the translation task table, wherein the translation task table includes the document to be translated and the reference translation corresponding to the document to be translated.
[0010] Optionally, the resource management platform is also used for:
[0011] Generate a complete copy path for each copy according to the relative copy path of each copy under the input target project and the business path of the business to which the copy belongs;
[0012] The full source documents of the target project sent by the code repository server are received and analyzed to obtain processed project documents under the target project, and the processed project documents are saved according to the complete document path of each document.
[0013] Optionally, the resource management platform generates a complete document path for each document according to the input relative document path of each document under the target project and the business path of the business to which the document belongs, including:
[0014] The business path of the business to which the copy belongs and the relative copy path of the copy are concatenated to obtain a complete copy path of the copy.
[0015] Optionally, the resource management platform receives the full source document of the target project sent by the code repository server and performs analysis and processing to obtain the processed project document under the target project, which includes:
[0016] Obtain the full source copy of the target project from the code repository server;
[0017] Convert the full source text of the target project to obtain a non-code full text;
[0018] Compare the full amount of the non-code text with the full amount of the historical non-code text of the target project to determine whether there is an updated text;
[0019] The updated documents are marked to obtain the processed project documents under the target project.
[0020] Optionally, the translation resource processing system further includes: an intranet server;
[0021] The process of obtaining the full source copy of the target project from the code warehouse server includes:
[0022] The resource management platform sends a pull request for the source document of the target project to the code repository server through the intranet server, wherein the pull request includes the path of the target project;
[0023] The code warehouse server extracts the full source documents under the target project path according to the pull request and sends the full source documents to the resource management platform through the intranet server;
[0024] The resource management platform saves the full source documents according to the complete document path of each document under the target project.
[0025] Optionally, the process of the resource management platform sending a pull request for the source document of the project to the code repository server through the intranet server includes:
[0026] The resource management platform sends the pull request to the intranet server;
[0027] The intranet server determines whether the target project path in the pull request has read permission according to preset permission configuration information. If so, the intranet server forwards the pull request to the code repository server.
[0028] Optionally, the resource management platform determines at least one document to be translated according to the complete document path of each document under the target project and the processed project documents, including:
[0029] The resource management platform traverses the complete document path of each document under the target project. If the document under the currently traversed complete document path is a processed project document, the document under the currently traversed complete document path is used as a document to be translated.
[0030] Optionally, it also includes:
[0031] The resource management platform sends a project path synchronization request to the code repository server;
[0032] The code repository server sends the project path of each project to the resource management platform according to the project path synchronization request.
[0033] Optionally, the system further comprises: a cloud database;
[0034] The cloud database is used to receive and save at least one complete document path and processed project documents sent by the resource management platform.
[0035] In a second aspect, an embodiment of the present application further provides a terminal device, wherein the terminal device runs the resource management platform described in the first aspect;
[0036] The resource management platform is used to generate a complete document path for each document according to the relative document path of each document under the input target project and the business path of the business to which the document belongs;
[0037] The resource management platform is also used to receive the full source documents of the target project and analyze and process them to obtain processed project documents under the target project, and save the processed project documents according to the complete document path of each document;
[0038] The resource management platform is also used to obtain a translation request instruction, where the translation request is used to indicate a target project to be translated, and to determine at least one document to be translated based on the complete document path of each document under the target project and the processed project document, and to generate a translation task list based on each document to be translated.
[0039] The resource management platform is specifically used for:
[0040] The business path of the business to which the copy belongs and the relative copy path of the copy are concatenated to obtain a complete copy path of the copy.
[0041] The resource management platform is also specifically used for:
[0042] Obtain the full source copy of the target project from the code repository server;
[0043] Convert the full source text of the target project to obtain a non-code full text;
[0044] Compare the full amount of the non-code text with the full amount of the historical non-code text of the target project to determine whether there is an updated text;
[0045] The updated documents are marked to obtain the processed project documents under the target project.
[0046] The resource management platform is also specifically used for:
[0047] The resource management platform sends a pull request for the source document of the target project, wherein the pull request includes the path of the target project;
[0048] The resource management platform receives the target project path and extracts all source documents under the target project path;
[0049] The resource management platform saves the full source documents according to the complete document path of each document under the target project.
[0050] The resource management platform is also specifically used for:
[0051] The resource management platform traverses the complete document path of each document under the target project. If the document under the currently traversed complete document path is a processed project document, the document under the currently traversed complete document path is used as a document to be translated.
[0052] The resource management platform is also specifically used for:
[0053] The resource management platform sends a project path synchronization request;
[0054] The resource management platform receives the project path of each project.
[0055] The beneficial effects of this application are:
[0056] The application provides a translation resource processing system and terminal device. The resource management platform first generates the complete copy path of each copy according to the relative copy path of each copy under the target project input by the user and the business path of the business to which the copy belongs. After that, the full source copy of the target project received from the code warehouse server is analyzed and processed, and the processed project copy is saved according to the complete copy path of each copy generated before. Then, only the complete path of each copy under the target project and the processed copy are stored in the resource management platform, which can ensure the accurate positioning of each copy under the target project, so that the resource management platform can obtain at least one copy to be translated based on the user's translation request, according to the complete copy path of each copy under the target project and the processed project copy, and send the copy to be translated to the translation client for translation. It is realized that each copy to be translated can be accurately obtained based on the complete copy path of each copy, and there is no need to return the source copy, which can ensure the security of the code copy. The degree of participation of developers is reduced and the overall work efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 A schematic diagram of a translation resource processing process provided in an embodiment of the present application;
[0059] Figure 2 A schematic diagram of a process for generating a complete text path for each text provided in an embodiment of the present application;
[0060] Figure 3 A schematic diagram of a process for obtaining a processed project document under a target project provided in an embodiment of the present application;
[0061] Figure 4 A schematic diagram of a process for obtaining the full source copy of a target project provided in an embodiment of the present application;
[0062] Figure 5 A schematic diagram of a process of project path synchronization provided in an embodiment of the present application;
[0063] Figure 6An interactive schematic diagram of a complete path for generating a copy provided in an embodiment of the present application;
[0064] Figure 7 An interactive schematic diagram of a translation document provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0066] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0067] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0068] The translation resource processing system provided in the embodiment of the present application includes a resource management platform and a code warehouse server, wherein the resource management platform can be a software platform running on a terminal device, and the terminal device can be, for example, a mobile phone, a tablet computer, a laptop computer, a PDA, a desktop computer, and other terminal devices with computing and display capabilities. Specifically, it can be applied to applications in terminal devices, such as: mobile phone APP (application, mobile phone software), application systems on computers, etc.
[0069] The code warehouse server can store the business code files developed. The resource management platform and the code warehouse server can be connected in communication, and the translation resource processing system provided in the embodiment of the present application can be used to manage the translation resources.
[0070] A translation resource processing system provided in an embodiment of the present application may include a resource management platform and a code repository server, and the resource management platform may be communicatively connected with the code repository server.
[0071] Figure 1 A schematic diagram of a translation resource processing process provided in an embodiment of the present application, such as Figure 1 As shown:
[0072] S101. The resource management platform obtains a translation request instruction.
[0073] Specifically, the user can input the translation request instruction on the resource management platform, for example, the target project identifier that the user needs to translate, the path of the target project, or the complete text path of each source text under the target project.
[0074] S102, the resource management platform determines at least one document to be translated according to the complete document path of each document under the target project and the processed project document, generates a translation task list according to each document to be translated, and sends the translation task list to the translation client, so that the translation client translates the document to be translated in the translation task list.
[0075] Among them, the translation task table contains at least one document to be translated and a reference translation corresponding to the document to be translated. The document to be translated refers to the document in the project document processed above, which is a non-code document. The reference translation can refer to the historical translation of the document to be translated. The resource management platform can also store the historical translation of each document.
[0076] Optionally, when the resource management platform receives the translation request input by the user, it can use a preset system to determine at least one document to be translated based on the complete document path of each document under the target project and the processed project document, and generate a translation task list based on each document to be translated. When the translation client receives the document to be translated and the reference translation of the document to be translated, it can translate the document to be translated. During the translation process, it can translate based on the reference translation to ensure the accuracy of the translation of the document to be translated. After the translation is completed, the translation of the document to be translated is sent to the resource management platform, and the resource management platform saves the translation of the document to be translated.
[0077] In this embodiment, the resource management platform can obtain at least one document to be translated based on the complete document path of each document under the target project and the processed project document based on the translation request instruction, and send the document to be translated to the translation client for translation. It is achieved that each document to be translated can be accurately obtained based on the complete document path of each document, and there is no need to return the source document, which can ensure the security of the code document. The involvement of developers is reduced and the overall work efficiency is improved.
[0078] Figure 2 A schematic diagram of a process for generating a complete text path for each text provided in an embodiment of the present application, as shown in 2, before the resource management platform obtains the translation request instruction in the above S101, it may include:
[0079] S201. The resource management platform generates a complete document path for each document according to the relative document path of each document under the target project input by the user and the business path of the business to which the document belongs.
[0080] Optionally, during the R&D phase of the vehicle application, the R&D personnel will develop code files of different projects based on the functional requirements of the vehicle product, and continuously update the code files of the projects to obtain multiple different versions of project resource files, each of which may contain at least one copy. The copy may refer to a sentence, such as "the brightness of the headlight is 1".
[0081] Optionally, the user can enter the relative copy path of each copy under the target project on the resource management platform. The relative copy path refers to the relative position of the copy under the target project path, where the target project path refers to the target project path stored in the code warehouse server. For different copy under a project, each copy may belong to the same business or to different businesses. The complete copy path of each copy can be generated based on the relative copy path of each copy and the business path of the business to which each copy belongs. The complete copy path of each copy may include the business and project to which each copy belongs. By further dividing the relative copy path of each copy, users who are not R&D personnel can extract and process each copy based on the business layer, which is more convenient for users.
[0082] S202, the resource management platform receives the full source documents of the target project sent by the code repository server and performs analysis and processing to obtain processed project documents under the target project, and saves the processed project documents according to the complete document path of each document.
[0083] Optionally, the full source copy refers to all source copies under the target project, and also refers to all code copies under the target project. After analyzing and processing each source copy under the target project, each copy after analysis and processing is obtained. Each copy after analysis and processing is a non-code copy, and each copy after analysis and processing is used as the processed project copy under the target project. Specifically, the processed project copy may include newly added, deleted or modified copies under the project. And each copy after analysis and processing is saved in the resource management platform according to the complete copy path of each copy.
[0084] In this embodiment, the resource management platform first generates a complete document path for each document based on the relative document path of each document under the target project input by the user and the business path of the business to which the document belongs, and then analyzes and processes the full source document of the target project received from the code warehouse server, and saves the processed project document according to the complete document path of each document generated previously. In this case, only the complete path of each document under the target project and the processed documents are stored in the resource management platform, which can ensure the accurate positioning of each document under the target project.
[0085] Optionally, the process of the resource management platform generating a complete document path for each document according to the relative document path of each document under the target project input by the user and the business path of the business to which the document belongs may include:
[0086] Optionally, the resource management platform may concatenate the business path of the business to which the copy belongs and the relative copy path of the copy to obtain a complete copy path of the copy.
[0087] Specifically, the resource management platform can obtain the relative copy path of each copy entered by the user on the resource management platform, and can create at least one business and each business path on the resource management platform. When the resource management platform receives the relative copy path and business path of each copy entered by the user, it classifies each copy into a business category, determines the business to which each business belongs, and then splices the business path of the business to which each copy belongs and the relative copy path of each copy to obtain the complete copy path of each copy.
[0088] In this embodiment, by further classifying each document under the business dimension, it can be more convenient for users who are not R&D personnel to use each document at the business level, thereby improving the convenience and versatility of using each document.
[0089] Figure 3 A schematic diagram of the process of obtaining the processed project copy under the target project provided in the embodiment of the present application, such as Figure 3As shown, in S202, the resource management platform receives the full source document of the target project sent by the code repository server and performs analysis and processing to obtain the processed project document under the target project, which may include:
[0090] S301. The resource management platform obtains the full source text of the target project from the code repository server.
[0091] Optionally, when there are new or changed requirements in the target project of the vehicle-mounted product, the R&D personnel can develop code based on the updated requirements and save all the code documents under the developed target project to the code warehouse server. Therefore, what is stored in the code warehouse server is the full source documents developed for the target project, which includes both updated code documents and unchanged code documents.
[0092] S302: The resource management platform converts the full source text of the target project to obtain a full non-code text.
[0093] Specifically, the full source text of the code under the target project can be converted on the resource management platform into a text in a preset format to obtain a full text of the non-code.
[0094] S303: Compare the full amount of non-code documents with the historically processed project documents of the target project to determine whether there is an updated document.
[0095] Specifically, each document in the full non-code document can be compared with each document in the historically processed project document of the target project, and the modified and newly added documents can be taken as updated documents, and the deleted documents can be deleted.
[0096] S304: The resource management platform marks the updated documents and obtains the processed project documents under the target project.
[0097] Specifically, modified documents can be marked using system 1, and newly added documents can be marked using system 2. For example, modified documents can be marked using a green mark, and newly added documents can be marked using a red mark. Other systems can also be used for marking, which is not limited here.
[0098] Furthermore, after the resource management platform obtains the processed project document under the target project, it can also send the processed project document under the target project to the cloud database, so that the cloud database stores the processed project document under the target project.
[0099] In this embodiment, by converting and marking the received full source text of the target project, the resource management platform can save the converted full non-code text and mark the updated text so that the text to be translated can be found more conveniently based on the processed project text in the future, thereby generating a translation task list.
[0100] Figure 4 A schematic diagram of a process for obtaining the full source text of a target project provided by an embodiment of the present application, the translation resource processing system may also include: an intranet server, the intranet server may be used to implement path authority control, such as Figure 4 As shown, the process of the resource management platform in S301 acquiring the full source copy of the target project from the code repository server may include:
[0101] S401. The resource management platform sends a pull request for the source document of the target project to the code repository server through the intranet server.
[0102] The pull request includes the target project path.
[0103] Optionally, the intranet server sets permissions for the project paths of each project, allowing only source documents under the project paths within the permission range to be read.
[0104] S402. The code repository server extracts the full source documents under the target project according to the pull request and the target project path, and sends the full source documents to the resource management platform through the intranet server.
[0105] Optionally, when the code repository server receives a pull request and parses the pull request to obtain the target project path in the pull request, it can search the code repository server according to the project path and send all source documents under the target path in the code repository server to the resource management platform through the intranet server.
[0106] S403. The resource management platform saves all source documents according to the complete document path of each document under the target project.
[0107] Specifically, after the resource management platform receives the full amount of source documents under the target project, it analyzes and processes the full amount of source documents to obtain processed project documents, and then saves each document in the processed project documents according to the complete document path of each document obtained in step S201.
[0108] In this embodiment, a pull request is sent to the code warehouse server through the intranet server to pull the full source text of the target project, which can achieve secure isolation of the code warehouse server and protect the confidentiality of the core sensitive code data in the code warehouse server to a higher level.
[0109] Optionally, the process in S401 above where the resource management platform sends a pull request for the source document of the target project to the code repository server through the intranet server may include:
[0110] Optionally, the resource management platform sends a pull request to the intranet server, and the intranet server can determine whether the target project path in the pull request has read permission based on the preset permission configuration information. If so, the intranet server forwards the pull request to the code repository server. The preset permission configuration information refers to the permission configuration information of the intranet server for the project path, allowing the project path in the preset permission configuration information to be read, otherwise it cannot be read.
[0111] Specifically, the resource management platform can perform a permission judgment on the target project path. If it is determined that the target project path has read permission, the pull request of the target project path is forwarded to the code repository server; if it is determined that the target project path does not have read permission, the pull request of the target project is not forwarded to the code repository server.
[0112] Optionally, the process of the resource management platform determining at least one document to be translated according to the complete document path of each document under the target project and the processed project documents in S102 may include:
[0113] Optionally, the resource management platform traverses the complete document path of each document under the target project. If the document under the currently traversed complete document path is a processed project document, that is, the document under the currently traversed complete document path is a marked document, that is, a modified or newly added document, then the document under the currently traversed complete document path will be treated as a document to be translated.
[0114] Figure 5 A schematic diagram of a process of project path synchronization provided by an embodiment of the present application is shown as follows: Figure 5 As shown:
[0115] S501. The resource management platform sends a project path synchronization request to the code repository server.
[0116] The project path synchronization request indicates synchronization of all project paths in the code repository server.
[0117] Specifically, the resource management platform can send a project path synchronization request to the code repository server through the intranet server.
[0118] S502: The code repository server sends the project path of each project to the resource management platform according to the project path synchronization request.
[0119] Optionally, the code warehouse server sends all updated project paths in the code warehouse server to the resource management platform through the intranet server according to the project path synchronization request, and the intranet server forwards the project paths that meet the preset permission configuration information to the resource management platform. Then, the resource management platform receives all project paths that are allowed to be read in the intranet server. At the same time, after the resource management platform receives all project paths that are allowed to be read, it synchronizes all received project paths to the cloud database.
[0120] In this embodiment, the resource management platform sends a project path synchronization request to the code repository server through the intranet server, and at the same time receives all project paths forwarded through the intranet server, which can ensure that the project paths within the preset permission configuration information are synchronized to the resource management platform, thereby ensuring the security of the project code in the code repository.
[0121] Figure 6 An interactive schematic diagram of a complete path for generating a copy is provided in an embodiment of the present application, such as Figure 6 As shown, the user can input a synchronization project path request on the resource management platform. The resource management platform sends a synchronization project path request to the code repository server through the intranet server. The code repository server returns a project list to the intranet server. The project list contains all project paths. The intranet server returns all readable project paths to the resource management platform according to the preset permission configuration information. After that, the resource management platform synchronizes all received readable project paths to the cloud database.
[0122] Optionally, after the resource management platform receives the synchronized target project path, it can pull the full amount of source documents under the target project path. After that, the user can enter the relative document path of each document under the target project path and the business path of the business to which each document belongs on the resource management platform, so that the resource management platform can generate a complete document path for each document based on the relative document path of each document and the business path of the business to which each document belongs, and save the complete document path of each document on the resource management platform, so that the resource management platform can save the received documents on the resource management platform according to the complete document path of each document, and synchronize them to the cloud database at the same time.
[0123] Figure 7 A schematic diagram of an interactive translation of a text provided in an embodiment of the present application, such as Figure 7 As shown, the R&D personnel can send the code source documents corresponding to the new requirements or changed requirements of the target project to the code warehouse server, and save the source documents under the target project path in the code warehouse server.
[0124] Optionally, the resource management platform can send a pull request to the code server through the intranet server. The code repository server sends all source documents stored in the target project path to the resource management platform through the intranet server according to the pull request. Specifically, the intranet server sends the readable source documents to the resource management server. The resource management server analyzes and processes the received full source documents under the target project to obtain the processed project documents. Figure 5 In the process, all the received source documents are saved according to the complete document path of each document.
[0125] Optionally, when a user needs to translate, he can send a translation request to the resource management platform through the translation client, and the resource management platform can generate a translation task list based on the complete document path of each document under the target project and the processed project documents. The translation client will translate each document to be translated in the translation task list and send the translation to the resource management platform so that the resource management platform can save the translation of the document to be translated.
[0126] Optionally, the resource management platform can also regularly organize the translation files of each project. The organized project translation files contain each document and its translation. At the same time, the organized project translation files can be synchronized to the code repository server.
[0127] The translation resource processing system in the embodiment of the present application may also include a cloud database, which can be used to receive and save at least one complete document path and processed project documents sent by the resource management platform.
[0128] A terminal device is also provided in an embodiment of the present application, and the terminal device runs a resource management platform in a specific embodiment.
[0129] The resource management platform is used to generate a complete document path for each document according to the relative document path of each document under the input target project and the business path of the business to which the document belongs;
[0130] The resource management platform is also used to receive the full source documents of the target project and analyze and process them to obtain processed project documents under the target project, and save the processed project documents according to the complete document path of each document;
[0131] The resource management platform is also used to obtain a translation request instruction, where the translation request is used to indicate a target project to be translated, and to determine at least one document to be translated based on the complete document path of each document under the target project and the processed project document, and to generate a translation task list based on each document to be translated.
[0132] The resource management platform is specifically used for:
[0133] The business path of the business to which the copy belongs and the relative copy path of the copy are concatenated to obtain a complete copy path of the copy.
[0134] The resource management platform is also specifically used for:
[0135] Obtain the full source copy of the target project from the code repository server;
[0136] Convert the full source text of the target project to obtain a non-code full text;
[0137] Compare the full amount of the non-code text with the full amount of the historical non-code text of the target project to determine whether there is an updated text;
[0138] The updated documents are marked to obtain the processed project documents under the target project.
[0139] The resource management platform is also specifically used for:
[0140] The resource management platform sends a pull request for the source document of the target project, wherein the pull request includes the path of the target project;
[0141] The resource management platform receives the target project path and extracts all source documents under the target project path;
[0142] The resource management platform saves the full source documents according to the complete document path of each document under the target project.
[0143] The resource management platform is also specifically used for:
[0144] The resource management platform traverses the complete document path of each document under the target project. If the document under the currently traversed complete document path is a processed project document, the document under the currently traversed complete document path is used as a document to be translated.
[0145] The resource management platform is also specifically used for:
[0146] The resource management platform sends a project path synchronization request;
[0147] The resource management platform receives the project path of each project.
[0148] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the system embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and system can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0149] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the system described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.
[0150] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A translation resource processing system, characterized in that: The resource processing system includes a resource management platform and a code warehouse server; The resource management platform is used to obtain a translation request instruction, wherein the translation request is used to indicate a target project to be translated; The resource management platform is also used to determine at least one document to be translated based on the complete document path of each document under the target project and the processed project document, and generate a translation task table based on each document to be translated, and send the translation task table to the translation client so that the translation client translates the document to be translated in the translation task table, wherein the translation task table includes the document to be translated and the reference translation corresponding to the document to be translated.
2. The translation resource processing system according to claim 1, characterized in that: The resource management platform is also used for: Generate a complete copy path for each copy according to the relative copy path of each copy under the input target project and the business path of the business to which the copy belongs; The full source documents of the target project sent by the code repository server are received and analyzed to obtain processed project documents under the target project, and the processed project documents are saved according to the complete document path of each document.
3. The translation resource processing system according to claim 2, characterized in that: The process of generating a complete document path for each document by the resource management platform according to the relative document path of each document under the input target project and the business path of the business to which the document belongs includes: The business path of the business to which the copy belongs and the relative copy path of the copy are concatenated to obtain a complete copy path of the copy.
4. The translation resource processing system according to claim 2, characterized in that: The resource management platform receives the full source document of the target project sent by the code repository server and performs analysis and processing to obtain the processed project document under the target project, which includes: Obtain the full source copy of the target project from the code repository server; Convert the full source text of the target project to obtain a non-code full text; Compare the full amount of the non-code text with the full amount of the historical non-code text of the target project to determine whether there is an updated text; The updated documents are marked to obtain the processed project documents under the target project.
5. The translation resource processing system according to claim 4, characterized in that: The resource processing system also includes: an intranet server; The process of obtaining the full source copy of the target project from the code warehouse server includes: The resource management platform sends a pull request for the source document of the target project to the code repository server through the intranet server, wherein the pull request includes the path of the target project; The code warehouse server extracts the full source documents under the target project path according to the pull request and sends the full source documents to the resource management platform through the intranet server; The resource management platform saves the full source documents according to the complete document path of each document under the target project.
6. The translation resource processing system according to claim 5, characterized in that: The process of the resource management platform sending a pull request for the source document of the project to the code warehouse server through the intranet server includes: The resource management platform sends the pull request to the intranet server; The intranet server determines whether the target project path in the pull request has read permission according to preset permission configuration information. If so, the intranet server forwards the pull request to the code repository server.
7. The translation resource processing system according to claim 1, characterized in that: The process of the resource management platform determining at least one document to be translated according to the complete document path of each document under the target project and the processed project documents includes: The resource management platform traverses the complete document path of each document under the target project. If the document under the currently traversed complete document path is a processed project document, the document under the currently traversed complete document path is used as a document to be translated.
8. The translation resource processing system according to claim 1, characterized in that: Also includes: The resource management platform sends a project path synchronization request to the code repository server; The code repository server sends the project path of each project to the resource management platform according to the project path synchronization request.
9. The translation resource processing system according to claim 1, characterized in that: The system also includes: a cloud database; The cloud database is used to receive and save at least one complete document path and processed project documents sent by the resource management platform.
10. A terminal device, characterized in that: The terminal device runs the resource management platform according to any one of claims 1 to 9; The resource management platform is used to generate a complete document path for each document according to the relative document path of each document under the input target project and the business path of the business to which the document belongs; The resource management platform is also used to receive the full source documents of the target project and analyze and process them to obtain the processed project documents under the target project, and save the processed project documents according to the complete document path of each document; the resource management platform is also used to obtain a translation request instruction, the translation request is used to indicate the target project to be translated, and determine at least one document to be translated based on the complete document path of each document under the target project and the processed project document, and generate a translation task list based on each of the documents to be translated.
