One-stop multilingual revision method, system and computer device

CN120704778BActive Publication Date: 2026-09-15HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510702942.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2026-09-15
Estimated Expiration
2045-05-28

AI Technical Summary

Technical Problem

[0003]然而,这种策略也带来了一个问题:如果需要修改页面上的多语言内容,必须先通过用户确认对应的应用信息,然后联系开发人员确认所属业务和多语言文本,才能定位到具体的多语言包并进行修改,从而导致修改过程非常繁琐,效率低下

Benefits of technology

[0044] In summary, the one-stop method, system, and computer device for modifying multiple languages ​​provided in this application generate multilingual content containing original multilingual text and location metadata on the server side. The location metadata in the multilingual content is used to locate the original multilingual text. The multilingual content is sent to the client, and the location metadata is bound to the client's UI control. The user edits the target control to be modified in the user interface. The server locates the original multilingual text of the control based on the location metadata bound to the target control and replaces it, thereby achieving rapid replacement of the original multilingual text and improving modification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704778B_ABST
    Figure CN120704778B_ABST
Patent Text Reader

Abstract

The application discloses a one-stop multilingual modification method, system and computer device, the method is applied to a multilingual system, the multilingual system comprises a client and a server, the method comprises the following steps: the server generates multilingual content and sends the multilingual content to the client, the multilingual content comprises original multilingual text and positioning metadata; in response to an activation instruction, a text editing box is provided in a current user interface for receiving user modification of the original multilingual text; the client determines modified UI controls, and determines target positioning metadata bound to the controls; the client binds the positioning metadata to the UI controls in the client in advance; the client submits the target positioning metadata and the modified original multilingual text to the server; and the server positions the original multilingual text based on the target positioning metadata and replaces the original multilingual text with the modified original multilingual text. The application can realize quick replacement of original multilingual text of target controls and improve modification efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multilingual processing, and in particular to a one-stop multilingual modification method, system, and computer device. Background Technology

[0002] In multilingual systems, different users have different needs for multilingual content. Furthermore, there are complex scenarios such as different sub-businesses and customized services. To address these situations more flexibly, a strategy of providing multilingual packages based on different users, different businesses, and different scenarios was adopted.

[0003] However, this strategy also brings a problem: if multilingual content on a page needs to be modified, the user must first confirm the corresponding application information, and then the developers must be contacted to confirm the relevant business and multilingual text before the specific multilingual package can be located and modified. This makes the modification process very cumbersome and inefficient. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this application adopts the following technical solution:

[0005] Firstly, this application provides a one-stop multilingual modification method, which is applied to a multilingual system, including a client and a server. The method includes:

[0006] The server generates multilingual content and sends it to the client. The multilingual content includes the original multilingual text and location metadata used to locate the original multilingual text.

[0007] In response to the debug mode activation command, the client provides a text edit box on the client's current user interface to receive user modifications to the original multilingual text;

[0008] The client identifies the UI control that modifies the current user interface, defines the UI control modified by the user as the target control, and determines the target location metadata bound to the target control; wherein, the client pre-binds the location metadata in the multilingual content to the UI control in the client.

[0009] The client submits the target location metadata and the modified original multilingual text to the server;

[0010] The server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text.

[0011] In one embodiment, the client pre-binds location metadata from the multilingual content to UI controls in the client, including:

[0012] Inject parsing instructions during the rendering phase;

[0013] In response to parsing instructions, locate metadata within multilingual content;

[0014] The location metadata is bound to the corresponding UI control through the associated object property and stored in the extended set of the UI control.

[0015] In one embodiment, the client determines the location of metadata within the multilingual content, including:

[0016] Receive data sent by the server and determine whether the data is multilingual content through a special format; the special format is at least one of the following: delimiter markup, structured header identifier, checksum association, and feature mapping;

[0017] If so, parse the delimiters in the multilingual content and determine the location metadata in the multilingual content based on the delimiters.

[0018] In one embodiment, the client determines the location of metadata within the multilingual content, further including:

[0019] By parsing the delimiters in the multilingual content, and determining the location metadata and the original multilingual text, the location metadata is hidden, the original multilingual text is set to be displayed in the UI control, and the location metadata is set to not be displayed in the UI control.

[0020] In one embodiment, the client injects parsing instructions during the rendering phase, including:

[0021] Intercept page rendering requests;

[0022] Capture text setting operations on UI controls;

