Multi-language support framework oriented to operating system and data management method of multi-language support framework

Through the multi-language support framework for operating systems, combined with automated translation data synchronization and intelligent machine translation, the problems of fragmentation and high management costs in multi-language support of domestic operating systems are solved, and efficient and reliable multi-language data management is achieved.

CN120235166AActive Publication Date: 2025-07-01NAT UNIV OF DEFENSE TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510710773.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-07-01
Estimated Expiration
2045-05-29

AI Technical Summary

Technical Problem

Domestic operating systems have problems such as fragmented data, poor knowledge correlation and high management costs in terms of multilingual support, resulting in repetition and inconsistency in translation work.

Method used

It provides a multi-language support framework for operating systems, including the access layer, service layer, service layer and data layer. Through an automated translation data synchronization mechanism and fine-grained data model, combining intelligent machine translation and manual auditing, we ensure the traceability and consistency of translated data.

Benefits of technology

It significantly improves the management efficiency and consistency of multilingual data in domestic operating systems, reduces repetitive labor and maintenance costs, ensures high availability and robustness of data, and adapts to the multilingual needs between different software and versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120235166A_ABST
    Figure CN120235166A_ABST
Patent Text Reader

Abstract

The invention discloses an operating system-oriented multi-language support framework and a data management method thereof, and belongs to the field of computer software engineering. Firstly, source entries are extracted by analyzing software source codes and are accurately associated with multi-language translation data, and traceability and atomicity of the translation data are ensured. And through combination of intelligent machine translation and manual auditing, the translation quality is ensured. And a multi-language data synchronization mechanism is adopted, so that translation data between different software can be automatically updated. The system ensures high availability and robustness of data through version control and support of a cache mechanism, and adapts to multi-language requirements between different software and versions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer software engineering, and particularly to a multi-language support framework for operating systems and its data management method. Background Art

[0002] Domestic operating systems have been gradually widely used in the process of globalization. Especially in terms of multi-language support, with the rapid development of operating systems and their software components, the involved multi-language translation work has become increasingly complex. To meet the needs of users in different languages, the operating system needs to process multi-language translation data from multiple software packages and versions to ensure the normal operation of the system in different language environments. The multi-language support of the operating system mainly includes tasks such as the parsing of source code, the storage and management of translation data, and the synchronization of translation data across software and versions.

[0003] However, there are some problems in this field currently, mainly manifested as fragmented data, poor knowledge association, and high management costs. Due to the large number of software components, translation data is scattered in different versions and formats, lacking effective integration and association, which leads to the repetition and inconsistency of translation work. Common solutions include combining manual translation and machine translation to improve translation efficiency, using version control systems to manage translation data, and storing translation data and source entries through a centralized database. However, these methods often face problems such as difficult to unify translation quality, unable to quickly synchronize translation updates, and relatively high management costs for manual maintenance.

[0004] To solve these problems, some existing solutions attempt to reduce manual intervention and improve data consistency and synchronization efficiency by establishing an automated translation data synchronization mechanism and a fine-grained data model. However, these methods also have some drawbacks in practical applications. For example, over-reliance on machine translation may lead to incomplete guarantee of translation quality, and the implementation of an automatic synchronization mechanism requires a large amount of computing resources and sophisticated technical support, which may increase the complexity and maintenance cost of the system. Therefore, although automated solutions can improve efficiency, how to balance the combination of automation and manual review to ensure translation quality and system stability is still a problem that needs further optimization. Summary of the Invention

[0005] The embodiments of the present application provide a multi-language support framework for operating systems and its data management method.

[0006] On the one hand, a multi-language support framework for operating systems is provided. The framework includes an access layer, a business layer, a service layer, and a data layer from top to bottom; The data layer is used to store multi-language translation data related to the multi-language support framework and related log files; The service layer is used to provide background services for the multi - language support framework, interact with the underlying data layer for data - related services, and provide support API interfaces for the specific services of the business layer; The business layer is used to implement the business functions of the multi - language support framework based on the open - source Python Web framework Django; The access layer is used to provide access methods for the users of the multi - language support framework.

