A system based on a multi-language support framework oriented to an operating system and a data management method thereof
By building a multilingual support framework, combining automated translation data synchronization and manual auditing, the problems of fragmentation and high management costs in multilingual translation management are solved, efficient and reliable multilingual data management is achieved, and the multilingual version research and development efficiency of the operating system is improved.
Patent Information
- Application Number
- CN202510710773.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-29
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2045-05-29
AI Technical Summary
The prior art has problems such as fragmented data, poor knowledge correlation and high management costs in multilingual translation management. Automation solutions may lead to the inability to fully guarantee the translation quality and increase system complexity and maintenance costs.
Build a multilingual support framework based on an operating system, including the data layer, service layer and business layer. It adopts a fine-grained data model and an automated translation data synchronization mechanism. Combined with manual auditing, it extracts source entries by parsing the software source code, establishes the precise relationship between source entries and multilingual translated data, supports intelligent machine translation and manual auditing, and realizes automatic update and consistency management of multilingual data.
It improves the efficiency and consistency of multilingual data management, reduces repetitive labor and maintenance costs, ensures translation quality and system stability, adapts to the multilingual needs of different software and versions, and improves the R&D efficiency of multilingual versions of the operating system.
Smart Images

Figure CN120235166B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer software engineering, and in particular to a system based on a multi-language support framework for an operating system and a data management method thereof. Background Art
[0002] Domestic operating systems are gaining widespread adoption in the globalization process, particularly in terms of multilingual support. With the rapid development of operating systems and their software components, the multilingual translation required is becoming increasingly complex. To accommodate the needs of users speaking different languages, operating systems must process multilingual translation data from multiple software packages and versions to ensure proper operation in diverse language environments. Multilingual support in operating systems primarily involves parsing source code, storing and managing translation data, and synchronizing translation data across software packages and versions.
[0003] However, several challenges currently exist in this area, primarily manifested in data fragmentation, poor knowledge linkage, and high management costs. Due to the numerous software components, translation data is scattered across different versions and formats, lacking effective integration and linkage. This leads to duplication and inconsistency in translation work. Common solutions include improving translation efficiency through a combination of manual and machine translation, managing translation data using version control systems, and storing translation data and source terms in centralized databases. However, these approaches often face challenges such as difficulty in achieving consistent translation quality, inability to quickly synchronize translation updates, and high management costs associated with manual maintenance.
[0004] To address these issues, some existing solutions attempt to reduce manual intervention and improve data consistency and synchronization efficiency by establishing automated translation data synchronization mechanisms and fine-grained data models. However, these approaches also have drawbacks in practical applications. For example, over-reliance on machine translation can lead to incomplete translation quality assurance, and the implementation of automatic synchronization mechanisms requires extensive computing resources and sophisticated technical support, potentially increasing system complexity and maintenance costs. Therefore, while automated solutions can improve efficiency, balancing automation with manual review to ensure translation quality and system stability remains a challenge that requires further optimization. Summary of the Invention
[0005] The embodiments of the present application provide a system and a data management method thereof based on a multi-language support framework oriented to an operating system.
[0006] On the one hand, a system based on a multi-language support framework for an operating system is provided, wherein the framework comprises, from top to bottom, an access layer, a business layer, a service layer, and a data layer;
[0007] The data layer is used to store multilingual translation data and related log files related to the multilingual support framework;
[0008] The service layer is used to provide background services for the multi-language support framework, interact with the underlying data layer to perform data-related services, and provide a supporting API interface for the specific services of the business layer;
[0009] 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;
[0010] The access layer is used to provide an access method for users of the multi-language support framework.
[0011] Optionally, the data layer provides an open source MySQL database, Redis system cache service, file storage service and gitee third-party system hosting platform;
[0012] The open source MySQL database is used to store multilingual translation data generated during the operation of the system;
[0013] The Redis system cache service is used to provide system cache services;
[0014] The file storage service is used to save the original translated file content of the software package in a file format, as well as store the platform operation log information;
[0015] The gitee third-party system hosting platform uses git as a version control tool and as a translation file code hosting platform.
[0016] Optionally, the service layer includes entry services for source entry construction and legitimacy detection, synchronization services for multilingual translation data and webhooks, notification services for email notifications and in-site message notifications, asynchronous task services for Celery background tasks and scheduled tasks, REST API interface services, and database multilingual translation data backup services.
[0017] Optionally, 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 management of extended functions supported by machine translation.
[0018] Optionally, the access layer is also used to provide a unified login method for openKylin community users.
[0019] On the other hand, a system data management method based on a multi-language support framework for an operating system is also provided. The method is applicable to the system based on the multi-language support framework for an operating system described above, and the method comprises:
[0020] In the data layer, a multilingual environment is initialized to obtain a source term data set, wherein the source term data set includes a language, a source language text, and a translation text;
[0021] Performing a validity check on the source term dataset to complete language category verification;
[0022] In response to the source term dataset not being a legal natural language, providing an error or warning in the interactive web service;
[0023] In response to the source term dataset being in an existing language, performing a source language text existence check;
[0024] In response to the source term data set being a source language text that does not exist, determining that the data set is illegal data;
[0025] In response to the source term data set being an existing source language text, performing a translation text existence check;
[0026] In response to the source term data set containing the existing translated text, the mapping relationship is updated and stored in an open source MySQL database, where the open source MySQL database is provided by the data layer;
[0027] In response to the source term data set being a non-existent translation text, a translation text mapping relationship is established and stored in an open source MySQL database;
[0028] In response to the source term data set, a language environment of the new language is created for the new language and a translation text mapping relationship is established and stored in an open source MySQL database.
[0029] Optionally, the method further includes:
[0030] In response to an update event indicating that a translation mapping exists, generating, by the service layer, an associated translation update event;
[0031] Obtain the translation update event through an event connector and parse it to obtain the source term to be processed;
[0032] Monitor the translation update event to determine whether the target translation sample needs to be updated;
[0033] In response to the need, the translation mapping is updated according to the translation update event and written into the open source MySQL database;
[0034] Parsing the translation update event to obtain the source terms to be processed, writing them into multilingual static storage, and reading them;
[0035] Determining whether the translation data of the source term to be processed exists in a target translation file;
[0036] In response to the existence of the target translation file, determining whether it needs to be updated;
[0037] In response to the target translation file needing to be updated, updating the target translation file and performing software integration;
[0038] In response to the target translation file not existing, the target translation file is generated and software integration is performed.
[0039] On the other hand, a computer-readable storage medium is provided, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the system data management method based on the multi-language support framework for an operating system as described in the above aspect.
[0040] On the other hand, a computer program product is also provided, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the system data management method based on the multi-language support framework for the operating system described in the above aspect.
[0041] The technical effects brought about by this application are at least as follows.
[0042] The system data management method based on a multilingual support framework for operating systems provided by this application significantly improves the management efficiency and consistency of multilingual data in domestic operating systems by constructing a fine-grained operating system multilingual environment construction model and combining it with an automated translation data synchronization mechanism. In terms of framework design, the source terms are first extracted by parsing the software source code and accurately associated with the multilingual translation data, ensuring the traceability and atomicity of the translation data. By combining intelligent machine translation with manual review, the translation process is not only efficient but also ensures translation quality. Furthermore, the use of a multilingual data synchronization mechanism enables the automatic update of translation data between different software, avoiding duplicate translation and manual intervention. This process not only improves data accuracy and consistency, but also significantly reduces duplication of work and maintenance costs. At the same time, the system ensures high data availability and robustness through the support of version control and caching mechanisms, adapts to the multilingual requirements between different software and versions, and effectively improves the efficiency of multilingual version development for the entire operating system. This comprehensive framework design, through automated and intelligent means, makes the construction of a multilingual environment for domestic operating systems more sustainable and efficient, promoting the application and development of domestic operating systems in the global market. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of a system structure based on an operating system-oriented multi-language support framework provided by an exemplary embodiment of the present application is shown;
[0044] Figure 2 A flow chart for building a fine-grained multilingual database is shown;
[0045] Figure 3 Shown is a flow chart for automatic synchronization of multi-language translation data between software. DETAILED DESCRIPTION
[0046] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0047] In this document, "plurality" refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects. Example
[0048] Please refer to Figure 1 , which shows a schematic diagram of the system structure of a multi-language support framework based on an operating system provided by an exemplary embodiment of the present application. The system based on the multi-language support framework for an operating system includes, from top to bottom, an access layer, a business layer, a service layer, and a data layer.
[0049] In terms of overall functionality, the data layer is used to store multilingual translation data and related log files related to the multilingual support framework. The service layer is used to provide background services for the multilingual support framework, and to interact with the underlying data layer to perform data-related services (such as data management, synchronization, etc.). In addition, it provides a supporting API interface for the specific business 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.
[0050] Furthermore, each layer is described.
[0051] like Figure 1 As shown, the data layer provides open source MySQL database, Redis system cache service, file storage service and gitee third-party system hosting platform.
[0052] The open source MySQL database is used to store multilingual translation data generated during the operation of the system. The open source MySQL database is used to store some multilingual translation data generated during the operation of the system that needs to be persisted. It is highly customizable, stable and secure, and has good compatibility with various programming languages (such as PHP, Java, etc.) and operating systems.
[0053] At the same time, in order to improve the robustness and availability of the system, the platform uses Redis as the system cache service. Redis's ultra-high data processing performance effectively improves the availability of the entire system. Figure 1 As shown, the Redis system cache service is used to provide system cache services.
[0054] 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 platform's operating status and quickly locate errors that occur during the platform's operation. The platform uses the file system to store platform operation log information.
[0055] like Figure 1 As shown, the service layer includes the entry service for source entry construction and legality detection, the synchronization service for multilingual translation data and webhooks, the notification service for email notifications and in-site message notifications, the asynchronous task service for Celery background tasks and scheduled tasks, the interface service of REST API and the backup service for database multilingual translation data.
[0056] like Figure 1 As 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 and translation statistics, file management of translation file import and export, and management of extended functions supported by machine translation.
[0057] In addition, the access layer is also used to provide a unified login method for openKylin community users, reducing the maintenance and management issues of multiple personal accounts for users of the multi-language support framework. Example
[0058] In addition, the present application also provides a system data management method based on a multi-language support framework for an operating system, which is applicable to a system based on a multi-language support framework for an operating system, corresponding to Figure 2 The fine-grained multilingual database construction flow chart shown and Figure 3The flowchart of automatic synchronization of multi-language translation data between software is shown.
[0059] On the one hand, in response to the problems of fragmentation, poor data association, and high management costs in the multilingual data of operating systems, this project proposes a fine-grained operating system multilingual environment construction scheme. By automatically parsing all software source codes under domestic operating systems, source terms are extracted; through manual and intelligent machine translation of source terms, an atomic "software source code-multilingual data" traceability association model is established, thereby constructing a domestic operating system multilingual database.
[0060] like Figure 2 As shown, for the fine-grained multilingual database construction process, the method includes:
[0061] Content 1: In the data layer, a multilingual environment is initialized to obtain a source term dataset, which includes language, source language text, and translated text.
[0062] First, the multilingual environment is initialized, and then all software source codes under the operating system are obtained through software source code version control integration, and all source entry data sets (source language text, translated text, etc.) are obtained through parsing.
[0063] Content 2: Perform a legitimacy check on the source term dataset to complete language category verification.
[0064] The multilingual support framework currently supports a variety of translation file formats, including XML Spreadsheet, gettext MO / PO, CSV, and Qt Linguist. Each format automatically configures a corresponding parser and serializer to read and write file content and perform syntax analysis to obtain the source term dataset. The multilingual support framework then verifies the validity of the source term dataset, identifying the ISO 639 language identifier of the source term and analyzing whether the source term dataset is legal natural language.
[0065] Content 3: In response to the source term dataset not being a legal natural language, providing an error or warning in the interactive web service.
[0066] Furthermore, if the source term is not a valid natural language, an error or warning is provided in the interactive web service.Then the language category of the multilingual source term dataset is analyzed.
[0067] Content 4: In response to the source entry dataset being in an existing language, performing a source language text existence verification.
[0068] Content 5: In response to the source term data set being a non-existent source language text, it is determined to be illegal data.
[0069] Content 6: In response to the source entry data set being an existing source language text, a translation text existence check is performed.
[0070] The above can be summarized as follows:
[0071] ① If the language category verification is an existing language, perform a source language text existence verification.
[0072] 1) If the source text existence check fails, the data is deemed invalid. If the source text existence check fails, the translation text existence check is performed. If the translation text existence check fails, a translation text mapping relationship is established, thus forming a multilingual database.
[0073] 2) If the translation text existence check is yes, then directly update the mapping to form a multilingual database.
[0074] ② If the language category verification is a new language, a language environment is created to establish a translation text mapping relationship and form a multilingual database.
[0075] ③ If the language category check is an illegal language, it is determined to be illegal data.
[0076] Content 7: In response to the source term data set being an existing translation text, the mapping relationship is updated and stored in an open source MySQL database, which is provided by the data layer.
[0077] Content 8: In response to the source term data set containing no translated text, a translation text mapping relationship is established and stored in an open source MySQL database.
[0078] Content 9: In response to the source term dataset, a language environment of the new language is created for the new language and a translation text mapping relationship is established and stored in an open source MySQL database.
[0079] Among them, the multilingual support framework currently supports two translation methods: manual translation and intelligent machine translation. Translation services can be provided to translators through interactive web services, and new translation data obtained by translators can be collected. At the same time, the multilingual support framework can be connected and integrated with the Chinese-Tibetan bidirectional machine translation model, and use neural Chinese-Tibetan bidirectional machine translation technology to achieve fast and accurate machine translation, providing translators with basic alternative multilingual translation data. After the translator completes the translation, the multilingual support framework will update the missing and outdated translation mapping relationships in the software and store the mapping relationships persistently. The translation mapping relationship achieves a high degree of correlation between the source terms and the translation data, and the translation mapping relationship can be used to quickly search Tibetan language data between software.
[0080] On the other hand, in order to further reduce the management cost of the multilingual support platform and ensure the data consistency of multilingual translation data among numerous software in the operating system, this project implements the automatic synchronization function of multilingual data between software.
[0081] like Figure 3 As shown, for the process of automatic synchronization of multi-language translation data between software, the method includes:
[0082] Content 1: In response to an update event indicating that a translation mapping exists, an associated translation update event is generated through the service layer.
[0083] When a translation mapping relationship is updated or created (i.e., a multilingual environment is initialized), the multilingual support framework generates an associated translation update event.
[0084] Content 2: Obtain the translation update event through the event connector and parse it to obtain the source term to be processed.
[0085] Translation update events are also available via the event connector.
[0086] Content 3: Monitor the translation update event to determine whether the target translation sample needs to be updated.
[0087] By listening to the update event, the source term to be processed is parsed from the translation update event. If the target translation sample of the source term to be processed does not need to be updated, it is necessary to return to content 2 for execution.
[0088] Content 4: In response to the need, the translation mapping is updated according to the translation update event and written into the open source MySQL database.
[0089] If the target translation sample of the source term to be processed needs to be updated, the multilingual support framework will then update the mapping to the multilingual database based on the translation data and write it into the multilingual static storage. The multilingual support framework will then read the translation data and perform translation data checks between software within the entire operating system source code repository through mapping relationship checks to detect whether the software contains translation data for the source term to be processed.
[0090] Content 5: Parsing the translation update event to obtain the source terms to be processed, writing them into multi-language static storage, and then reading them.
[0091] Content 6: Determine whether the translation data of the source term to be processed exists in the target translation file.
[0092] Content 7: In response to the existence of the target translation file, determining whether it needs to be updated.
[0093] If the target translation file data exists, the original translation data in the software is compared with the newly added translation data in the translation mapping relationship to see if they are consistent. If they are inconsistent, the target translation file needs to be updated, and the new translation data is used to update it, and further software integration is performed, thereby achieving automatic synchronization and consistency maintenance of multilingual data between software.
[0094] Furthermore, the original translation data in the software is compared with the newly added translation data in the translation mapping relationship to see if they are consistent. If they are consistent, the target translation file does not need to be updated.
[0095] Content 8: In response to the target translation file needing to be updated, the target translation file is updated and software integration is performed.
[0096] Content 9. In response to the target translation file not existing, generating the target translation file and performing software integration.
[0097] If the target translation file data does not exist, the translation data of the source term is added according to the translation mapping relationship to further perform software integration.
[0098] Finally, the multilingual support framework submits the updated or newly added translation data to the corresponding software source code for updating, thereby achieving multilingual translation data synchronization between software.
[0099] In summary, the system data management method based on a multilingual support framework for operating systems provided by this application significantly improves the management efficiency and consistency of multilingual data in domestic operating systems by constructing a fine-grained operating system multilingual environment construction model and combining it with an automated translation data synchronization mechanism. In terms of framework design, the source terms are first extracted by parsing the software source code and accurately associated with the multilingual translation data, ensuring the traceability and atomicity of the translation data. By combining intelligent machine translation with manual review, the translation process is not only efficient but also ensures translation quality. Furthermore, the use of a multilingual data synchronization mechanism enables automatic updating of translation data between different software, avoiding duplicate translation and manual intervention. This process not only improves data accuracy and consistency, but also significantly reduces duplication of work and maintenance costs. At the same time, the system, supported by version control and caching mechanisms, ensures high data availability and robustness, adapts to the multilingual requirements of different software and versions, and effectively improves the efficiency of multilingual version development for the entire operating system. This comprehensive framework design, through automated and intelligent means, makes the construction of a multilingual environment for domestic operating systems more sustainable and efficient, promoting the application and development of domestic operating systems in the global market.
[0100] On the other hand, a computer-readable storage medium is provided, which stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the system data management method based on the multi-language support framework for an operating system as described in the above aspect.
[0101] On the other hand, a computer program product is also provided, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the system data management method based on the multi-language support framework for the operating system described in the above aspect.
[0102] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0103] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0104] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A system based on a multi-language support framework for an operating system, characterized in that: The framework includes access layer, business layer, service layer and data layer from top to bottom; The data layer is used to store multilingual translation data and related log files related to the multilingual support framework; The service layer is used to provide background services for the multi-language support framework, interact with the underlying data layer to perform data-related services, and provide a supporting API interface 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 multilingual support framework; The multilingual support framework performs data management by the following method, which includes: In the data layer, a multilingual environment is initialized to obtain a source term data set, wherein the source term data set includes a language, a source language text, and a translation text; Performing a validity check on the source term dataset to complete language category verification; In response to the source term dataset not being a legal natural language, providing an error or warning in the interactive web service; In response to the source term dataset being in an existing language, performing a source language text existence check; In response to the source term data set being a source language text that does not exist, determining that the data set is illegal data; In response to the source term data set being an existing source language text, performing a translation text existence check; In response to the source term data set containing the existing translated text, the mapping relationship is updated and stored in an open source MySQL database, where the open source MySQL database is provided by the data layer; In response to the source term data set being a non-existent translation text, a translation text mapping relationship is established and stored in an open source MySQL database; In response to the source term data set, a language environment of the new language is created for the new language and a translation text mapping relationship is established and stored in an open source MySQL database.
2. The system based on the multi-language support framework for operating systems according to claim 1, characterized in that: The data layer provides open source MySQL database, Redis system cache service, file storage service and 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 translated file content of the software package in a file format, as well as store the platform operation log information; The gitee third-party system hosting platform uses git as a version control tool and as a translation file code hosting platform.
3. The system based on the multi-language support framework for operating systems according to claim 1, characterized in that: The service layer includes entry services for source entry construction and legitimacy detection, synchronization services for multilingual translation data and webhooks, notification services for email notifications and in-site message notifications, asynchronous task services for Celery background tasks and scheduled tasks, REST API interface services, and database multilingual translation data backup services.
4. The system based on 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 expansion function management supported by machine translation.
5. The system based on the multi-language support framework for operating systems according to claim 1, characterized in that: The access layer is also used to provide a unified login method for openKylin community users.
6. The system based on the multi-language support framework for operating systems according to claim 1, characterized in that: The method for performing data management on the multilingual support framework further includes: In response to an update event indicating that a translation mapping exists, generating, by the service layer, an associated translation update event; Obtain the translation update event through an event connector and parse it to obtain the source term to be processed; Monitor the translation update event to determine whether the target translation sample needs to be updated; In response to the need, the translation mapping is updated according to the translation update event and written into the open source MySQL database; Parsing the translation update event to obtain the source terms to be processed, writing them into multilingual static storage, and reading them; Determining whether the translation data of the source term to be processed exists in a target translation file; In response to the existence of the target translation file, determining whether it needs to be updated; In response to the target translation file needing to be updated, updating the target translation file and performing software integration; In response to the target translation file not existing, the target translation file is generated and software integration is performed.
Citation Information
Patent Citations
Man-machine interaction system
CN114237793A
Cross-platform self-adaptive internationalization language dynamic switching method based on database
CN119886164A