[0023] Once the text setting operation of the UI control is captured, a parsing instruction is issued.

[0024] In one embodiment, a text edit box is provided on the client's current user interface for receiving user modifications to the original multilingual text, including:

[0025] In response to the debug mode activation command, a visual user debug interface is generated; the user debug interface displays various UI controls and their corresponding original multilingual text.

[0026] The user debugging interface displays the location metadata corresponding to each UI control and provides a text editing box for receiving user modifications to the original multilingual text.

[0027] In one embodiment, the positioning metadata corresponding to each UI control is displayed on the user debugging interface, including:

[0028] Iterate through all UI controls in the user debugging interface;

[0029] Extract the bound location metadata based on all UI controls in the current user interface;

[0030] The user debugging interface displays the location metadata bound to each UI control.

[0031] In one embodiment, the location metadata includes at least a multilingual key-value identifier, a service affiliation identifier, a client group identifier, and contextual description information;

[0032] In this process, a delimiter is used to concatenate the original multilingual text with the location metadata in the multilingual content.

[0033] Secondly, this application also provides a one-stop multilingual modification system, which includes a client and a server.

[0034] The server generates multilingual content and sends it to the client. The multilingual content includes the original multilingual text and location metadata used to locate the original multilingual text.

[0035] In response to the debug mode activation command, the client provides a text edit box on the client's current user interface to receive user modifications to the original multilingual text;

[0036] The client identifies the UI control that modifies the current user interface, defines the UI control modified by the user as the target control, and determines the target location metadata bound to the target control; wherein, the client pre-binds the location metadata in the multilingual content to the UI control in the client.

[0037] The client submits the target location metadata and the modified original multilingual text to the server;

[0038] The server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text.

[0039] Thirdly, this application also provides a computer device, including a memory, a processor, and a display, wherein the memory stores a computer program;

[0040] The processor receives multilingual content sent by the server. The multilingual content includes the original multilingual text and location metadata used to locate the original multilingual text.

[0041] The processor can also respond to debug mode activation commands by providing a text editing box on the current user interface of the display for receiving user modifications to the original multilingual text;

[0042] The processor can also identify the UI controls that modify the current user interface, define the UI controls modified by the user as target controls, and determine the target location metadata bound to the target controls; wherein, the processor pre-binds the location metadata in the multilingual content to the UI controls in the processor;

[0043] The processor can also submit the target location metadata and the modified original multilingual text to the server, so that the server can locate the original multilingual text based on the target location metadata and replace it with the modified original multilingual text.

[0044] In summary, the one-stop method, system, and computer device for modifying multiple languages ​​provided in this application generate multilingual content containing original multilingual text and location metadata on the server side. The location metadata in the multilingual content is used to locate the original multilingual text. The multilingual content is sent to the client, and the location metadata is bound to the client's UI control. The user edits the target control to be modified in the user interface. The server locates the original multilingual text of the control based on the location metadata bound to the target control and replaces it, thereby achieving rapid replacement of the original multilingual text and improving modification efficiency. Attached Figure Description

[0045] Figure 1 A schematic diagram illustrating the application of a one-stop multilingual modification method provided in one embodiment of this application to a multilingual system;

[0046] Figure 2 A flowchart illustrating the steps of a one-stop multilingual modification method provided in one embodiment of this application;

[0047] Figure 3 A flowchart illustrating the steps of receiving user modifications to original multilingual text in a one-stop multilingual editing method provided in an embodiment of this application;

[0048] Figure 4 A flowchart illustrating the steps of displaying the location metadata corresponding to each UI control in the user debugging interface in a one-stop multilingual modification method provided in one embodiment of this application;

[0049] Figure 5 A flowchart illustrating the steps of binding location metadata to UI controls in a one-stop multilingual modification method provided in one embodiment of this application;

[0050] Figure 6 A flowchart illustrating the steps of injecting parsing instructions during the rendering stage in a one-stop multilingual modification method provided in one embodiment of this application;

[0051] Figure 7 This is an internal structural diagram of a computer device provided in one embodiment of this application. Detailed Implementation

[0052] The present application will be described in detail below with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present application. Any structural, methodological, or functional modifications made by those skilled in the art based on these embodiments are included within the protection scope of the present application.

