Method for checking multi-language definition

By integrating machine translation and automated testing frameworks into continuous integration and continuous delivery pipelines, the problems of low efficiency and difficult quality assurance caused by manual operations in the multi-language support process are solved, automated translation and testing are realized, and the efficiency of translation and testing is improved. Efficiency and consistency.

CN118605889APending Publication Date: 2024-09-06SHANGHAI MUMU NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410891352.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The process of multi-language support in the existing technology relies on manual operations, resulting in heavy workload, low efficiency, difficulty in ensuring translation quality, difficulty in version control and collaboration, and insufficient test coverage.

Method used

By setting up continuous integration and continuous delivery pipelines, integrating machine translation and post-editing, translation management systems, multi-language automated testing frameworks and crowd-sourced translation, automated translation processes, quality inspections and test coverage are achieved.

Benefits of technology

It improves translation efficiency and quality, ensures the timeliness and consistency of translated content, reduces the risk of manual errors, enhances team collaboration and version control, and ensures functionality and UI consistency in different language environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605889A
    Figure CN118605889A
Patent Text Reader

Abstract

The invention relates to the field of automated testing, and discloses a method for checking multi-language definition, which comprises the following steps of: setting a continuous integration (CI) pipeline and a continuous delivery (CD) pipeline: integrating internationalization and localization processes into the CI / CD pipeline; machine translation and post-editing: integrating an MT service in a CI / CD pipeline, automatically generating preliminary translation, and reducing the workload of manual translation; translation management: performing centralized management on all translation contents to facilitate team cooperation and version control; the multi-language automatic test framework is used for compiling a universal test script, automatically adapting to different language environments and combining a language switching function; and carrying out crowdsourcing translation and verification. By setting a continuous integration (CI) pipeline and a continuous delivery (CD) pipeline, internationalization and localization processes are integrated into the CI / CD pipeline, automatic extraction, inspection and deployment of translation content are achieved, and the timeliness and accuracy of the translation process are guaranteed by automatically extracting and merging translation files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of automated testing, and in particular to a method for checking multi-language definitions. Background Art

[0002] With the deepening of globalization and the popularization of the Internet, the demand for internationalization and localization of software products is increasing. Software developers need to provide multilingual support for their applications so that users can use the products in a language environment that they are familiar with.

[0003] However, existing multilingual support processes usually rely on manual operations, which is not only time-consuming and labor-intensive, but also prone to various problems, including the following: Manual translation is labor-intensive and inefficient: In the traditional method, developers need to manually extract the text that needs to be translated and hand it over to translators for translation. After the translation is completed, the developer manually merges the translated content into the code. This method is not only labor-intensive and inefficient, but also prone to omissions or errors.

[0004] The quality of translation is difficult to guarantee: The quality of translation mainly depends on manual review and lacks effective quality inspection tools, which easily leads to problems such as inconsistent terminology and spelling errors. In addition, the collaboration between different translators is not close enough, resulting in inconsistent translation style and terminology.

[0005] Version control and collaboration are difficult: Manual management of translation content lacks an effective version control mechanism, making it difficult to track and audit the history of each modification. This leads to inefficient team collaboration and insufficient communication and collaboration between translators and developers.

[0006] Insufficient test coverage: Functional and user interface testing in multilingual environments usually relies on manual testing, and test coverage is difficult to guarantee. Manual testing is not only time-consuming and labor-intensive, but also prone to missing issues, resulting in the inability to fully verify the consistency of functions and UIs in different language environments. Summary of the invention

