Method and device for internationalizing databases and method and system for converting data

实现数据库国际化的方法及装置、数据转换方法及系统

Abstract

The invention discloses a method for internationalizing databases. The method includes steps of S101, writing specific languages required to be internationalized into initialization configuration files of the databases; S102, replacing the specific languages in original initialization SQL (structured query language) statements in the initialization configuration files by temporary variables to obtain initialization SQL scripts; S103, generating corresponding language packs of various languages, generating internationalization variables corresponding to the temporary variables from the language packs by the aid of digest algorithms and establishing mapping relations among the internationalization variables and the specific languages in the language packs; S104, initializing the initialization configuration files and replacing the temporary variables in the initialization SQL scripts by the internationalization variables. The language packs contain mapping relations among the temporary variables and the specific languages. The invention further discloses a device for internationalizing the databases, and a method and a system for converting data.
本发明公开一种实现数据库国际化的方法,包括如下步骤:S101、将需要进行国际化的具体语言写入数据库初始化配置文件;S102、将初始化配置文件中的原初始化SQL语句中的具体语言用临时变量来代替得到初始化SQL脚本;S103、生成各种语言的对应语言包,语言包中包含临时变量与具体语言的映射关系,然后采用摘要算法从语言包中生成与临时变量对应的国际化变量,并在语言包中建立国际化变量与具体语言的映射关系;S104、根据初始化配置文件进行初始化,将初始化SQL脚本中的临时变量用国际化变量替换。本发明还公开一种实现数据库国际化的装置、数据转换方法及系统。

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (0)

    Publication numberPublication dateAssigneeTitle

NO-Patent Citations (0)

    Title

Cited By (0)

    Publication numberPublication dateAssigneeTitle