International multi-language management method and device, electronic equipment and storage medium

By adding tag buttons to the editing interface of the international management platform, visual direct editing of language resources is realized, which solves the problems of ideographic deviation and interface changes after translation, simplifies the modification process, and improves the accuracy of text display and interface after translation. Adjust efficiency.

CN118625970APending Publication Date: 2024-09-10BEIJING PACTERA JINXIN TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410752425.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing international management platform cannot quickly and accurately determine the modified resources during translation, resulting in ideographic deviations and interface changes, and the modification process is cumbersome.

Method used

Add label buttons to the editing interface of the business system, including text buttons, style buttons, and prompt buttons. Users can directly edit and save translated language resources through these buttons to achieve visual language resource editing.

Benefits of technology

It solves the problem of inaccurate text display after translation, and realizes instant adjustment of page display content and style after editing language resources, making it easy to quickly modify and publish.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625970A
    Figure CN118625970A
Patent Text Reader

Abstract

The invention provides an internationalized multi-language management method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to an editing instruction of a user for a target language resource of a business system on an internationalized page, entering an editing interface of the business system, and setting a corresponding tag button beside the target language resource of the editing interface; the editing interface clicks a label button corresponding to a target language resource of the business system based on an editing translation demand of a user, and completes editing translation of the target language resource of the business system according to a function corresponding to the selected label button; and if the target language resources of the business system are edited and translated, exiting the editing mode of the business system, clicking a prompt button, and storing and releasing the edited and translated target language resources of the business system. And displaying the character language type and the character style type corresponding to the edited and translated target language resource in the business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an internationalized multilingual management method, device, electronic device, and storage medium. Background Art

[0002] Although the existing international management platform can separate language resources and program packages and realize centralized management, when translators use exported Excel for translation, they find that the translation items lack context and usage scenarios, and cannot correspond the translation items to the system interface. When the translated text is displayed on the page, it is easy to have semantic deviations, and the difference in the length of the translated text will also cause some interface changes. At the same time, when seeing some inappropriate information on the interface and wanting to modify it, it is necessary to find the resource item corresponding to the information in a large number of language resource items, and it is difficult to quickly and accurately locate the resource to be modified. Therefore, how to manage internationalization and multiple languages ​​has become a technical issue that cannot be underestimated. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide an international multilingual management method, device, electronic device and storage medium. By providing a label button next to the language resource in the editing interface of the business system, the problem of not being able to quickly and accurately determine the resources to be modified is solved, and the label button is used to visually and directly edit and translate the language resources on the original interface to solve the problem of semantic deviation when the translated text cannot be displayed on the page in the prior art. After the language resource is edited and translated, the editing and translation effect can be seen immediately, which is convenient for real-time adjustment of the page display content and display style of the business system.

[0004] The present application embodiment provides an internationalized multi-language management method, the management method comprising:

[0005] In response to a user's editing instruction for the target language resource of the business system on the internationalization page, an editing interface of the business system is entered, and a corresponding label button is provided next to the target language resource on the editing interface; wherein the label button includes a text button, a style button and a prompt button;

[0006] Clicking a label button corresponding to the target language resource of the business system on the editing interface based on the editing and translation requirements of the user, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button;

[0007] If the editing and translation of the target language resources of the business system is completed, exit the editing mode of the business system, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type and text style type corresponding to the edited and translated target language resources are displayed in the business system.

[0008] In a possible implementation manner, in response to a user making an editing instruction on the target language resource of the business system on the internationalization page, entering the editing interface of the business system, and providing a corresponding label button next to the target language resource on the editing interface, includes:

[0009] In response to the user entering the editing interface of the business system, the document object model elements containing the target attributes are searched in the editing interface based on the document object model search method, the position, size and attribute value of each document object model element are determined, and a label button is set next to each document object model element; wherein each document object model element corresponds to one.

[0010] In a possible implementation manner, the step of clicking a label button corresponding to the target language resource of the business system based on the editing and translation requirements of the user on the editing interface, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button, includes:

[0011] On the editing interface, based on the editing needs of the user, the text button provided next to the target language resource of the business system is clicked, and the text language of the target language resource of the business system is edited and translated according to the function corresponding to the text button; wherein the text language types include simplified Chinese and traditional Chinese;