[0007] Optionally, the data layer provides an open - source MySQL database, a Redis system cache service, a file storage service, and a gitee third - party system hosting platform; The open - source MySQL database is used to store multi - language translation data generated during the operation of the system; The Redis system cache service is used to provide system cache services; The file storage service is used to save the original translation file content of the software package in file format and store the platform operation log information; The gitee third - party system hosting platform uses git as a version control tool and serves as a translation file code hosting platform.

[0008] Optionally, the service layer includes a term service for source term construction and legitimacy detection, a synchronization service for multi - language translation data and webhook, a notification service for email notification and in - site message notification, an asynchronous task service for Celery background tasks and scheduled tasks, an interface service for REST API, and a backup service for database multi - language translation data.

[0009] Optionally, the business functions implemented by the business layer include content management of translation projects and translation components, translation management of multi - language translation support and collaborative translation, permission control of translation projects and translation users, data statistics of translation memory and translation statistics, file management of translation file import and export, and extended function management of machine translation support.

[0010] Optionally, the access layer is also used to provide a unified login method for openKylin community users.

[0011] On the other hand, a data management method for a multi - language support framework for an operating system is also provided. The method is applicable to the multi - language support framework for an operating system described above, and the method includes: In the data layer, initialize the multi - language environment to obtain a source term data set, where the source term data set includes language, source - language text, and translation text; Perform a legitimacy check on the source term data set to complete the language category verification; In response to the source entry dataset not being legal natural language, an error message or warning is provided in the interactive web service; In response to the source entry dataset being an existing language, perform a check on the existence of the source language text; In response to the source entry dataset being a non-existent source language text, it is determined as illegal data; In response to the source entry dataset being an existing source language text, perform a check on the existence of the translated text; In response to the source entry dataset being an existing translated text, update the mapping relationship and store it in the open-source MySQL database, and the open-source MySQL database provides for the data layer; In response to the source entry dataset being a non-existent translated text, establish a translated text mapping relationship and store it in the open-source MySQL database; In response to the source entry dataset being a new language, create a language environment for the new language and establish a translated text mapping relationship and store it in the open-source MySQL database.

[0012] Optionally, the method further includes: In response to the existence of a translation mapping update event, generate an associated translation update event through the service layer; Obtain the translation update event through the event connector and parse to obtain the source entry to be processed; Monitor the translation update event to determine whether the target translation sample needs to be updated; In response to the need, update the translation mapping according to the translation update event and write it into the open-source MySQL database; Parse the source entry to be processed from the translation update event, write it into the multi-language static storage and read it; Determine whether there is a target translation file for the translation data of the source entry to be processed; In response to the existence of the target translation file, determine whether it needs to be updated; In response to the target translation file needing to be updated, update the target translation file and perform software integration; In response to the non-existence of the target translation file, generate the target translation file and perform software integration.

[0013] On the other hand, a computer-readable storage medium is provided, and the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the multi-language support framework data management method for an operating system as described in the above aspect.

[0014] On the other hand, a computer program product is also provided. The computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for managing data of the multi-language support framework for the operating system described in the above aspects.

[0015] The technical effects brought by this application are at least as follows.

[0016] The method for managing data of the multi-language support framework for the operating system provided by this application significantly improves the management efficiency and consistency of multi-language data of domestic operating systems by constructing a fine-grained construction model of the multi-language environment of the operating system and combining an automated translation data synchronization mechanism. In the framework design, first, source entries are extracted by parsing software source code and precisely associated with multi-language translation data, ensuring the traceability and atomicity of the translation data. Through the combination of intelligent machine translation and manual review, the translation process is not only efficient but also ensures translation quality. Further, a multi-language data synchronization mechanism is adopted, enabling automatic update of translation data between different software, avoiding repeated translation and manual intervention. This process not only improves the accuracy and consistency of the data but also greatly reduces repetitive labor and maintenance costs. At the same time, with the support of version control and caching mechanisms, the system ensures high availability and robustness of the data, adapts to the multi-language requirements between different software and versions, and effectively improves the R & D efficiency of the multi-language version of the entire operating system. This comprehensive framework design makes the construction of the multi-language environment of domestic operating systems more sustainable and efficient through automated and intelligent means, promoting the application and development of domestic operating systems in the global market. Brief Description of the Drawings

