Translation customization method and device for vehicle language, medium and equipment
Through the language translation resources and system programs of separate grouped versions of the packaged vehicle machine, the problem of insufficient multilingual support in the global market has been solved, and the development efficiency and local installation capabilities have been improved.
Patent Information
- Application Number
- CN202510094787.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-06
AI Technical Summary
The lack of multilingual support in the existing automotive and machine systems in the global market has led to the need to translate source code when promoting vehicles in different regions, which has increased the impact of engineers' workload and development efficiency.
By packaging the language translation resources and system programs of the vehicle computer separately in group versions, multiple translation resource image packages and system image packages are generated, and the installation package is then built, and only repackaged when the language translation resources are updated without affecting the system programs.
It has improved the speed of global vehicle and machine resource adaptation and packaging, reduced the time to package, improved the vehicle development efficiency, and realized localized installation of vehicle and machine in different regions.
Smart Images

Figure CN119938031A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, medium and equipment for customizing the translation of vehicle-computer language. Background Art
[0002] With the development of automobile globalization, Chinese cars have been sold all over the world, and the problem that follows is language differentiation. Since the existing car system only has the languages of some regions or countries pre-set, the languages of some regions or countries are missing. Therefore, if a manufacturer wants to promote its vehicles in these regions or countries, it is necessary to translate the source code of the car system into the languages of these regions or countries so that users in these regions or countries can operate and use it. At the same time, the car system is a very large system, in which the number of character strings used is as high as tens of thousands, which makes it more difficult to translate and adapt the various strings of the car entertainment system, increases the workload of engineers in various OEMs, and affects the development efficiency of export vehicles. Summary of the invention
[0003] The present application provides a method, device, medium and equipment for customizing the translation of vehicle computer language, which can increase the resource adaptation and packaging speed of global vehicle computers and improve the development efficiency of vehicles.
[0004] A first aspect of an embodiment of the present application provides a method for customizing the translation of a vehicle language, the method comprising: Based on the multi-version language translation results of the vehicle computer, multiple translation resource mirror packages are obtained; wherein any of the translation resource mirror packages includes at least one language translation result; Determining a target translation resource mirror package from the plurality of translation resource mirror packages; Based on the original code set of the vehicle computer, obtaining a system image package corresponding to the vehicle computer; Based on the target translation resource image package and the system image package, an installation package corresponding to the vehicle computer is obtained.
[0005] Optionally, any version language translation result of the vehicle computer is composed of the version language translation results corresponding to multiple application modules in the vehicle computer; Based on the multi-version language translation results of the vehicle computer, multiple translation resource mirror packages are obtained, including: For any of the application modules, based on the region of language application, the multiple versions of the language translation results of the application module are classified into versions to generate multiple translation resource sets for different regions; wherein any of the translation resource sets includes at least one language translation result for the application module; For any of the regions, resource grouping is performed based on the translation resource set belonging to the region corresponding to all the application modules to obtain a translation resource mirror package corresponding to the region.
[0006] Optionally, determining a target translation resource mirror package from the plurality of translation resource mirror packages includes: Based on the target region to which the sales destination belongs, the translation resource mirror package corresponding to the target region among the plurality of translation resource mirror packages is determined as the target translation resource mirror package.
[0007] Optionally, the method further comprises: Priorities are compiled for the application modules; different application modules correspond to different priorities, and the priorities are used to characterize the installation order of the application modules when the installation package is loaded on the vehicle side.
[0008] Optionally, the method further comprises: In response to a resource change instruction from a user, the language translation results contained in the translation resource mirror package are changed to obtain an updated translation resource mirror package; When the updated translation resource image package is determined as the target translation resource image package, an updated installation package corresponding to the vehicle computer is obtained based on the updated translation resource image package and the system image package.
[0009] Optionally, before obtaining multiple translation resource mirror packages based on the multi-version language translation results of the vehicle computer, the method further includes: Determine a list of character strings to be translated for the vehicle computer; Performing multi-version language translation on the strings to be translated in the list of strings to be translated to obtain multiple target language translation result tables; wherein any of the target language translation result tables is used to represent the ID of the string to be translated, the string to be translated, and the translation result of the string to be translated in the target language; Based on the multiple target language translation result tables, multi-version language translation results of the vehicle computer are obtained.
[0010] Optionally, determining a list of character strings to be translated of the vehicle computer includes: Based on the basic language version, determining the to-be-translated path of each application module of the vehicle computer; Based on the path to be translated, determining the character string to be translated corresponding to each application module; The character strings to be translated corresponding to all the application modules are counted to obtain a list of character strings to be translated of the vehicle computer.
[0011] Based on the same inventive concept, a second aspect of an embodiment of the present application provides a translation customization device for a vehicle computer language, the device comprising: A resource package packaging module is used to obtain multiple translation resource mirror packages based on the multi-version language translation results of the vehicle computer; wherein any of the translation resource mirror packages includes at least one language translation result; A target resource package selection module, used to determine a target translation resource mirror package from a plurality of translation resource mirror packages; A program package packaging module, used for obtaining a system image package corresponding to the vehicle computer based on the original code set of the vehicle computer; The installation package generation module is used to obtain the installation package corresponding to the vehicle computer based on the target translation resource image package and the system image package.
[0012] Based on the same inventive concept, the third aspect of an embodiment of the present application provides a storage medium, in which machine executable instructions are stored. When the machine executable instructions are executed by a processor, the translation and customization method of the vehicle-computer language proposed in the first aspect of the present application is implemented.
[0013] Based on the same inventive concept, the fourth aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the method for customizing the translation of the vehicle-computer language proposed in the first aspect of the present application is implemented.
[0014] Compared with the prior art, this application has the following advantages: The embodiment of the present application provides a method for customizing the translation of a vehicle computer language. First, based on the multi-version language translation results of the vehicle computer, multiple translation resource image packages are obtained; wherein any translation resource image package includes at least one language translation result; a target translation resource image package is determined from multiple translation resource image packages; based on the original code set of the vehicle computer, a system image package corresponding to the vehicle computer is obtained; based on the target translation resource image package and the system image package, an installation package corresponding to the vehicle computer is obtained. Thus, by separately packaging the language translation resources of the vehicle computer and the system program of the vehicle computer, when modifying or adding a certain language translation resource, only the translation resource image package corresponding to the language needs to be repackaged, and there is no need to repackage the original system program of the vehicle computer, so as to save packaging time, and further, on the premise of ensuring the security of the source code, the resource adaptation and packaging speed of the global vehicle computer is improved, and the development efficiency of the vehicle is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0016] Figure 1 It is a flow chart of a method for customizing the translation of a vehicle language in one embodiment of the present application; Figure 2 It is a logic block diagram of vehicle language translation customization in one embodiment of the present application; Figure 3 It is a schematic diagram of the composition of multi-version translation resources of a certain application module in one embodiment of the present application; Figure 4 It is a flow chart of the assembly of the installation package in one embodiment of the present application; Figure 5 It is a functional module diagram of a vehicle language translation customization device in one embodiment of the present application; Figure 6 It is a structural schematic diagram of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] In the related technology, the OEM uses Android Studio (Android Integrated Development Tool) to package the corresponding application modules for the translation of the application modules of the vehicle system, and all the translation resources are placed in a specific directory file inside each application module (for example, under a directory file named res). During the packaging process, the content of the application module and the translation resources will be packaged into the application module together to form a huge APK (Android application package, an application package file format used by the Android operating system).
[0019] However, when a new translation language needs to be added or the translation result of a string needs to be modified, the application module needs to be repackaged and then re-released if the above method is used. This will greatly slow down the development efficiency for the rapid iteration requirements of vehicle models.
[0020] In view of this, the embodiment of the present application proposes a method, device, medium and equipment for customizing the translation of the vehicle computer language, by separately packaging the language translation resources of the vehicle computer and the system program of the vehicle computer, and then compressing them together to obtain the installation package corresponding to the vehicle computer. Therefore, when modifying or adding a certain language translation resource, it is only necessary to repackage the translation resource mirror package corresponding to the language, without repackaging the original system program of the vehicle computer. Compared with the traditional package translation method, it can effectively save the package time, and then improve the resource adaptation and packaging speed of the global vehicle computer under the premise of ensuring the security of the source code, and improve the development efficiency of the vehicle.
[0021] Please refer to Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for customizing the translation of a vehicle language proposed in an embodiment of the present application. Figure 1 As shown, the method comprises the following steps: S101: Based on the multi-version language translation results of the vehicle computer, multiple translation resource mirror packages are obtained; wherein any translation resource mirror package includes at least one language translation result.
[0022] In this implementation, the multi-version language translation results of the vehicle computer include but are not limited to Chinese, Japanese, Korean, Thai, Vietnamese, Filipino, English, German, Dutch, French, Italian, Russian, Spanish, Portuguese, etc. The language translation results of each version include the translation results of the language corresponding to all the character strings that need to be translated in the vehicle computer.
[0023] The translation resource mirror package is the result obtained by classifying and packaging the translation results of multiple versions of languages, and any translation resource mirror package includes at least one language translation result. In other words, when classifying and packaging the translation results of multiple versions of languages, the translation results of each language can be directly packaged separately, that is, one translation resource mirror package corresponds to one version of the language translation results.
[0024] In addition, the translation results of multiple versions of languages can also be classified and packaged according to specific classification rules. For example, the language versions of the countries belonging to the language can be classified according to the region, and the national language versions belonging to the region can be packaged together. For example, the translation resource mirror packages corresponding to Southeast Asia include the language versions used by Chinese, Japanese, Korean, Thai, Vietnamese, Filipino and other countries, and the translation resource mirror packages corresponding to Europe and the United States include the language versions used by English, German, Dutch, French, Italian and other countries.
[0025] In this way, by classifying the translation results of multiple versions of languages and packaging the translation resources separately, multiple translation resource mirror packages for different customers can be obtained, providing a language resource translation basis for subsequent export sales of vehicles.
[0026] S102: Determine a target translation resource mirror package from a plurality of translation resource mirror packages.
[0027] In this embodiment, during the process of vehicle development and production, a translation resource mirror package corresponding to the country to be exported may be selected as the target translation resource mirror package required for producing the vehicle installation package.
[0028] For example, if the country to be exported this time is South Korea, and the Korean version of the translation resource is included in the translation resource mirror package B, the translation resource mirror package B is determined as the target translation resource mirror package.
[0029] S103: Based on the original code set of the vehicle computer, a system image package corresponding to the vehicle computer is obtained.
[0030] In this embodiment, the system image package is the vehicle's system image, which is a copy of a complete operating system, including the operating system's core files, application framework, pre-installed applications, etc. In the system image package, the original code set of each part exists in basic English.
[0031] S104: Based on the target translation resource image package and the system image package, obtain the installation package corresponding to the vehicle computer.
[0032] In this implementation, after the target translation resource image package is determined according to the country to be exported and the system image package is packaged, the appropriate packaging tool can be selected according to the specific type and requirements of the vehicle system to package the target translation resource image package and the system image package to form a complete vehicle installation package. After exporting to the corresponding country, when installing on the vehicle side, the system program and the corresponding language can be loaded by parsing the installation package, thereby realizing the localization customization of the vehicle.
[0033] The packaging tool can be selected according to the system type of the vehicle computer. For example, for a Linux-based vehicle computer system, compression tools such as tar, gzip, and bzip2 can be used; for a Windows-based vehicle computer system, specific packaging tools such as Inno Setup and NSIS may be required.
[0034] On the one hand, the embodiment of the present application packages the language translation resources of the vehicle computer and the system program of the vehicle computer separately, and then compresses them together to obtain the installation package corresponding to the vehicle computer. Therefore, when modifying or adding a certain language translation resource, it is only necessary to repackage the translation resource mirror package corresponding to the language, without the need to repackage the original system program of the vehicle computer. Compared with the traditional package translation method, it can effectively save the package time, and then improve the resource adaptation and packaging speed of the global vehicle computer while ensuring the security of the source code, and improve the development efficiency of the vehicle. On the other hand, by classifying the versions of the multi-version language translation results, multiple translation resource mirror packages are formed, so as to export them to different countries or regions, and realize the localized installation of vehicle computers in different countries or regions.
[0035] The following will take the car machine based on Android system as an example to illustrate the translation and customization process of the car machine language of this application. Figure 2 , Figure 2 It is a logic block diagram of vehicle language translation customization in one embodiment of the present application.
[0036] like Figure 2 As shown, first, the translation resource path to be translated in the vehicle computer needs to be determined to obtain a list of strings to be translated in the vehicle computer (i.e., a mapping relationship), and send it to a translation company for translation to obtain translation results in multiple languages.
[0037] Specifically, the processing process of this stage mainly includes: S201: Determine a list of character strings to be translated in the vehicle computer.
[0038] In this embodiment, the Android car machine includes many different application modules, including application modules involving development and customization, such as air conditioning, vehicle center and other modules, and some common system modules, including screen saver module, network configuration module, etc. Each application module contains many strings. When translating, it is necessary to determine the strings to be translated this time to form a list of strings to be translated.
[0039] Specifically, the process mainly includes: S201 - 1: Based on the basic language version, determine the path to be translated of each application module of the vehicle computer.
[0040] In this implementation, in the process of determining the path to be translated, each application module needs to provide a translation path of a base language version and fill it into the string_res.ini configuration file, that is, the file needs to contain all application modules and the location of the base language version resources corresponding to each application module.
[0041] For each application module, there are many directories under the application module, one of which is the res directory, which also contains many subdirectories. The directory that stores the translation results of the base language version of the source code string is res / values-xx language--xx country.
[0042] For example, if the selected basic language version is English, the path to be translated of each application module can be determined as res / values-en-rGB; if the selected basic language version is Chinese, the path to be translated of each application module can be determined as res / values-zh-rCN.
[0043] S201 - 2 : Based on the path to be translated, determine the character string to be translated corresponding to each application module.
[0044] In this embodiment, after determining the path to be translated of each application module, the string to be translated can be read from the file directory of the path. For example, when the path to be translated of each application module is res / values-ls, the string with English translation result in the application module is determined as the string to be translated corresponding to the application module.
[0045] S201 - 3 : Count the strings to be translated corresponding to all application modules, and obtain a list of strings to be translated of the vehicle computer.
[0046] In this embodiment, the strings to be translated corresponding to all application modules are collected to form a list of strings to be translated of the vehicle computer. That is, the list of strings to be translated includes all strings in all application modules that have translations of the basic language version.
[0047] S202: translating the character strings to be translated in the list of character strings to be translated into multiple versions of languages to obtain multiple target language translation result tables.
[0048] Among them, any target language translation result table is used to represent the ID of the string to be translated, the string to be translated, and the translation result of the string to be translated in the target language.
[0049] In this implementation, there are three types of Android strings, namely string, string-array, and plurals, i.e., string, string array, and singular and plural characters, and each string in Android corresponds to a string identifier (referred to as string ID for short), which is a one-to-one correspondence, and can determine the uniqueness of the string to be translated to avoid translation confusion.
[0050] After the list of strings to be translated is imported into the translation company, the translation company will use the string ID to locate the string during the translation process, and perform character translation according to the specific translation requirements to obtain translation results in multiple language versions, for example, in the form of an Execl table. Finally, the preset script tool performs parsing operations based on the previous string_res.ini configuration and generates a value-xx directory based on the country abbreviation. That is, the target language translation result table corresponding to multiple target languages is obtained by naming it with the abbreviation of the national language. For example, the target language translation result table named value-es contains the IDs of all strings to be translated, the strings to be translated, and the Spanish translation results corresponding to the strings to be translated.
[0051] S203: Based on the multiple target language translation result tables, obtain multi-version language translation results of the vehicle computer.
[0052] In this embodiment, the final multi-version language translation results of the vehicle computer are composed of the above-mentioned multiple target language translation result tables, including value-es, value-en, value-zh, etc. Among them, any language translation result table is composed of the translation results of the language version corresponding to the strings contained in multiple application modules in the vehicle computer.
[0053] like Figure 2 As shown, after obtaining the multi-version language translation results of the vehicle computer, a translation resource set for each application module can be produced, and then the module resource versioning can be performed according to the requirements to obtain the installation package required for the final vehicle computer export.
[0054] Specifically, the processing process of this stage mainly includes: S204: For any application module, based on the region of language application, classify the multi-version language translation results of the application module to generate multiple translation resource sets for different regions.
[0055] In this implementation manner, each application module includes a plurality of corresponding value-xx, for example, including translation results of languages such as Chinese, English, and Spanish corresponding to the application module.
[0056] This embodiment can generate multiple translation resource sets for different regions by classifying the multiple language translation results of the application module according to the regions where the languages are applied, wherein any translation resource set includes at least one language translation result for the application module.
[0057] For example, multiple overlay directories (i.e., multiple translation resource sets) are created to classify and store multiple value-xx contained in the application module. That is, one overlay directory corresponds to one region, and one overlay directory contains one or more translation resources of the national language version of the region.
[0058] Please refer to Figure 3 , Figure 3 FIG. 1 is a schematic diagram of the composition of multi-version translation resources of a certain application module in one embodiment of the present application. Figure 3 As shown in the figure, assuming that the versions are classified only according to Southeast Asia and Europe and America, after classification, application module A will include two overlay directories: overlay-A (for Southeast Asia) and overlay-B (for Europe and America). Among them, overlay-A contains the translation results of national languages such as value-zh and value-kr belonging to Southeast Asia, and overlay-B contains the translation results of national languages such as value-es and value-ls belonging to Europe and America. Therefore, each overlay directory stores translation resources customized according to needs.
[0059] For any application module, there will be multiple overlay directories, and the settings of multiple overlay directories of all application modules are the same, but the content of the translation resources contained in the directory is different. In specific implementation, the overlay directory resources are configured through mk files and Android minifest. During the versioning process, an overlay.apk corresponding to each application module will be generated. The source code of the overlay package is in the application module / < <id>> / overlay / , use the overlay parameter of Androidmanifest to control the built overlay directory, and use overlay-xx as the package name of the overlay package.
[0060] S205: For any region, based on the translation resource set belonging to the region corresponding to all application modules, resource grouping is performed to obtain a translation resource mirror package corresponding to the region.
[0061] In this implementation, by performing module resource grouping on the translation resource set corresponding to all application modules and belonging to the same region, a translation resource mirror package corresponding to the region can be obtained.
[0062] Please refer to Figure 4 , Figure 4 This is a flow chart of the assembly of the installation package in one embodiment of the present application. Figure 4 As shown in the figure, it is assumed that each application module (module A, module B and module C) includes translation resource sets for two regions, overlay-A and overlay-B. When compiling, the overlay-A of module A, the overlay-A of module B, and the overlay-A of module C are compiled to obtain the translation resource mirror package OEM A for Southeast Asia. At the same time, the overlay-B of module A, the overlay-B of module B, and the overlay-B of module C are compiled to obtain the translation resource mirror package OEMB for Europe and the United States.
[0063] S206: Based on the target region to which the to-be-sold destination belongs, determining the translation resource mirror package corresponding to the target region among the multiple translation resource mirror packages as the target translation resource mirror package.
[0064] In this embodiment, in the actual production process, the target translation resource mirror package can be determined according to the target region to which the destination to be sold belongs. For example, the country to be exported is Vietnam, and Vietnam belongs to Southeast Asia, so the translation resource mirror package OEM A is determined as the target translation resource mirror package.
[0065] S207: Compile priorities for application modules.
[0066] Among them, different application modules correspond to different priorities, and the priority is used to represent the installation order of the application modules when the installation package is loaded on the vehicle side.
[0067] For example, Figure 4 Module A is set to the first priority, module B is set to the second priority, and module C is set to the third priority. During the installation process on the vehicle side, the application will be loaded in the order of module A, module B, and module C to achieve orderly installation on the vehicle side.
[0068] In addition, when determining the priority of each application module, it can be set according to the importance of the application module. For example, considering that the system startup module is responsible for initializing the system environment, loading the necessary configuration and driver, etc., such application modules can be set as the first priority. Secondly, some core control modules are responsible for the core functions of the vehicle, such as driving control, braking control, steering control, etc., so such application modules can be set as the second priority. In the future, the perception and fusion modules (responsible for real-time perception of the surrounding environment, and integrating and analyzing data from different sensors to ensure that accurate environmental information can be obtained in real time during vehicle driving), safety and assisted driving modules (responsible for providing auxiliary functions such as safety warnings, emergency braking, adaptive cruise control, etc., to ensure that timely measures can be taken when potential dangers are perceived), and entertainment and information system modules (responsible for providing entertainment and information services such as music, broadcasting, navigation, etc., to ensure that additional convenience and entertainment are provided without affecting the core functions and safety of the vehicle) have lower priorities.
[0069] In specific implementation, the priority corresponding to the application module can be set in the manifest file of the application module. The larger the value, the higher the priority. Finally, when loading on the vehicle side, the system will obtain the translation resources of each application module in order from large to small according to this value. When loading a string ID resource, the overlay resources corresponding to the language used in the destination country of this sale in the highest priority application module will be loaded first according to the priority. During integrated compilation, compile overlay packages of specific packages, targetPackages, and priorities according to different requirements. The compiled apk (application package) is uniformly output to / OEM / overlay / so that the framework layer can scan the overlaypackage and read the corresponding language translation resources.
[0070] S208: Based on the original code set of each application module, a system image package corresponding to the vehicle computer is obtained.
[0071] like Figure 4 As shown in the figure, after the priority of each application module is set, the original code set of each application module can be compiled and assembled to obtain the system image package corresponding to the vehicle computer (i.e. Figure 4 The System image in the system image package). The System image is a copy of a complete operating system, including the core files of the operating system, application framework, pre-installed applications, etc. In the system image package, the original code set of each part exists in basic English.
[0072] S209: Based on the target translation resource image package and the system image package, obtain the installation package corresponding to the vehicle computer.
[0073] In this implementation, a suitable packaging tool can be selected according to the specific type and requirements of the vehicle system to package the target translation resource image package and the system image package to form a complete vehicle installation package. After exporting to the corresponding country, when installing the vehicle, the system program and the corresponding language can be loaded by parsing the installation package, thereby realizing the localization customization of the vehicle.
[0074] like Figure 4 As shown, in the process of assembling the vehicle model package, the corresponding OEM image package + system image package can be selected according to needs, thereby forming differentiated vehicle model packages for different regions.
[0075] Optionally, the above method further includes: In response to the user's resource change instruction, the language translation results contained in the translation resource mirror package are changed to obtain an updated translation resource mirror package; when the updated translation resource mirror package is determined as the target translation resource mirror package, based on the updated translation resource mirror package and the system mirror package, an updated installation package corresponding to the vehicle computer is obtained.
[0076] In this implementation, resource change instructions include modification, addition or deletion instructions. For example, it is necessary to modify the Vietnamese resource of a string of a certain application module, or it is necessary to add or delete a language translation resource for the vehicle computer. In this case, it is only necessary to update and repackage the OEM image package involved in this change, and then compress it together with the prepared system image package to obtain the updated installation package corresponding to the vehicle computer.
[0077] In the case of changes in language translation resources, the existing technology requires the entire vehicle system to be repackaged once there is a change, resulting in a time-consuming versioning process and slowing down the vehicle development efficiency. However, this application only needs to repackage the translation resource mirror package corresponding to the language, without the need to repackage the original system program of the vehicle. Compared with the traditional package translation method, it can effectively save package time, and then, under the premise of ensuring source code security, improve the resource adaptation and packaging speed of the global vehicle system and improve the vehicle development efficiency.
[0078] Please refer to Figure 5 Based on the same inventive concept, the second aspect of the embodiment of the present application provides a vehicle language translation customization device 500, and the vehicle language translation customization device 500 includes: The resource package packaging module 501 is used to obtain multiple translation resource mirror packages based on the multi-version language translation results of the vehicle computer; wherein any translation resource mirror package includes at least one language translation result; A target resource package selection module 502 is used to determine a target translation resource mirror package from multiple translation resource mirror packages; The program package packaging module 503 is used to obtain a system image package corresponding to the vehicle computer based on the original code set of the vehicle computer; The installation package generation module 504 is used to obtain the installation package corresponding to the vehicle computer based on the target translation resource image package and the system image package.
[0079] Optionally, any version language translation result of the vehicle computer is composed of the version language translation results corresponding to multiple application modules in the vehicle computer; the resource package packaging module 501 includes: A partitioning submodule is used to classify the multi-version language translation results of any application module based on the region of language application, and generate multiple translation resource sets for different regions; wherein any translation resource set includes at least one language translation result for the application module; The layout submodule is used to layout resources for any region based on the translation resource set belonging to the region corresponding to all application modules, and obtain the translation resource mirror package corresponding to the region.
[0080] Optionally, the target resource package selection module 502 includes: The target region determination submodule is used to determine the translation resource mirror package corresponding to the target region among the multiple translation resource mirror packages as the target translation resource mirror package based on the target region to which the sales destination belongs.
[0081] Optionally, the above device further includes: The priority setting module is used to compile priorities for application modules; different application modules correspond to different priorities, and the priorities are used to represent the installation order of application modules when the installation package is loaded on the vehicle side.
[0082] Optionally, the above device further includes: A resource change module, used to change the language translation results contained in the translation resource mirror package in response to a user's resource change instruction, to obtain an updated translation resource mirror package; The update packaging module is used to obtain an updated installation package corresponding to the vehicle computer based on the updated translation resource image package and the system image package when the updated translation resource image package is determined as the target translation resource image package.
[0083] Optionally, before obtaining multiple translation resource mirror packages based on the multi-version language translation results of the vehicle computer, the above-mentioned device further includes: A module for determining strings to be translated, used to determine a list of strings to be translated of the vehicle computer; A string translation module is used to translate the strings to be translated in the string list into multiple versions of languages to obtain multiple target language translation result tables; wherein any target language translation result table is used to represent the ID of the string to be translated, the string to be translated, and the translation result of the string to be translated in the target language; The translation resource statistics module is used to obtain multi-version language translation results of the vehicle computer based on multiple target language translation result tables.
[0084] Optionally, the module for determining a character string to be translated includes: The translation path determination submodule is used to determine the to-be-translated paths of each application module of the vehicle computer based on the basic language version; The string reading submodule is used to determine the string to be translated corresponding to each application module based on the path to be translated; The string statistics submodule is used to count the strings to be translated corresponding to all application modules and obtain a list of strings to be translated for the vehicle computer.
[0085] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0086] On the third aspect, based on the same inventive concept, an embodiment of the present application provides a storage medium, in which machine executable instructions are stored. When the machine executable instructions are executed by a processor, the translation and customization method of the vehicle-computer language proposed in the first aspect of the present application is implemented.
[0087] It should be noted that the specific implementation of the storage medium of the embodiment of the present application refers to the specific implementation of the vehicle-computer language translation customization method proposed in the first aspect of the embodiment of the present application, and will not be repeated here.
[0088] In the fourth aspect, based on the same inventive concept, refer to Figure 6 An embodiment of the present application provides an electronic device 600, including a processor 601 and a memory 602; the memory 602 stores machine executable instructions that can be executed by the processor 601, and the processor 601 is used to execute the machine executable instructions to implement the translation and customization method of the vehicle-computer language proposed in the first aspect of the present application.
[0089] It should be noted that the specific implementation of the electronic device 600 in the embodiment of the present application refers to the specific implementation of the vehicle-computer language translation customization method proposed in the first aspect of the embodiment of the present application, and will not be repeated here.
[0090] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0091] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0092] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0095] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0096] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0097] The above is a detailed introduction to the vehicle language translation and customization method, device, medium and equipment provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.< / id>
Claims
1. A method for customizing the translation of a vehicle computer language, characterized in that: The method comprises: Based on the multi-version language translation results of the vehicle computer, multiple translation resource mirror packages are obtained; wherein any of the translation resource mirror packages includes at least one language translation result; Determining a target translation resource mirror package from the plurality of translation resource mirror packages; Based on the original code set of the vehicle computer, obtaining a system image package corresponding to the vehicle computer; Based on the target translation resource image package and the system image package, an installation package corresponding to the vehicle computer is obtained.
2. The method according to claim 1, characterized in that Any version language translation result of the vehicle computer is composed of the version language translation results corresponding to multiple application modules in the vehicle computer; Based on the multi-version language translation results of the vehicle computer, multiple translation resource mirror packages are obtained, including: For any of the application modules, based on the region of language application, the multiple versions of the language translation results of the application module are classified into versions to generate multiple translation resource sets for different regions; wherein any of the translation resource sets includes at least one language translation result for the application module; For any of the regions, resource grouping is performed based on the translation resource set belonging to the region corresponding to all the application modules to obtain a translation resource mirror package corresponding to the region.
3. The method according to claim 2, characterized in that Determining a target translation resource mirror package from the plurality of translation resource mirror packages includes: Based on the target region to which the sales destination belongs, the translation resource mirror package corresponding to the target region among the plurality of translation resource mirror packages is determined as the target translation resource mirror package.
4. The method according to claim 2, characterized in that: The method further comprises: Priorities are compiled for the application modules; different application modules correspond to different priorities, and the priorities are used to characterize the installation order of the application modules when the installation package is loaded on the vehicle side.
5. The method according to claim 1, characterized in that The method further comprises: In response to a resource change instruction from a user, the language translation results contained in the translation resource mirror package are changed to obtain an updated translation resource mirror package; When the updated translation resource image package is determined as the target translation resource image package, an updated installation package corresponding to the vehicle computer is obtained based on the updated translation resource image package and the system image package.
6. The method according to claim 1, characterized in that Before obtaining multiple translation resource mirror packages based on the multi-version language translation results of the vehicle computer, the method further includes: Determine a list of character strings to be translated for the vehicle computer; Performing multi-version language translation on the strings to be translated in the list of strings to be translated, and obtaining a plurality of target language translation result tables; wherein any of the target language translation result tables is used to represent the ID of the string to be translated, the string to be translated, and the translation result of the string to be translated in the target language; Based on the multiple target language translation result tables, multi-version language translation results of the vehicle computer are obtained.
7. The method according to claim 6, characterized in that Determine the list of strings to be translated for the vehicle computer, including: Based on the basic language version, determining the to-be-translated path of each application module of the vehicle computer; Based on the path to be translated, determining the character string to be translated corresponding to each application module; The character strings to be translated corresponding to all the application modules are counted to obtain a list of character strings to be translated of the vehicle computer.
8. A translation and customization device for vehicle computer language, characterized in that: The device comprises: A resource package packaging module is used to obtain multiple translation resource mirror packages based on the multi-version language translation results of the vehicle computer; wherein any of the translation resource mirror packages includes at least one language translation result; A target resource package selection module, used to determine a target translation resource mirror package from a plurality of translation resource mirror packages; A program package packaging module, used for obtaining a system image package corresponding to the vehicle computer based on the original code set of the vehicle computer; The installation package generation module is used to obtain the installation package corresponding to the vehicle computer based on the target translation resource image package and the system image package.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the vehicle computer language translation and customization method as described in any one of claims 1 to 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for customizing the translation of the vehicle language as described in any one of claims 1 to 7 is implemented.