Localization method and device in game development process

文档序号:1831334 发布日期:2021-11-12 浏览:41次 中文

阅读说明:本技术 一种游戏开发过程中的本地化方法及装置 (Localization method and device in game development process ) 是由 黄强 周欣 于 2021-08-24 设计创作,主要内容包括:本申请提供一种游戏开发过程中的本地化方法及装置、计算设备和计算机可读存储介质,其中该方法包括:首先在本地化配置表中定义Text数据类型的数据列;在进行策划数据的配置过程中,将需要本地化的原始策划文本作为value插入到本地化配置表的Text数据列中;然后将本地化配置表中所有Text数据项中的key作为主键,在本地化映射表中查询到对应的目标本地化文本,最后生成包含目标本地化文本的目标格式数据。该方法实现了不修改原始数据表就能方便完成本地化文本替换工作,开发人员不需要运行时使用key去查找目标映射文本,提高了开发的效率。(The application provides a localization method and a localization device in a game development process, a computing device and a computer readable storage medium, wherein the method comprises the following steps: firstly, defining a data column of a Text data type in a localization configuration table; in the configuration process of the planning data, inserting an original planning Text needing to be localized into a Text data column of a localization configuration table as value; and then taking keys in all Text data items in the localization configuration table as main keys, inquiring a corresponding target localization Text in the localization mapping table, and finally generating target format data containing the target localization Text. The method realizes that the local text replacement work can be conveniently finished without modifying the original data table, developers do not need to use keys to search the target mapping text during running, and the development efficiency is improved.)

1. A localization method in a game development process is characterized by comprising the following steps:

defining a data column of a Text data type in a localization configuration table, wherein the data structure of the Text data type is < key, value >;

in the configuration process of the planning data, inserting an original planning Text needing to be localized into a Text data column of the localization configuration table as a value, and distributing a key;

taking keys in all Text data items in the localization configuration table as main keys, and inquiring a corresponding target localization Text in a localization mapping table;

and generating target format data containing the target localization text for code calling.

2. The method of claim 1, further comprising,

and generating a unique key according to the name of the planning table and/or the field name of the current planning text.

3. The method of claim 1, further comprising,

and automatically generating a localization mapping table according to the Text data type contained in the localization configuration table.

4. The method of claim 1, the generating target format data comprising target localized text comprising,

generating target format data containing an original plan text according to the plan table;

and replacing all original planning texts in the target format data with target localization texts according to the mapping relation between the original planning texts and the target localization texts.

5. The method of claim 1, further comprising,

setting the initial localization configuration table as a main configuration table, and manufacturing difference localization configuration tables for different regions; the initial localization configuration table and the differential localization configuration table each include a data column of a Text data type.

6. The method of claim 5, further comprising,

merging the initial localization configuration table and the differential localization configuration table when generating target format data containing a target localization text; and updating and/or replacing the data of the main configuration table by using the difference localization configuration table of the target region.

7. A localization apparatus in a game development process, comprising:

the system comprises a definition module, a data processing module and a data processing module, wherein the definition module is used for defining a data column of a Text data type in a localization configuration table, and the data structure of the Text data type is < key, value >;

the configuration module is used for inserting a game plan Text needing to be localized into a Text data column of the localized configuration table as value and distributing key in the configuration process of plan data;

the query module is used for taking a key in a Text data item in the localization configuration table as a main key and querying corresponding target localization Text data in the localization mapping table;

and the generating module is used for generating target format data containing the target localization text for code calling.

8. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-6 when executing the instructions.

9. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a localization method and apparatus in a game development process, a computing device, and a computer-readable storage medium.

Background

The overseas market is becoming an increasingly important market source for gaming companies, and therefore most games require localized adaptation during development. During game development, there is a large amount of game plan content configuration data, such as clothes, weapons, etc., which are converted into target data and code for developers to use by a form-guided tool. The planning data is usually filled in by a planning person through an Excel tool, and has the characteristics of large data volume and complex structure. When the data are localized, the traditional scheme is that a planning data table is copied for each localization requirement, and the localization data corresponding to each item of data are adjusted, so that each related planning data table needs to be opened, each affected text value or data is independently modified, and the method is tedious, error-prone and low in efficiency; further, for example, when the main data is changed, the change data needs to be manually copied to the plan data table for each area, which is very easy to be overlooked, and the development efficiency of the game is reduced.

Disclosure of Invention

In view of this, embodiments of the present application provide a localization method and apparatus, a computing device, and a computer-readable storage medium in a game development process, so as to solve technical defects in the prior art.

According to a first aspect of the embodiments of the present application, there is provided a localization method in a game development process, including:

defining a data column of a Text data type in a localization configuration table, wherein the data structure of the Text data type is < key, value >;

in the configuration process of the plan data, inserting a game plan Text needing to be localized into a Text data column of the localized configuration table as value, and distributing key;

when the table guiding tool generates target format data, taking a key in a Text data item in the localization configuration table as a main key, and inquiring a corresponding target localization Text in a localization mapping table;

and generating target format data containing the target localization text for code calling.