[0017] Figure 1 Shows a schematic structural diagram of a multi-language support framework for an operating system provided by an exemplary embodiment of this application; Figure 2 Shows a flowchart for constructing a fine-grained multi-language database; Figure 3 Shows a flowchart for automatic synchronization of multi-language translation data between software. Detailed Embodiments

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below in conjunction with the accompanying drawings.

[0019] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0020] Example 1

[0021] Please refer to Figure 1 , which shows a schematic diagram of a multi-language support framework for an operating system provided by an exemplary embodiment of the present application. The multi-language support framework for the operating system includes an access layer, a service layer, a business layer, and a data layer from top to bottom.

[0022] In terms of overall functions, the data layer is used to store multi-language translation data related to the multi-language support framework and related log files. The service layer is used to provide background services for the multi-language support framework, interact with the underlying data layer for data-related services (such as data management, synchronization, etc.), and provide support API interfaces for the specific services of the business layer. The business layer is used to implement the business functions of the multi-language support framework based on the open-source Python Web framework Django. The access layer is used to provide access methods for users of the multi-language support framework.

[0023] Further, each layer is described.

[0024] As Figure 1 shown, the data layer provides an open-source MySQL database, a Redis system cache service, a file storage service, and a gitee third-party system hosting platform.

[0025] The open-source MySQL database is used to store multi-language translation data generated during the operation of the system. The open-source MySQL database is used to store some multi-language translation data that needs to be persistently saved during the operation of the system. It has high customizability, stability, and security, and has good compatibility with various programming languages (such as PHP, Java, etc.) and operating systems.

[0026] At the same time, in order to improve the robustness and availability of the system, the platform uses Redis as the system cache service. The ultra-high data processing performance of Redis effectively improves the availability of the entire system. As Figure 1 shown, the Redis system cache service is used to provide system cache services.

[0027] The file storage service is used to save the original translation file content of the software package in file format (such as.po,.ts, etc.), which can facilitate collaborative development through git. The gitee third-party system hosting platform uses git as a version control tool and as a translation file code hosting platform, which can effectively monitor the running status of the platform and quickly locate errors that occur during the operation of the platform. The platform uses the file system to store the platform operation log information.

[0028] As Figure 1 shown, the service layer includes a term service for source term construction and legitimacy detection, a synchronization service for multilingual translation data and webhooks, a notification service for email notifications and in-site message notifications, an asynchronous task service for Celery background tasks and scheduled tasks, an interface service for REST APIs, and a backup service for multilingual translation data in the database.

[0029] As Figure 1 shown, the business functions implemented by the business layer include content management of translation projects and translation components, translation management of multilingual translation support and collaborative translation, permission control of translation projects and translation users, data statistics of translation memory libraries and translation statistics, file management of translation file import and export, and extended function management of machine translation support.

[0030] In addition, the access layer is also used to provide a unified login method for openKylin community users, reducing the maintenance and management problems of multiple personal accounts for users of the multilingual support framework.

[0031] Embodiment 2

[0032] In addition, the present application also provides a multilingual support framework data management method for an operating system, which is applicable to the multilingual support framework for an operating system and corresponds to the Figure 2 shown fine-grained multilingual database construction flowchart and the Figure 3 shown automatic synchronization flowchart of multilingual translation data between software.

