Method and equipment for internationalizing part atlas and storage medium
Through the pre-constructed part drawing atlas translation library, the problem of low international translation efficiency of part drawing atlas in the existing technology is solved, and fast and efficient international processing is achieved.
Patent Information
- Application Number
- CN202411386579.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-17
AI Technical Summary
In the prior art, the international translation efficiency of part drawings is low, and manual repetitive translation and import are required, resulting in excessive time consumption.
Through the pre-built part atlas translation library, the corresponding international part atlas is automatically determined and obtained based on the target atlas identification and language type, and supports the translation and storage of various file formats such as xml, html, cgm, svg, etc.
It improves the translation efficiency of part drawing albums, reduces manual operations, and achieves rapid international processing.
Smart Images

Figure CN119323221A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of engineering machinery, and in particular to a method, device and storage medium for internationalizing a parts atlas. Background Art
[0002] Internationalization refers to the process of promoting things, brands or companies to the international market so that they can be widely recognized and accepted in different regions, cultures and language environments. Therefore, for technicians, in order to make the parts atlas from the native country to the international market, translating the text in the parts atlas into the languages of other countries can make it more suitable for the international market.
[0003] The existing technology manually translates the content that needs to be translated in the parts atlas, and then imports the translated text into the parts atlas to obtain an internationalized parts atlas. If there are many parts atlas files, it will lead to manual repetitive translation and importing, which will take too much time and cannot efficiently obtain an internationalized parts atlas, resulting in low translation efficiency. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method, device and storage medium for internationalization of parts atlases, so as to solve the problem of low efficiency of manual translation in the prior art.
[0005] In order to achieve the above-mentioned purpose, the first aspect of the present application provides a method for internationalizing a parts catalog, comprising:
[0006] Get the parts atlas internationalization request of the target parts atlas;
[0007] According to the parts atlas internationalization request, the target atlas identifier and the target language type of the target parts atlas are obtained;
[0008] Based on a pre-built parts atlas translation library, a target parts atlas corresponding to the target language type is determined according to the target atlas identifier and the target language type, wherein the parts atlas translation library stores parts atlases of various atlas identifiers and various language types.
[0009] In an embodiment of the present application, based on a pre-built parts atlas translation library, a target parts atlas corresponding to the target language type is determined according to a target atlas identifier and a target language type, including: based on a pre-built parts atlas translation library, a full-language file corresponding to the target parts atlas is determined according to the target atlas identifier, wherein the full-language file is a parts atlas of multiple language types; based on the full-language file, the target parts atlas corresponding to the target language type is determined.
[0010] In an embodiment of the present application, based on a pre-built parts atlas translation library, a target parts atlas corresponding to the target language type is determined according to a target atlas identifier and a target language type, including: based on a pre-built parts atlas translation library, determining a parts atlas set corresponding to the target language type, wherein the parts atlas set is a collection of parts atlases of the same language type; determining a target parts atlas corresponding to the target language type according to the parts atlas set.
[0011] In an embodiment of the present application, construction of a parts atlas translation library includes: obtaining multiple parts atlases from a preset parts atlas platform, the file types of the parts atlases including text type files and image type files; translating each parts atlas of the text type files and each parts atlas of the image type files to obtain multiple translated parts atlases; and obtaining a parts atlas translation library based on the multiple translated parts atlases.
[0012] In an embodiment of the present application, each parts atlas of a text type file and each parts atlas of an image type file are translated to obtain a plurality of translated parts atlases, including: translating a first target translation content in each parts atlas of a text type file and a second target translation content in each parts atlas of an image type file to obtain a plurality of translated parts atlases.
[0013] In an embodiment of the present application, a parts atlas translation library is obtained based on multiple translated parts atlases, including: obtaining a preset file storage address; storing the multiple translated parts atlases to the file storage address to obtain a parts atlas translation library.
[0014] In an embodiment of the present application, multiple parts atlases are obtained from a preset parts atlas platform, including: obtaining multiple compressed package files storing multiple parts atlases from the preset parts atlas platform; and decompressing the multiple compressed package files to obtain multiple parts atlases.
[0015] In an embodiment of the present application, the file format of the parts atlas includes any one of xml, html, cgm, svg and wrl formats.
[0016] A second aspect of an embodiment of the present application provides a device for internationalizing a parts catalog, comprising: a memory and a processor, the memory and the processor being connected via a bus, and characterized in that a computer program is stored in the memory, and when the computer program is called by the processor, it executes the above-mentioned method for internationalizing a parts catalog.
[0017] A third aspect of an embodiment of the present application provides a machine-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the above-mentioned method for internationalizing a parts catalog.
[0018] Through the above technical solution, by obtaining the user's request for internationalization of the target parts atlas in the target parts atlas, the target atlas identifier and the target language type of the target parts atlas can be determined, so that in the pre-built parts atlas translation library, the target parts atlas identifier and the target language type of the target parts atlas can be further determined. As a result, the user's demand for internationalization of the target parts atlas can be quickly met, and compared with the manual repetitive translation and importing in the prior art, the efficiency of the parts atlas translation is improved.
[0019] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0021] Figure 1 A schematic diagram of a process flow of a method for internationalizing a parts atlas according to an embodiment of the present application is schematically shown; DETAILED DESCRIPTION
[0022] In order 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 specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0023] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0024] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0025] Figure 1 The following schematically shows a flow chart of a method for internationalizing a parts atlas according to an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a method for internationalizing a parts atlas, which is described by taking the method applied to a processor as an example. The method may include the following steps.
[0026] Step S101, obtaining a parts atlas internationalization request of a target parts atlas;
[0027] Step S102, obtaining a target atlas identifier and a target language type of a target atlas according to the parts atlas internationalization request;
[0028] Step S103, based on the pre-built parts atlas translation library, according to the target atlas identifier and the target language type, determine the target parts atlas corresponding to the target language type, wherein the parts atlas translation library stores parts atlases of various atlas identifiers and various language types.
[0029] It can be understood that the target part atlas can be an internationalized file obtained from a pre-built part atlas translation library. The part atlas internationalization request is the user's input of the demand for the target part atlas. The part atlas internationalization request can include the target atlas identifier and the target language type. The part atlas internationalization request can also include the file version information of the target part atlas. The part atlas translation library is an information library for storing the internationalized files after the part atlas is translated. The part atlas translation library can store part atlases with multiple different atlas identifiers and language types. Among them, the atlas identifier is the identification information used to identify the part atlas, the target atlas identifier is the identification information of the target part atlas, and the target atlas identifier can be identified in the file name, and can also be identified in the identification area of the file content. Similarly, the language type is the language type to which the text content in the part atlas belongs, and the target language type is the language type required for the target part atlas to be internationalized. The target language type can be identified in the file name, and can also be identified in the identification area of the file content.
[0030] Specifically, the processor can obtain a parts book internationalization request for a target parts book, wherein the parts book internationalization request can include a target parts book identifier and a target language type of the target parts book. Furthermore, the target parts book identifier and the target language type of the target parts book can be input into a pre-built parts book translation library to search for a target parts book corresponding to the target parts book identifier and the target language type. That is to say, the target parts book searched for must satisfy the requirements of having information with a target parts book identifier and having text content of the target language type. Thus, the target parts book corresponding to the target language type can be obtained in the pre-built parts book translation library, thereby improving the translation efficiency of the parts book.
[0031] By obtaining the user's request for internationalization of the target parts atlas, the target atlas identifier and the target language type of the target parts atlas can be determined, so that in the pre-built parts atlas translation library, the target parts atlas corresponding to the target language type can be further determined based on the target atlas identifier and the target language type of the target parts atlas. In this way, the user's demand for internationalization of the target parts atlas can be quickly met, and compared with the prior art of manual repetitive translation and importing, the efficiency of parts atlas translation is improved.
[0032] In one embodiment, based on a pre-built parts atlas translation library, determining a target parts atlas corresponding to a target language type according to a target atlas identifier and a target language type may include: based on a pre-built parts atlas translation library, determining a full-language file corresponding to the target parts atlas according to the target atlas identifier, wherein the full-language file is a parts atlas of multiple language types; determining a target parts atlas corresponding to the target language type according to the full-language file.
[0033] It can be understood that the full-language file may include a parts book file having multiple language types corresponding to the target parts book.
[0034] Specifically, the target atlas identifier can be input into the blank search box of the pre-built parts atlas translation library through the parts atlas translation library to find the full-language file that is consistent with the target atlas identifier, and then the target language type can be input into the blank search box of the parts atlas translation library to find the target parts atlas corresponding to the target language type in the full-language file. In this way, the target parts atlas that is consistent with the target atlas identifier and the target language type can be quickly obtained, thereby improving the translation efficiency of the file.
[0035] In one embodiment, based on a pre-built parts atlas translation library, a target parts atlas corresponding to the target language type is determined according to a target atlas identifier and a target language type, including: based on the pre-built parts atlas translation library, determining a parts atlas set corresponding to the target language type, wherein the parts atlas set is a collection of parts atlases of the same language type; determining a target parts atlas corresponding to the target language type according to the parts atlas set.
[0036] Specifically, through the pre-built parts atlas translation library, the target language type can be first input into the blank search box of the parts atlas translation library to find the parts atlas set that is consistent with the target language type, and then the target atlas identifier can be input into the blank search box of the parts atlas translation library to find the target parts atlas corresponding to the target atlas identifier in the parts atlas set. In this way, the target parts atlas that is consistent with the target atlas identifier and the target language type can be quickly obtained, thereby improving the translation efficiency of the file.
[0037] In one embodiment, construction of a parts atlas translation library may include: obtaining multiple parts atlases from a preset parts atlas platform, the file types of the parts atlases including text type files and image type files; translating each parts atlas of the text type files and each parts atlas of the image type files to obtain multiple translated parts atlases; and obtaining a parts atlas translation library based on the multiple translated parts atlases.
[0038] It can be understood that the preset parts album platform can be a platform that stores multiple parts albums. The file types of the parts album can include text type files and image type files. The text type files can be parts album files in xml format, and the image type files can be parts album files in html format. The text type files are files in which most of the parts album is text description, and the image type files are files in which most of the parts album is images.
[0039] Specifically, multiple parts atlases can be obtained from a preset parts atlas platform, and then the parts atlases can be translated to obtain a translated parts atlas. Further, the atlas identifier of the translated parts atlas can be obtained, and the correspondence between the atlas identifier and the translated parts atlas can be stored in a parts atlas translation library, so that users can find the corresponding translated parts atlas according to the atlas identifier, thereby improving the efficiency of finding the translated parts atlas. The compressed package file can be a compressed package file in vmb format, and one compressed package file can identify a corresponding atlas identifier.
[0040] In one embodiment, each parts atlas of a text type file and each parts atlas of an image type file are translated to obtain a plurality of translated parts atlases, including: translating a first target translation content in each parts atlas of a text type file and a second target translation content in each parts atlas of an image type file to obtain a plurality of translated parts atlases.
[0041] It can be understood that the first target translation content is the content waiting to be translated in each parts atlas of the text type file, and the specific location of the first target translation content is the first preset position row and column number in the document in each parts atlas of the text type file. Similarly, the second target translation content is the content waiting to be translated in each parts atlas of the image type file, and the specific location of the second target translation content is the second preset position row and column number in the image in each parts atlas of the image type file. The first target translation content and the second target translation content both include text descriptions that need to be translated into the target language type.
[0042] Specifically, first, each parts atlas of a text-type file and each parts atlas of an image-type file are copied to obtain copies of each parts atlas of a text-type file and copies of each parts atlas of an image-type file. Secondly, the first target translation content is found in the first preset position row and column number of each parts atlas of a text-type file, the first target translation content is extracted, and translated into the first translation content of the target language type. The content of the corresponding first preset position row and column number of each parts atlas copy of the text-type file is replaced with the first translation content of the target language type. In the case where the first target translation content of each parts atlas copy of the text-type file is completely replaced with the first translation content, the name of each parts atlas copy of the text-type file obtained after the replacement can be changed to the language type corresponding to the first translation content, thereby obtaining copies of each parts atlas of a text-type file whose file name contains the language type, which is used as each parts atlas of a text-type file after translation, and each parts atlas of the corresponding text-type file is stored in the backup path specified by the user for backup processing.
[0043] Similarly, the second target translation content is found in the second preset position row and column number in each part atlas of the image type file, the second target translation content is extracted, and translated into the second translation content of the corresponding target language type, and the content of the corresponding second preset position row and column number in each part atlas copy of the image type file is replaced with the second translation content of the corresponding target language type, which can improve the translation accuracy of the file. Among them, the second translation content is the content after the second target translation content in each part atlas of the text type file is translated, and the second translation content is the content after the second target translation content in each part atlas of the image type file. In the case where the second target translation content of each part atlas copy of the image type file is completely replaced with the second translation content, the name of each part atlas copy of the image type file obtained after the replacement can be changed to the language type corresponding to the second translation content, so as to obtain each part atlas copy of the image type file whose file name contains the language type, which is used as each part atlas of the translated image type file, and the corresponding each part atlas of the image type file is stored in the backup path specified by the user for backup processing.
[0044] In one embodiment, a parts atlas translation library is obtained based on multiple translated parts atlases, including: obtaining a preset file storage address; storing the multiple translated parts atlases to the file storage address to obtain the parts atlas translation library.
[0045] It can be understood that the preset file storage address is an address preset by the user for storing the translated parts atlas, that is, the preset file storage address for storing the parts atlas can be used as a parts atlas translation library.
[0046] Specifically, the user can first determine the preset file storage address and input the preset file storage address into the processor. The translated multiple parts atlases can be directly stored in the file storage address, so that the location of the parts atlas translation library can be determined, which is convenient for the user to obtain the parts atlas in the parts atlas translation library, thereby improving the user experience.
[0047] In one embodiment, obtaining multiple parts atlases from a preset parts atlas platform includes: obtaining multiple compressed package files storing multiple parts atlases from the preset parts atlas platform; and decompressing the multiple compressed package files to obtain multiple parts atlases.
[0048] Specifically, multiple compressed package files storing multiple parts atlases can be obtained from a preset parts atlas platform. In this way, the parts atlases can be compressed and uploaded to the atlas file path preset by the user, which can improve the file transmission efficiency. Furthermore, the user can obtain the compressed package file of the parts atlas under the atlas file path, and then decompress the compressed package file of the parts atlas to obtain multiple parts atlases. In this way, while improving the file transmission efficiency, the content integrity of multiple parts atlases during the transmission process can be guaranteed.
[0049] In one embodiment, the file format of the parts atlas includes any one of xml, html, cgm, svg and wrl formats.
[0050] Specifically, the file formats of the parts atlas can include XML, HTML, CGM, SVG and WRL formats, that is, the parts atlas in different file formats can be translated to obtain the parts atlas in the target language type. To a certain extent, the compatibility of translating parts atlases in different formats can be improved.
[0051] An embodiment of the present application provides a device for internationalizing a parts catalog, including: a memory and a processor, the memory and the processor being connected via a bus, and characterized in that a computer program is stored in the memory, and when the computer program is called by the processor, it executes the above-mentioned method for internationalizing a parts catalog.
[0052] An embodiment of the present application provides a machine-readable storage medium, on which instructions are stored, and the instructions are used to enable a machine to execute the above-mentioned method for internationalizing a parts atlas.
[0053] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0054] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0055] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0056] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0057] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0058] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0059] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0060] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0061] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for internationalizing a parts atlas, characterized in that: include: Get the parts atlas internationalization request of the target parts atlas; According to the parts atlas internationalization request, a target atlas identifier and a target language type of the target parts atlas are obtained; Based on a pre-built parts atlas translation library, the target parts atlas corresponding to the target language type is determined according to the target atlas identifier and the target language type, wherein the parts atlas translation library stores parts atlases of various atlas identifiers and various language types.
2. The method according to claim 1, characterized in that The pre-built parts atlas translation library determines the target parts atlas corresponding to the target language type according to the target atlas identifier and the target language type, including: Based on a pre-built parts atlas translation library, determining a full-language file corresponding to the target parts atlas according to the target atlas identifier, wherein the full-language file is a parts atlas in multiple languages; The target parts atlas corresponding to the target language type is determined according to the full language file.
3. The method according to claim 1, characterized in that The pre-built parts atlas translation library determines the target parts atlas corresponding to the target language type according to the target atlas identifier and the target language type, including: Determine a parts atlas set corresponding to the target language type based on a pre-built parts atlas translation library, wherein the parts atlas set is a collection of parts atlases of the same language type; According to the parts atlas set, the target parts atlas corresponding to the target language type is determined.
4. The method according to claim 1, characterized in that: The construction of the parts atlas translation library includes: Acquire multiple parts atlases from a preset parts atlas platform, wherein the file types of the parts atlases include text type files and image type files; Translating each of the parts atlases in the text-type file and each of the parts atlases in the image-type file to obtain a plurality of translated parts atlases; The parts atlas translation library is obtained according to the translated parts atlases.
5. The method according to claim 4, characterized in that The translating of each of the parts atlases of the text type file and each of the parts atlases of the image type file to obtain a plurality of translated parts atlases includes: The first target translation content in each of the parts atlases in the text type file and the second target translation content in each of the parts atlases in the image type file are translated to obtain a plurality of translated parts atlases.
6. The method according to claim 5, characterized in that The step of obtaining the parts atlas translation library according to the translated parts atlases comprises: Get the preset file storage address; The translated multiple parts atlases are stored in the file storage address to obtain the parts atlas translation library.
7. The method according to claim 4, characterized in that The obtaining of multiple parts atlases from a preset parts atlas platform includes: Acquire multiple compressed package files storing multiple parts atlases from a preset parts atlas platform; The plurality of compressed package files are decompressed to obtain the plurality of parts atlases.
8. The method according to claim 1, characterized in that The file format of the parts atlas includes any one of xml, html, cgm, svg and wrl formats.
9. A device for internationalizing parts atlases, characterized in that: include: A memory and a processor, wherein the memory and the processor are connected via a bus, wherein a computer program is stored in the memory, and when the computer program is called by the processor, the method for internationalizing a parts catalogue according to any one of claims 1 to 8 is executed.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores instructions for causing a machine to execute the method for internationalizing a parts catalogue according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for globally processing application program
CN116943232A
Method and device for translating engineering data and storage medium
CN118428376A
Method and system for translation management of human language text
US20020177992A1