According to a second aspect of the embodiments of the present application, there is provided a localization apparatus in a game development process, including:

the system comprises a definition module, a data processing module and a data processing module, wherein the definition module is used for defining a data column of a Text data type in a localization configuration table, and the data structure of the Text data type is < key, value >;

the configuration module is used for inserting a game plan Text needing to be localized into a Text data column of the localized configuration table as value and distributing key in the configuration process of plan data;

the query module is used for taking a key in a Text data item in the localization configuration table as a main key and querying corresponding target localization Text data in the localization mapping table;

and the generating module is used for generating target format data containing the target localization text for code calling.

According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor when executing the instructions implementing the steps of the localization method in the game development process.

According to a fourth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the localization method in the game development process.

In the embodiment of the application, by setting the localization configuration table containing the user-defined Text data type, a game planning worker can configure the Text to be localized into the localization configuration table, and meanwhile, the localization generation of various game planning Text data is quickly realized by combining the use of the localization mapping table, and the project data table does not need to be manually copied and the Text in the project data table is subjected to one-to-one localization data replacement; when the table guiding tool generates the localized target format data, the Text type data is replaced by the target mapping Text, so that the localized Text replacement can be conveniently completed without modifying the original data table, developers do not need to use keys to search the target mapping Text during operation, and the development efficiency is improved.

Meanwhile, by using the mode of the initial localization configuration table and the difference localization configuration table, the final region characteristic data can be generated by only providing the difference data of each region without modifying the initial configuration table, and the problem of manufacturing the different multi-region data is also simplified.

Drawings

FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;

FIG. 2 is a diagram of a game plan presentation intent in the prior art;

FIG. 3 is a schematic diagram of a localization method in the prior art;

fig. 4 is a schematic flow chart of a localization method provided by an embodiment of the present application;

fig. 5 is a schematic data structure diagram of a localization configuration table in a localization method according to an embodiment of the present application;

FIG. 6 is a schematic diagram of a localized configuration table provided by an embodiment of the present application;

FIG. 7 is a diagram illustrating a localization mapping table provided in an embodiment of the present application;

FIG. 8 is a schematic diagram of a differential localization configuration table provided by an embodiment of the present application;

fig. 9 is a schematic structural diagram of a localization apparatus according to an embodiment of the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if," as used herein, may be interpreted as "responsive to a determination," depending on the context.

In the present application, a localization method, a computing device and a computer-readable storage medium in a game development process are provided, which are described in detail in the following embodiments one by one.

FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.

Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.

In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.

Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.

Wherein, the processor 120 is configured to execute the method in the embodiment of the present application.

In the prior art, when a game is developed, a planner is usually required to fill in game plan data, as shown in fig. 2, for example, text information required to be displayed in the game is filled in a corresponding plan table.

Therefore, when the localization configuration is performed, a plan data table needs to be copied for each localization requirement, and each text value to be replaced needs to be modified separately, as shown in fig. 3, such a localization manner is extremely inefficient, consumes a lot of manpower, and is prone to errors.

FIG. 4 shows a flow diagram of a localization method in a game development process according to an embodiment of the present application, including steps 202 through 208.

Step 202: and defining a data column of a Text data type in the localization configuration table, wherein the data structure of the Text data type is < key, value >.

As shown in fig. 5, a data column of a Text data type having a structure of < key, value > key-value pair is defined in the localization configuration table.

Step 204: in the process of configuring the plan data, inserting the game plan Text needing to be localized into a Text data column of the localized configuration table as value, and distributing key.

In a specific embodiment, when the planner performs the configuration of the plan data as shown in fig. 2, the game Text to be localized, such as inserting a plurality of data items in the column of "package name" into the value column of the Text data of the localization configuration table, to form the localization configuration table as shown in fig. 6, the value is the original plan Text, i.e. the Text filled out by the planner using the language of the country.

Furthermore, a unique key is generated according to the plan table name and/or the field name where the current plan text is located.

In another specific embodiment, the localization mapping table is automatically generated according to the Text data type contained in the localization configuration table.

Specifically, according to the localization configuration table shown in fig. 6, the key column and the value column of the Text data type are automatically inserted into the key column and the origin _ Text column in the localization mapping table of fig. 7, respectively.

Further, other localization mapping columns in the localization mapping table in fig. 7 are made by related people, and the scheme is well known to those skilled in the art and will not be described herein again.

Step 206: and taking a key in the Text data item in the localization configuration table as a main key, and inquiring a target localization Text in the localization mapping table.

In a specific embodiment, after the planner completes the configuration of all the planning data, the planning data is converted into the target format data and the codes used by the developer by using the guide table tool, and the developer loads the target format data by using the codes for the development of the game.

And when the table leading tool generates target format data, taking keys in all Text data items in the localization configuration table as main keys, and inquiring a target localization Text in the localization mapping table.

For example, when the form guidance tool generates the target format data, the corresponding original text is "sprite set" and the english localization text "Elf suit" is queried according to the key value "suit/1008" in fig. 6.

Step 208: and generating target format data containing the target localization text for code calling.