[0033] On the one hand, aiming at the problems of fragmentation, poor data correlation, and high management cost of operating system multilingual data, this project proposes a fine-grained construction scheme for the operating system multilingual environment. By automatically parsing all software source codes under the domestic operating system, source terms are extracted; through manual and intelligent machine translation of the source terms, an atomic "software source code - multilingual data" traceability and correlation model is established, thereby constructing a multilingual database for the domestic operating system.

[0034] As Figure 2 shown, for the fine-grained multilingual database construction process, the method includes: Content 1. In the data layer, initialize the multilingual environment to obtain a source term dataset, and the source term dataset includes language, source language text, and translation text.

[0035] First, initialize the multilingual environment, and then through software source code version control integration, obtain all software source codes under the operating system, and parse to obtain all source term datasets (source language text, translation text, etc.).

[0036] Content II: Perform a legality check on the source entry dataset to complete the language category verification.

[0037] Currently, the multi-language support framework supports multiple translation file formats, such as XML Spreadsheet, gettext MO / PO, CSV, Qt Linguist, etc. Each format is automatically configured with corresponding parsers and serializers to read and write file content and perform syntax parsing to obtain the source entry dataset. The multi-language support framework will perform a legality check on the source entry dataset, identify the ISO 639 language identification code of the source entry, and analyze whether the source entry dataset is a legal natural language.

[0038] Content III: In response to the source entry dataset not being a legal natural language, provide an error message or warning in the interactive web service.

[0039] Furthermore, if the source entry is not a legal natural language, provide an error message or warning in the interactive web service. Then analyze the language category of the multi-language source entry dataset.

[0040] Content IV: In response to the source entry dataset being an existing language, perform a check on the existence of the source language text.

[0041] Content V: In response to the source entry dataset being a non-existent source language text, determine it as illegal data.

[0042] Content VI: In response to the source entry dataset being an existing source language text, perform a check on the existence of the translation text.

[0043] The above can be summarized as: ① If the language category verification is an existing language, perform a check on the existence of the source language text.

[0044] 1) If the check on the existence of the source language text determines that it does not exist, then determine it as illegal data; if the check on the existence of the source language text determines that it exists, then further determine the check on the existence of the translation text. If the check on the existence of the translation text does not exist, then establish a translation text mapping relationship to form a multi-language database.

[0045] 2) If the check on the existence of the translation text exists, then directly update the mapping to form a multi-language database.

[0046] ② If the language category verification is a new language, create a language environment to establish a translation text mapping relationship to form a multi-language database.

[0047] ③ If the language category verification is an illegal language, determine it as illegal data.

[0048] Content VII: In response to the source entry dataset being an existing translated text, update the mapping relationship and store it in the open-source MySQL database, which provides the data layer.

[0049] Content VIII: In response to the source entry dataset being a non-existing translated text, establish a translation text mapping relationship and store it in the open-source MySQL database.

[0050] Content IX: In response to the source entry dataset being a new language, create a language environment for the new language and establish a translation text mapping relationship and store it in the open-source MySQL database.

[0051] Among them, the multi-language support framework currently supports two translation methods: manual translation and intelligent machine translation. A translation service can be provided for translators through an interactive web service, and new translation data obtained by translators can be collected. At the same time, the multi-language support framework can be docked and integrated with the Chinese-Tibetan bidirectional machine translation model, and the neural Chinese-Tibetan bidirectional machine translation technology can be used to achieve fast and accurate machine translation, providing basic alternative multi-language translation data for translators. After the translator completes the translation, the multi-language support framework will update the missing and obsolete translation mapping relationships in the software and persistently store the mapping relationships. Through the translation mapping relationship, a high degree of association between the source entry and the translation data is achieved, and fast search of Tibetan language data between software can be realized through the translation mapping relationship.

[0052] On the other hand, in order to further reduce the management cost of the multi-language support platform and ensure the data consistency of multi-language translation data among many software in the operating system, this project has implemented an automatic synchronization function for multi-language data between software.

[0053] As Figure 3 shown, for the automatic synchronization process of multi-language translation data between software, the method includes: Content I: In response to an update event of the translation mapping, generate an associated translation update event through the service layer.

