CN113778434A - Multilingual document management method, device, electronic equipment and storage medium - Google Patents

Multilingual document management method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113778434A
CN113778434A CN202110336920.0A CN202110336920A CN113778434A CN 113778434 A CN113778434 A CN 113778434A CN 202110336920 A CN202110336920 A CN 202110336920A CN 113778434 A CN113778434 A CN 113778434A
Authority
CN
China
Prior art keywords
instruction
language
interactive visual
visual object
interactive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110336920.0A
Other languages
Chinese (zh)
Inventor
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110336920.0A priority Critical patent/CN113778434A/en
Publication of CN113778434A publication Critical patent/CN113778434A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • G06F9/454Multi-language systems; Localisation; Internationalisation

Abstract

The present disclosure provides a multilingual document management method, including: obtaining source files of a plurality of language documentations, wherein the source file of each language documentation comprises an instruction and a language documentation corresponding to the instruction; and generating an interactive visual object based on the instruction and the language pattern corresponding to the instruction, wherein the data record form of the interactive visual object is that one instruction corresponds to at least one language pattern. The present disclosure also provides a multilingual document management apparatus, an electronic device, and a computer-readable storage medium.

Description

Multilingual document management method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for managing a multilingual document, an electronic device, and a storage medium.
Background
In order to meet the use requirements of users in different countries, Apps facing multiple countries have a multi-language switching function, and users can switch the currently displayed language types through the Apps. For example, apple provides multilingual adaptation functions to iOS developers, and provides a folder in the iOS development project, in which different language files are stored for adaptation of different language categories.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: in the conventional document management method, a developer can only edit multilingual documents in each language file manually one by one, which is not only inefficient but also prone to errors. Meanwhile, with the iteration of versions, a plurality of redundant documents which can not be used any more may exist in the multi-language file, and the maintenance difficulty of the multi-language file is increased.
Disclosure of Invention
In view of the above, the present disclosure provides a method and an apparatus for multi-language document management that achieves fast operation and visualization.
One aspect of the present disclosure provides a multilingual document management method, including: obtaining a source file of a plurality of language documentations, wherein the source file of each language documentation comprises an instruction and a language documentation corresponding to the instruction; and generating an interactive visual object based on the instruction and the language pattern corresponding to the instruction, wherein the data record form of the interactive visual object is that one instruction corresponds to at least one language pattern.
According to an embodiment of the present disclosure, the generating an interactive visual object based on the instruction and the language document corresponding to the instruction, where a data record form of the interactive visual object is that one instruction corresponds to at least one language document includes: selecting a target template, wherein the target template comprises configuration rules of an interactive visual object; inputting the instruction and the language pattern corresponding to the instruction to the specified position of the target template based on the configuration rule, and generating the interactive visual object; the data record form of the interactive visual object is that one instruction corresponds to at least one language case.
According to an embodiment of the present disclosure, the language document corresponding to the instruction is stored in a source file of the language document in a key-value form, and an interactive visual object is generated based on the instruction and the language document corresponding to the instruction, and a data record of the interactive visual object is in a form that one instruction corresponds to at least one language document, including: selecting a target template, wherein a preset key is input at a first preset position of the target template; and respectively inputting the values in all the key-values into a second preset position to generate an interactive visual object, wherein the key corresponding to the value input at the second preset position is the same as the preset key, and the data record form of the interactive visual object is that one key corresponds to at least one value.
According to an embodiment of the present disclosure, the generating an interactive visual object based on the instruction and the language document corresponding to the instruction, where a data record form of the interactive visual object is that one instruction corresponds to at least one language document includes: generating an initial interactive visual object based on the instruction and the language pattern corresponding to the instruction; and combining the same instructions in the initial interactive visual objects to generate the interactive visual objects, wherein the data record form of the interactive visual objects is that one instruction corresponds to at least one language case.
According to an embodiment of the present disclosure, the method further comprises: respectively judging whether the mapping relation between each instruction in the interactive visual object and the language pattern corresponding to the instruction meets a first preset condition; if the mapping relation between the instruction and the language pattern corresponding to the instruction meets a first preset condition, generating abnormal information; and marking the abnormal information for the instruction in the interactive visual object.
According to an embodiment of the present disclosure, the method further comprises: and editing the instruction and the language file in response to an editing operation triggered by a user on the interactive visual object.
According to an embodiment of the present disclosure, the interactive visualization object is an interactive visualization form.
Another aspect of the present disclosure provides a multilingual document management apparatus, comprising: the acquisition module is used for acquiring source files of a plurality of language documentations, and the source file of each language documentation comprises an instruction and a language documentation corresponding to the instruction; and the generating module is used for generating an interactive visual object based on the instruction and the language pattern corresponding to the instruction, and the data record form of the interactive visual object is that one instruction corresponds to at least one language pattern.
Another aspect of the present disclosure provides an electronic device comprising one or more processors; and memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the preceding claims.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, because the technical means of converting the source code of the multilingual file into the interactive visual object is adopted, the technical problem of how to edit the multilingual file quickly is at least partially overcome, and the technical effects of convenience for the developer to operate quickly and maintain easily are achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an exemplary system architecture to which the application multilingual document management method and apparatus of the present disclosure may be applied;
FIG. 2 schematically illustrates an application scenario of the multilingual document management method and apparatus according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a multi-lingual document management method according to an embodiment of the disclosure;
FIG. 4A schematically illustrates a flow chart of a method of acquiring data according to an embodiment of the present disclosure;
FIG. 4B schematically illustrates a flow chart of a method of acquiring data according to another embodiment of the present disclosure;
FIG. 4C schematically illustrates a flow chart of a method of acquiring data according to another embodiment of the present disclosure;
FIG. 4D schematically illustrates a flow chart of a multi-lingual document management method according to another embodiment of the present disclosure;
FIG. 4E schematically illustrates a flow chart of a multi-lingual document management method according to another embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of an interactive visualization form according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a multilingual document management apparatus according to an embodiment of the present disclosure; and
FIG. 7 schematically illustrates a block diagram of an electronic device suitable for implementing a multilingual document management apparatus according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a multi-language document management method and device. The method comprises the following steps: firstly, a source file of a plurality of language documents is obtained, and the source file of each language document records the contained instructions and the language documents corresponding to the instructions in the form of source codes. And generating an interactive visual object based on the instruction and the language pattern corresponding to the instruction. The data record of the interactive visual object is in the form of an instruction corresponding to at least one language case.
FIG. 1 schematically illustrates an exemplary system architecture 100 to which the multi-lingual document management methods and apparatus may be applied, according to an embodiment of the disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired and/or wireless communication links, and so forth.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, and/or social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the multilingual document management method provided by the embodiments of the present disclosure can be generally executed by the server 105. Accordingly, the multilingual document management apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The multilingual document management method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the multilingual document management apparatus provided in the embodiments of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Alternatively, the multilingual document management method provided by the embodiment of the present disclosure may also be executed by the terminal device 101, 102, or 103, or may also be executed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the multilingual document management apparatus provided in the embodiment of the present disclosure may also be disposed in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103.
For example, the multilingual script may be originally stored in any one of the terminal apparatuses 101, 102, or 103 (e.g., the terminal apparatus 101, but not limited thereto), or stored on an external storage device and may be imported into the terminal apparatus 101. Then, the terminal device 101 may locally execute the multilingual document management method provided by the embodiment of the present disclosure, or send the multilingual document to another terminal device, a server, or a server cluster, and execute the multilingual document management method provided by the embodiment of the present disclosure by another terminal device, a server, or a server cluster that receives the multilingual document.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically illustrates an application scenario of the multilingual document management method and apparatus according to an embodiment of the present disclosure.
As shown in fig. 2, for each application program that can be used for different countries, the project file of the application program contains a language folder, i.e., Assets folder. The Assets folder contains a plurality of localized string.strings files, each containing a type of language document. The types of language copy include, but are not limited to, simplified Chinese, traditional Chinese, English, Thai, and the like. Strings files enable applications to switch among different types of languages.
Commonly, language documents are stored in the localized string.strings file in the form of key-value. Wherein, key represents the instruction executed by the application program, and value represents the translation of the instruction into various types of language documents. For example, when a developer inputs "key 1" in development code of an application, the application in the terminal is displayed as "value 1" in a chinese environment and "value 1" in an english environment. When the developer inputs "key 2" in the development code of the application program, the application program in the terminal is displayed as "value 2" in the chinese environment, is displayed as "value 2" in the english environment, and the like, and similar examples are not described again.
FIG. 3 schematically illustrates a flow chart of a multi-lingual document management method according to an embodiment of the disclosure.
As shown in fig. 3, the method includes operations S201 to S202.
In operation S201, a source file of a plurality of language documents is obtained, where the source file of each language document includes an instruction and a language document corresponding to the instruction.
In operation S202, an interactive visual object is generated based on the instructions and the language documents corresponding to the instructions, and a data record of the interactive visual object is in a form that one instruction corresponds to at least one language document.
In the disclosed embodiment, the source file for the multilingual documentation is a localized string.strings file for each type of language documentation. Strings files are stored in the engineering files of the application. For example, for iOS project files, scanning the iOS project files obtains an Assets folder for holding multiple language documents, the Assets folder having a string subfolder that contains a plurality of source files of different types of language documents, i.e., localized string. The language type of the source file indicates the language type supported by the application program, for example, if the string subfolder contains a source file in simplified chinese, a source file in traditional chinese, and a source file in english, the language type of the source file indicates that the language support of the application program is switched among simplified chinese, traditional chinese, and english.
Specifically, the source code of each source file records the correspondence between the instructions executed by the application program and the language file. For example, when the instruction is "FS _ search", the language file of simplified chinese corresponding to the instruction is recorded as "search" in the source file of simplified chinese; and recording an English language case corresponding to the instruction as 'search' in the English source file. For another example, when the instruction is "FS _ noMoreGoods", the language file of the simplified chinese corresponding to the instruction is recorded in the source file of the chinese simplified as "sorry, and there are no more commodities to be done-"; recording the English language file corresponding to the command as "No More Results! ". When the instruction is 'FS _ terminate', recording a language file of simplified Chinese corresponding to the instruction as 'determination' in a source file of the Chinese simplified; and recording the English language file corresponding to the instruction as 'OK' in the English source file.
The interactive visualization object is a visualization object capable of performing human-computer interaction, and specifically includes an interactive visualization form, an interactive visualization image or an interactive visualization page. The operation of human-computer interaction includes, but is not limited to, directly modifying data in the visualization object, or directly deleting/adding data in the visualization object, or finding data in the visualization object, and so on. The developer may perform an operation on the interactive visualization object to modify information associated with the visualization object. Compared with a source file, when data (instructions and corresponding files) are edited in the interactive visual object, the visual object can directly display the editing result. In the source file, a developer can only manually add instructions and corresponding files into the source file of each language file one by one, so that the efficiency is low, errors are easy to occur, and a modification result can be obtained after the source file is compiled to confirm whether the modification content is correct or not.
In the implementation of the present disclosure, the data record of the interactive visual object is in the form of one instruction corresponding to at least one language file. Specifically, the instructions contained in the source files of all the language documents and the corresponding language documents are classified, common instructions contained in all the source files are screened out, and the language documents corresponding to the common instructions in different source files are counted. In general, each source file contains instructions that are identical, provided that the content in the source file of the language file is not missing. In the interactive visual object, a data recording mode that an instruction corresponds to at least one language file is adopted to record the instruction and the corresponding language file, namely, a language file contained in at least one source file corresponding to a common instruction is recorded.
For example, when the instruction is "FS _ search", the language file of simplified chinese corresponding to the instruction is recorded as "search" in the source file of simplified chinese; and recording an English language case corresponding to the instruction as 'search' in the English source file. The data records in the interactive visualization object are in the form "FS _ search" corresponding to "search" and "search".
Specific recording forms include, but are not limited to, the following:
"FS _ search": "search"; "search"; or
"FS _ search" — search "; "search".
By the embodiment of the disclosure, the source files of the plurality of language documents are converted into the visual objects, that is, the instructions and the corresponding language documents are converted into the representation forms of the visual objects from the source code forms. The developer can manage and edit the multilingual file through the visual object. In the interactive visual object, a developer can directly edit data recorded by the interactive visual object according to actual requirements. According to the implementation of the disclosure, the interactive visualization object adopts a data recording mode that one instruction corresponds to at least one language file, so that a developer can clearly check each instruction and the language file of the corresponding different source file when editing the language file. And furthermore, the multi-language file can be quickly edited, and meanwhile, the interactive visual object has direct editability, so that the maintenance of the multi-language file can be conveniently realized.
The method shown in fig. 3 is further described with reference to fig. 4A-4E in conjunction with specific embodiments.
FIG. 4A schematically illustrates a flow chart of a method of acquiring data according to an embodiment of the disclosure.
As shown in fig. 4A, in operation S202, an interactive visual object is generated based on an instruction and a language pattern corresponding to the instruction, including operations S301 to S302.
In operation S301, a target template is selected, the target template including configuration rules of the interactive visualization object.
In operation S302, the instruction and the language pattern corresponding to the instruction are input to the designated position of the target template based on the configuration rule, and an interactive visualization object is generated.
In the embodiment of the present disclosure, the target template is a preset template of an interactive visualization object. The template includes configuration rules that contain interactive visualization objects, including, but not limited to, configuration elements contained by the visualization objects and configuration styles of the visualization objects. Specifically, the configuration style includes a distribution position of the data elements in the visualization object, the number of the data elements in the visualization object, an operation interface style of the visualization object, and the like.
Specifically, the configuration rule specifies the distribution position of the data elements in the visual object, and the instruction and the language file corresponding to the instruction are input to the specified position of the target template according to the configuration rule of the target template, so that the data record form of the generated interactive visual object is that one instruction corresponds to at least one language file. The developer can directly and clearly obtain the corresponding relation between each instruction and the language file according to the generated interactive visual object, and the developer can conveniently manage the multilingual file.
Fig. 4B schematically illustrates a flow chart of a method of acquiring data according to another embodiment of the present disclosure.
As shown in fig. 4B, generating an interactive visualization object based on the instruction and the language pattern corresponding to the instruction includes operations S303 to S304.
In operation S303, a target template is selected, and a preset key is input at a first preset position of the target template.
In operation S304, values in all the key-values are respectively input to a second preset position, and an interactive visualization object is generated, where a key corresponding to the value input at the second preset position is the same as the preset key, and a data record form of the interactive visualization object is that one key corresponds to at least one value.
In the embodiment of the disclosure, the language file corresponding to the instruction is stored in the source file of the language file in the form of key-value. Key-values of the language documents corresponding to the instructions are obtained in the source files of the plurality of language documents acquired in operation S201. Understandably, the instruction is a key, and the language document corresponding to the instruction is the value of the key-value. In general, each source file contains instructions that are identical, provided that the content in the source file of the language file is not missing. Therefore, the specific contents of the source file records of the language file are that the same key respectively corresponds to different values.
And inputting a preset key at the first preset position in the selected target template. The preset key may be set according to the related information of the source file of the history language document. The method can acquire a plurality of historical keys according to a source file of the historical language file, and inputs the historical keys into a target template in advance as preset keys. Through setting up preset key in advance, simplify the process of generating interactive visual object, improve the operating efficiency.
And according to the preset key of the template, acquiring the key same as the preset key and different values corresponding to the key from the key-values, and inputting the values into a second preset position. The value of the second preset position and the key of the first preset position belong to the same key-value. The data record of the generated interactive visual object is in the form that one key corresponds to at least one value.
Understandably, the first preset position and the second preset position have a corresponding relationship. For example, the first preset position and the second preset position of each key-value are located in the same row or the same column of the visualization table, or in the same area of the visualization page. The embodiment does not specifically limit the corresponding form of the position relationship between the first preset position and the second preset position.
Fig. 4C schematically illustrates a flow chart of a method of acquiring data according to another embodiment of the present disclosure.
As shown in fig. 4C, generating an interactive visualization object based on the instruction and the language pattern corresponding to the instruction includes operations S305 to S306.
In operation S305, an initial interactive visual object is generated based on the instruction and the language pattern corresponding to the instruction.
In operation S306, the same instruction in the initial interactive visualization object is merged to generate an interactive visualization object, where the data record form of the interactive visualization object is that one instruction corresponds to at least one language filing.
In the embodiment of the present disclosure, the interactive visual object is generated by performing classification statistics on the instructions and the corresponding language patterns contained in all the source files. In particular, the interactive visualization object may be an interactive visualization form. And generating an initial interactive visual form according to the instruction and the language pattern corresponding to the instruction. For example, the first column records all instructions and the second column records language documentation. Wherein, the instruction and the corresponding language file are recorded in the same line.
In general, each source file contains instructions that are identical, provided that the content in the source file of the language file is not missing. Therefore, the first column of the interactive visualization table has a plurality of same instructions, so that in order to facilitate the developers to search and edit multilingual documents, the same instructions in the initial interactive visualization objects are merged to generate the interactive visualization objects. The data record of the interactive visual object is in the form of an instruction corresponding to at least one language case.
Through the implementation of the method, the instructions and the corresponding language documents contained in all the source files are counted, all the instructions and the corresponding language documents are generated into the initial interactive visual objects, the initial interactive visual objects are further simplified, and all the configuration elements (the instructions and the language documents) can be prevented from being omitted or lost.
FIG. 4D schematically illustrates a flow chart of a method of multilingual document management according to another embodiment of the present disclosure.
As shown in fig. 4D, the method further includes operations S307 to S309.
In operation S307, it is determined whether the mapping relationship between each instruction in the interactive visualization object and the language pattern corresponding to the instruction satisfies a first preset condition.
In operation S308, if the mapping relationship between the instruction and the language pattern corresponding to the instruction satisfies a first preset condition, exception information is generated.
In operation S309, exception information is marked for the instruction in the interactive visualization object.
In an embodiment of the present disclosure, to further improve the functionality of interactive visualization objects. And distinguishing the generated interactive visual object, and marking out an instruction and a language case for recording the abnormity.
The first preset condition is the number of the language documents corresponding to the instruction, and the specific number is consistent with the number of the source files of the acquired language documents. For example, if the source files of the three language documents are obtained, the mapping relationship between the instructions and the language documents corresponding to the instructions in the interactive visualization object is generated, and the instructions have three corresponding language documents when the mapping relationship satisfies the first preset condition.
In general, each source file contains instructions that are identical, provided that the content in the source file of the language file is not missing. When the content of a certain source file is missing, the number of language documents corresponding to an instruction in the interactive visual object is less than that of the source files. In this case, the missing language documents are marked out, so that the developers can directly acquire the abnormal state of the language documents.
FIG. 4E schematically illustrates a flow chart of a method of multilingual document management according to another embodiment of the present disclosure.
As shown in fig. 4E, the method further includes operation S310.
In operation S310, the instruction and the language document are edited in response to an editing operation triggered by the user on the interactive visual object.
In embodiments of the present disclosure, developers implement multilingual document management in interactive visualization objects. Specifically, the missing language case can be directly added; or directly deleting problematic instructions and corresponding language documents by one key; or alternatively retrieve keys that have never been used in the interactive visualization object and delete keys that have never been used. Specifically, all the instructions are subjected to content matching search in all the code files of the project file, and the instructions which are never matched, namely the instructions which are never used, are obtained. The encoded file has common established suffix names such as.c,. swift,. m,. h, etc.
Specifically, when an editing operation such as modification or deletion is performed on a specific instruction or language document, a prompt message is sent to the user to confirm whether the operation is an erroneous operation. The prompt may be a pop-up message.
FIG. 5 schematically shows a schematic diagram of an interactive visualization form according to an embodiment of the present disclosure.
To further explain the application, an interactive visualization form is illustrated below.
It should be noted that the source file of the acquired language file includes a source file of a chinese simplified language file, a source file of an english language file, and a source file of a thai language file. The instruction and the corresponding language file are recorded in the form of key-value in the source file.
As shown in fig. 5, an interactive visual table is generated according to the instructions and the corresponding language documents contained in the source file of the chinese simplified language document, the source file of the english language document, and the source file of the thai language document. In the interactive visual table, each instruction corresponds to a three-language case. Wherein, the abnormal information of the Thai language file missing by the 'FS _ emptyHistory' instruction is marked.
The interactive visual form also provides functions such as searching, one-key deleting, finding a key for use in the code, and the like. The recorded keys and values can be directly modified in each cell, and a function of saving modification operations and a function of deleting keys and values are provided.
FIG. 6 schematically shows a block diagram of a multilingual document management apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the apparatus 400 includes an obtaining module 410 and a generating module 420.
The obtaining module 410 is configured to obtain a source file of a plurality of language documents, where the source file of each language document includes an instruction and a language document corresponding to the instruction.
The generating module 420 is configured to generate an interactive visualization object based on the instruction and the language document corresponding to the instruction, where a data record form of the interactive visualization object is that one instruction corresponds to at least one language document.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the obtaining module 410 and the generating module 420 may be combined and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the obtaining module 410 and the generating module 420 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the obtaining module 410 and the generating module 420 may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
It should be noted that the multilingual document management apparatus portion in the embodiment of the present disclosure corresponds to the multilingual document management method portion in the embodiment of the present disclosure, and the description of the multilingual document management apparatus portion specifically refers to the multilingual document management method portion, which is not described herein again.
Fig. 7 schematically shows a block diagram of an electronic device adapted to implement the above described method according to an embodiment of the present disclosure. The electronic device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the system 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, system 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The system 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A multi-language document management method, comprising:
obtaining a source file of a plurality of language documentations, wherein the source file of each language documentation comprises an instruction and a language documentation corresponding to the instruction;
and generating an interactive visual object based on the instruction and the language pattern corresponding to the instruction, wherein the data record form of the interactive visual object is that one instruction corresponds to at least one language pattern.
2. The method of claim 1, wherein generating an interactive visual object based on the instruction and the language document corresponding to the instruction, the interactive visual object having a data record in the form of one instruction corresponding to at least one language document comprises:
selecting a target template, wherein the target template comprises configuration rules of an interactive visual object;
inputting the instruction and the language pattern corresponding to the instruction to the specified position of the target template based on the configuration rule, and generating the interactive visual object;
the data record form of the interactive visual object is that one instruction corresponds to at least one language case.
3. The method of claim 2, wherein the language document corresponding to the instruction is stored in a source file of the language document in a key-value form, and the interactive visualization object is generated based on the instruction and the language document corresponding to the instruction, and a data record of the interactive visualization object is in a form of one instruction corresponding to at least one language document, and the method comprises the following steps:
selecting a target template, wherein a preset key is input at a first preset position of the target template;
and respectively inputting the values in all the key-values into a second preset position to generate an interactive visual object, wherein the key corresponding to the value input at the second preset position is the same as the preset key, and the data record form of the interactive visual object is that one key corresponds to at least one value.
4. The method of claim 1, wherein generating an interactive visual object based on the instruction and the language document corresponding to the instruction, the interactive visual object having a data record in the form of one instruction corresponding to at least one language document comprises:
generating an initial interactive visual object based on the instruction and the language pattern corresponding to the instruction;
and combining the same instructions in the initial interactive visual objects to generate the interactive visual objects, wherein the data record form of the interactive visual objects is that one instruction corresponds to at least one language case.
5. The method of claim 1, further comprising:
respectively judging whether the mapping relation between each instruction in the interactive visual object and the language pattern corresponding to the instruction meets a first preset condition;
if the mapping relation between the instruction and the language pattern corresponding to the instruction meets a first preset condition, generating abnormal information;
and marking the abnormal information for the instruction in the interactive visual object.
6. The method of claim 1, further comprising:
and editing the instruction and the language file in response to an editing operation triggered by a user on the interactive visual object.
7. The method of claim 1, wherein the interactive visualization object is an interactive visualization form.
8. A multilingual document management apparatus comprising:
the acquisition module is used for acquiring source files of a plurality of language documentations, and the source file of each language documentation comprises an instruction and a language documentation corresponding to the instruction;
and the generating module is used for generating an interactive visual object based on the instruction and the language pattern corresponding to the instruction, and the data record form of the interactive visual object is that one instruction corresponds to at least one language pattern.
9. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 7.
CN202110336920.0A 2021-03-29 2021-03-29 Multilingual document management method, device, electronic equipment and storage medium Pending CN113778434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110336920.0A CN113778434A (en) 2021-03-29 2021-03-29 Multilingual document management method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110336920.0A CN113778434A (en) 2021-03-29 2021-03-29 Multilingual document management method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113778434A true CN113778434A (en) 2021-12-10