[0012] On the editing interface, the style button provided next to the target language resource of the business system is clicked based on the user's editing needs, and the text style of the target language resource of the business system is edited according to the function corresponding to the style button; wherein the text style type includes text font, text color and text width.

[0013] In a possible implementation manner, the text button provided next to the target language resource of the business system is clicked on the editing interface based on the editing needs of the user, and the editing and translation of the text language of the target language resource of the business system is completed according to the function corresponding to the text button, including:

[0014] Click the text button next to the target language resource in the editing interface to enter the language resource text language editing interface for the target language resource;

[0015] Based on the editing and translation requirements of the user, in the language resource text language editing interface, the current text language type corresponding to the target language resource is edited and translated into the target text language type;

[0016] After completing the editing and translation of the text language type corresponding to the target language resource, in response to the prompt button clicked by the user, the edited and translated target language resource is saved.

[0017] In a possible implementation manner, the editing interface clicks the style button provided next to the target language resource of the business system based on the editing needs of the user, and completes editing of the text style of the target language resource of the business system according to the function corresponding to the style button, including:

[0018] Clicking the style button next to the target language resource on the editing interface to enter the language resource text style editing interface for the target language resource;

[0019] Based on the editing and translation requirements of the user, in the language resource text style editing interface, the current text style type corresponding to the target language resource is replaced with the target text style type;

[0020] After the editing of the text style type corresponding to the target language resource is completed, in response to the prompt button clicked by the user, the edited target language resource is saved.

[0021] In a possible implementation manner, the management method further includes:

[0022] In the editing interface, based on the editing requirements of the user, a delete button corresponding to the target language resource of the business system is clicked, and the target language resource is deleted according to the function corresponding to the selected delete button.

[0023] In a possible implementation manner, if the editing and translation of the target language resource of the business system is completed, the editing mode of the business system is exited, the prompt button is clicked, and the edited target language resource of the business system is saved and published, so that the text language type corresponding to the edited and translated target language resource is displayed in the business system, including:

[0024] When the user completes editing and clicks a prompt button on the editing interface, the target language resources of the business system after editing and translation are saved, and the target language resources of the business system after editing and translation are updated to the local language resource database of the internationalized page;

[0025] Based on VUE resource binding, the current language text corresponding to the edited target language resource of the business system is displayed on the business system interface.

[0026] The present application also provides an internationalized multi-language management device, the management device comprising:

[0027] An editing interface module, for responding to a user's editing instruction on a target language resource of a business system on an internationalization page, entering the editing interface of the business system, and providing corresponding label buttons next to the target language resource on the editing interface; wherein the label buttons include text buttons, style buttons, and prompt buttons;

[0028] An editing and translation module, in the editing interface, clicks a label button corresponding to the target language resource of the business system based on the editing and translation needs of the user, and completes the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button;

[0029] The saving and publishing module is used to exit the editing mode of the business system if the editing and translation of the target language resources of the business system is completed, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type corresponding to the edited and translated target language resources is displayed in the business system.

[0030] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the internationalized multi-language management method as described above are performed.

[0031] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the internationalized multi-language management method as described above are executed.

[0032] The internationalized multilingual management method, device, electronic device and storage medium provided in the embodiment of the present application enter the editing interface of the business system in response to the user's editing instruction for the target language resources of the business system on the internationalization page, and provide a corresponding label button next to the target language resources on the editing interface; wherein the label button includes a text button, a style button and a prompt button; in the editing interface, the label button corresponding to the target language resources of the business system is clicked based on the editing and translation requirements of the user, and the editing and translation of the target language resources of the business system is completed according to the function corresponding to the selected label button; if the editing and translation of the target language resources of the business system is completed, the editing mode of the business system is exited, the prompt button is clicked and the edited and translated target language resources of the business system are saved and published, so that the text language type and text style type corresponding to the edited and translated target language resources are displayed in the business system. By providing a label button next to the language resource in the editing interface of the business system, the problem of not being able to quickly and accurately determine the resource to be modified is solved, and the language resource can be directly edited and translated visually on the original interface using the label button to solve the problem of semantic deviation when the translated text cannot be displayed on the page in the prior art. After the language resource is edited and translated, the editing and translation effect can be seen immediately, which facilitates the instant adjustment of the page display content and display style of the business system.

[0033] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A flowchart of an internationalized multi-language management method provided in an embodiment of the present application;