[0054] When there is an update or creation of a translation mapping relationship (i.e., multi-language environment initialization), the multi-language support framework will generate an associated translation update event.

[0055] Content II: Obtain the translation update event through the event connector and parse it to obtain the source entry to be processed.

[0056] The translation update event can also be obtained through the event connector.

[0057] Content III: Listen to the translation update event and determine whether the target translation sample needs to be updated.

[0058] Through the update event listener, the source entries to be processed are parsed from the translation update event. If the target translation samples of the source entries to be processed do not need to be updated, then the content two should be returned for execution.

[0059] Content Four: If necessary, update the translation mapping according to the translation update event and write it into the open-source MySQL database.

[0060] If the target translation samples of the source entries to be processed need to be updated, then the multi-language support framework will update the mapping to the multi-language database based on the translation data and write it into the multi-language static storage. Then, the multi-language support framework will read the translation data and check the translation data between software within the entire operating system source code repository through the mapping relationship to detect whether there is translation data for the source entries to be processed in the software.

[0061] Content Five: Parse the source entries to be processed from the translation update event, write them into the multi-language static storage, and read them.

[0062] Content Six: Determine whether there is a target translation file for the translation data of the source entries to be processed.

[0063] Content Seven: If the target translation file exists, determine whether an update is needed.

[0064] If there is target translation file data, then compare whether the original translation data in the software is consistent with the newly added translation data in the translation mapping. If they are not consistent, then the target translation file needs to be updated, and the new translation data is used for the update. Further, software integration is performed to achieve automatic synchronization and consistency maintenance of multi-language data between software.

[0065] Furthermore, compare whether the original translation data in the software is consistent with the newly added translation data in the translation mapping. If they are consistent, then the target translation file does not need to be updated.

[0066] Content Eight: If the target translation file needs to be updated, update the target translation file and perform software integration.

[0067] Content Nine: If the target translation file does not exist, generate the target translation file and perform software integration.

[0068] If there is no target translation file data, then according to the translation mapping, add the translation data of the source entries, and further perform software integration.

[0069] Finally, the multi-language support framework will submit the updated or newly added translation data to the corresponding software source code for update, thereby achieving the synchronization of multi-language translation data between software.

[0070] In summary, the multi-language support framework data management method for operating systems provided by this application significantly improves the management efficiency and consistency of multi-language data in domestic operating systems by constructing a fine-grained multi-language environment construction model for operating systems and combining an automated translation data synchronization mechanism. In terms of framework design, first, source entries are extracted by parsing software source code and precisely associated with multi-language translation data, ensuring the traceability and atomicity of translation data. Through the combination of intelligent machine translation and manual review, the translation process is not only efficient but also ensures translation quality. Further, a multi-language data synchronization mechanism is adopted, enabling automatic update of translation data between different software, avoiding repeated translation and manual intervention. This process not only improves the accuracy and consistency of data but also greatly reduces repetitive labor and maintenance costs. At the same time, with the support of version control and caching mechanisms, the system ensures high availability and robustness of data, adapts to the multi-language requirements between different software and versions, and effectively improves the R & D efficiency of the multi-language version of the entire operating system. This comprehensive framework design makes the construction of the multi-language environment of domestic operating systems more sustainable and efficient through automated and intelligent means, promoting the application and development of domestic operating systems in the global market.

[0071] On the other hand, a computer-readable storage medium is provided, and the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the multi-language support framework data management method for operating systems as described in the above aspect.

[0072] On the other hand, a computer program product is further provided, and the computer program product stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the multi-language support framework data management method for operating systems as described in the above aspect.

[0073] The serial numbers of the embodiments of this application above are only for description and do not represent the advantages or disadvantages of the embodiments.

[0074] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disc, etc.

[0075] The above are only optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included in the protection scope of this application.

Claims

