Method and apparatus for inputting multilingual data in a software system
Patent Information
- Application Number
- CN202311089464.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2043-08-28
AI Technical Summary
[0003]本发明的目的在于提供一种软件系统中多语言数据的输入方法和装置,以缓解现有方法存在的数据录入效率低和影响系统性能的技术问题
[0014]本发明提供了一种软件系统中多语言数据的输入方法,该方法中,软件系统为每个多语言模式的输入组件配置了相应的语言种类切换图标,用户通过发送语言种类切换指令即可在一个输入组件中完成数据的多语言录入操作,并且,软件系统只有在接收到用户发送的保存指令之后,才统一将所有数据保存至指定数据库。因此,该方法能够有效地缓解现有方法存在的数据录入效率低和影响系统性能的技术问题。
Smart Images

Figure CN117193909B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method and apparatus for inputting multilingual data in a software system. Background Technology
[0002] In an internationally oriented software system, there are always scenarios involving the display and editing of text content, with business-meaning information input by the user. In this scenario, users often need to click a language switch icon at the top of the page to input data in different languages, and each time they switch languages, they need to save the data on the current page separately. In summary, to complete multilingual data input in a software system, existing solutions require users to perform multiple page switching operations, and the software system needs to perform multiple save operations, impacting both data entry efficiency and system performance. Summary of the Invention
[0003] The purpose of this invention is to provide a method and apparatus for inputting multilingual data in a software system, so as to alleviate the technical problems of low data input efficiency and impact on system performance in existing methods.
[0004] In a first aspect, the present invention provides a method for inputting multilingual data in a software system, comprising: acquiring configuration information of each input component within a system interactive interface; wherein the configuration information includes: a language display mode and a default input language; the language display mode includes one of the following: a single-language mode and a multilingual mode; when the language display mode of a target input component is determined to be a multilingual mode, controlling the language switching icon of the target input component to be displayed as the default input language identifier of the target input component; wherein the target input component represents any input component within the system interactive interface; determining the multilingual input data corresponding to the target input component based on a language switching command sent by the user for the target input component and the user's input data under each language; and receiving a save command sent by the user to uniformly save the input data of all input components to a specified database.
[0005] In an optional implementation, determining the multilingual input data corresponding to the target input component based on the user's language switching command sent to the target input component and the user's input data in each language category includes: if no language switching command is received from the user for the target input component, determining the current input language of the target input component as the default input language and receiving the user's input data in the current input language category; if a language switching command is received from the user for the target input component, displaying all language category icons corresponding to the target input component; updating the current input language of the target input component based on the user's selection operation of the language category icon, and receiving the user's input data in the updated current input language category; and using the user's input data in all languages as the multilingual input data corresponding to the target input component.
[0006] In an optional implementation, the method further includes: after determining that input data in a specified language has been received from the user, if a language switching instruction sent by the user for the target input component is received, then the input data in the specified language is displayed around the target input component.
[0007] In an optional implementation, the configuration information of the multilingual mode input component further includes: language translation features; the method further includes: after determining that input data from a user in a specified language is received, if the user updates the current input language of the target input component to the target language, then the input data in the specified language is displayed in the target input component after being translated into the target language.
[0008] In an optional implementation, before receiving the save instruction sent by the user, the method further includes: obtaining the input verification strategy of each input component in the system interface; wherein, the input verification strategy of the single-language mode input component includes one of the following: enabling mandatory field verification, disabling mandatory field verification; the input verification strategy of the multi-language mode input component includes one of the following: disabling mandatory field verification, enabling mandatory field verification for a specified language, enabling mandatory field verification for all languages; and verifying the input data of each input component based on the input verification strategy.
[0009] In an optional implementation, the method further includes: displaying the input data entry progress of each multilingual mode input component.
[0010] In an optional implementation, the user's selection of the language icon is determined based on a specified keyboard command.
[0011] Secondly, the present invention provides a multilingual data input device in a software system, comprising: a first acquisition module, configured to acquire configuration information of each input component within a system interactive interface; wherein the configuration information includes: a language display mode and a default input language; the language display mode includes one of the following: a single-language mode and a multilingual mode; a control module, configured to, when determining that the language display mode of a target input component is a multilingual mode, control the language switching icon of the target input component to be displayed as the default input language identifier of the target input component; wherein the target input component represents any input component within the system interactive interface; a determination module, configured to determine the multilingual input data corresponding to the target input component based on a language switching command sent by a user for the target input component and the user's input data under each language; and a receiving module, configured to receive a save command sent by a user to uniformly save the input data of all input components to a specified database.
[0012] Thirdly, the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the steps of the multilingual data input method in the software system described in any of the foregoing embodiments.
[0013] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the method for inputting multilingual data in the software system described in any of the foregoing embodiments.
[0014] This invention provides a method for inputting multilingual data in a software system. In this method, the software system configures a corresponding language switching icon for each multilingual input component. Users can complete multilingual data entry within a single input component by sending a language switching command. Furthermore, the software system only saves all data to a designated database after receiving a save command from the user. Therefore, this method effectively alleviates the technical problems of low data entry efficiency and impact on system performance inherent in existing methods. Attached Figure Description
[0015] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1This is a schematic diagram of a multilingual data input interface in an existing software system.
[0017] Figure 2 A flowchart illustrating a method for inputting multilingual data in a software system, as provided in an embodiment of the present invention;
[0018] Figure 3 A schematic diagram of a target input component input interface provided in an embodiment of the present invention;
[0019] Figure 4 This is a schematic diagram of an optional target input component data entry process provided in an embodiment of the present invention;
[0020] Figure 5 This is a schematic diagram illustrating the data input process of a target input component with language translation capabilities, provided in an embodiment of the present invention.
[0021] Figure 6 A schematic diagram illustrating the enabled mandatory field verification in a single-language mode input component according to an embodiment of the present invention;
[0022] Figure 7 A schematic diagram illustrating the disabling of required field verification in a single-language mode input component according to an embodiment of the present invention;
[0023] Figure 8 A schematic diagram illustrating the disabling of required field verification in a multilingual mode input component according to an embodiment of the present invention;
[0024] Figure 9 A schematic diagram illustrating the enabled mandatory field verification for a multilingual input component according to an embodiment of the present invention;
[0025] Figure 10 A functional block diagram of a multilingual data input device in a software system provided by an embodiment of the present invention;
[0026] Figure 11 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0028] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0029] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0030] Software systems that support multilingual data typically involve scenarios where text content is displayed and edited. In these scenarios, content with business meaning is input by the user. Figure 1 This is a schematic diagram of a multilingual data input interface in an existing software system, such as... Figure 1 As shown, in this input interface, users need to click the language switching icon at the top of the page to input data in various languages while entering text. Furthermore, each time a language is switched, the data on the current page needs to be saved separately. That is, during data entry, users need to perform multiple page switching operations, and the software system needs to simultaneously perform multiple save operations, resulting in low data entry efficiency and impacting software system performance. In view of this, this embodiment of the invention provides a method for inputting multilingual data in a software system to alleviate the technical problems mentioned above.
[0031] Example 1
[0032] Figure 2 A flowchart illustrating a method for inputting multilingual data in a software system, as provided in an embodiment of the present invention, is shown below. Figure 2 As shown, the method specifically includes the following steps:
[0033] Step S102: Obtain the configuration information of each input component in the system interactive interface.
[0034] Specifically, the basic attributes of the input component include: component visibility, whether the title is displayed, and event registration information. These basic attributes are common configurations for input components within a page, and this embodiment of the invention does not specifically limit them. Clearly, this embodiment of the invention is only applicable to data entry scenarios where the input component is visible and has a title.
[0035] After entering the system's interactive interface, the interface needs to display information based on the basic attributes and configuration information of each input component. Input components are those that require user input of business content, such as input boxes on the system's interactive page. The configuration information for input components includes: language display mode and default input language. Language display mode includes one of the following: single-language mode or multi-language mode. In other words, input components can be divided into single-language mode input components and multi-language mode input components. A single-language mode input component indicates that it only supports text input in its default input language; an input component with only numbers as input is a single-language input component. A multi-language mode input component indicates that it supports text input in multiple languages.
[0036] Step S104: If the language display mode of the target input component is determined to be multilingual mode, control the language switching icon of the target input component to be displayed as the default input language identifier of the target input component.
[0037] The target input component refers to any input component within the system's interactive interface.
[0038] In this embodiment of the invention, a language switching icon is provided around each multilingual input component, while no language switching icon is required around a single-language input component. Optionally, a language switching icon is provided before the text box of each multilingual input component. By default, the language switching icon of the target input component displays the default input language identifier of the target input component, thereby prompting the user to enter input data in that language.
[0039] Assuming the target input component supports three languages, A, B, and C, and its default input language is configured as B, then the language switching icon for the target input component will display the B language identifier. In this embodiment of the invention, the default input language of the input component can be set to follow the language of the system interaction page, or it can be set to a specific language, which the user can configure according to actual needs.
[0040] Step S106: Based on the language switching command sent by the user to the target input component and the user's input data in each language, determine the multilingual input data corresponding to the target input component.
[0041] Users can send a language switching command by clicking the language switching icon of the target input component. Based on this command, users can switch the current input language of the target input component and then enter the corresponding input data in each language, thereby completing the multilingual input data entry for the target input component. For single-language input components, users can directly enter data. Compared with the existing technology of switching the language of the system interface and using input components on different pages to complete multilingual input data entry, the embodiments of the present invention can complete multilingual data entry operations within a single input component, avoiding the repeated entry of input data from single-language input components on multiple pages, optimizing the data entry process, and improving data entry efficiency.
[0042] Step S108: Receive the save command sent by the user to save the input data of all input components to the specified database.
[0043] Specifically, after data entry is completed, a unified input result can be returned to the user through the component's value attribute. When the user saves the data, multilingual data is simultaneously updated to the designated database. Compared with saving input data in different languages multiple times within the system's interactive interface, this embodiment of the invention can effectively reduce system resource consumption and optimize system performance.
[0044] This invention provides a method for inputting multilingual data in a software system. In this method, the software system configures a corresponding language switching icon for each multilingual input component. Users can complete multilingual data entry within a single input component by sending a language switching command. Furthermore, the software system only saves all data to a designated database after receiving a save command from the user. Therefore, this method effectively alleviates the technical problems of low data entry efficiency and impact on system performance inherent in existing methods.
[0045] In an optional implementation, step S106 above, based on the language switching command sent by the user to the target input component and the user's input data in each language, determines the multilingual input data corresponding to the target input component, specifically including the following steps:
[0046] Step S1061: If no language switching instruction is received from the user for the target input component, determine that the current input language of the target input component is the default input language, and receive the user's input data in the current input language.
[0047] Step S1062: Upon receiving a language switching instruction from the user for the target input component, display all language icons corresponding to the target input component.
[0048] Step S1063: Update the current input language of the target input component based on the user's selection of the language icon, and receive the user's input data under the updated current input language.
[0049] Step S1064: Use the user's input data in all languages as the multilingual input data corresponding to the target input component.
[0050] Specifically, such as Figure 3 As shown, when a user needs to enter data into a target input component in multilingual mode, if no language switch is performed, the current input language of the target input component is the default input language, and the user can directly enter input data in the default language. If the user clicks the language switch icon of the target input component to send a language switch command, the system interface will display all language icons corresponding to the target input component. These language icons will be displayed horizontally above the input position of the target input component in a floating manner. For example, assuming the target input component supports languages A, B, and C, the system interface will display the icons for languages A, B, and C when a language switch command is received for the target input component.
[0051] Users will select a language icon based on the interface. After selection, the system updates the selected language to the current input language of the target input component, and then receives input data from the user in the updated current input language. Users can complete the multilingual input data entry for the target input component by switching languages multiple times.
[0052] In this embodiment of the invention, users can select the language icon by clicking with a mouse. However, considering the continuity of input operations, the user's selection of the language icon can also be determined based on specified keyboard commands. For example, it supports quick selection of the language using the up and down arrow keys on the keyboard, thereby enabling full keyboard operation throughout the data entry process and effectively improving input efficiency.
[0053] In an optional implementation, the method of the present invention further includes the following:
[0054] After confirming that input data in the specified language has been received from the user, if a language switching command is received from the user for the target input component, the input data in the specified language will be displayed around the target input component.
[0055] In this embodiment of the invention, to facilitate multilingual input of content with the same semantic meaning, a designated language can be set as the primary language. The primary language represents the preferred language used in the business. Information entered by the user in the primary language can serve as a reference when entering information in other languages. Therefore, if it is determined that input data in the designated language has been received, when a language switching command is received again from the user for the target input component, the interactive interface will display the input data in the designated language around the target input component. The display position may be, for example, behind / below the target input component, or displayed as a floating floating box. This provides a reference for the user's data entry in other languages.
[0056] refer to Figure 4 For example, if the primary language of the target input component is English, and the information entered by the user in the primary language is "zhangsan", then when the user sends a language switching command for the target input component, "zhangsan" can be used as a reference for information entry in Traditional / Simplified Chinese. Optionally, after data is entered in a certain language, a completion indicator, such as "√", can be displayed below the icon of that language.
[0057] This embodiment of the invention does not specifically limit the order of language data entry for the multilingual input component. Users can set it according to their actual needs. If the main language is not the first entry order, then there is no reference content for the languages preceding the main language when entering data.
[0058] In an optional implementation, the configuration information of the multilingual mode input component further includes: language translation features; the method of the present invention also includes the following:
[0059] After confirming that the user has received input data in the specified language, if the user updates the current input language of the target input component to the target language, the input data in the specified language will be displayed in the target input component after being translated into the target language.
[0060] In this embodiment of the invention, the configuration information of the multilingual mode input component can also be configured with language translation features. When the input component with language translation features is enabled, after confirming that the user's input data (i.e., the main language content) in the specified language is received, if the user switches to the target language (any non-specified language), the software system will automatically translate the main language content into the target language data through the translation function and fill it into the target language input data. The user can complete the data entry in the target language by performing a simple calibration of the automatically translated content, thereby improving translation efficiency.
[0061] Language translation features can be enabled before or during data input. (See reference) Figure 5 In the example above, if the primary language of the target input component is Simplified Chinese and the input data is "apple", if the user switches to English and the input component has not yet enabled the language translation feature, the software system will prompt the user with a shortcut key to perform the translation, such as "Ctrl+T". If the system detects the shortcut key, it will translate the primary language content "apple" into the English "apple" and automatically fill it into the input box of the target input component.
[0062] In an optional implementation, before receiving the save instruction sent by the user, the method of the present invention further includes the following steps:
[0063] Step S201: Obtain the input validation strategy for each input component in the system interactive interface.
[0064] The input validation strategy for the single-language mode input component includes one of the following: enable required field validation, disable required field validation; the input validation strategy for the multi-language mode input component includes one of the following: disable required field validation, enable required field validation for a specified language, enable required field validation for all languages.
[0065] Step S202: Validate the input data of each input component based on the input validation strategy.
[0066] Specifically, the single-language input component needs to validate the input data based on whether required field validation is enabled. (See reference...) Figure 6 If the input validation policy of a certain monolingual mode input component is enabled for required fields, then if no content is entered in the input component, the validation result is determined to be unsuccessful, and the input component is controlled to prompt the user in a specified way (e.g., highlighting with a red border, flashing the border, displaying the text prompt "Required field cannot be empty", or a combination of the above methods); if there is input data in the input component, the validation result is determined to be successful.
[0067] refer to Figure 7 If the input validation policy of a certain monolingual mode input component is to disable required field validation, then when validating the input data of that input component, the validation result will be passed regardless of whether there is any input data.
[0068] The principle behind disabling required field validation in multilingual input components is the same as that in single-language input components; please refer to [the relevant documentation]. Figure 8The diagram is not repeated here. However, the input validation strategy of the multilingual input component is specifically divided into two cases when mandatory field validation is enabled: enabling mandatory field validation for a specified language, and enabling mandatory field validation for all languages.
[0069] refer to Figure 9 If the input validation policy of the multilingual input component is to enable mandatory validation for a specified language, then it means that only the existence of input data in the specified language will be validated. If there is no input data in the specified language, the validation result will be determined as failed, and the input component will prompt the user in a specified manner. If the input component has input data in the specified language, the validation result will be determined as passed.
[0070] If the input validation strategy of the multilingual input component is to enable mandatory validation for all languages, it means that it is necessary to verify whether there is input data in all languages. If there is no input data in at least one language, the validation result is determined to be unsuccessful; only when there is input data in all languages is the validation result determined to be successful.
[0071] To improve the user's data entry experience, in an optional implementation, the method of the present invention further includes: displaying the input data entry progress of each multilingual mode input component. For example, during the entire input interaction process, the language switching icon in front of the multilingual mode input component will have a circular badge. This badge will simultaneously display different indicator colors according to the input data entry status. For example, when there is input information in some languages, the circular badge will turn orange, and when there is input information in all languages, the circular badge will turn green.
[0072] The multilingual data input method in the software system provided by this invention enables the input of multilingual content through a single input component. It also supports functions such as content reference, automatic translation, shortcut key operation, and input progress display. Furthermore, it exchanges data with external systems through a unified return value, thereby improving the efficiency of multilingual data input in the software system.
[0073] Example 2
[0074] This invention also provides a multilingual data input device in a software system. This device is mainly used to execute the multilingual data input method in the software system provided in Embodiment 1 above. The device provided in this invention will be described in detail below.
[0075] Figure 10 This is a functional block diagram of a multilingual data input device in a software system provided by an embodiment of the present invention, such as... Figure 10As shown, the device mainly includes: a first acquisition module 10, a control module 20, a determination module 30, and a receiving module 40, wherein:
[0076] The first acquisition module 10 is used to acquire the configuration information of each input component in the system interactive interface; wherein, the configuration information includes: language display mode and default input language; the language display mode includes one of the following: single language mode and multi-language mode.
[0077] The control module 20 is used to control the language switching icon of the target input component to be displayed as the default input language identifier of the target input component when the language display mode of the target input component is determined to be multilingual mode; wherein, the target input component refers to any input component in the system interactive interface.
[0078] The determination module 30 is used to determine the multilingual input data corresponding to the target input component based on the language switching command sent by the user for the target input component and the user's input data in each language.
[0079] The receiving module 40 is used to receive the save command sent by the user, so as to save the input data of all input components to the specified database.
[0080] This invention provides a multilingual data input device for a software system. In this device, the software system configures a corresponding language switching icon for each multilingual input component. Users can complete multilingual data entry within a single input component by sending a language switching command. Furthermore, the software system only saves all data to a designated database after receiving a save command from the user. Therefore, this invention effectively alleviates the technical problems of low data entry efficiency and impact on system performance inherent in existing methods.
[0081] Optionally, module 30 is specifically used for:
[0082] If no language switching instruction is received from the user for the target input component, the current input language of the target input component is determined to be the default input language, and the user's input data in the current input language is received.
[0083] Upon receiving a language switching command from the user for the target input component, display all language icons corresponding to the target input component.
[0084] The target input component updates its current input language based on the user's selection of the language icon, and receives the user's input data under the updated current input language.
[0085] Use user input data in all languages as the multilingual input data for the target input component.
[0086] Optionally, the device further includes:
[0087] The first display module is used to display the input data in the specified language around the target input component after determining that the user's input data in the specified language has been received, and if the user sends a language switching command for the target input component, the input data in the specified language is then displayed around the target input component.
[0088] Optionally, the configuration information for the multilingual input component also includes: language translation features; the device also includes:
[0089] The second display module is used to display, after determining that the input data in the specified language has been received from the user, the data translated into the target language within the target input component if the user updates the current input language of the target input component to the target language.
[0090] Optionally, the device further includes:
[0091] The second acquisition module is used to acquire the input verification strategy of each input component in the system interaction interface; wherein, the input verification strategy of the single-language mode input component includes one of the following: enable required field verification, disable required field verification; the input verification strategy of the multi-language mode input component includes one of the following: disable required field verification, enable required field verification for a specified language, enable required field verification for all languages.
[0092] The validation module is used to validate the input data of each input component based on the input validation strategy.
[0093] Optionally, the device further includes:
[0094] The third display module is used to display the input data entry progress of each multilingual mode input component.
[0095] Optionally, the user's selection of the language icon can be determined based on specified keyboard commands.
[0096] Example 3
[0097] See Figure 11 This invention provides an electronic device, which includes a processor 60, a memory 61, a bus 62, and a communication interface 63. The processor 60, the communication interface 63, and the memory 61 are connected via the bus 62. The processor 60 is used to execute executable modules, such as computer programs, stored in the memory 61.
[0098] The memory 61 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 63 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.
[0099] Bus 62 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0100] The memory 61 is used to store programs. After receiving an execution instruction, the processor 60 executes the program. The method executed by the apparatus defined by the process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 60 or implemented by the processor 60.
[0101] Processor 60 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 60 or by instructions in software form. Processor 60 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 61. Processor 60 reads the information in memory 61 and, in conjunction with its hardware, completes the steps of the above method.
[0102] The computer program product of the multilingual data input method and apparatus in a software system provided by the embodiments of the present invention includes a computer-readable storage medium storing non-volatile program code executable by a processor. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0103] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0104] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0105] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0106] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship commonly used when the product of this invention is in use. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this invention. In addition, the terms "first," "second," "third," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0107] Furthermore, terms such as "horizontal," "vertical," and "sag" do not imply that components must be absolutely horizontal or suspended, but rather that they can be slightly tilted. For example, "horizontal" simply means that its direction is more horizontal relative to "vertical," and does not mean that the structure must be completely horizontal, but can be slightly tilted.
[0108] In the description of this invention, it should also be noted that, unless otherwise explicitly specified and limited, the terms "set," "install," "connect," and "link" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for inputting multilingual data in a software system, characterized in that, include: Obtain the configuration information of each input component within the system's interactive interface; wherein, the configuration information includes: language display mode and default input language; the language display mode includes one of the following: single-language mode, multi-language mode; When the language display mode of the target input component is determined to be multilingual mode, the language switching icon of the target input component is controlled to be displayed as the default input language identifier of the target input component; wherein, the target input component refers to any input component within the system interface; Based on the language switching command sent by the user to the target input component and the user's input data in each language, determine the multilingual input data corresponding to the target input component; Receive the save command sent by the user to save the input data of all input components to the specified database.
2. The method for inputting multilingual data in a software system according to claim 1, characterized in that, Based on the user's language switching command sent to the target input component and the user's input data in each language, the multilingual input data corresponding to the target input component is determined, including: If no language switching instruction is received from the user for the target input component, the current input language of the target input component is determined to be the default input language, and the user's input data under the current input language is received; Upon receiving a language switching command from a user for the target input component, all language icons corresponding to the target input component are displayed; The target input component updates its current input language based on the user's selection of the language icon, and receives the user's input data under the updated current input language. The user's input data in all languages is used as the multilingual input data corresponding to the target input component.
3. The method for inputting multilingual data in a software system according to claim 2, characterized in that, The method further includes: After confirming that input data in the specified language has been received from the user, if a language switching instruction sent by the user for the target input component is received, the input data in the specified language will be displayed around the target input component.
4. The method for inputting multilingual data in a software system according to claim 2, characterized in that, The configuration information for the multilingual input component also includes: language translation features; the method further includes: After confirming that input data in the specified language has been received from the user, if the user updates the current input language of the target input component to the target language, the input data in the specified language will be translated into the target language and displayed in the target input component.
5. The method for inputting multilingual data in a software system according to claim 1, characterized in that, Before receiving the save command sent by the user, the method further includes: Obtain the input verification strategy for each input component within the system's interactive interface; wherein, the input verification strategy for a single-language mode input component includes one of the following: enable mandatory field verification, disable mandatory field verification; the input verification strategy for a multi-language mode input component includes one of the following: disable mandatory field verification, enable mandatory field verification for a specified language, enable mandatory field verification for all languages. The input data of each input component is validated based on the input validation strategy.
6. The method for inputting multilingual data in a software system according to claim 1, characterized in that, The method further includes: Displays the input data entry progress for each multilingual input component.
7. The method for inputting multilingual data in a software system according to claim 2, characterized in that, The user's selection of the language icon is determined based on specified keyboard commands.
8. A multilingual data input device in a software system, characterized in that, include: The first acquisition module is used to acquire configuration information of each input component in the system interactive interface; wherein, the configuration information includes: language display mode and default input language; the language display mode includes one of the following: single language mode and multi-language mode; The control module is used to control the language switching icon of the target input component to be displayed as the default input language identifier of the target input component when it is determined that the language display mode of the target input component is a multilingual mode; wherein, the target input component refers to any input component within the system interface; The determination module is used to determine the multilingual input data corresponding to the target input component based on the language switching command sent by the user for the target input component and the user's input data in each language. The receiving module is used to receive the save command sent by the user, so as to save the input data of all input components to the specified database.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the step of the method for inputting multilingual data in the software system according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for inputting multilingual data in the software system according to any one of claims 1 to 7.
Citation Information
Patent Citations
Switching of a self-adaptive input language
CN102929505A
Multi-language environment automatic switching method and system based on Windows system
CN103389854A