[0036] Figure 2 A schematic diagram of a language resource text language editing interface provided in an embodiment of the present application;

[0037] Figure 3 One of the structural schematic diagrams of an internationalized multi-language management device provided in an embodiment of the present application;

[0038] Figure 4A second structural diagram of an internationalized multi-language management device provided in an embodiment of the present application;

[0039] Figure 5 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0041] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0042] In order to enable those skilled in the art to use the contents of this application, the following implementation methods are provided in combination with the specific application scenario of "managing internationalized multiple languages". For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application.

[0043] First, the application scenarios to which the present application is applicable are introduced. The present application can be applied in the field of computer technology.

[0044] Research has found that although the existing international management platform can separate language resources and program packages and achieve centralized management, when translators use exported Excel for translation, they find that the translation items lack context and usage scenarios, and cannot correspond the translation items to the system interface. When the translated text is displayed on the page, it is easy to have semantic deviations, and the difference in the length of the translated text will also cause some interface changes. At the same time, when seeing some inappropriate information on the interface and wanting to modify it, it is necessary to find the resource item corresponding to the information in a large number of language resource items, and it is difficult to quickly and accurately locate the resource to be modified. Therefore, how to manage internationalization and multiple languages ​​has become a technical issue that cannot be underestimated.

[0045] Based on this, an embodiment of the present application provides an international multilingual management method. By providing a label button next to the language resource in the editing interface of the business system, it is possible to use the label button to visually and directly edit and translate the language resource on the original interface. After the language resource is edited and translated, the editing and translation effect can be seen immediately, which facilitates the instant adjustment of the page display content and display style of the business system.

[0046] See also Figure 1 , Figure 1 This is a flow chart of an internationalized multi-language management method provided by an embodiment of the present application. Figure 1 As shown in , the management method provided by the embodiment of the present application includes:

[0047] S101: In response to a user's editing instruction for a target language resource of a business system on an internationalization page, an editing interface of the business system is entered, and a corresponding label button is provided next to the target language resource on the editing interface; wherein the label button includes a text button, a style button, and a prompt button.

[0048] In this step, in response to the user's editing instruction on the target language resource of the business system on the internationalization page, the editing interface of the internationalization page is entered, and a corresponding label button is provided next to the target language resource on the editing interface.

[0049] The label button includes a text button, a style button and a prompt button. The function corresponding to the text button is to change the text language type of the target language resource, and the function corresponding to the style button is to change the text style type of the target language resource.

[0050] Here, add the language resource identifier attribute to the internationalized resource front-end tag to specify the language resource identifier Key corresponding to the text block where the tag is located, so that it can be identified when the page enters the internationalized editing mode. Among them, the design of resource identifiers follows the following rules: a single resource identifier is enclosed in a specific identifier, such as ${}, to distinguish the resource identifier from other common information, such as business data; in this way, when displaying multilingual content on the client, the resource identifier in the encoded string can be identified, and the resource identifier can be replaced with the display content corresponding to different languages ​​by searching the target resource file for display. The resource identifier can be composed of multi-level directory encoding plus resource encoding, separated by a dot in the middle; for example, the system management (sysManager) resource under the menu (menu) directory under the public (bdap) directory has a complete resource identifier of: $"{bdap.menu.sysManager}". Here, the directory encoding and resource encoding must strictly follow the Java variable naming specifications, that is, composed of uppercase and lowercase letters and numbers, with a camel case structure starting with a lowercase letter, and underscores are not allowed. When the information contains multiple resource keys, the related resource keys are grouped together through group coding and a sequence number is set. For example, when a data import exception occurs in the data import operation of the user on the client, the client should prompt the user with the message "a total of 10 items were imported, and 8 items failed", where 10 and 8 are business data generated by the server after processing according to the business logic. In the embodiment of the present application, the coded string to be displayed returned by the server to the client should be expressed as "{import.key1}10${import.key2}8${import.key3}". At this time, there should be three corresponding resource identifiers in the language resource management, and the same group coding needs to be set for the three resource identifiers and the sequence number in the group should be set in order from small to large. At the same time, when exporting resource files to developers for translation, they also need to be exported in the format of group coding and group sequence number, that is, the resource identifiers of the same group need to be exported as a readable string: "a total of {} items were imported, and {} items failed". Similarly, when translating, they also need to be translated in this format, such as translating into traditional Chinese: "a total of {} items were imported, and {} items failed". When the translated resource files are re-imported into the multilingual resource management platform, the strings can be automatically identified and split, and the split results can be automatically imported into the corresponding resource items for updating.