[0007] In view of the deficiencies of the prior art, the present invention provides a method for checking multilingual definitions, which solves the problems of the prior art such as large workload of manual translation, low efficiency, difficulty in ensuring translation quality, difficulty in version control and collaboration, and insufficient test coverage.

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: A method for checking multilingual definitions, comprising the following steps: Set up continuous integration (CI) and continuous delivery (CD) pipelines: Integrate internationalization and localization processes into CI / CD pipelines, automatically extract texts that need to be translated from the code base and merge them into the central translation management system, use static analysis tools and automated scripts in the CI / CD process to check the integrity and consistency of translation files, and automatically deploy the latest translation versions to different environments; Machine translation and post-editing: Integrate MT services in the CI / CD pipeline to automatically generate preliminary translations, reduce the workload of manual translation, and have professional translators post-edit MT results to ensure translation quality; Translation management: Centrally manage all translation content to facilitate team collaboration and version control, and automatically synchronize the code base and CI / CD pipeline. In addition, built-in quality inspection tools automatically detect terminology consistency and spelling errors in translation; Multi-language automated testing framework: write universal test scripts that automatically adapt to different language environments, combine language switching functions, perform UI and functional testing, generate multi-language test coverage reports, and ensure that functions in different languages ​​and regional settings are fully tested; Crowdsourced translation and verification: Collect user feedback and correct errors and inaccurate translations based on feedback suggestions.

[0009] Preferably, in the step of setting up a continuous integration (CI) and continuous delivery (CD) pipeline, static analysis tools and automated scripts check the translation files, including verifying the format of the translation files, checking for missing or redundant translation entries, and ensuring that the translated texts comply with a predefined glossary.

[0010] Preferably, in the step of setting up a continuous integration (CI) and continuous delivery (CD) pipeline, integrating a machine translation service in the CI / CD pipeline includes calling an external machine translation API to automatically translate the extracted text into a target language, and storing the translation results in a central translation management system.

[0011] Preferably, in the translation management step, the centralized management of translation content includes providing an online platform that allows multiple users to collaborate in translation, review and publish translation content, while recording version history to track modification records.

[0012] Preferably, in the translation management step, the quality checking tool is used to automatically detect terminology consistency and spelling errors in the translation, including using a predefined terminology library and language rules to automatically scan the translation file and mark inconsistent or erroneous parts.

[0013] Preferably, in the multi-language automated testing framework step, the test script includes creating a configurable testing framework that supports dynamic language switching and multi-language test data input.

[0014] Preferably, in the multi-language automated testing framework step, the multi-language test coverage report includes counting the test execution status in each language environment and generating a detailed coverage report to identify areas that are not fully tested.

[0015] Preferably, in the crowdsourced translation and verification step, collecting user feedback includes providing an online feedback form or an embedded feedback collection tool to allow users to submit suggestions and opinions on translation quality and content.

[0016] Preferably, in the crowdsourcing translation and verification step, the user feedback to correct the translation includes integrating the feedback content into the translation management system, automatically generating translation tasks and assigning them to corresponding translators for modification.

[0017] The present invention provides a method for checking multilingual definitions. It has the following beneficial effects: 1. The present invention integrates internationalization and localization processes into the CI / CD pipeline by setting up a continuous integration (CI) and continuous delivery (CD) pipeline, and realizes the automatic extraction, inspection and deployment of translation content. Automatic extraction and merging of translation files ensures the timeliness and accuracy of the translation process, while static analysis and automated scripts ensure the quality and consistency of translation files. The automatic deployment function enables the latest translation version to be quickly applied to different environments (such as development environment, test environment and production environment), ensuring that the translation content in each environment remains synchronized.

[0018] 2. The present invention integrates machine translation (MT) services in the CI / CD pipeline and automatically translates the extracted text into the target language by calling an external machine translation API. The translation results are stored in a central translation management system (TMS) for review and post-editing by professional translators. This approach reduces the initial workload of manual translation, speeds up the translation process, reduces the risk of errors in manual operations, and improves translation efficiency.

[0019] 3. The present invention generates a detailed test coverage report after each test run through the automated testing framework, and counts the test execution status in each language environment. The report records in detail the functional modules and UI elements covered by the test, as well as the areas that are not fully tested, to help the development team identify and solve problems. Through these reports, the team can optimize the test strategy to ensure that the functions and UI in all language environments are fully verified, thereby improving software quality and user experience.

[0020] 4. The present invention uses a quality check tool built into the TMS system to automatically detect terminology consistency and spelling errors in translation files. By using predefined terminology libraries and language rules, the translation files are automatically scanned and analyzed, and inconsistent or erroneous parts are marked. This automated quality check tool significantly improves the accuracy and consistency of the translated content and reduces the workload of manual inspection. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION

[0022] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example

[0023] Please see attached Figure 1 The embodiment of the present invention provides a method for checking multi-language definitions, characterized in that it includes the following steps: Set up continuous integration (CI) and continuous delivery (CD) pipelines: Integrate internationalization and localization processes into CI / CD pipelines, automatically extract texts that need to be translated from the code base and merge them into the central translation management system, use static analysis tools and automated scripts in the CI / CD process to check the integrity and consistency of translation files, and automatically deploy the latest translation versions to different environments; Integrating the internationalization and localization process into the CI / CD pipeline first automatically extracts the text that needs to be translated from the code base, which is usually located in specific comments or tags in the source code file. The extracted text is merged into the central translation management system (TMS), which centrally manages all translation content. Then, static analysis tools and automated scripts are used to check the translation files during the CI / CD process to ensure the integrity and consistency of the files. Finally, the latest translation version is automatically deployed to different environments (such as development environment, test environment, and production environment). By integrating the internationalization and localization process into the CI / CD pipeline, the goal of automation and continuous updating of translation content is achieved. Automatic extraction and merging of translation files ensures the timeliness and accuracy of the translation process, while static analysis and automated scripts ensure the quality and consistency of translation files. The automatic deployment function enables the latest translation version to be quickly applied to different environments, ensuring that the translation content in each environment remains synchronized. This approach significantly reduces the workload of manual operations, improves the efficiency and accuracy of the translation process, and reduces maintenance costs. The automated inspection and deployment process also ensures the high quality and consistency of the translation content, reducing translation problems caused by human errors.

[0024] Integrate machine translation (MT) services in the CI / CD pipeline to automatically translate the extracted text into the target language by calling the external machine translation Microsoft Translator API. The translation results will be stored in the central translation management system (TMS) for subsequent professional translators to review and post-edit.

[0025] A script that calls the Microsoft Translator API is configured in the CI / CD pipeline. Once the text is extracted, the script sends it to the Microsoft Translator API via HTTP requests. The API returns the translated text, and the script parses and saves the translation results. The TMS system has version control and collaboration features, allowing the translation team to further modify and review the translation results.

[0026] Static analysis tools and automated scripts check translation files, including verifying the format of the translation files, checking for missing or redundant translation entries, and ensuring that the translated text complies with predefined glossaries.

[0027] Static analysis tools parse the structure and syntax of translation files to check whether the files meet the expected format standards. For example, check the syntax of JSON files to ensure the correctness of key-value pairs, or check the format of PO files to ensure the correct matching of msgid and msgstr. Automated scripts compare source text and translation files to identify missing or redundant entries in the translation files. The script generates a report listing all missing and redundant entries and prompts the translator to deal with them.

[0028] Integrating machine translation services in the CI / CD pipeline involves calling external machine translation APIs to automatically translate the extracted text into the target language and storing the translation results in a central translation management system.

[0029] Machine translation and post-editing: Integrate MT services in the CI / CD pipeline to automatically generate preliminary translations, reduce the workload of manual translation, and have professional translators post-edit MT results to ensure translation quality; Translation management: Centrally manage all translation content to facilitate team collaboration and version control, and automatically synchronize the code base and CI / CD pipeline. In addition, built-in quality inspection tools automatically detect terminology consistency and spelling errors in translation; Centralized management of translation content includes providing an online platform that allows multiple users to collaborate on translation, review and publish translation content, while recording version history to track modification records.

[0030] Quality checking tools are used to automatically detect terminology consistency and spelling errors in translations. They use predefined termbases and language rules to automatically scan the translation files and mark inconsistent or incorrect parts.

[0031] At a certain step in the CI / CD pipeline, an automated script extracts the text that needs to be translated, which is usually marked in the source code. After the extraction is completed, the script calls the external machine translation API to send these texts to the machine translation service. The machine translation service returns the translated text, and the script parses and stores these translation results in the central translation management system (TMS). The stored translation results will be marked as pending review and await further processing by professional translators.

[0032] By integrating machine translation services, preliminary translations can be generated quickly, reducing the initial workload of manual translation and speeding up the translation process. The automated process ensures that the translated content can be quickly reflected in the system, reducing the risk of manual errors and improving translation efficiency.