[0053] To address the shortcomings of existing technologies, this application provides a one-stop multilingual modification method. This method is applied to multilingual systems, such as... Figure 1 As shown, the multilingual system includes a client 101 and a server 102. The client 101 can be a computer or a mobile phone, and multiple clients or mobile phones can be included. The server 102 can include multiple servers. The server 102 and the client 101 can interact with each other through a communication network. 。 Users access the multilingual system through client 101. When a user needs to modify the original multilingual text on a portion of a page, client 101 sends a request signal to server 102. Server 102 responds to the request signal based on a one-stop multilingual modification method, thus quickly modifying the original multilingual text the user wants to edit. For example... Figure 2 As shown in the figure, this application embodiment provides a one-stop multilingual modification method including the following steps:

[0054] Step S101: The server generates multilingual content with additional location metadata based on the client request. The multilingual content includes the original multilingual text and location metadata used to locate the original multilingual text.

[0055] Specifically, the client sends a multilingual request to the server. The server queries the corresponding original multilingual text based on the received request and expands upon it to generate multilingual content containing location metadata. This location metadata is used to locate the original multilingual text. Optionally, the location metadata is located at the end of the original multilingual text and is concatenated with it using a specific format to form a structured string. For example, multilingual content without location metadata is: "Confirm|||KEY1"; multilingual content with location metadata is: "Confirm|||KEY1||_{business id}". By appending location metadata to the original multilingual text, the server ensures that subsequent location and modification operations can accurately match the specific multilingual entry without changing the original interface logic.

[0056] In step S102, in response to the debug mode activation command, the client provides a text editing box on the client's current user interface to receive user modifications to the original multilingual text.

[0057] Specifically, when a user triggers the debug mode activation command, it indicates that the user needs to modify the original multilingual text of the current page. The client generates a visual text edit box on the current user interface, allowing the user to intuitively input their modifications to the original multilingual text. Optionally, the text edit box can also be associated with a location metadata binding relationship to ensure that the user's modification target is clear.

[0058] In step S103, the client determines the UI control that modifies the current user interface, defines the UI control modified by the user as the target control, and determines the target location metadata bound to the target control; wherein, the client pre-binds the location metadata in the multilingual content to the UI control in the client.

[0059] Specifically, based on the multilingual content with additional location metadata generated by the server, the client uses a separator to split the content into the original multilingual text and location metadata. The client then binds the location metadata within the multilingual content to UI controls, displaying the original multilingual text on the client's UI controls based on the location metadata. Furthermore, when a user modifies the text of a control, the client quickly retrieves the location metadata through associated attributes, ensuring that the modification accurately maps to the corresponding multilingual entry on the server. Further, when a user modifies the text of a UI control in debug mode, the client uses event listeners to determine the UI control being modified in the current user interface and defines the modified UI control as the target control. After determining the target control, the client extracts the corresponding location metadata from the target control and defines this location metadata as the target location metadata.

[0060] In step S104, the client submits the target location metadata and the modified original multilingual text to the server.

[0061] Specifically, after determining the target control and its bound target location metadata, the client packages the target location metadata and the user-modified original multilingual text and sends them to the server for content updates. For example, if the user changes "OK" to "Confirm", the client extracts the target control's target location metadata and combines "Confirm" and the target location metadata into a string and sends it back to the server.

[0062] In step S105, the server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text.

[0063] Specifically, after receiving the target location metadata and the modified original multilingual text returned by the client, the server parses the target location metadata to extract key information for location, such as multilingual key-value identifiers and business affiliation identifiers, and determines the original multilingual text that needs to be modified. After locating the original multilingual text that needs modification, the server replaces the original multilingual text with the user's modified original multilingual text and synchronously updates the modified original multilingual text in the target control on the client, thereby completing the client's multilingual modification.

[0064] Based on the above description, the embodiments of this application provide a one-stop method for modifying multiple languages. The server generates multilingual content containing original multilingual text and location metadata. The location metadata in the multilingual content is used to locate the original multilingual text. The multilingual content is sent to the client, and the location metadata is bound to the client's UI control. The user edits the target control that needs to be modified in the user interface. The server locates the original multilingual text of the control based on the location metadata bound to the target control and replaces it, thereby realizing the rapid replacement of the original multilingual text and improving the modification efficiency.

[0065] In one embodiment, the location metadata includes at least a multilingual key-value identifier, a service affiliation identifier, a client group identifier, and contextual description information. The multilingual key-value identifier accurately corresponds to a specific original multilingual text; the service affiliation identifier identifies the sub-service module to which the original multilingual text belongs; the client group identifier allows for the reasonable grouping of clients, thereby providing more suitable multilingual content to different groups of clients; and the contextual description information provides contextual information about the location of the original multilingual text, further accurately locating it.