[0051] In a possible implementation manner, in response to a user making an editing instruction on the target language resource of the business system on the internationalization page, entering the editing interface of the business system, and providing a corresponding label button next to the target language resource on the editing interface, includes:

[0052] In response to the user entering the editing interface of the business system, the document object model elements containing the target attributes are searched in the editing interface based on the document object model search method, the position, size and attribute value of each document object model element are determined, and a label button is set next to each document object model element; wherein each document object model element corresponds to one.

[0053] Here, in response to the user entering the editing interface of the business system, the document object model elements containing the target attributes are searched in the editing interface according to the document object model search method, the position, size and attribute value of each document object model element are determined, and a label button is provided next to each document object model element.

[0054] Specifically, when entering the internationalization editing mode, the program will automatically use the DOM search method to search for DOM elements containing v-i18n attributes in the page, obtain the position, size, v-i18n attribute value and other information of each DOM element, and add a label button next to each DOM element.

[0055] Among them, each label button corresponds to an interface content of the business system, and each interface content corresponds to a resource identification Key. The function of the label button is to trigger the editing and translation interface of the corresponding resource Key. Users can translate and adjust various languages ​​in the editing interface.

[0056] S102: Clicking a label button corresponding to the target language resource of the business system based on the editing and translation requirements of the user on the editing interface, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button.

[0057] In this step, in the editing interface, the label button corresponding to the target language resource of the business system is clicked according to the user's editing and translation requirements, and the unified editing and translation of the target language resource of the business system is completed according to the function corresponding to the selected label button.

[0058] Here, editing and translation requirements may include adjusting the text style type of the target language resource, or adjusting the text language type of the target language resource, but the pages for the two adjustments are different and need to be performed separately. The adjustment of the text style type corresponds to the adjustment page corresponding to the style button, and the adjustment of the text language type corresponds to the adjustment page corresponding to the language button.

[0059] In a possible implementation manner, the step of clicking a label button corresponding to the target language resource of the business system based on the editing and translation requirements of the user on the editing interface, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button, includes:

[0060] A: On the editing interface, based on the user's editing needs, the text button provided next to the target language resource of the business system is clicked, and the editing and translation of the text language of the target language resource of the business system is completed according to the function corresponding to the text button; wherein the text language types include Simplified Chinese and Traditional Chinese.

[0061] Here, on the editing interface, the text button provided next to the target language resource of the business system is clicked according to the editing needs of the user, and the editing and translation of the text language of the target language resource of the business system is completed according to the function corresponding to the text button.

[0062] The text language types include not only simplified Chinese and traditional Chinese, but also other languages, which are not specifically limited here.

[0063] Here, the text button provided next to the target language resource is indicated by the character T.

[0064] In a possible implementation manner, the text button provided next to the target language resource of the business system is clicked on the editing interface based on the editing needs of the user, and the editing and translation of the text language of the target language resource of the business system is completed according to the function corresponding to the text button, including:

[0065] a: Click the text button next to the target language resource in the editing interface to enter the language resource text language editing interface for the target language resource.

[0066] Here, click the text button next to the target language resource in the editing interface to enter the language resource text language editing interface for the target language resource.

[0067] b: based on the editing and translation requirements of the user, the current text language type corresponding to the target language resource is edited and translated into the target text language type in the language resource text language editing interface.

[0068] Here, according to the user's editing and translation requirements, the current text language type corresponding to the target language resource is edited and translated into the target text language type in the language resource text language editing interface. For example, the current text language type is simplified Chinese, and the target text language type is traditional Chinese.

[0069] c: After completing the editing and translation of the text language type corresponding to the target language resource, in response to the prompt button clicked by the user, the edited and translated target language resource is saved.

[0070] Here, after the editing and translation of the text language type corresponding to the target language resource is completed, in response to the prompt button clicked by the user, the edited and translated target language resource is saved.