[0033] The machine translation (MT) service automatically generates preliminary translation results by calling external APIs. The generated translation results are stored in the TMS and marked as pending review. Professional translators then review and post-edit these preliminary translation results to correct errors in machine translation and ensure the accuracy and naturalness of the translation. Translators edit on the TMS platform, and all changes are recorded in the system for version control and tracking.

[0034] Combining machine translation and manual post-editing can not only improve translation efficiency but also ensure translation quality. Machine translation handles a large amount of preliminary translation work, while professional translators focus on improving translation quality and details, optimizing the entire translation process.

[0035] Integrating machine translation services into the CI / CD pipeline, automatically generating preliminary translations and performing professional post-editing, combined with a centrally managed translation platform and built-in quality inspection tools, can greatly improve translation efficiency and quality, reduce manual workload and errors, improve team collaboration and version control capabilities, and ensure the consistency and stability of the system in different language environments.

[0036] Multi-language automated testing framework: Write universal test scripts that automatically adapt to different language environments, combine language switching functions, perform UI and functional testing, generate multi-language test coverage reports, and ensure that functions in different languages ​​and regional settings are fully tested; test scripts include creating a configurable test framework that supports dynamic language switching and multi-language test data input.

[0037] Multi-language test coverage reporting includes statistics on test execution in each language environment, and generates detailed coverage reports to identify under-tested areas.

[0038] The multi-language automated testing framework is designed to verify the application's functionality and user interface in different language environments by writing common test scripts, supporting dynamic language switching and multi-language test data input. The core of the testing framework is the ability to dynamically switch languages ​​based on configuration and load test data in the corresponding language. The test scripts cover the main functions and interface elements of the application, and these test scripts are executed through automated tools to verify whether the application behaves consistently and correctly in various language environments.

[0039] The test script is designed as a configurable framework, which allows different language environments to be set through configuration files or parameters. The framework supports dynamic language switching, that is, during the test run, the language settings of the application are automatically switched according to the needs of the test case. Multi-language test data is stored in external files, and the test framework is able to load the corresponding test data and perform tests according to the current language environment. The test script implements a comprehensive test of the application functions and UI by calling the API provided by the framework. The configurable test framework provides a high degree of flexibility and can easily adapt to the testing needs of different language environments. The dynamic language switching and multi-language test data input functions enable the test script to cover more test scenarios, ensure that sufficient testing can be performed in all supported language environments, and improve test coverage and efficiency.

[0040] By using a multilingual automated testing framework, writing common test scripts, supporting dynamic language switching and multilingual test data input, and generating multilingual test coverage reports, it can effectively ensure the functional and UI consistency of applications in different language environments. This method improves test efficiency and coverage, reduces the workload and error risks of manual testing, and provides the team with detailed test execution and coverage reports, which helps to discover and solve potential problems and improve the internationalization quality of software.

[0041] Crowdsourced translation and verification: Collect user feedback and correct errors and inaccurate translations based on feedback suggestions.

[0042] Collecting user feedback includes providing online feedback forms or embedded feedback collection tools to allow users to submit suggestions and comments on translation quality and content.

[0043] User feedback translation correction includes integrating the feedback content into the translation management system, automatically generating translation tasks and assigning them to the corresponding translators for modification.

[0044] The translation management system provides an online collaboration platform where translators can perform translation and review work, and all modifications will be recorded in the version history.

[0045] Specifically, in the code base, use a specific gettext function to mark the text that needs to be translated. Write a script to automatically extract these marked texts from the code base and generate a POT file containing all the texts to be translated, and upload the generated file to the central translation management system (TMS). In the CI / CD pipeline, configure static analysis tools to check the format of the translation file, use automated scripts to check missing or redundant entries in the translation file, and verify whether the translated text conforms to the predefined glossary.