Family

ID=78835542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110336920.0A Pending CN113778434A (en) 2021-03-29 2021-03-29 Multilingual document management method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113778434A (en)

Similar Documents

Publication Publication Date Title
US11656859B2 (en) Data model API for live applications in a cloud collaboration platform
WO2018095306A1 (en) Method and device for processing application program page, and storage medium
US9507480B1 (en) Interface optimization application
US9880989B1 (en) Document annotation service
US20170357486A1 (en) Enhancing a crowdsourced integrated development environment application
US9552214B2 (en) Tool for automated extraction and loading of configuration settings
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN104704468A (en) Cross system installation of WEB applications
US11418592B2 (en) Uploading user and system data from a source location to a destination location
US9588952B2 (en) Collaboratively reconstituting tables
CN105589959A (en) Form processing method and form processing system
CN111324833A (en) Page display method, device, electronic design and computer readable medium
CN112417899A (en) Character translation method, device, computer equipment and storage medium
CN110928571A (en) Business program development method and device
CN110688145A (en) Android MVP code automatic generation method, device, medium and electronic equipment
CN111126010A (en) Freemarker template file repairing method and device, computer equipment and storage medium
US8756520B2 (en) Individual information element access for unopened objects
CN111190905A (en) Database table processing method and device and electronic equipment
US9703848B2 (en) Caching linked queries for optimized compliance management
CN113778434A (en) Multilingual document management method, device, electronic equipment and storage medium
CN115640279A (en) Method and device for constructing data blood relationship
CN113886741A (en) Method for typesetting formula and related product
CN114253536A (en) Calling method of interface design component, terminal device and readable storage medium
CN113805877A (en) Project engineering construction method and device based on IDEA plug-in
US20150310123A1 (en) Rendering a web element in a web page

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination