WO2022142035A1 - System language internationalization maintenance method, apparatus, and computer-readable storage medium - Google Patents

System language internationalization maintenance method, apparatus, and computer-readable storage medium Download PDF

Info

Publication number
WO2022142035A1
WO2022142035A1 PCT/CN2021/091453 CN2021091453W WO2022142035A1 WO 2022142035 A1 WO2022142035 A1 WO 2022142035A1 CN 2021091453 W CN2021091453 W CN 2021091453W WO 2022142035 A1 WO2022142035 A1 WO 2022142035A1
Authority
WO
WIPO (PCT)
Prior art keywords
language
content
configuration
translated
file
Prior art date
Application number
PCT/CN2021/091453
Other languages
French (fr)
Chinese (zh)
Inventor
黑晓群
王邵华
Original Assignee
平安普惠企业管理有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安普惠企业管理有限公司 filed Critical 平安普惠企业管理有限公司
Publication of WO2022142035A1 publication Critical patent/WO2022142035A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/55Rule-based translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to data processing, and in particular, to a method, apparatus, electronic device, and computer-readable storage medium for internationalized maintenance of system languages.
  • the same business system needs to support multiple languages, and there will be some displays in the same language in different systems.
  • the translation cannot be provided on time, or the translation content is repeatedly communicated and revised, resulting in a long overall business system cycle and a lot of manpower and material resources.
  • the development of the business system is mainly written in the system through coding, when there are errors in the translation content or repeated revisions, the work of development and testing will be repeated.
  • the usual solution is to set up a language library, and select various language types in the language library.
  • content translation needs to be performed, select the corresponding language in the language library for translation, but the inventor realizes that this method of translation The speed is slow.
  • different systems perform content translation at the same time, they need to be operated separately, resulting in a long cycle and low efficiency.
  • the operator is not familiar with foreign languages or makes mistakes in the operation, it may cause some language description errors.
  • the version needs to be updated and cannot be corrected quickly.
  • the present application provides a system language internationalization maintenance method, device, electronic device and computer-readable storage medium, the main purpose of which is to solve the problems of poor versatility, slow speed, and unfavorable maintenance in the translation process of existing system languages.
  • a system language internationalization maintenance method provided by this application includes:
  • language maintenance is performed on the system to be processed according to the language value in the configuration update file.
  • the present application also provides a system language internationalization maintenance device, the device includes:
  • a configuration file obtaining and sending unit used for initializing the content of the system to be translated, to obtain a configuration file corresponding to the content of the system to be translated;
  • a language value obtaining unit configured to translate the system content to be translated in the configuration file through a preset translation library, so as to obtain a language value corresponding to the system content to be translated;
  • a configuration update file obtaining unit configured to update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value
  • the language maintenance unit is configured to perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
  • the present application also provides an electronic device, the electronic device includes:
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute:
  • language maintenance is performed on the system to be processed according to the language value in the configuration update file.
  • the present application also provides a computer-readable storage medium, where at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is executed by a processor in an electronic device to realize: a system to be translated The content is initialized to obtain a configuration file corresponding to the content of the system to be translated;
  • language maintenance is performed on the system to be processed according to the language value in the configuration update file.
  • the content of the system to be translated is initialized to obtain a configuration file corresponding to the content of the system to be translated; the content of the system to be translated in the configuration file is translated through a preset translation library to obtain the content corresponding to the system to be translated the language value; update the configuration file based on the language value, and obtain the configuration update file corresponding to the language value; in the preset configuration management system, perform language maintenance on the system to be processed according to the language value in the configuration update file, which can flexibly adjust the translation Information is maintained and the dependence of system development on translation content is reduced.
  • FIG. 1 is a schematic flowchart of a system language internationalization maintenance method provided by an embodiment of the present application
  • FIG. 2 is a schematic block diagram of a system language internationalization maintenance device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the internal structure of an electronic device for implementing a system language internationalization maintenance method provided by an embodiment of the present application;
  • the present application provides a system language internationalization maintenance method.
  • FIG. 1 a schematic flowchart of a system language internationalization maintenance method provided by an embodiment of the present application is shown. The method may be performed by an apparatus, which may be implemented in software and/or hardware.
  • the system language internationalization maintenance method includes:
  • S110 Perform initialization processing on the content of the system to be translated, so as to obtain a configuration file corresponding to the content of the system to be translated.
  • the configuration file can be stored in the blockchain, and the configuration file includes at least an ID item, a language type item, a language value item and a version number item corresponding to the content of the system to be translated;
  • the language type item includes Chinese, English, German, French, Korean, Japanese and other international language types; the language value item is the content of the system to be translated, the language type item and the version number item corresponding translation content. For example, when the system content to be translated is "personal phone”, the language value corresponding to Chinese can be “personal phone”, and the language value corresponding to English can be “telephone”, etc.
  • the content of the system to be translated can be the content that each system needs to display in the same language during the requirements, development, testing or translation process.
  • the configuration file can be sent to the translation library for translation, and the corresponding language value.
  • the above configuration file can also be stored in a node of a blockchain.
  • the configuration file is shown in Table 1 below:
  • the ID of the same system content to be translated is the same, and the IDs of different system content to be translated are different.
  • the Chinese language value for the version number 1.1 and the ID is Message.sure is "Yes”, but the Chinese language value for the version number 1.2 and the ID is Message.sure is "Confirm”, it can be seen that in each system When the language value is called, the language value of the content to be translated can be determined according to the ID, language type and version number.
  • S120 Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated.
  • the process of obtaining the language value corresponding to the system content to be translated includes:
  • S121 Determine a target system corresponding to the system to be translated according to the content of the system to be translated;
  • S122 Acquire a preset translation rule on the target system; wherein, the translation rule includes a specified language type;
  • S123 Acquire a language value corresponding to the content to be translated according to the translation rule.
  • the content of the system to be translated can be translated into multiple languages through the existing translation library, and the language values of each country corresponding to the content of the system to be translated can be obtained.
  • the translation process it can be performed according to preset conditions or application scenarios of the system Set the language type to be translated, and then obtain the corresponding language value.
  • updating the configuration file based on the language value, and obtaining the configuration update file corresponding to the language value includes:
  • the language value item and the version number item in the configuration file are updated to form the configuration update file.
  • the ID, language type and version number corresponding to the content of the system to be translated can be automatically generated, and based on the language value obtained in step S120, it is directly As the language value corresponding to the ID, that is, the ID, language type, language value and version number are stored in association; when the content of the system to be translated is the translation content that needs to be modified, that is, the corresponding ID and version already exist in the configuration file.
  • the language value obtained in step S120 can be used as the language value of the new version number. In other words, on the basis of the original ID, the version number and the corresponding language value can be updated. version number to select.
  • S140 Perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
  • the process of performing language maintenance on the system to be processed through the language value in the configuration update file in the configuration management system includes:
  • sending the configuration update file to the system to be processed includes:
  • the configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
  • the configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
  • the configuration update file in the configuration management system is actively pulled by the system to be processed.
  • the system to be processed can be understood as each system that needs to translate the content. Since the configuration update file includes the translation content of the system content to be translated, the translation content can be issued through the configuration update file, and then used for each system. page display needs.
  • the language maintenance includes the addition, modification and deletion of the translation content.
  • the translation content When the translation content is maintained, it can be operated through the configuration update file. It can be seen that this configuration file can be applied to multiple systems, and there is no need to develop separately for different systems, and in each stage of the system (development, testing, etc.), there is no need to wait for the translator to give specific translation content, and directly configure the corresponding configuration file That is, when a configuration error is found, it can also be quickly modified through the configuration file, thereby shortening the system development cycle and reducing manpower and material resources.
  • the first is active push.
  • This method mainly means that when the configuration file in the configuration management system is updated, the updated configuration file is actively delivered to each system that needs language translation.
  • the second is to push scheduled tasks.
  • This method mainly refers to setting a push task in the configuration management system, and then regularly delivering the translation content.
  • the frequency of delivery can be set by yourself, or when the configured translation content is checked regularly but not delivered, it can be automatically delivered to each system, record the relevant records, and remind the corresponding management personnel.
  • the translation content is delivered in an incremental manner. That is, when the administrator operates in the configuration management system, the interface of the associated system can be called, and the incremental translation content can be distributed according to the previous distribution record, and the version number and distribution of the corresponding translation content can be recorded. time.
  • each system After each system receives the translation content, it is stored on its own system server. When the translation and use system needs to be used, it can be obtained directly from the local area.
  • the language type that needs to be translated can be indicated for different systems, that is, when the system calls the configuration file, the language type and version number to be translated into can be indicated according to the current system, which can avoid manual The risk of mistakes arising from the choice of language type.
  • the newly added translation content can be maintained according to the ID and the version number.
  • each system only needs to agree on a unified ID, and does not need to wait for the translator to give it.
  • translators can configure configuration files into the development and testing systems at any time. When errors are found in the configuration, they can also quickly complete the modification, which can reduce the manpower of system development and reduce system development. of handovers.
  • FIG. 2 it is a functional block diagram of the system language internationalization maintenance device of the present application.
  • the system language internationalization maintenance device 100 described in this application can be installed in an electronic device.
  • the system language internationalization maintenance device may include: a configuration file acquisition and transmission unit 101 , a language value acquisition unit 102 , a configuration update file acquisition unit 103 , and a language maintenance unit 104 .
  • the unit described in the present invention can also be called a module, which refers to a series of computer program segments that can be executed by the processor of the electronic device and can perform fixed functions, which are stored in the memory of the electronic device.
  • each module/unit is as follows:
  • the configuration file obtaining and sending unit 101 is configured to perform initialization processing on the content of the system to be translated, so as to obtain a configuration file corresponding to the content of the system to be translated.
  • the configuration file can be stored in the blockchain, and the configuration file includes at least an ID item, a language type item, a language value item and a version number item corresponding to the content of the system to be translated;
  • the language type item includes Chinese, English, German, French, Korean, Japanese and other international language types; the language value item is different from the content of the system to be translated, the language type item and the version number item. corresponding translation content. For example, when the system content to be translated is "personal phone”, the language value corresponding to Chinese can be “personal phone”, and the language value corresponding to English can be "telephone", etc.
  • the content of the system to be translated may be the content that needs to be displayed in the same language for each system in the process of requirement, development, testing or translation.
  • the above configuration file can also be stored in a node of a blockchain.
  • the language value obtaining unit 102 is configured to translate the system content to be translated in the configuration file through a preset translation library, so as to obtain a language value corresponding to the system content to be translated.
  • the language value acquisition unit 102 further includes:
  • a target system determination module configured to determine a target system corresponding to the system to be translated according to the content of the system to be translated
  • a translation rule acquisition module configured to acquire a preset translation rule on the target system; wherein the translation rule includes a specified language type;
  • a language value determination module configured to acquire a language value corresponding to the content to be translated according to the translation rule.
  • the content of the system to be translated can be translated into multiple languages through the existing translation library, and the language values of each country corresponding to the content of the system to be translated can be obtained. Set the language type to be translated, and then obtain the corresponding language value.
  • the configuration update file obtaining unit 103 is configured to update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value.
  • the configuration update file obtaining unit 103 includes:
  • an ID item, a language type item, a language value item and a version number item corresponding to the content to be translated are automatically generated in the configuration file;
  • the language value item and the version number item in the configuration file are updated to form the configuration update file.
  • the ID, language type and version number corresponding to the content of the system to be translated can be automatically generated, and based on the language value obtained in step S120, it is directly As the language value corresponding to the ID, that is, the ID, language type, language value and version number are stored in association; when the content of the system to be translated is the translation content that needs to be modified, that is, the corresponding ID and version already exist in the configuration file.
  • the language value obtained in step S120 can be used as the language value of the new version number. In other words, on the basis of the original ID, the version number and the corresponding language value can be updated. version number to select.
  • the language maintenance unit 104 is configured to perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
  • the language maintenance unit 104 unit further includes:
  • a configuration file sending module configured to send the configuration update file to the system to be processed
  • a configuration file saving module configured to make the system to be processed save the acquired configuration update file to a corresponding system server
  • the configuration file calling module is configured to call the language value in the configuration update file in the system server when the system to be processed needs to perform content translation, so as to translate the system language of the system to be processed.
  • sending the configuration update file to the system to be processed includes:
  • the configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
  • the configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
  • the configuration update file in the configuration management system is actively pulled by the system to be processed.
  • the system to be processed can be understood as each system that needs to translate the content. Since the configuration update file includes the translation content of the system content to be translated, the translation content can be issued through the configuration update file, and then used for each system. page display needs.
  • the language maintenance includes the addition, modification and deletion of the translation content.
  • FIG. 3 it is a schematic structural diagram of an electronic device implementing the system language internationalization maintenance method of the present application.
  • the electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executed on the processor 10, such as a system language internationalization maintenance program 12.
  • the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, CD etc.
  • the memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1 .
  • the memory 11 may also be an external storage device of the electronic device 1, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital) equipped on the electronic device 1. , SD) card, flash memory card (Flash Card), etc.
  • the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device.
  • the memory 11 can not only be used to store application software installed in the electronic device 1 and various data, such as the code of the system language internationalization maintenance program, etc., but also can be used to temporarily store the data that has been output or will be output.
  • the processor 10 may be composed of integrated circuits, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more integrated circuits.
  • Central Processing Unit CPU
  • microprocessor digital processing chip
  • graphics processor and combination of various control chips, etc.
  • the processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and by running or executing the program or module (such as a system) stored in the memory 11. Language internationalization maintenance program, etc.), and call the data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
  • the bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (Extended industry standard architecture, EISA for short) bus or the like.
  • PCI peripheral component interconnect
  • EISA Extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.
  • FIG. 3 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 2 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the figure. components, or a combination of certain components, or a different arrangement of components.
  • the electronic device 1 may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power source can be managed by the power source.
  • the device implements functions such as charge management, discharge management, and power consumption management.
  • the power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
  • the electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
  • the electronic device 1 may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • a network interface optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
  • the electronic device 1 may further include a user interface, and the user interface may be a display (Display), an input unit (eg, a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface or a wireless interface.
  • the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like.
  • the display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
  • the system language internationalization maintenance program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
  • language maintenance is performed on the system to be processed according to the language value in the configuration update file.
  • the configuration file is stored in the blockchain, and the configuration file includes at least an ID item, a language type item, a language value item, and a version number item corresponding to the system content to be translated; wherein,
  • the language type items include Chinese, English, German, French, Korean, and Japanese;
  • the language value item is the translation content corresponding to the system content to be translated, the language type item, and the version number item, respectively.
  • the process of acquiring the language value corresponding to the system content to be translated includes:
  • the translation rule includes a specified language type
  • a language value corresponding to the content to be translated is acquired according to the translation rule.
  • updating the configuration file based on the language value, and obtaining a configuration update file corresponding to the language value includes:
  • the language value item and the version number item in the configuration file are updated to form the configuration update file.
  • the process of performing language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system includes:
  • the language value in the configuration update file in the system server is called to translate the system language of the system to be processed.
  • the sending the configuration update file to the system to be processed includes:
  • the configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
  • the configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
  • the configuration update file in the configuration management system is actively pulled by the system to be processed.
  • the configuration update file is sent to the system to be processed by means of incremental delivery.
  • the above-mentioned audit data can also be stored in a node of a blockchain.
  • the modules/units integrated in the electronic device 1 may be stored in a computer-readable storage medium.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) .
  • the computer-readable storage medium may be non-volatile or volatile.
  • modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
  • the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Machine Translation (AREA)