[0046] Configure the CI / CD pipeline to automatically deploy the latest translations to different environments after the translation files are checked. The deployment process includes downloading the translation files to the servers of the corresponding environments and reloading the application to use the latest translations. After the automatic text extraction step of the CI / CD pipeline is completed, the external machine translation API is called to automatically translate the extracted text into the target language. In the TMS system, professional translators will receive the translation items to be reviewed and review and modify them one by one to ensure the accuracy and naturalness of the translation. All extracted texts to be translated and translation results are stored in the Crowdin system, which is automatically synchronized with the code base and CI / CD pipeline. When the translation content is updated, the TMS system automatically pushes the updated content to the code base and triggers the CI / CD pipeline to perform corresponding construction and deployment. The TMS system has built-in quality inspection tools to automatically scan translation files, detect terminology consistency and spelling errors, and the quality inspection results are automatically fed back to the translator for necessary modifications and corrections.

[0047] In addition, the automated testing framework generates a detailed test coverage report after each test run, which counts the test execution status in each language environment. The report indicates the functional modules and UI elements covered by the test, as well as the areas that have not been fully tested, to help the development team identify and solve problems.

[0048] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for checking multilingual definitions, characterized in that, The following steps are involved: Set up continuous integration (CI) and continuous delivery (CD) pipelines: Integrate internationalization and localization processes into CI / CD pipelines, automatically extract texts that need to be translated from the code base and merge them into the central translation management system, use static analysis tools and automated scripts in the CI / CD process to check the integrity and consistency of translation files, and automatically deploy the latest translation versions to different environments; Machine translation and post-editing: Integrate MT services in the CI / CD pipeline to automatically generate preliminary translations, reduce the workload of manual translation, and have professional translators post-edit MT results to ensure translation quality; Translation management: Centrally manage all translation content to facilitate team collaboration and version control, and automatically synchronize the code base and CI / CD pipeline. In addition, built-in quality inspection tools automatically detect terminology consistency and spelling errors in translation; Multi-language automated testing framework: write universal test scripts that automatically adapt to different language environments, combine language switching functions, perform UI and functional testing, generate multi-language test coverage reports, and ensure that functions in different languages ​​and regional settings are fully tested; Crowdsourced translation and verification: Collect user feedback and correct errors and inaccurate translations based on feedback suggestions.

2. A method for checking multilingual definitions according to claim 1, characterized in that: In the step of setting up continuous integration (CI) and continuous delivery (CD) pipelines, static analysis tools and automated scripts check translation files, including validating the format of translation files, checking for missing or redundant translation entries, and ensuring that the translated texts comply with predefined glossaries.

3. A method for checking multilingual definitions according to claim 1, characterized in that: In the step of setting up a continuous integration (CI) and continuous delivery (CD) pipeline, integrating the machine translation service in the CI / CD pipeline includes calling an external machine translation API to automatically translate the extracted text into the target language and storing the translation results in a central translation management system.

4. A method for checking multilingual definitions according to claim 1, characterized in that: In the translation management step, the centralized management of translation content includes providing an online platform that allows multiple users to collaborate in translation, review and publish translation content, while recording version history to track modification records.

5. A method for checking multilingual definitions according to claim 1, characterized in that: In the translation management step, the quality check tool is used to automatically detect terminology consistency and spelling errors in the translation, including using a predefined terminology library and language rules to automatically scan the translation file and mark inconsistent or erroneous parts.

6. A method for checking multilingual definitions according to claim 1, characterized in that: In the multi-language automated testing framework step, the test script includes creating a configurable testing framework that supports dynamic language switching and multi-language test data input.

7. A method for checking multilingual definitions according to claim 1, characterized in that: In the multi-language automated testing framework step, the multi-language test coverage report includes counting the test execution status in each language environment and generating a detailed coverage report to identify areas that are not fully tested.

8. A method for checking multilingual definitions according to claim 1, characterized in that: In the crowdsourcing translation and verification step, collecting user feedback includes providing an online feedback form or an embedded feedback collection tool to allow users to submit suggestions and opinions on translation quality and content.

9. A method for checking multilingual definitions according to claim 1, characterized in that: In the crowdsourcing translation and verification step, user feedback correction translation includes integrating the feedback content into the translation management system, automatically generating translation tasks and assigning them to corresponding translators for modification.

Citation Information

Cited By

  • Multi-language support framework oriented to embedded system and implementation method of multi-language support framework

    CN119759480A