[0066] In one embodiment, a delimiter is used to concatenate the original multilingual text with location metadata within the multilingual content. The position of the delimiter allows for rapid separation of the original multilingual text and location metadata. Then, based on the information in the location metadata, operations such as locating, modifying, and adapting the original multilingual text are performed. For example, when modifying the original multilingual text, the position of the delimiter quickly retrieves both the original multilingual text and location metadata. The multilingual key-value identifiers in the location metadata accurately locate the target text. Combining business affiliation identifiers and client group identifiers ensures the accuracy and applicability of the modification. Contextual description information ensures that the modified text conforms to the actual usage scenario.

[0067] In one embodiment, such as Figure 3 As shown, in step S102, a text editing box is provided on the client's current user interface for receiving user modifications to the original multilingual text, and the following steps are also included:

[0068] Step S201: In response to the debug mode activation command, a visual user debug interface is generated; the user debug interface displays various UI controls and their corresponding original multilingual text.

[0069] Specifically, upon receiving the debug mode activation command, the client pauses the regular interactive logic of the current interface and dynamically generates a visual debug interface for multilingual modification. The generated user debug interface clearly displays each UI control on the current interface, along with its corresponding original multilingual text. When users need to modify the target text, they can quickly locate the target without having to search for and confirm text information in code or configuration files, thus improving the convenience and efficiency of the operation.

[0070] Step S202: Display the positioning metadata of each UI control in the user debugging interface, and provide a text editing box for receiving user modifications to the original multilingual text.

[0071] Specifically, after the production-visualized user debugging interface, the positioning metadata of each UI control is further displayed on the user debugging interface. Through the positioning metadata, users can understand the location and characteristics of the specific multilingual data associated with each UI control, and more intuitively determine the content that needs to be modified. At the same time, the client provides users with a text edit box on the user debugging interface. The text edit box is associated with the original multilingual text corresponding to each UI control. Users can enter the modification content of the original multilingual text in the text edit box. The client matches the modification content with the positioning metadata of the corresponding control so that the modification can be accurately submitted to the server for update.

[0072] Furthermore, in one embodiment, such as Figure 4 As shown, in step S202, the positioning metadata corresponding to each UI control is displayed in the user debugging interface, including the following steps:

[0073] Step S301: Traverse all UI controls in the user debugging interface. Specifically, when the client enters debug mode and generates the user debugging interface, all UI controls in the current interface, including buttons, labels, and text boxes, are traversed through the system layer or a custom recursive algorithm to ensure that the user debugging interface can accurately and comprehensively reflect the entire current user interface, providing an accurate data source for subsequent operations.

[0074] Step S302: Extract the bound location metadata based on all UI controls in the current user interface.

[0075] Specifically, the client pre-binds the location metadata from the multilingual content to the UI controls on the client. After traversing all UI controls in the user debugging interface, the client retrieves the corresponding location metadata from each UI control according to pre-defined binding rules and storage methods. For example, for a control displaying specific original multilingual text, the client extracts the location metadata bound to it by accessing specific properties or storage areas of the control. By extracting the location metadata bound to the controls, the specific location and related characteristics of the original multilingual text associated with each UI control can be clearly identified, providing structured data support for the visualization of the user debugging interface.

[0076] Step S303: Display the location metadata bound to each UI control in the user debugging interface. Specifically, after successfully extracting the location metadata bound to each UI control, the user debugging interface displays the location metadata bound to each UI control. While viewing the UI control, the user can intuitively understand the related location metadata, thus accurately locating the target text when modifying the original multilingual text, improving the efficiency and accuracy of the modification.

[0077] In one embodiment, such as Figure 5 As shown, in step S103, the client pre-binds the location metadata in the multilingual content with the UI controls in the client, including the following steps:

[0078] Step S401: Inject parsing instructions during the rendering phase. Specifically, parsing instructions are injected during the client-side rendering of the user interface. When the display elements begin rendering, the parsing instructions trigger the client-side parsing of multilingual content, allowing the client to analyze the location metadata of the multilingual content associated with the UI controls.