Abstract

The present application relates to data processing, and discloses a system language internationalization maintenance method, comprising: initializing system content to be translated to obtain a configuration file corresponding to said system content to be translated; by means of a preset translation library, translating the system content to be translated in said configuration file to obtain a language value corresponding to the system content to be translated; on the basis of said language value, updating said configuration file and obtaining a configuration update file corresponding to the language value; in a preset configuration management system, according to the language value in the configuration update file, performing language maintenance of a system to be processed. The present application also relates to blockchain technology; said configuration file is stored in a blockchain. The present application simplifies the maintenance of system language, and reduces reliance on translation during system development or testing.

Description

***语言国际化维护方法、装置及计算机可读存储介质System language internationalization maintenance method, device and computer-readable storage medium
本申请要求于2020年12月29日提交中国专利局、申请号为202011594783.2,发明名称为“***语言国际化维护方法、装置及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 29, 2020 with the application number 202011594783.2 and titled "System Language Internationalization Maintenance Method, Device and Computer-readable Storage Medium", the entire contents of which are Incorporated herein by reference.
技术领域technical field
本申请涉及数据处理,尤其涉及一种***语言国际化维护的方法、装置、电子设备及计算机可读存储介质。The present application relates to data processing, and in particular, to a method, apparatus, electronic device, and computer-readable storage medium for internationalized maintenance of system languages.
背景技术Background technique
随着软件技术的不断发展,为使软件更好地进入国际市场,现提出了软件国际化的理念,软件国际化的关键在于解决不同国家与地区不同语言的信息处理问题,以使软件的本地化更容易、更高效。With the continuous development of software technology, in order to make software better enter the international market, the concept of software internationalization is now proposed. The key to software internationalization is to solve the problem of information processing in different countries and regions, so that the local easier and more efficient.
例如,在海外项目中,同一个业务***需要支持多国语言,且在不同***中会存在一些相同的语言展示。在需求,开发,测试,翻译的过程中,因为开发周期时间短的原因,翻译不能按时给出,或者翻译内容反复沟通并修改,导致业务***整体周期长,耗费大量的人力物力。此外,由于业务***的开发主要是通过编码的方式写在***中,当翻译内容存在错误或者反复修改时,导致开发和测试的工作出现反复。For example, in an overseas project, the same business system needs to support multiple languages, and there will be some displays in the same language in different systems. During the process of requirement, development, testing, and translation, due to the short development cycle time, the translation cannot be provided on time, or the translation content is repeatedly communicated and revised, resulting in a long overall business system cycle and a lot of manpower and material resources. In addition, because the development of the business system is mainly written in the system through coding, when there are errors in the translation content or repeated revisions, the work of development and testing will be repeated.
针对上述问题,通常的解决方案是,设置语言库,语言库中集中各种语言类型的选择,当需要进行内容翻译时,选择语言库中的对应语言进行翻译,但是发明人意识到该方式翻译速度慢,当不同的***同时进行内容翻译时,需要分别进行操作,导致周期长,效率低,此外当操作人员对外语不熟悉或者操作出现手误时,可能造成一些语言描述的错误,当发现错误时,需要对版本进行更新,不能快速进行修正。In view of the above problems, the usual solution is to set up a language library, and select various language types in the language library. When content translation needs to be performed, select the corresponding language in the language library for translation, but the inventor realizes that this method of translation The speed is slow. When different systems perform content translation at the same time, they need to be operated separately, resulting in a long cycle and low efficiency. In addition, when the operator is not familiar with foreign languages or makes mistakes in the operation, it may cause some language description errors. When there is an error, the version needs to be updated and cannot be corrected quickly.
发明内容SUMMARY OF THE INVENTION
本申请提供一种***语言国际化维护方法、装置、电子设备及计算机可读存储介质,其主要目的在于解决现有***语言在翻译过程中存在的通用性差、速度慢、不利于维护等问题。The present application provides a system language internationalization maintenance method, device, electronic device and computer-readable storage medium, the main purpose of which is to solve the problems of poor versatility, slow speed, and unfavorable maintenance in the translation process of existing system languages.
为实现上述目的,本申请提供的一种***语言国际化维护方法,包括:To achieve the above purpose, a system language internationalization maintenance method provided by this application includes:
对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;Perform initialization processing on the content of the system to be translated to obtain a configuration file corresponding to the content of the system to be translated;
通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
为了解决上述问题,本申请还提供一种***语言国际化维护装置,所述装置包括:In order to solve the above problems, the present application also provides a system language internationalization maintenance device, the device includes:
配置文件获取及发送单元,用于对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;A configuration file obtaining and sending unit, used for initializing the content of the system to be translated, to obtain a configuration file corresponding to the content of the system to be translated;
语言值获取单元,用于通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;a language value obtaining unit, configured to translate the system content to be translated in the configuration file through a preset translation library, so as to obtain a language value corresponding to the system content to be translated;
配置更新文件获取单元,用于基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;a configuration update file obtaining unit, configured to update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
语言维护单元,用于在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。The language maintenance unit is configured to perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
为了解决上述问题,本申请还提供一种电子设备,所述电子设备包括:In order to solve the above problems, the present application also provides an electronic device, the electronic device includes:
至少一个处理器;以及,at least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute:
对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;Perform initialization processing on the content of the system to be translated to obtain a configuration file corresponding to the content of the system to be translated;
通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
为了解决上述问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现:对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;In order to solve the above problems, the present application also provides a computer-readable storage medium, where at least one instruction is stored in the computer-readable storage medium, and the at least one instruction is executed by a processor in an electronic device to realize: a system to be translated The content is initialized to obtain a configuration file corresponding to the content of the system to be translated;
通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
本申请实施例通过对待翻译***内容进行初始化处理,以获取与待翻译***内容对应的配置文件;通过预设翻译库对配置文件中的待翻译***内容进行翻译,以获取与待翻译***内容对应的语言值;基于语言值更新配置文件,并获取与语言值对应的配置更新文件;在预设配置管理***中根据配置更新文件内的语言值对待处理***进行语言维护,能够能够灵活的对翻译信息进行维护,降低***开发对翻译内容的依赖。In the embodiment of the present application, the content of the system to be translated is initialized to obtain a configuration file corresponding to the content of the system to be translated; the content of the system to be translated in the configuration file is translated through a preset translation library to obtain the content corresponding to the system to be translated the language value; update the configuration file based on the language value, and obtain the configuration update file corresponding to the language value; in the preset configuration management system, perform language maintenance on the system to be processed according to the language value in the configuration update file, which can flexibly adjust the translation Information is maintained and the dependence of system development on translation content is reduced.
附图说明Description of drawings
图1为本申请一实施例提供的***语言国际化维护方法的流程示意图;1 is a schematic flowchart of a system language internationalization maintenance method provided by an embodiment of the present application;
图2为本申请一实施例提供的***语言国际化维护装置的模块示意图;2 is a schematic block diagram of a system language internationalization maintenance device provided by an embodiment of the present application;
图3为本申请一实施例提供的实现***语言国际化维护方法的电子设备的内部结构示意图;3 is a schematic diagram of the internal structure of an electronic device for implementing a system language internationalization maintenance method provided by an embodiment of the present application;
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
本申请提供一种***语言国际化维护方法。参照图1所示,为本申请一实施例提供的***语言国际化维护方法的流程示意图。该方法可以由一个装置执行,该装置可以由软件和/或硬件实现。The present application provides a system language internationalization maintenance method. Referring to FIG. 1 , a schematic flowchart of a system language internationalization maintenance method provided by an embodiment of the present application is shown. The method may be performed by an apparatus, which may be implemented in software and/or hardware.
在本实施例中,***语言国际化维护方法包括:In this embodiment, the system language internationalization maintenance method includes:
S110:对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件。S110: Perform initialization processing on the content of the system to be translated, so as to obtain a configuration file corresponding to the content of the system to be translated.
其中,所述配置文件可存储在区块链中,所述配置文件至少包括与所述待翻译***内容对应的ID项、语言类型项、语言值项和版本号项;其中,Wherein, the configuration file can be stored in the blockchain, and the configuration file includes at least an ID item, a language type item, a language value item and a version number item corresponding to the content of the system to be translated; wherein,
所述语言类型项包括中文、英文、德文、法文、韩文、日文等多种国际语言类型;所述语言值项为与所述待翻译***内容、所述语言类型项及所述 版本号项分别对应的翻译内容。例如,当待翻译***内容为“个人电话”时,对应语言类型为中文的语言值可为“个人电话”,对应语言类型为英文的语言值可为“telephone”等。The language type item includes Chinese, English, German, French, Korean, Japanese and other international language types; the language value item is the content of the system to be translated, the language type item and the version number item corresponding translation content. For example, when the system content to be translated is "personal phone", the language value corresponding to Chinese can be "personal phone", and the language value corresponding to English can be "telephone", etc.
可知,待翻译***内容可以为各个***在需求、开发、测试或翻译过程中需要进行相同语言展示的内容,在获取对的配置文件后,可将配置文件发送至翻译库进行翻译,并获取对应的语言值。It can be seen that the content of the system to be translated can be the content that each system needs to display in the same language during the requirements, development, testing or translation process. After obtaining the right configuration file, the configuration file can be sent to the translation library for translation, and the corresponding language value.
需要强调的是,为进一步保证上述配置文件的私密和安全性,上述配置文件还可以存储于一区块链的节点中。It should be emphasized that, in order to further ensure the privacy and security of the above configuration file, the above configuration file can also be stored in a node of a blockchain.
作为示例,配置文件如下表1所示:As an example, the configuration file is shown in Table 1 below:
Figure PCTCN2021091453-appb-000001
Figure PCTCN2021091453-appb-000001
表1Table 1
通过上述表1可知,,同一个待翻译***内容的ID是相同的,不同的待翻译***内容之间的ID是不同的,此外,针对同一ID下的语言值在不同版本之间是存在差异的。例如,针对版本号为1.1、ID为Message.sure的中文语言值为“是的”,但是,针对版本号为1.2、ID为Message.sure的中文语言值为“确认”,可知,在各个***调用该语言值时,可根据ID、语言类型和版本号就可确定需要翻译内容的语言值。It can be seen from the above Table 1 that the ID of the same system content to be translated is the same, and the IDs of different system content to be translated are different. In addition, there are differences between different versions of the language value under the same ID. of. For example, the Chinese language value for the version number 1.1 and the ID is Message.sure is "Yes", but the Chinese language value for the version number 1.2 and the ID is Message.sure is "Confirm", it can be seen that in each system When the language value is called, the language value of the content to be translated can be determined according to the ID, language type and version number.
S120:通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值。S120: Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated.
其中,所述获取与所述待翻译***内容对应的语言值的过程包括:Wherein, the process of obtaining the language value corresponding to the system content to be translated includes:
S121:根据所述待翻译***内容确定与所述待翻译***对应的目标***;S121: Determine a target system corresponding to the system to be translated according to the content of the system to be translated;
S122:获取所述目标***上预设的翻译规则;其中,所述翻译规则包括指定的语言类型;S122: Acquire a preset translation rule on the target system; wherein, the translation rule includes a specified language type;
S123:根据所述翻译规则获取与所述待翻译内容对应的语言值。S123: Acquire a language value corresponding to the content to be translated according to the translation rule.
具体地,可通过已有的翻译库对待翻译***内容进行多国语言翻译,获取与待翻译***内容相对应的各个国家的语言值,在翻译过程中,可根据预设条件或者***的应用场景进行设定需要进行翻译的语言类型,进而获取对应的语言值。Specifically, the content of the system to be translated can be translated into multiple languages through the existing translation library, and the language values of each country corresponding to the content of the system to be translated can be obtained. During the translation process, it can be performed according to preset conditions or application scenarios of the system Set the language type to be translated, and then obtain the corresponding language value.
S130:基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件。S130: Update the configuration file based on the language value, and acquire a configuration update file corresponding to the language value.
其中,基于所述语言值更新所述配置文件,并获取与所述语言值对应的 配置更新文件包括:Wherein, updating the configuration file based on the language value, and obtaining the configuration update file corresponding to the language value includes:
当所述待翻译***内容为新增内容时,在所述配置文件中自动生成与所述待翻译内容对应的ID项、语言类型项、语言值项和版本号项;When the system content to be translated is newly added content, automatically generate an ID item, a language type item, a language value item, and a version number item corresponding to the content to be translated in the configuration file;
然后,基于所述语言值更新所述配置文件时,仅更新所述配置文件中的语言值项,形成所述配置更新文件;Then, when updating the configuration file based on the language value, only the language value item in the configuration file is updated to form the configuration update file;
当所述待翻译***内容为修改内容时,更新所述配置文件中的语言值项和版本号项,形成所述配置更新文件。When the content of the system to be translated is modified content, the language value item and the version number item in the configuration file are updated to form the configuration update file.
具体地,如果待翻译***内容为新增内容,即未在配置文件中出现过时,可自动生成与该待翻译***内容对应的ID、语言类型和版本号,基于步骤S120获取的语言值则直接作为与该ID对应的语言值,即ID、语言类型、语言值和版本号进行关联存储;当该待翻译***内容为需要修改的翻译内容是,即在配置文件中已经存在对应的ID和版本号时,可基于步骤S120获取的语言值作为新的版本号的语言值,换言之,在原ID的基础上,更新版本号及对应的语言值即可,在***调用该语言时,可根据ID和版本号进行选择。Specifically, if the content of the system to be translated is new content, that is, it does not appear outdated in the configuration file, the ID, language type and version number corresponding to the content of the system to be translated can be automatically generated, and based on the language value obtained in step S120, it is directly As the language value corresponding to the ID, that is, the ID, language type, language value and version number are stored in association; when the content of the system to be translated is the translation content that needs to be modified, that is, the corresponding ID and version already exist in the configuration file. When the ID number is used, the language value obtained in step S120 can be used as the language value of the new version number. In other words, on the basis of the original ID, the version number and the corresponding language value can be updated. version number to select.
S140:在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。S140: Perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
其中,通过所述配置管理***中的所述配置更新文件内的语言值对待处理***进行语言维护的过程包括:Wherein, the process of performing language maintenance on the system to be processed through the language value in the configuration update file in the configuration management system includes:
S141:将所述配置更新文件发送至所述待处理***;S141: Send the configuration update file to the system to be processed;
S142:令所述待处理***将获取的所述配置更新文件保存至对应的***服务器;S142: Make the system to be processed save the acquired configuration update file to a corresponding system server;
S143:当所述待处理***需要进行内容翻译时,调用所述***服务器中的配置更新文件内的语言值,以对所述待处理***的***语言进行翻译。S143: When the system to be processed needs to perform content translation, call the language value in the configuration update file in the system server to translate the system language of the system to be processed.
可选地,将所述配置更新文件发送至所述待处理***包括:Optionally, sending the configuration update file to the system to be processed includes:
通过所述配置管理***直接将所述配置更新文件下发至各个所述待处理***中;或者,The configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
通过所述配置管理***中预设的定时任务,将所述配置更新文件定时下发至所述各个待处理***中;或者,The configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
通过所述待处理***主动拉取所述配置管理***中的配置更新文件。The configuration update file in the configuration management system is actively pulled by the system to be processed.
在该步骤中,待处理***可理解为需要进行翻译内容的各个***,由于配置更新文件中包括待翻译***内容的翻译内容,可通过配置更新文件进行翻译内容的下发,进而用于各***的页面展示需要。In this step, the system to be processed can be understood as each system that needs to translate the content. Since the configuration update file includes the translation content of the system content to be translated, the translation content can be issued through the configuration update file, and then used for each system. page display needs.
其中,语言维护包括翻译内容的新增、修改和删除等情况,在对翻译内容进行维护时,可通过配置更新文件进行操作。可知,该配置文件可适用于多个***,不用针对不同的***分别开发,且在***各阶段(开发、测试等), 不需要等待翻译人员给出具体的翻译内容,直接配置对应的配置文件即可,当发现配置出现错误时,也能够通过配置文件进行快速修改,进而缩短***研发周期,减少人力物力。Among them, the language maintenance includes the addition, modification and deletion of the translation content. When the translation content is maintained, it can be operated through the configuration update file. It can be seen that this configuration file can be applied to multiple systems, and there is no need to develop separately for different systems, and in each stage of the system (development, testing, etc.), there is no need to wait for the translator to give specific translation content, and directly configure the corresponding configuration file That is, when a configuration error is found, it can also be quickly modified through the configuration file, thereby shortening the system development cycle and reducing manpower and material resources.
具体地,翻译内容的下发包括三种方式:Specifically, there are three ways to distribute translated content:
第一种,主动推送。该方式主要是指,当配置管理***中的配置文件存在更新时,主动将更新后的配置文件下发至各个需要进行语言翻译的***。The first is active push. This method mainly means that when the configuration file in the configuration management system is updated, the updated configuration file is actively delivered to each system that needs language translation.
第二种,定时任务推送。该方式主要是指,在配置管理***中设定推送任务,进而定时的对翻译内容进行下发。下发的频率可自行设置,或者当定时检查到有配置好的翻译内容但未下发时,可自动下发至各***中,并记录相关记录,并提醒对应的管理人员。The second is to push scheduled tasks. This method mainly refers to setting a push task in the configuration management system, and then regularly delivering the translation content. The frequency of delivery can be set by yourself, or when the configured translation content is checked regularly but not delivered, it can be automatically delivered to each system, record the relevant records, and remind the corresponding management personnel.
第三种,***自动拉取。该方式只要是指,各个***需要进行该翻译内容时,主动至配置管理***中获取配置文件,并根据配置文件中的ID、语言类型和版本号,确定需要获取的语言值。The third, the system automatically pulls. This method only means that when each system needs to translate the content, it will take the initiative to obtain the configuration file from the configuration management system, and determine the language value to be obtained according to the ID, language type and version number in the configuration file.
需要说明的是,上述各方式的翻译内容下发均是采用增量下发的方式。即,当管理人员在配置管理***中操作时,可调用关联***的接口,并根据之前的下发记录,对增量的翻译内容进行下发,并记录对应的翻译内容的版本号和下发时间。It should be noted that, in each of the above methods, the translation content is delivered in an incremental manner. That is, when the administrator operates in the configuration management system, the interface of the associated system can be called, and the incremental translation content can be distributed according to the previous distribution record, and the version number and distribution of the corresponding translation content can be recorded. time.
而各个***在接收到翻译内容后,保存在各自的***服务器上,当翻译使用***需要使用时,直接从本地进行获取即可。After each system receives the translation content, it is stored on its own system server. When the translation and use system needs to be used, it can be obtained directly from the local area.
优选地,在配置管理***中,针对不同的***可指示需要进行翻译的语言类型,即在***调用配置文件时,可根据当前***,指示出需要翻译成的语言类型及版本号,可避免人工选取语言类型所引发的失误风险。Preferably, in the configuration management system, the language type that needs to be translated can be indicated for different systems, that is, when the system calls the configuration file, the language type and version number to be translated into can be indicated according to the current system, which can avoid manual The risk of mistakes arising from the choice of language type.
根据本申请的***语言国家化管理方法,对于新增翻译内容,可根据ID和本版号进行维护,在开发过程中,各个***只需要约定统一的ID即可,不需要等到翻译人员给出翻译内容,在***开发测试过程中,翻译人员可随时将配置文件配置到开发和测试***中,当发现配置出现错误时,也可以很快的完成修改,能够降低***开发的人力,减少***开发的移交次数。According to the system language nationalization management method of the present application, the newly added translation content can be maintained according to the ID and the version number. During the development process, each system only needs to agree on a unified ID, and does not need to wait for the translator to give it. To translate content, in the process of system development and testing, translators can configure configuration files into the development and testing systems at any time. When errors are found in the configuration, they can also quickly complete the modification, which can reduce the manpower of system development and reduce system development. of handovers.
如图2所示,是本申请***语言国际化维护装置的功能模块图。As shown in FIG. 2 , it is a functional block diagram of the system language internationalization maintenance device of the present application.
本申请所述***语言国际化维护装置100可以安装于电子设备中。根据实现的功能,所述***语言国际化维护装置可以包括:配置文件获取及发送单元101、语言值获取单元102、配置更新文件获取单元103和语言维护单元104。本发所述单元也可以称之为模块,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The system language internationalization maintenance device 100 described in this application can be installed in an electronic device. According to the implemented functions, the system language internationalization maintenance device may include: a configuration file acquisition and transmission unit 101 , a language value acquisition unit 102 , a configuration update file acquisition unit 103 , and a language maintenance unit 104 . The unit described in the present invention can also be called a module, which refers to a series of computer program segments that can be executed by the processor of the electronic device and can perform fixed functions, which are stored in the memory of the electronic device.
在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:
配置文件获取及发送单元101,用于对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件。The configuration file obtaining and sending unit 101 is configured to perform initialization processing on the content of the system to be translated, so as to obtain a configuration file corresponding to the content of the system to be translated.
在该单元中,所述配置文件可存储在区块链中,所述配置文件至少包括与所述待翻译***内容对应的ID项、语言类型项、语言值项和版本号项;其中,所述语言类型项包括中文、英文、德文、法文、韩文、日文等多种国际语言类型;所述语言值项为与所述待翻译***内容、所述语言类型项及所述版本号项分别对应的翻译内容。例如,当待翻译***内容为“个人电话”时,对应语言类型为中文的语言值可为“个人电话”,对应语言类型为英文的语言值可为“telephone”等。In this unit, the configuration file can be stored in the blockchain, and the configuration file includes at least an ID item, a language type item, a language value item and a version number item corresponding to the content of the system to be translated; The language type item includes Chinese, English, German, French, Korean, Japanese and other international language types; the language value item is different from the content of the system to be translated, the language type item and the version number item. corresponding translation content. For example, when the system content to be translated is "personal phone", the language value corresponding to Chinese can be "personal phone", and the language value corresponding to English can be "telephone", etc.
可知,待翻译***内容可以为各个***在需求、开发、测试或翻译过程中需要进行相同语言展示的内容。It can be known that the content of the system to be translated may be the content that needs to be displayed in the same language for each system in the process of requirement, development, testing or translation.
需要强调的是,为进一步保证上述配置文件的私密和安全性,上述配置文件还可以存储于一区块链的节点中。It should be emphasized that, in order to further ensure the privacy and security of the above configuration file, the above configuration file can also be stored in a node of a blockchain.
语言值获取单元102,用于通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值。The language value obtaining unit 102 is configured to translate the system content to be translated in the configuration file through a preset translation library, so as to obtain a language value corresponding to the system content to be translated.
其中,语言值获取单元102进一步包括:Wherein, the language value acquisition unit 102 further includes:
目标***确定模块,用于根据所述待翻译***内容确定与所述待翻译***对应的目标***;a target system determination module, configured to determine a target system corresponding to the system to be translated according to the content of the system to be translated;
翻译规则获取模块,用于获取所述目标***上预设的翻译规则;其中,所述翻译规则包括指定的语言类型;a translation rule acquisition module, configured to acquire a preset translation rule on the target system; wherein the translation rule includes a specified language type;
语言值确定模块,用于根据所述翻译规则获取与所述待翻译内容对应的语言值。A language value determination module, configured to acquire a language value corresponding to the content to be translated according to the translation rule.
具体地,可通过已有的翻译库对待翻译***内容进行多国语言翻译,获取与待翻译***内容相对应的各个国家的语言值,在翻译过程中,可根据预设条件或者***的应用场景进行设定需要进行翻译的语言类型,进而获取对应的语言值。Specifically, the content of the system to be translated can be translated into multiple languages through the existing translation library, and the language values of each country corresponding to the content of the system to be translated can be obtained. Set the language type to be translated, and then obtain the corresponding language value.
配置更新文件获取单元103,用于基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件。The configuration update file obtaining unit 103 is configured to update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value.
其中,配置更新文件获取单元103包括:Wherein, the configuration update file obtaining unit 103 includes:
当所述待翻译***内容为新增内容时,在所述配置文件中自动生成与所述待翻译内容对应的ID项、语言类型项、语言值项和版本号项;When the system content to be translated is newly added content, an ID item, a language type item, a language value item and a version number item corresponding to the content to be translated are automatically generated in the configuration file;
然后,基于所述语言值更新所述配置文件时,仅更新所述配置文件中的语言值项,形成所述配置更新文件;Then, when updating the configuration file based on the language value, only the language value item in the configuration file is updated to form the configuration update file;
当所述待翻译***内容为修改内容时,更新所述配置文件中的语言值项 和版本号项,形成所述配置更新文件。When the content of the system to be translated is modified content, the language value item and the version number item in the configuration file are updated to form the configuration update file.
具体地,如果待翻译***内容为新增内容,即未在配置文件中出现过时,可自动生成与该待翻译***内容对应的ID、语言类型和版本号,基于步骤S120获取的语言值则直接作为与该ID对应的语言值,即ID、语言类型、语言值和版本号进行关联存储;当该待翻译***内容为需要修改的翻译内容是,即在配置文件中已经存在对应的ID和版本号时,可基于步骤S120获取的语言值作为新的版本号的语言值,换言之,在原ID的基础上,更新版本号及对应的语言值即可,在***调用该语言时,可根据ID和版本号进行选择。Specifically, if the content of the system to be translated is new content, that is, it does not appear outdated in the configuration file, the ID, language type and version number corresponding to the content of the system to be translated can be automatically generated, and based on the language value obtained in step S120, it is directly As the language value corresponding to the ID, that is, the ID, language type, language value and version number are stored in association; when the content of the system to be translated is the translation content that needs to be modified, that is, the corresponding ID and version already exist in the configuration file. When the ID number is used, the language value obtained in step S120 can be used as the language value of the new version number. In other words, on the basis of the original ID, the version number and the corresponding language value can be updated. version number to select.
语言维护单元104,用于在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。The language maintenance unit 104 is configured to perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
该语言维护单元104单元进一步包括:The language maintenance unit 104 unit further includes:
配置文件发送模块,用于将所述配置更新文件发送至所述待处理***;a configuration file sending module, configured to send the configuration update file to the system to be processed;
配置文件保存模块,用于令所述待处理***将获取的所述配置更新文件保存至对应的***服务器;a configuration file saving module, configured to make the system to be processed save the acquired configuration update file to a corresponding system server;
配置文件调用模块,用于当所述待处理***需要进行内容翻译时,调用所述***服务器中的配置更新文件内的语言值,以对所述待处理***的***语言进行翻译。The configuration file calling module is configured to call the language value in the configuration update file in the system server when the system to be processed needs to perform content translation, so as to translate the system language of the system to be processed.
可选地,将所述配置更新文件发送至所述待处理***包括:Optionally, sending the configuration update file to the system to be processed includes:
通过所述配置管理***直接将所述配置更新文件下发至各个所述待处理***中;或者,The configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
通过所述配置管理***中预设的定时任务,将所述配置更新文件定时下发至所述各个待处理***中;或者,The configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
通过所述待处理***主动拉取所述配置管理***中的配置更新文件。The configuration update file in the configuration management system is actively pulled by the system to be processed.
在该步骤中,待处理***可理解为需要进行翻译内容的各个***,由于配置更新文件中包括待翻译***内容的翻译内容,可通过配置更新文件进行翻译内容的下发,进而用于各***的页面展示需要。In this step, the system to be processed can be understood as each system that needs to translate the content. Since the configuration update file includes the translation content of the system content to be translated, the translation content can be issued through the configuration update file, and then used for each system. page display needs.
其中,语言维护包括翻译内容的新增、修改和删除等情况,在对翻译内容进行维护时,可通过配置更新文件进行操作。可知,该配置文件可适用于多个***,不用针对不同的***分别开发,且在***各阶段(开发、测试等),不需要等待翻译人员给出具体的翻译内容,直接配置对应的配置文件即可,当发现配置出现错误时,也能够通过配置文件进行快速修改,进而缩短***研发周期,减少人力物力。Among them, the language maintenance includes the addition, modification and deletion of the translation content. When maintaining the translation content, you can perform operations through the configuration update file. It can be seen that this configuration file can be applied to multiple systems, and there is no need to develop separately for different systems, and in each stage of the system (development, testing, etc.), you do not need to wait for the translator to give specific translation content, and directly configure the corresponding configuration file That is, when a configuration error is found, it can also be quickly modified through the configuration file, thereby shortening the system development cycle and reducing manpower and material resources.
如图3所示,是本申请实现***语言国际化维护方法的电子设备的结构示意图。As shown in FIG. 3 , it is a schematic structural diagram of an electronic device implementing the system language internationalization maintenance method of the present application.
所述电子设备1可以包括处理器10、存储器11和总线,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如***语言国际化维护程序12。The electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executed on the processor 10, such as a system language internationalization maintenance program 12.
其中,所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备1的内部存储单元,例如该电子设备1的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备1的外部存储设备,例如电子设备1上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备1的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备1的应用软件及各类数据,例如***语言国际化维护程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, CD etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1 . In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital) equipped on the electronic device 1. , SD) card, flash memory card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software installed in the electronic device 1 and various data, such as the code of the system language internationalization maintenance program, etc., but also can be used to temporarily store the data that has been output or will be output.
所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如***语言国际化维护程序等),以及调用存储在所述存储器11内的数据,以执行电子设备1的各种功能和处理数据。In some embodiments, the processor 10 may be composed of integrated circuits, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or more integrated circuits. Central Processing Unit (CPU), microprocessor, digital processing chip, graphics processor and combination of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and by running or executing the program or module (such as a system) stored in the memory 11. Language internationalization maintenance program, etc.), and call the data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
所述总线可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The bus may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (Extended industry standard architecture, EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.
图3仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图2示出的结构并不构成对所述电子设备1的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 3 only shows an electronic device with components. Those skilled in the art can understand that the structure shown in FIG. 2 does not constitute a limitation on the electronic device 1, and may include fewer or more components than those shown in the figure. components, or a combination of certain components, or a different arrangement of components.
例如,尽管未示出,所述电子设备1还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。 所述电子设备1还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power source can be managed by the power source. The device implements functions such as charge management, discharge management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components. The electronic device 1 may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
进一步地,所述电子设备1还可以包括网络接口,可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备1与其他电子设备之间建立通信连接。Further, the electronic device 1 may also include a network interface, optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used in the electronic device 1 Establish a communication connection with other electronic devices.
可选地,该电子设备1还可以包括用户接口,用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备1中处理的信息以及用于显示可视化的用户界面。Optionally, the electronic device 1 may further include a user interface, and the user interface may be a display (Display), an input unit (eg, a keyboard (Keyboard)), optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like. The display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device 1 and for displaying a visualized user interface.
应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.
所述电子设备1中的所述存储器11存储的***语言国际化维护程序12是多个指令的组合,在所述处理器10中运行时,可以实现:The system language internationalization maintenance program 12 stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can realize:
对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;Perform initialization processing on the content of the system to be translated to obtain a configuration file corresponding to the content of the system to be translated;
通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
可选地,所述配置文件存储在区块链中,所述配置文件至少包括与所述待翻译***内容对应的ID项、语言类型项、语言值项和版本号项;其中,Optionally, the configuration file is stored in the blockchain, and the configuration file includes at least an ID item, a language type item, a language value item, and a version number item corresponding to the system content to be translated; wherein,
所述语言类型项包括中文、英文、德文、法文、韩文、日文;The language type items include Chinese, English, German, French, Korean, and Japanese;
所述语言值项为与所述待翻译***内容、所述语言类型项及所述版本号项分别对应的翻译内容。The language value item is the translation content corresponding to the system content to be translated, the language type item, and the version number item, respectively.
可选地,所述获取与所述待翻译***内容对应的语言值的过程包括:Optionally, the process of acquiring the language value corresponding to the system content to be translated includes:
根据所述待翻译***内容确定与所述待翻译***对应的目标***;Determine the target system corresponding to the system to be translated according to the content of the system to be translated;
获取所述目标***上预设的翻译规则;其中,所述翻译规则包括指定的语言类型;Acquire a preset translation rule on the target system; wherein, the translation rule includes a specified language type;
根据所述翻译规则获取与所述待翻译内容对应的语言值。A language value corresponding to the content to be translated is acquired according to the translation rule.
可选地,基于所述语言值更新所述配置文件,并获取与所述语言值对应 的配置更新文件包括:Optionally, updating the configuration file based on the language value, and obtaining a configuration update file corresponding to the language value includes:
当所述待翻译***内容为新增内容时,在所述配置文件中自动生成与所述待翻译内容对应的ID项、语言类型项、语言值项和版本号项;When the system content to be translated is newly added content, automatically generate an ID item, a language type item, a language value item, and a version number item corresponding to the content to be translated in the configuration file;
基于所述语言值更新所述配置文件时,仅更新所述配置文件中的语言值项,形成所述配置更新文件;When updating the configuration file based on the language value, only the language value items in the configuration file are updated to form the configuration update file;
当所述待翻译***内容为修改内容时,更新所述配置文件中的语言值项和版本号项,形成所述配置更新文件。When the content of the system to be translated is modified content, the language value item and the version number item in the configuration file are updated to form the configuration update file.
可选地,在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护的过程包括:Optionally, the process of performing language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system includes:
将所述配置更新文件发送至所述待处理***;sending the configuration update file to the system to be processed;
令所述待处理***将获取的所述配置更新文件保存至对应的***服务器;causing the system to be processed to save the acquired configuration update file to the corresponding system server;
当所述待处理***需要进行内容翻译时,调用所述***服务器中的配置更新文件内的语言值,以对所述待处理***的***语言进行翻译。When the system to be processed needs to perform content translation, the language value in the configuration update file in the system server is called to translate the system language of the system to be processed.
可选地,所述将所述配置更新文件发送至所述待处理***包括:Optionally, the sending the configuration update file to the system to be processed includes:
通过所述配置管理***直接将所述配置更新文件下发至各个所述待处理***中;或者,The configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
通过所述配置管理***中预设的定时任务,将所述配置更新文件定时下发至所述各个待处理***中;或者,The configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
通过所述待处理***主动拉取所述配置管理***中的配置更新文件。The configuration update file in the configuration management system is actively pulled by the system to be processed.
可选地,采用增量下发的方式将所述配置更新文件发送至待处理***。Optionally, the configuration update file is sent to the system to be processed by means of incremental delivery.
具体地,所述处理器10对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。需要强调的是,为进一步保证上述待稽核数据的私密和安全性,上述稽核数据还可以存储于一区块链的节点中。Specifically, for the specific implementation method of the above-mentioned instruction by the processor 10, reference may be made to the description of the relevant steps in the corresponding embodiment of FIG. 1, and details are not described herein. It should be emphasized that, in order to further ensure the privacy and security of the above-mentioned data to be audited, the above-mentioned audit data can also be stored in a node of a blockchain.
进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the modules/units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) .
其中,所述计算机可读存储介质可以是非易失性,也可以是易失性。Wherein, the computer-readable storage medium may be non-volatile or volatile.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。It will be apparent to those skilled in the art that the present application is not limited to the details of the above-described exemplary embodiments, but that the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Accordingly, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the application is to be defined by the appended claims rather than the foregoing description, which is therefore intended to fall within the scope of the claims. All changes within the meaning and scope of the equivalents of , are included in this application. Any reference signs in the claims shall not be construed as limiting the involved claim.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。***权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the system claims can also be realized by one unit or means by means of software or hardware. Second-class terms are used to denote names and do not denote any particular order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present application.

Claims (20)

  1. 一种***语言国际化维护方法,其中,所述方法包括:A system language internationalization maintenance method, wherein the method includes:
    对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;Perform initialization processing on the content of the system to be translated to obtain a configuration file corresponding to the content of the system to be translated;
    通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
    基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
    在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
  2. 如权利要求1所述的***语言国际化维护方法,其中,所述配置文件存储在区块链中,所述配置文件至少包括与所述待翻译***内容对应的ID项、语言类型项、语言值项和版本号项;其中,The system language internationalization maintenance method according to claim 1, wherein the configuration file is stored in a blockchain, and the configuration file at least includes an ID item, a language type item, a language item corresponding to the system content to be translated A value entry and a version number entry; where,
    所述语言类型项包括中文、英文、德文、法文、韩文、日文;The language type items include Chinese, English, German, French, Korean, and Japanese;
    所述语言值项为与所述待翻译***内容、所述语言类型项及所述版本号项分别对应的翻译内容。The language value item is the translation content corresponding to the system content to be translated, the language type item, and the version number item, respectively.
  3. 如权利要求1所述的***语言国际化维护方法,其中,所述获取与所述待翻译***内容对应的语言值的过程包括:The system language internationalization maintenance method according to claim 1, wherein the process of acquiring the language value corresponding to the system content to be translated comprises:
    根据所述待翻译***内容确定与所述待翻译***对应的目标***;Determine the target system corresponding to the system to be translated according to the content of the system to be translated;
    获取所述目标***上预设的翻译规则;其中,所述翻译规则包括指定的语言类型;Acquire a preset translation rule on the target system; wherein, the translation rule includes a specified language type;
    根据所述翻译规则获取与所述待翻译内容对应的语言值。A language value corresponding to the content to be translated is acquired according to the translation rule.
  4. 如权利要求2所述的***语言国际化维护方法,其中,基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件包括:The system language internationalization maintenance method according to claim 2, wherein updating the configuration file based on the language value, and acquiring the configuration update file corresponding to the language value comprises:
    当所述待翻译***内容为新增内容时,在所述配置文件中自动生成与所述待翻译内容对应的ID项、语言类型项、语言值项和版本号项;When the system content to be translated is newly added content, automatically generate an ID item, a language type item, a language value item, and a version number item corresponding to the content to be translated in the configuration file;
    基于所述语言值更新所述配置文件时,仅更新所述配置文件中的语言值项,形成所述配置更新文件;When updating the configuration file based on the language value, only the language value items in the configuration file are updated to form the configuration update file;
    当所述待翻译***内容为修改内容时,更新所述配置文件中的语言值项和版本号项,形成所述配置更新文件。When the content of the system to be translated is modified content, the language value item and the version number item in the configuration file are updated to form the configuration update file.
  5. 如权利要求1所述的***语言国际化维护方法,其中,所述在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护的过程包括:The system language internationalization maintenance method according to claim 1, wherein the process of performing language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system comprises:
    将所述配置更新文件发送至所述待处理***;sending the configuration update file to the system to be processed;
    令所述待处理***将获取的所述配置更新文件保存至对应的***服务器;causing the system to be processed to save the acquired configuration update file to the corresponding system server;
    当所述待处理***需要进行内容翻译时,调用所述***服务器中的配置更新文件内的语言值,以对所述待处理***的***语言进行翻译。When the system to be processed needs to perform content translation, the language value in the configuration update file in the system server is called to translate the system language of the system to be processed.
  6. 如权利要求5所述的***语言国际化维护方法,其中,所述将所述配置更新文件发送至所述待处理***包括:The system language internationalization maintenance method according to claim 5, wherein the sending the configuration update file to the system to be processed comprises:
    通过所述配置管理***直接将所述配置更新文件下发至各个所述待处理***中;或者,The configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
    通过所述配置管理***中预设的定时任务,将所述配置更新文件定时下发至所述各个待处理***中;或者,The configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
    通过所述待处理***主动拉取所述配置管理***中的配置更新文件。The configuration update file in the configuration management system is actively pulled by the system to be processed.
  7. 如权利要求5所述的***语言国际化维护方法,其中,The system language internationalization maintenance method according to claim 5, wherein,
    采用增量下发的方式将所述配置更新文件发送至所述待处理***。The configuration update file is sent to the system to be processed by means of incremental delivery.
  8. 一种***语言国际化维护装置,其中,所述装置包括:A system language internationalization maintenance device, wherein the device includes:
    配置文件获取及发送单元,用于对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;A configuration file obtaining and sending unit, used for initializing the content of the system to be translated, to obtain a configuration file corresponding to the content of the system to be translated;
    语言值获取单元,用于通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;a language value obtaining unit, configured to translate the system content to be translated in the configuration file through a preset translation library, so as to obtain a language value corresponding to the system content to be translated;
    配置更新文件获取单元,用于基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;a configuration update file obtaining unit, configured to update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
    语言维护单元,用于在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。The language maintenance unit is configured to perform language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system.
  9. 如权利要求8所述的***语言国际化维护装置,其中,所述配置文件存储在区块链中,所述配置文件至少包括与所述待翻译***内容对应的ID项、语言类型项、语言值项和版本号项;其中,The system language internationalization maintenance device according to claim 8, wherein the configuration file is stored in a blockchain, and the configuration file at least includes an ID item, a language type item, a language item corresponding to the system content to be translated A value entry and a version number entry; where,
    所述语言类型项包括中文、英文、德文、法文、韩文、日文;The language type items include Chinese, English, German, French, Korean, and Japanese;
    所述语言值项为与所述待翻译***内容、所述语言类型项及所述版本号项分别对应的翻译内容。The language value item is the translation content corresponding to the system content to be translated, the language type item, and the version number item, respectively.
  10. 如权利要求8所述的***语言国际化维护装置,其中,所述获取与所述待翻译***内容对应的语言值的过程包括:The system language internationalization maintenance device according to claim 8, wherein the process of acquiring the language value corresponding to the system content to be translated comprises:
    根据所述待翻译***内容确定与所述待翻译***对应的目标***;Determine the target system corresponding to the system to be translated according to the content of the system to be translated;
    获取所述目标***上预设的翻译规则;其中,所述翻译规则包括指定的语言类型;Acquire a preset translation rule on the target system; wherein, the translation rule includes a specified language type;
    根据所述翻译规则获取与所述待翻译内容对应的语言值。A language value corresponding to the content to be translated is acquired according to the translation rule.
  11. 如权利要求9所述的***语言国际化维护装置,其中,基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件包括:The system language internationalization maintenance device according to claim 9, wherein updating the configuration file based on the language value, and acquiring the configuration update file corresponding to the language value comprises:
    当所述待翻译***内容为新增内容时,在所述配置文件中自动生成与所 述待翻译内容对应的ID项、语言类型项、语言值项和版本号项;When described system content to be translated is new content, automatically generate ID item, language type item, language value item and version number item corresponding to described content to be translated in described configuration file;
    基于所述语言值更新所述配置文件时,仅更新所述配置文件中的语言值项,形成所述配置更新文件;When updating the configuration file based on the language value, only the language value items in the configuration file are updated to form the configuration update file;
    当所述待翻译***内容为修改内容时,更新所述配置文件中的语言值项和版本号项,形成所述配置更新文件。When the content of the system to be translated is modified content, the language value item and the version number item in the configuration file are updated to form the configuration update file.
  12. 如权利要求8所述的***语言国际化维护装置,其中,所述在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护的过程包括:The system language internationalization maintenance device according to claim 8, wherein the process of performing language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system comprises:
    将所述配置更新文件发送至所述待处理***;sending the configuration update file to the system to be processed;
    令所述待处理***将获取的所述配置更新文件保存至对应的***服务器;causing the system to be processed to save the acquired configuration update file to the corresponding system server;
    当所述待处理***需要进行内容翻译时,调用所述***服务器中的配置更新文件内的语言值,以对所述待处理***的***语言进行翻译。When the system to be processed needs to perform content translation, the language value in the configuration update file in the system server is called to translate the system language of the system to be processed.
  13. 如权利要求8所述的***语言国际化维护装置,其中,所述将所述配置更新文件发送至所述待处理***包括:The system language internationalization maintenance device according to claim 8, wherein the sending the configuration update file to the system to be processed comprises:
    通过所述配置管理***直接将所述配置更新文件下发至各个所述待处理***中;或者,The configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
    通过所述配置管理***中预设的定时任务,将所述配置更新文件定时下发至所述各个待处理***中;或者,The configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
    通过所述待处理***主动拉取所述配置管理***中的配置更新文件。The configuration update file in the configuration management system is actively pulled by the system to be processed.
  14. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device comprises:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute:
    对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;Perform initialization processing on the content of the system to be translated to obtain a configuration file corresponding to the content of the system to be translated;
    通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
    基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
    在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
  15. 如权利要求14所述的电子设备,其中,所述配置文件存储在区块链中,所述配置文件至少包括与所述待翻译***内容对应的ID项、语言类型项、语言值项和版本号项;其中,The electronic device of claim 14, wherein the configuration file is stored in a blockchain, and the configuration file at least includes an ID item, a language type item, a language value item and a version corresponding to the system content to be translated item; of which,
    所述语言类型项包括中文、英文、德文、法文、韩文、日文;The language type items include Chinese, English, German, French, Korean, and Japanese;
    所述语言值项为与所述待翻译***内容、所述语言类型项及所述版本号项分别对应的翻译内容。The language value item is the translation content corresponding to the system content to be translated, the language type item, and the version number item, respectively.
  16. 如权利要求14所述的电子设备,其中,所述获取与所述待翻译***内容对应的语言值的过程包括:The electronic device of claim 14, wherein the process of acquiring the language value corresponding to the system content to be translated comprises:
    根据所述待翻译***内容确定与所述待翻译***对应的目标***;Determine the target system corresponding to the system to be translated according to the content of the system to be translated;
    获取所述目标***上预设的翻译规则;其中,所述翻译规则包括指定的语言类型;Acquire a preset translation rule on the target system; wherein, the translation rule includes a specified language type;
    根据所述翻译规则获取与所述待翻译内容对应的语言值。A language value corresponding to the content to be translated is acquired according to the translation rule.
  17. 如权利要求15所述的电子设备,其中,基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件包括:The electronic device of claim 15, wherein updating the configuration file based on the language value, and obtaining a configuration update file corresponding to the language value comprises:
    当所述待翻译***内容为新增内容时,在所述配置文件中自动生成与所述待翻译内容对应的ID项、语言类型项、语言值项和版本号项;When the system content to be translated is newly added content, automatically generate an ID item, a language type item, a language value item, and a version number item corresponding to the content to be translated in the configuration file;
    基于所述语言值更新所述配置文件时,仅更新所述配置文件中的语言值项,形成所述配置更新文件;When updating the configuration file based on the language value, only the language value items in the configuration file are updated to form the configuration update file;
    当所述待翻译***内容为修改内容时,更新所述配置文件中的语言值项和版本号项,形成所述配置更新文件。When the content of the system to be translated is modified content, the language value item and the version number item in the configuration file are updated to form the configuration update file.
  18. 如权利要求14所述的电子设备,其中,所述在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护的过程包括:The electronic device according to claim 14, wherein the process of performing language maintenance on the system to be processed according to the language value in the configuration update file in the preset configuration management system comprises:
    将所述配置更新文件发送至所述待处理***;sending the configuration update file to the system to be processed;
    令所述待处理***将获取的所述配置更新文件保存至对应的***服务器;causing the system to be processed to save the acquired configuration update file to the corresponding system server;
    当所述待处理***需要进行内容翻译时,调用所述***服务器中的配置更新文件内的语言值,以对所述待处理***的***语言进行翻译。When the system to be processed needs to perform content translation, the language value in the configuration update file in the system server is called to translate the system language of the system to be processed.
  19. 如权利要求18所述的电子设备,其中,所述将所述配置更新文件发送至所述待处理***包括:The electronic device of claim 18, wherein the sending the configuration update file to the system to be processed comprises:
    通过所述配置管理***直接将所述配置更新文件下发至各个所述待处理***中;或者,The configuration update file is directly delivered to each of the systems to be processed through the configuration management system; or,
    通过所述配置管理***中预设的定时任务,将所述配置更新文件定时下发至所述各个待处理***中;或者,The configuration update file is regularly delivered to the systems to be processed through a preset scheduled task in the configuration management system; or,
    通过所述待处理***主动拉取所述配置管理***中的配置更新文件。The configuration update file in the configuration management system is actively pulled by the system to be processed.
  20. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现:对待翻译***内容进行初始化处理,以获取与所述待翻译***内容对应的配置文件;A computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, it realizes: initializing the content of the system to be translated, so as to obtain a configuration file corresponding to the content of the system to be translated;
    通过预设翻译库对所述配置文件中的待翻译***内容进行翻译,以获取与所述待翻译***内容对应的语言值;Translate the system content to be translated in the configuration file by using a preset translation library to obtain a language value corresponding to the system content to be translated;
    基于所述语言值更新所述配置文件,并获取与所述语言值对应的配置更新文件;Update the configuration file based on the language value, and obtain a configuration update file corresponding to the language value;
    在预设配置管理***中根据所述配置更新文件内的语言值对待处理***进行语言维护。In the preset configuration management system, language maintenance is performed on the system to be processed according to the language value in the configuration update file.