1. A multi-language support framework for an operating system, characterized in that The framework includes an access layer, a service layer, a business layer, and a data layer from top to bottom; The data layer is used to store multilingual translation data related to the multilingual support framework and related log files; The service layer is used to provide background services for the multilingual support framework, interact with the underlying data layer for data-related services, and provide support API interfaces for the specific services of the business layer; The business layer is used to implement the business functions of the multilingual support framework based on the open-source Python Web framework Django; The access layer is used to provide access methods for users of the multilingual support framework.

2. The multi-language support framework for an operating system according to claim 1, wherein The data layer provides an open-source MySQL database, a Redis system cache service, a file storage service, and a gitee third-party system hosting platform; The open-source MySQL database is used to store multilingual translation data generated during the operation of the system; The Redis system cache service is used to provide system cache services; The file storage service is used to save the original translation file content of the software package in file format and store the platform operation log information; The gitee third-party system hosting platform uses git as a version control tool and serves as a translation file code hosting platform.

3. The multi-language support framework for an operating system according to claim 1, characterized in that, The service layer includes a term service for source term construction and legitimacy detection, a synchronization service for multilingual translation data and webhook, a notification service for email notification and in-site message notification, an asynchronous task service for Celery background tasks and scheduled tasks, an interface service for REST API, and a backup service for database multilingual translation data.

4. The multi-language support framework for operating systems according to claim 1, characterized in that, The business functions implemented by the business layer include content management of translation projects and translation components, translation management of multilingual translation support and collaborative translation, permission control of translation projects and translation users, data statistics of translation memory and translation statistics, file management of translation file import and export, and extended function management of machine translation support.

5. The multi-language support framework for an operating system according to claim 1, characterized in that, The access layer is also used to provide a unified login method for openKylin community users.

6. A data management method for a multi-language support framework oriented to an operating system, characterized in that, The method is applicable to the multilingual support framework for operating systems described in any one of claims 1 to 5 above, and the method includes: In the data layer, initialize the multilingual environment to obtain a source term data set, and the source term data set includes language, source language text, and translation text; Perform a legitimacy check on the source term data set to complete the language category verification; In response to the source term data set not being a legal natural language, provide an error message or warning in the interactive web service; In response to the source term data set being an existing language, perform an existence check on the source language text; In response to the source term data set being a non-existent source language text, determine it as illegal data; In response to the source term data set being an existing source language text, perform an existence check on the translation text; In response to the source term data set being an existing translation text, update the mapping relationship and store it in the open-source MySQL database provided by the data layer; In response to the source entry dataset being a non-existent translated text, establish a translation text mapping relationship and store it in the open-source MySQL database; In response to the source entry dataset being a new language, create a language environment for the new language and establish a translation text mapping relationship and store it in the open-source MySQL database.

7. The method according to claim 6, wherein The method further includes: In response to the existence of a translation mapping update event, generate an associated translation update event through the service layer; Obtain the translation update event through the event connector and parse to obtain the source entry to be processed; Monitor the translation update event to determine whether the target translation sample needs to be updated; In response to the need, update the translation mapping according to the translation update event and write it into the open-source MySQL database; Parse the source entry to be processed from the translation update event, write it into the multi-language static storage and read it; Determine whether there is a target translation file for the translation data of the source entry to be processed; In response to the existence of the target translation file, determine whether it needs to be updated; In response to the target translation file needing to be updated, update the target translation file and perform software integration; In response to the non-existence of the target translation file, generate the target translation file and perform software integration.

8. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the multi-language support framework data management method according to any one of claims 6 to 7 above.

Citation Information

Patent Citations

  • A WEB management system and method for translating text contents in multiple languages

    CN109828775A

  • System internationalization configuration method and device, equipment and storage medium

    CN114003208A

  • Translation management and evaluation method for Chinese and Tibetan language data under domestic operating system

    CN114217901A

  • Man-machine interaction system

    CN114237793A

  • Cross-platform self-adaptive internationalization language dynamic switching method based on database

    CN119886164A