[0079] Step S402: In response to the parsing instruction, determine the location metadata in the multilingual content. Specifically, when the parsing instruction is triggered, the client quickly responds and determines the location metadata in the multilingual content. The location metadata includes key information such as multilingual key-value identifiers and business attribution identifiers, which can help the system accurately distinguish and locate different original multilingual texts, so as to achieve precise binding between location metadata and UI controls.

[0080] Step S403: The location metadata is bound to the corresponding UI control via an associated object property and stored in the extended set of the UI control. Specifically, after determining the location metadata in the multilingual content, the client can use an associated object property to add the location metadata as an additional attribute to the corresponding UI control, thereby binding the location metadata to the corresponding UI control. Simultaneously, the client stores the location metadata in the extended set of the corresponding UI control. When it is necessary to modify or perform location operations on the original multilingual text of the UI control, the client can quickly retrieve the corresponding location metadata from the extended set, achieving precise operation.

[0081] Furthermore, in one embodiment, such as Figure 6 As shown, in step S401, the client injects parsing instructions during the rendering phase, including the following steps:

[0082] Step S501: Intercept page rendering requests. Specifically, by setting up page rendering request interception, the client can capture the creation and property setting process of UI controls when they enter the rendering process. After intercepting the overall page rendering request, further fine-grained detection is performed on the text of individual controls.

[0083] Step S502: Capture text setting operations of UI controls. Specifically, after intercepting the page rendering request, the client further captures the text setting operations of specific UI controls to identify whether the UI controls carry multilingual content.

[0084] Step S503: Upon capturing a text setting operation of a UI control, a parsing command is issued. Specifically, when a multilingual content is detected in the text setting operation of a UI control, the client issues a parsing command, triggering the parsing of the current text to extract location metadata, providing underlying data support for rapid location and modification in subsequent debug mode.

[0085] In one embodiment, the client determines the location metadata in the multilingual content, including: receiving data sent by the server, and determining whether the data is multilingual content through a special format; the special format is at least one of the following: delimiter marker, structured header identifier, checksum association, and feature code mapping; if so, parsing the delimiter in the multilingual content, and determining the location metadata in the multilingual content based on the delimiter.

[0086] Specifically, after receiving data from the server, the client identifies the data using a preset special format to determine whether it contains multilingual content with location metadata. This special format includes delimiter markers, structured header identifiers, checksum associations, and feature mappings. Upon receiving data, the client checks for the presence of these special formats to determine if the data is multilingual. For example, it might use string matching to detect the presence of preset delimiters or determine the data type using structured prefix and suffix markers.

[0087] If the detected data contains special formats for multilingual content, such as delimiters, the client further parses the delimiter positions in the multilingual content, separating the original multilingual text from the location metadata. This allows for accurate acquisition of the location metadata in the multilingual content without changing the original multilingual acquisition interface, providing a precise location basis for subsequent multilingual modification operations.

[0088] In one embodiment, the client determines the location metadata in the multilingual content, and further includes: if the location metadata and the original multilingual text in the multilingual content are determined by parsing the delimiters in the multilingual content, the location metadata is hidden, the original multilingual text is set to be able to be displayed in the UI control, and the location metadata is set to not be displayed in the UI control.

[0089] Specifically, the client separates the location metadata from the original multilingual text by parsing the delimiters in the multilingual content. It then differentiates between the two, keeping the original multilingual text visible for normal UI control display. The location metadata is stored implicitly to prevent it from being directly presented to the user interface, thus avoiding page clutter caused by lengthy additional signals and preserving necessary location information for subsequent debugging and modifications. When the user enters debug mode, the client can quickly extract the location metadata through pre-bound associated attributes, thereby determining the multilingual key-value pairs and business affiliation of the current control without manual searching or inputting additional information. This approach solves the location problem when modifying multilingual content, maintains interface simplicity, and ensures a good user experience.

[0090] Based on the above description, the embodiments of this application provide a one-stop method for modifying multiple languages. The method generates multilingual content containing original multilingual text and location metadata on the server side. The location metadata in the multilingual content is used to locate the original multilingual text. The multilingual content is sent to the client, and the location metadata is bound to a UI control on the client side. The user edits the target control to be modified in the user interface. The server locates the original multilingual text of the control based on the location metadata bound to the target control and replaces it, achieving rapid replacement of the original multilingual text and improving modification efficiency. Furthermore, by intercepting and processing the displayed content at runtime, additional location information is avoided on the user interface, maintaining the simplicity of the interface and ensuring a good user experience.