PCT/CN2021/091453 2020-12-29 2021-04-30 System language internationalization maintenance method, apparatus, and computer-readable storage medium WO2022142035A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011594783.2 2020-12-29
CN202011594783.2A CN112685117A (en) 2020-12-29 2020-12-29 System language internationalization maintenance method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2022142035A1 true WO2022142035A1 (en) 2022-07-07

Family

ID=75455192

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/091453 WO2022142035A1 (en) 2020-12-29 2021-04-30 System language internationalization maintenance method, apparatus, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112685117A (en)
WO (1) WO2022142035A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115618887A (en) * 2022-10-17 2023-01-17 北京志凌海纳科技有限公司 Dynamic long text internationalization method, device, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685117A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 System language internationalization maintenance method, device and computer readable storage medium
CN113946393A (en) * 2021-09-30 2022-01-18 广州市玄武无线科技股份有限公司 Dynamic multi-language configuration method and system
CN115113950A (en) * 2022-07-03 2022-09-27 上海妙一生物科技有限公司 Method and device for outputting prompt information of application product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014237A1 (en) * 2001-07-13 2003-01-16 Lee Macklin System and method for converting a standard generalized markup language in multiple languages
CN107391499A (en) * 2017-08-03 2017-11-24 深圳Tcl新技术有限公司 It is automatically imported interpretation method, text importing terminal and computer-readable recording medium
CN107741858A (en) * 2017-11-28 2018-02-27 深圳市鼎晟开元科技有限公司 The application program update method, apparatus and system of multilingual version
CN109635251A (en) * 2018-10-16 2019-04-16 平安普惠企业管理有限公司 Text conversion method, device, equipment and the storage medium of application
CN110673920A (en) * 2019-09-29 2020-01-10 深圳前海环融联易信息科技服务有限公司 Internationalization processing method and device, computer equipment and storage medium
CN112685117A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 System language internationalization maintenance method, device and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305488A (en) * 2016-04-18 2017-10-31 中兴通讯股份有限公司 One kind application method for internationalizing, device and terminal
CN111652003B (en) * 2020-06-09 2023-08-15 广东小天才科技有限公司 Language translation processing method, device, electronic equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014237A1 (en) * 2001-07-13 2003-01-16 Lee Macklin System and method for converting a standard generalized markup language in multiple languages
CN107391499A (en) * 2017-08-03 2017-11-24 深圳Tcl新技术有限公司 It is automatically imported interpretation method, text importing terminal and computer-readable recording medium
CN107741858A (en) * 2017-11-28 2018-02-27 深圳市鼎晟开元科技有限公司 The application program update method, apparatus and system of multilingual version
CN109635251A (en) * 2018-10-16 2019-04-16 平安普惠企业管理有限公司 Text conversion method, device, equipment and the storage medium of application
CN110673920A (en) * 2019-09-29 2020-01-10 深圳前海环融联易信息科技服务有限公司 Internationalization processing method and device, computer equipment and storage medium
CN112685117A (en) * 2020-12-29 2021-04-20 平安普惠企业管理有限公司 System language internationalization maintenance method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115618887A (en) * 2022-10-17 2023-01-17 北京志凌海纳科技有限公司 Dynamic long text internationalization method, device, equipment and storage medium
CN115618887B (en) * 2022-10-17 2023-07-25 北京志凌海纳科技有限公司 Dynamic long text internationalization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112685117A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
WO2022142035A1 (en) System language internationalization maintenance method, apparatus, and computer-readable storage medium
CN109947773B (en) Deploying changes to key patterns in a multi-tenant database system
CN112052242B (en) Data query method, device, electronic equipment and storage medium
WO2019090993A1 (en) Deployment method and apparatus for monitoring system, computer device and storage medium
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
US10997003B2 (en) Electronic apparatus, method for adding function, and non-transitory recording medium
US20120167090A1 (en) Hypervisor for starting a virtual machine
US10268628B2 (en) Method for extracting BIOS attributes for BIOS management and system therefor
WO2021212757A1 (en) Upgrade maintenance method and apparatus for cluster, and electronic device and storage medium
US11822912B2 (en) Software installation through an overlay file system
CN104468811B (en) Upgrade method and device
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN111177247A (en) Data conversion method, device and storage medium
US10540151B1 (en) Graphical customization of a firmware-provided user interface (UI)
WO2016078326A1 (en) Method, apparatus and system for displaying names of virtual machine
CN110599112B (en) Network page development and maintenance method and device
US20210248255A1 (en) File management system and non-transitory computer readable medium
US10621130B1 (en) Ordering filter drivers in a device stack with filter levels
CN112559006A (en) Enterprise client automatic upgrading method, system, equipment and storage medium
CN113535221A (en) Method and device for managing application version
WO2023162260A1 (en) Environment construction assistance device, system, and method, and computer-readable medium
CN112947974B (en) Desktop icon updating method, device and equipment and computer readable storage medium
CN117908930B (en) Method, device, equipment, medium and product for synchronizing codes and code documents
US11934366B2 (en) Version processing apparatus, method, and program
CN111192096B (en) Multi-connection electronic invoice management method and device, readable medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21912797

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.10.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21912797

Country of ref document: EP

Kind code of ref document: A1