[0071] Among them, when the user clicks the text button next to the resource, the language resource text language editing interface pops up, so that the user can directly enter the language-related information of the resource. The user clicks the prompt button to save the entered language-related resources in the database, and directly echoes the current language-related information just entered on the interface. Here, the language-related information of the resource is mainly the Key of this resource and the corresponding multilingual translation information. The interface will display the language enabled by the business system on the editing interface. For example, if the business system enables simplified Chinese and English, then two input boxes for simplified Chinese and English will be displayed on the editing interface. The user can enter the simplified Chinese expression and English expression of the resource in the two input boxes respectively. For group coding, it also includes group coding information and the order within the group, which generally does not need to be modified during editing.

[0072] For further information, see Figure 2 , Figure 2 This is a schematic diagram of the language resource text language editing interface provided in the embodiment of the present application. Figure 2 As shown in the figure, when the user enters the editing mode, there is a text label button next to the language resource. For example, by clicking the text label button next to "System Registration Category", the user enters the language resource editing interface, where the resource code, group code, order within the group, and text language type can be edited. Figure 2 The "System Registration Category" can be translated and switched between Simplified Chinese, Traditional Chinese, English and Japanese at will. After editing and translating, in response to the user clicking the Save button, the text language type corresponding to the edited and translated "System Registration Category" will be saved, and the current language related information just entered will be directly displayed on the business system. For example, if the Simplified Chinese corresponding to the "System Registration Category" is translated into Traditional Chinese, the "System Registration Category" will be displayed in Traditional Chinese in the business system.

[0073] B: On the editing interface, based on the user's editing needs, the style button provided next to the target language resource of the business system is clicked, and the text style of the target language resource of the business system is edited according to the function corresponding to the style button; wherein the text style types include text font, text color and text width.

[0074] Here, on the editing interface, the style button provided next to the target language resource of the business system is clicked according to the user's editing needs, and the text style of the target language resource of the business system is edited according to the function corresponding to the style button.

[0075] The text style types include not only text font, text color and text width, but also other style types, which are not specifically limited in this part.

[0076] In a possible implementation manner, the editing interface clicks the style button provided next to the target language resource of the business system based on the editing needs of the user, and completes editing of the text style of the target language resource of the business system according to the function corresponding to the style button, including:

[0077] (1): Click the style button next to the target language resource on the editing interface to enter the language resource text style editing interface for the target language resource.

[0078] Here, click the style button next to the target language resource on the editing interface to enter the language resource text style editing interface for the target language resource.

[0079] The style button may be represented by the letter S next to the target language resource.

[0080] (2): Based on the user's editing and translation requirements, the current text style type corresponding to the target language resource is replaced with the target text style type in the language resource text style editing interface.

[0081] Here, according to the editing and translation requirements of the user, the current text style type corresponding to the target language resource is replaced with the target text style type in the language resource text style editing interface.

[0082] For example, if the current text style type is Songti size 4, and the editing and translation requirement is to change the current text style type to Songti size 5, then the text display type of Songti size 4 needs to be replaced by Songti size 5.

[0083] (3): After completing the editing of the text style type corresponding to the target language resource, in response to the prompt button clicked by the user, the edited target language resource is saved.

[0084] Here, after the editing of the text style type corresponding to the target language resource is completed, in response to the prompt button clicked by the user, the edited target language resource is saved.

[0085] In a specific embodiment, when the user enters the editing mode, a style label button is provided next to the language resource. For example, by clicking the style label button next to "System Registration Category", the user enters the language resource text style editing interface, and edits the font size and font width on the language resource text style editing interface. For example, by changing the Songti size 4 corresponding to "System Registration Category" to Songti size 5, the "System Registration Category" will be displayed in the business system in the form of Songti size 5.

[0086] In a possible implementation manner, the management method further includes:

[0087] In the editing interface, based on the editing requirements of the user, a delete button corresponding to the target language resource of the business system is clicked, and the target language resource is deleted according to the function corresponding to the selected delete button.

[0088] Here, in the editing interface, the delete button corresponding to the target language resource of the business system is clicked according to the user's editing needs, and the target language resource is deleted according to the function corresponding to the selected delete button.

[0089] The delete button can be represented by the character B.

[0090] S103: If the editing and translation of the target language resources of the business system is completed, exit the editing mode of the business system, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type and text style type corresponding to the edited and translated target language resources are displayed in the business system.

[0091] In this step, if the editing and translation of the target language resources of the business system is completed, exit the editing mode of the business system, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type and text style type corresponding to the edited and translated target language resources are displayed in the business system.