[0091] Based on the same inventive concept, this application also provides a one-stop multilingual modification system, which includes a client and a server. The server generates multilingual content with additional location metadata based on the client's request. The multilingual content includes the original multilingual text and location metadata used to locate the original multilingual text. In response to a debug mode activation command, the client provides a text edit box on its current user interface to receive user modifications to the original multilingual text. The client determines the UI control that modifies the current user interface, defines the user-modified UI control as the target control, and determines the target location metadata bound to the target control. The client pre-binds the location metadata in the multilingual content to the UI control in the client. The client submits the target location metadata and the modified original multilingual text to the server. The server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text.

[0092] It should be noted that the solution provided by the one-stop multilingual modification system is similar to the solution described in the one-stop multilingual modification method above. Therefore, the specific limitations in the embodiments of the one-stop multilingual modification system can be found in the limitations of the one-stop multilingual modification method above, and will not be repeated here.

[0093] This application also provides a computer device, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the device includes a memory, a processor, and a display. The memory stores a computer program. When the processor executes the computer program, it can generate multilingual content with additional location metadata. The multilingual content includes the original multilingual text and location metadata used to locate the original multilingual text. The processor can also, in response to a debug mode activation command, provide a text editing box on the current user interface of the display for receiving user modifications to the original multilingual text.

[0094] The processor can also identify the UI controls that modify the current user interface, define the UI controls modified by the user as target controls, and determine the target location metadata bound to the target controls. The processor pre-binds the location metadata in the multilingual content to the UI controls in the processor. The processor can also submit the target location metadata and the modified original multilingual text to the server, so that the server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text.

[0095] It should be noted that the processor of this computer device provides computing and control capabilities. The memory of this computer device includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface of this computer device is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. The display of this computer device can be an LCD screen or an e-ink display. Those skilled in the art will understand that... Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0096] It should be further noted that when this computer program is executed by the processor, it implements a one-stop multilingual modification method. Therefore, the specific limitations of the embodiment of the computer device can be found in the limitations of the one-stop multilingual modification method above, and will not be repeated here.

[0097] It is understood that the term "exemplary" as used herein means "as an example, illustration, or description." Any embodiment described as "exemplary" is not necessarily preferred or superior to other embodiments and / or does not exclude features in combination with other embodiments. It should be understood that certain features of this application described in the context of a single embodiment for clarity may also be provided in combination in a single embodiment. Conversely, various features of this application described in the context of a single embodiment for clarity may also be provided individually or in any suitable combination or as part of any other described embodiment of this application. Furthermore, "at least one" means one or more, and "a plurality of" means two or more. The words "first," "second," etc., do not limit the quantity or order of execution, and the words "first," "second," etc., do not necessarily imply difference.

[0098] The above-disclosed embodiments are merely preferred embodiments of this application, but are not intended to limit the scope of this application. Those skilled in the art will understand that any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and scope of this application and the appended claims are equivalent substitutions and still fall within the scope of the invention.

Claims

1. A one-stop multilingual modification method, characterized in that, The method is applied to a multilingual system, which includes a client and a server, and the method includes: The server generates multilingual content and sends the multilingual content to the client. The multilingual content includes original multilingual text and location metadata for locating the original multilingual text. The location metadata includes at least a multilingual key-value identifier, a service affiliation identifier, a client group identifier, and contextual description information. The original multilingual text and the location metadata are concatenated in the multilingual content using a delimiter. In response to the debug mode activation command, the client provides a text editing box on the client's current user interface to receive user modifications to the original multilingual text; The client identifies the UI control that modifies the current user interface, defines the user-modified UI control as the target control, and determines the target location metadata bound to the target control; wherein, the client pre-binds the location metadata in the multilingual content to the UI control in the client; The client submits the target location metadata and the modified original multilingual text to the server. The server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text. The client pre-binds the location metadata in the multilingual content to UI controls in the client, including: Inject parsing instructions during the rendering phase: Inject parsing instructions during the client-side rendering of the user interface; In response to the parsing instruction, the location metadata in the multilingual content is determined; The location metadata is bound to the corresponding UI control through the associated object property and stored in the extended set of the UI control; The client injects parsing instructions during the rendering phase, including: Intercept page rendering requests; Capture the text setting operation of the UI control; Upon capturing the text setting operation of the UI control, a parsing instruction is issued.