In this step, the table guidance tool generates the final target format data of the target region according to the target localization text data queried in step 206.

Specifically, the table guidance tool firstly generates target format data containing an original plan text according to the plan table;

in this step, the derived target data format is decoupled from the raw data. Whether the planning table source data is excel, lua, xml, json or a mixture of the excel, lua, xml and json, the planning table source data is finally exported in a uniform format, and the complexity of generating codes is greatly simplified. Currently supported export formats include, but are not limited to:

binary format

Json format

Lua format

And then, replacing all the original planned texts in the target format data with the target localized texts according to the mapping relationship between the original planned texts and the target localized texts queried in the step 206.

In the embodiment, the game planner configures the original Text to be localized into the localization configuration table by setting the localization configuration table containing the custom Text data type, and does not need to manually copy the plan data table and perform one-to-one localization data replacement on the Text in the plan data table in combination with the use of the localization mapping table; when the table guidance tool generates the localized target format data, the data belonging to the Text type is directly replaced by the target mapping Text, developers obtain the localized data, the data can be directly loaded by using codes, keys are not needed to be used for searching the target mapping Text during running, and the development efficiency is greatly improved.

In another embodiment, different areas have different requirements for localization, such as different history, culture, policy, game experience, etc., which makes it difficult to manage localized versions of the game.

For this problem, in this embodiment, an initial localization configuration table is set as the master configuration table during the configuration process of the planning data in step 204. The initial localization configuration table, which is also a data column containing Text data types, contains the basic game plan data as a baseline version, and is the same as the structure shown in fig. 5, and the original plan Text to be localized is inserted as a value into the Text data column of the main configuration table, and is assigned a key.

Furthermore, a difference localization configuration table is created for different regions, and the difference localization configuration table includes difference plan data of each region, and is also stored in a Text data column manner, as shown in fig. 8.

Further, in this embodiment, when the table guidance tool generates the target format data, the main configuration table and the differential localization configuration table of the target area are merged to obtain a final localization configuration table of the target area.

Further, in the merging process, if the data item in the difference localization configuration table is the same as the data item in the main configuration table, that is, the value of the key is the same, the value of the data item in the main configuration table is overwritten by the value of the data item in the difference localization configuration table.

And if the data item in the difference localization configuration table does not exist in the main configuration table, inserting the data item in the difference localization configuration table into the main configuration table.

In this embodiment, by the merging operation of the main configuration table and the differential localization configuration table, the original plan configuration file does not need to be modified, and the final data of the regional characteristics can be generated as long as the differential data of each region is provided. The developer only needs to adjust the difference localization configuration table to form the final data, and the problem of making different multi-region data is also simplified.

Corresponding to the above method embodiment, the present application further provides an embodiment of a localization apparatus in a game development process, and fig. 9 shows a schematic structural diagram of the localization apparatus in the game development process according to an embodiment of the present application. As shown in fig. 9, the apparatus includes:

the definition module is used for defining a data column of a Text data type in a localization configuration table, wherein the data structure of the Text data type is < key, value >;

the configuration module is used for inserting the game plan Text needing to be localized into a Text data column of the localization configuration table as value and distributing key in the configuration process of plan data;

the query module is used for taking a key in a Text data item in the localization configuration table as a main key and querying corresponding target localization Text data in the localization mapping table;

and the generating module is used for generating target format data containing the target localization text for code calling.

Optionally, the configuration module further includes a module,

and generating a unique key according to the name of the planning table and/or the field name of the current planning text.

Optionally, the configuration module further includes a module,

and automatically generating a localization mapping table according to the Text data type contained in the localization configuration table.

Optionally, the configuration module further includes a module,

setting the initial localization configuration table as a main configuration table, and making difference localization configuration tables for different regions.

Optionally, the configuration module further includes a module,

merging the initial localization configuration table and the differential localization configuration table when generating target format data containing a target localization text; and updating and/or replacing the data of the main configuration table by using the difference localization configuration table of the target region.

Optionally, the generating module further includes,

generating target format data containing an original plan text;

and replacing all original planning texts in the target format data with target localization texts according to the mapping relation between the original planning texts and the target localization texts.

Optionally, the generating module further includes,

merging the initial localization configuration table and the difference localization configuration table when generating target format data containing a target localization text; and updating and or replacing the data of the main configuration table by using the difference localization configuration table of the target region.

The above is an illustrative scheme of a localization apparatus in the game development process of the embodiment. It should be noted that the technical solution of the localization apparatus in the game development process and the technical solution of the localization method in the game development process belong to the same concept, and details that are not described in detail in the technical solution of the localization apparatus in the game development process can be referred to the description of the technical solution of the localization method in the game development process.

There is also provided in an embodiment of the present application a computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the localization method in a game development process when executing the instructions.

The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the localization method in the game development process belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the localization method in the game development process.

An embodiment of the present application also provides a computer readable storage medium, which stores computer instructions, and when the instructions are executed by a processor, the instructions implement the steps of the localization method in the game development process.

The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the localization method in the game development process, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the localization method in the game development process.

The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文件签写方法及装置、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!