[0092] In a possible implementation manner, if the editing and translation of the target language resource of the business system is completed, the editing mode of the business system is exited, the prompt button is clicked, and the edited target language resource of the business system is saved and published, so that the text language type corresponding to the edited and translated target language resource is displayed in the business system, including:

[0093] i: When the user completes editing and clicks the prompt button on the editing interface, the target language resources of the business system after editing and translation are saved, and the target language resources of the business system after editing and translation are updated to the local language resource database of the internationalized page.

[0094] Here, when the user completes editing and clicks the prompt button on the editing interface, the edited and translated target language resources of the business system are saved and updated to the local language resource database of the internationalized page.

[0095] ii: Based on VUE resource binding, the current language text corresponding to the edited target language resource of the business system is displayed on the business system interface.

[0096] Here, the current language text corresponding to the target language resource of the edited business system is displayed on the business system interface according to the VUE resource binding.

[0097] In a specific embodiment, when entering the internationalization editing mode, the program will automatically use the DOM search method to search for DOM elements containing v-i18n attributes in the page, obtain the position, size, v-i18n attribute value and other information of each DOM element, and add a label button next to each DOM element; when the user clicks the label button, the program reads the resource identification Key corresponding to the label button and the corresponding language resource information, including expressions in various languages, etc., and pops up the language resource editing interface for editing; when the user completes the editing and clicks the prompt button on the editing interface, the program will submit the background interface for saving, and immediately update the new language resources to the internationalized local language resources, and display the new current language text directly on the business system interface through VUE resource binding.

[0098] An internationalized multilingual management method provided by an embodiment of the present application comprises: in response to a user's editing instruction for a target language resource of a business system on an internationalized page, entering an editing interface of the business system, and providing a corresponding label button next to the target language resource on the editing interface; wherein the label button comprises a text button, a style button and a prompt button; in the editing interface, clicking the label button corresponding to the target language resource of the business system based on the user's editing and translation requirements, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button; if the editing and translation of the target language resource of the business system is completed, exiting the editing mode of the business system, clicking the prompt button and saving and publishing the edited and translated target language resource of the business system, so that the text language type and text style type corresponding to the edited and translated target language resource are displayed in the business system. By providing a label button next to the language resource in the editing interface of the business system, the problem of not being able to quickly and accurately determine the resource to be modified is solved, and the language resource can be directly edited and translated visually on the original interface using the label button to solve the problem of semantic deviation when the translated text cannot be displayed on the page in the prior art. After the language resource is edited and translated, the editing and translation effect can be seen immediately, which facilitates the instant adjustment of the page display content and display style of the business system.

[0099] See also Figure 3 , Figure 4 , Figure 3 One of the structural schematic diagrams of an internationalized multi-language management device provided in an embodiment of the present application; Figure 4 The second structural diagram of an internationalized multi-language management device provided in the embodiment of the present application. Figure 3 As shown in , the management device 300 includes:

[0100] The editing interface module 310 is used to respond to the user's editing instruction on the target language resource of the business system on the internationalization page, enter the editing interface of the business system, and set a corresponding label button next to the target language resource on the editing interface; wherein the label button includes a text button, a style button and a prompt button;

[0101] The editing and translation module 320 clicks a label button corresponding to the target language resource of the business system based on the editing and translation requirements of the user on the editing interface, and completes the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button;

[0102] The saving and publishing module 330 is used to exit the editing mode of the business system if the editing and translation of the target language resources of the business system is completed, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type corresponding to the edited and translated target language resources is displayed in the business system.

[0103] Further, when the editing interface module 310 is used to respond to the user's editing instruction on the target language resource of the business system on the internationalization page, enter the editing interface of the business system, and set a corresponding label button next to the target language resource on the editing interface, the editing interface module 310 is specifically used to:

[0104] In response to the user entering the editing interface of the business system, the document object model elements containing the target attributes are searched in the editing interface based on the document object model search method, the position, size and attribute value of each document object model element are determined, and a label button is set next to each document object model element; wherein each document object model element corresponds to one.

[0105] Further, when the editing and translation module 320 is used to click the label button corresponding to the target language resource of the business system based on the editing and translation requirements of the user in the editing interface, and complete the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button, the editing and translation module 320 is specifically used to:

[0106] On the editing interface, based on the editing needs of the user, the text button provided next to the target language resource of the business system is clicked, and the text language of the target language resource of the business system is edited and translated according to the function corresponding to the text button; wherein the text language types include simplified Chinese and traditional Chinese;