2. The one-stop multilingual modification method according to claim 1, characterized in that, The client determines the location metadata in the multilingual content, including: The system receives data sent by the server and determines whether the data is multilingual content through a special format; the special format is at least one of the following: delimiter marker, structured header identifier, checksum association, and feature code mapping; If so, parse the delimiters in the multilingual content and determine the location metadata in the multilingual content based on the delimiters.

3. The one-stop multilingual modification method according to claim 2, characterized in that, The client determines the location metadata in the multilingual content, and further includes: By parsing the delimiters in the multilingual content, and determining the location metadata and the original multilingual text in the multilingual content, the location metadata is hidden, the original multilingual text is set to be displayed in the UI control, and the location metadata is set to not be displayed in the UI control.

4. The one-stop multilingual modification method according to claim 1, characterized in that, A text editing box is provided on the current user interface of the client to receive user modifications to the original multilingual text, including: In response to the debug mode activation command, a visual user debug interface is generated; the user debug interface displays various UI controls and the original multilingual text corresponding to the UI controls; The user debugging interface displays the location metadata corresponding to each UI control and provides a text editing box for receiving user modifications to the original multilingual text.

5. The one-stop multilingual modification method according to claim 4, characterized in that, The user debugging interface displays the location metadata corresponding to each UI control, including: Iterate through all UI controls in the user debugging interface; Based on all UI controls in the current user interface, extract the bound location metadata; The user debugging interface displays the location metadata bound to each UI control.

6. A one-stop multilingual editing system, characterized in that, The system includes a client and a server; The server generates multilingual content and sends the multilingual content to the client. The multilingual content includes original multilingual text and location metadata for locating the original multilingual text. The location metadata includes at least a multilingual key-value identifier, a service affiliation identifier, a client group identifier, and contextual description information. The original multilingual text and the location metadata are concatenated in the multilingual content using a delimiter. In response to the debug mode activation command, the client provides a text editing box on the client's current user interface to receive user modifications to the original multilingual text; The client identifies the UI control that modifies the current user interface, defines the user-modified UI control as the target control, and determines the target location metadata bound to the target control; wherein, the client pre-binds the location metadata in the multilingual content to the UI control in the client; The client submits the target location metadata and the modified original multilingual text to the server. The server locates the original multilingual text based on the target location metadata and replaces it with the modified original multilingual text. The client pre-binds the location metadata in the multilingual content to UI controls in the client, including: Inject parsing instructions during the rendering phase: Inject parsing instructions during the client-side rendering of the user interface; In response to the parsing instruction, the location metadata in the multilingual content is determined; The location metadata is bound to the corresponding UI control through the associated object property and stored in the extended set of the UI control; The client injects parsing instructions during the rendering phase, including: Intercept page rendering requests; Capture the text setting operation of the UI control; Upon capturing the text setting operation of the UI control, a parsing instruction is issued.

7. A computer device, characterized in that, It includes a memory, a processor, and a display, wherein the memory stores a computer program; The processor receives multilingual content sent by the server. The multilingual content includes original multilingual text and location metadata for locating the original multilingual text. The location metadata includes at least a multilingual key-value identifier, a service affiliation identifier, a client group identifier, and contextual description information. The original multilingual text and the location metadata are concatenated in the multilingual content using a delimiter. The processor is also capable of providing a text editing box on the current user interface of the display in response to a debug mode activation command for receiving user modifications to the original multilingual text; The processor can also identify UI controls that modify the current user interface, define the user-modified UI controls as target controls, and determine the target location metadata bound to the target controls; wherein, the processor pre-binds the location metadata in the multilingual content to the UI controls in the processor; The processor can also submit the target location metadata and the modified original multilingual text to the server, so that the server can locate the original multilingual text based on the target location metadata and replace it with the modified original multilingual text. The client pre-binds the location metadata in the multilingual content to UI controls in the client, including: Inject parsing instructions during the rendering phase: Inject parsing instructions during the client-side rendering of the user interface; In response to the parsing instruction, the location metadata in the multilingual content is determined; The location metadata is bound to the corresponding UI control through the associated object property and stored in the extended set of the UI control; The client injects parsing instructions during the rendering phase, including: Intercept page rendering requests; Capture the text setting operation of the UI control; Upon capturing the text setting operation of the UI control, a parsing instruction is issued.

Citation Information

Patent Citations

  • Method, system and related module for dynamic modification of user interface

    CN107102798A

  • A rendering method and a terminal device of a multilingual user interface

    CN109445779A