[0107] On the editing interface, the style button provided next to the target language resource of the business system is clicked based on the user's editing needs, and the text style of the target language resource of the business system is edited according to the function corresponding to the style button; wherein the text style type includes text font, text color and text width.

[0108] Further, when the editing and translation module 320 is used to click the text button provided next to the target language resource of the business system on the editing interface based on the editing needs of the user, and completes the editing and translation of the text language of the target language resource of the business system according to the function corresponding to the text button, the editing and translation module 320 is specifically used to:

[0109] Click the text button next to the target language resource in the editing interface to enter the language resource text language editing interface for the target language resource;

[0110] Based on the editing and translation requirements of the user, in the language resource text language editing interface, the current text language type corresponding to the target language resource is edited and translated into the target text language type;

[0111] After completing the editing and translation of the text language type corresponding to the target language resource, in response to the prompt button clicked by the user, the edited and translated target language resource is saved.

[0112] Further, when the editing and translation module 320 is used to click the style button provided next to the target language resource of the business system on the editing interface based on the editing needs of the user, and completes the editing of the text style of the target language resource of the business system according to the function corresponding to the style button, the editing and translation module 320 is specifically used to:

[0113] Clicking the style button next to the target language resource on the editing interface to enter the language resource text style editing interface for the target language resource;

[0114] Based on the editing and translation requirements of the user, in the language resource text style editing interface, the current text style type corresponding to the target language resource is replaced with the target text style type;

[0115] After the editing of the text style type corresponding to the target language resource is completed, in response to the prompt button clicked by the user, the edited target language resource is saved.

[0116] Further, such as Figure 4 As shown, the management device 300 further includes a deletion module 340, and the deletion module 340 is used to:

[0117] In the editing interface, based on the editing requirements of the user, a delete button corresponding to the target language resource of the business system is clicked, and the target language resource is deleted according to the function corresponding to the selected delete button.

[0118] Further, when the saving and publishing module 330 is used to complete the editing and translation of the target language resource of the business system, exit the editing mode of the business system, click the prompt button and save and publish the edited target language resource of the business system, so that the text language type corresponding to the edited and translated target language resource is displayed in the business system, the saving and publishing module 330 is specifically used to:

[0119] When the user completes editing and clicks a prompt button on the editing interface, the target language resources of the business system after editing and translation are saved, and the target language resources of the business system after editing and translation are updated to the local language resource database of the internationalized page;

[0120] Based on VUE resource binding, the current language text corresponding to the edited target language resource of the business system is displayed on the business system interface.

[0121] An internationalized multilingual management device provided in an embodiment of the present application comprises: an editing interface module, which is used to respond to a user's editing instruction on a target language resource of a business system on an internationalized page, enter the editing interface of the business system, and provide a corresponding label button next to the target language resource on the editing interface; wherein the label button comprises a text button, a style button and a prompt button; an editing and translation module, which clicks the label button corresponding to the target language resource of the business system on the editing interface based on the user's editing and translation requirements, and completes the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button; and a saving and publishing module, which exits the editing mode of the business system if the editing and translation of the target language resource of the business system is completed, clicks the prompt button and saves and publishes the target language resource of the business system after editing and translation, so that the text language type corresponding to the target language resource after editing and translation is displayed in the business system. By providing a label button next to the language resource in the editing interface of the business system, the problem of not being able to quickly and accurately determine the resource to be modified is solved, and the language resource can be directly edited and translated visually on the original interface using the label button to solve the problem of semantic deviation when the translated text cannot be displayed on the page in the prior art. After the language resource is edited and translated, the editing and translation effect can be seen immediately, which facilitates the instant adjustment of the page display content and display style of the business system.

[0122] See also Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5As shown in , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .

[0123] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, the above-mentioned Figure 1 as well as Figure 2 The steps of the internationalized multi-language management method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be described in detail here.

[0124] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1 as well as Figure 2 The steps of the internationalized multi-language management method in the method embodiment shown and the specific implementation methods can be found in the method embodiment, which will not be described in detail here.

[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0126] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0129] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0130] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An international multilingual management method, characterized in that: The management method comprises: In response to a user's editing instruction for the target language resource of the business system on the internationalization page, an editing interface of the business system is entered, and a corresponding label button is provided next to the target language resource on the editing interface; wherein the label button includes a text button, a style button and a prompt button; Clicking a label button corresponding to the target language resource of the business system on the editing interface based on the editing and translation requirements of the user, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button; If the editing and translation of the target language resources of the business system is completed, exit the editing mode of the business system, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type and text style type corresponding to the edited and translated target language resources are displayed in the business system.

2. The management method according to claim 1, characterized in that: In response to the user's editing instruction on the target language resource of the business system on the internationalization page, entering the editing interface of the business system, and providing a corresponding label button next to the target language resource on the editing interface, including: In response to the user entering the editing interface of the business system, the document object model elements containing the target attributes are searched in the editing interface based on the document object model search method, the position, size and attribute value of each document object model element are determined, and a label button is set next to each document object model element; wherein each document object model element corresponds to one.

3. The management method according to claim 1, characterized in that: The step of clicking a label button corresponding to the target language resource of the business system based on the editing and translation requirements of the user on the editing interface, and completing the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button, includes: On the editing interface, based on the editing needs of the user, the text button provided next to the target language resource of the business system is clicked, and the text language of the target language resource of the business system is edited and translated according to the function corresponding to the text button; wherein the text language types include simplified Chinese and traditional Chinese; On the editing interface, the style button provided next to the target language resource of the business system is clicked based on the user's editing needs, and the text style of the target language resource of the business system is edited according to the function corresponding to the style button; wherein the text style type includes text font, text color and text width.

4. The management method according to claim 3, characterized in that: The step of clicking the text button provided next to the target language resource of the business system on the editing interface based on the editing needs of the user, and completing the editing and translation of the text language of the target language resource of the business system according to the function corresponding to the text button, includes: Click the text button next to the target language resource in the editing interface to enter the language resource text language editing interface for the target language resource; Based on the editing and translation requirements of the user, in the language resource text language editing interface, the current text language type corresponding to the target language resource is edited and translated into the target text language type; After completing the editing and translation of the text language type corresponding to the target language resource, in response to the prompt button clicked by the user, the edited and translated target language resource is saved.

5. The management method according to claim 3, characterized in that: The step of clicking the style button provided next to the target language resource of the business system on the editing interface based on the editing needs of the user, and completing the editing of the text style of the target language resource of the business system according to the function corresponding to the style button, includes: Clicking the style button next to the target language resource on the editing interface to enter the language resource text style editing interface for the target language resource; Based on the editing and translation requirements of the user, in the language resource text style editing interface, the current text style type corresponding to the target language resource is replaced with the target text style type; After the editing of the text style type corresponding to the target language resource is completed, in response to the prompt button clicked by the user, the edited target language resource is saved.

6. The management method according to claim 1, characterized in that: The management method also includes: In the editing interface, based on the editing requirements of the user, a delete button corresponding to the target language resource of the business system is clicked, and the target language resource is deleted according to the function corresponding to the selected delete button.

7. The management method according to claim 1, characterized in that: If the editing and translation of the target language resource of the business system is completed, the editing mode of the business system is exited, the prompt button is clicked, and the edited target language resource of the business system is saved and published, so that the text language type corresponding to the edited and translated target language resource is displayed in the business system, including: When the user completes editing and clicks a prompt button on the editing interface, the target language resources of the business system after editing and translation are saved, and the target language resources of the business system after editing and translation are updated to the local language resource database of the internationalized page; Based on VUE resource binding, the current language text corresponding to the edited target language resource of the business system is displayed on the business system interface.

8. An international multi-language management device, characterized in that: The management device comprises: An editing interface module, for responding to a user's editing instruction on a target language resource of a business system on an internationalization page, entering the editing interface of the business system, and providing a corresponding label button next to the target language resource on the editing interface; wherein the label button includes a text button, a style button, and a prompt button; An editing and translation module, in the editing interface, clicks a label button corresponding to the target language resource of the business system based on the editing and translation needs of the user, and completes the editing and translation of the target language resource of the business system according to the function corresponding to the selected label button; The saving and publishing module is used to exit the editing mode of the business system if the editing and translation of the target language resources of the business system is completed, click the prompt button and save and publish the edited and translated target language resources of the business system, so that the text language type corresponding to the edited and translated target language resources is displayed in the business system.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the internationalized multilingual management method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the internationalized multi-language management method according to any one of claims 1 to 7 are executed.