# US 2023/0390644 A1 · Method for translating game, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0390644 A1
- Document ID: US20230390644A1
- Status: Published application
- Kind: A1
- Application number: 18/250,364
- Filed: 2022-02-23
- Published: 2023-12-07
- Earliest claimed: 2021-05-26
- Assignees: Netease (Hangzhou) Network Co., Ltd.
- Applicants: Netease (Hangzhou) Network Co., Ltd.
- Inventors: Wanghong LIN
- Web page: https://patentgrep.com/patent/US20230390644A1

## CPC

- A63F 13/60: Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- A63F 13/335: using Internet
- A63F 13/35: Details of game servers
- A63F 13/352: involving special game server arrangements, e.g. regional servers connected to a national server or a plurality of servers managing partitions of the game world
- A63F 13/355: Performing operations on behalf of clients with restricted processing capabilities, e.g. servers transform changing game scene into an encoded video stream for transmitting to a mobile phone or a thin client
- A63F 13/77: involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a method for translating a game, an electronic device, and a non-transitory computer-readable storage medium. The method include: establishing, by a proxy server, a communication connection between a client and a game server through the proxy server, wherein the proxy server communicates with the game server for the game; receiving, by the proxy server, game data from the game server, where the game data is sent by the game server in response to an active request or actively pushed by the game server; determining, by the proxy server, language resource data contained in the game data; and translating, by the proxy server, the language resource data according to a predetermined automation service, and returning translated language resource data to the client, so that the client loads the translated language resource data.

## Claims

### Claim 1

A method for translating a game, comprising:
establishing, by a proxy server, a communication connection between a client and a game server through the proxy server, wherein the proxy server communicates with the game server for the game;
receiving, by the proxy server, game data from the game server, wherein the game data is sent by the game server in response to an active request or actively pushed by the game server;
determining, by the proxy server, language resource data contained in the game data; and
translating, by the proxy server, the language resource data according to a predetermined automation service, and returning translated language resource data to the client so that the client loads the translated language resource data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein, when the game data is sent by the game server in response to the active request, the method further comprises:
in response to a download request sent by the client for the game data, obtaining feature information of the download request, wherein a proxy service is deployed on the client;
determining whether the download request is directed at the language resource data according to the feature information; and
in response to the download request being directed at the language resource data, intercepting download traffic returned by the game server for the game data based on the proxy service.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the feature information comprises a request path of the download request, and wherein determining whether the download request is directed at the language resource data according to the feature information comprises:
obtaining resource name information in the request path of the download request, and a naming feature directed at the language resource data, wherein the request path of the download request comprises multiple resource data with a plurality pieces of resource name information;
determining whether target resource name information that matches the naming feature of the language resource data exists among the plurality pieces of resource name information of the request path;
in response to the target resource name information existing, determining, among the multiple resource data of the request path, resource data corresponding to the target resource name information as first target resource data, and determining whether second target resource data having a predetermined character exists in the first target resource data; and
in response to the second target resource data existing, determining that the download request is directed at the language resource data.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the language resource data comprises at least one of: a language resource package or a language resource entry.

### Claim 5 (depends on 4)

The method according to claim 4, wherein translating the language resource data according to the predetermined automation service and returning translated language resource data to the client comprises:
obtaining packet format information by performing format analysis of the language resource package using the predetermined automation service, and extracting a candidate language resource entry from the language resource package;
translating the candidate language resource entry, and generating a target language resource package by packaging translated language resource entry according to the packet format information; and
returning the target language resource package to the client.

### Claim 6 (depends on 4)

The method according to claim 4, wherein translating the language resource data according to the predetermined automation service and returning translated language resource data to the client, comprises:
translating language resource entries one by one using the predetermined automation service, and obtaining translated language resource entries; and
returning the translated language resource entries to the client.

### Claim 7 (depends on 2)

The method according to claim 2, further comprising:
obtaining code logic having a translation function; and
obtaining target download traffic by injecting the code logic into intercepted download traffic, and returning the target download traffic to the client.

### Claim 8

(canceled)

### Claim 9

An electronic device, comprising:
a processor,
a memory, and
a computer program stored on the memory and executable by the processor, wherein when the computer program is executed by the processor, the processor is configured to implement a method for translating a game comprising:
establishing a communication connection between a client and a game server through a proxy server, wherein the proxy server communicates with the game server for the game;
receiving game data from the game server, wherein the game data is sent by the game server in response to an active request or actively pushed by the game server;
determining language resource data contained in the game data; and
translating the language resource data according to a predetermined automation service, and return translated language resource data to the client, so that the client loads the translated language resource data.

### Claim 10

A non-transitory computer-readable storage medium with a computer program stored thereon, wherein when the computer program is executed by a processor of an electronic device, the processor implements a method for translating a game comprising:
establishing a communication connection between a client and a game server through a proxy server, wherein the proxy server communicates with the game server for the game;
receiving game data from the game server, wherein the game data is sent by the game server in response to an active request or actively pushed by the game server;
determining language resource data contained in the game data; and
translating the language resource data according to a predetermined automation service, and return translated language resource data to the client, so that the client loads the translated language resource data.

### Claim 11 (depends on 9)

The electronic device according to claim 9, wherein, when the game data is sent by the game server in response to the active request, the processor is further configured to implement the method comprising:
in response to a download request sent by the client for the game data, obtaining feature information of the download request, wherein a proxy service is deployed on the client;
determining whether the download request is directed at the language resource data according to the feature information; and
in response to the download request being directed at the language resource data, intercepting download traffic returned by the game server for the game data based on the proxy service.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein the feature information comprises a request path of the download request, and wherein the processor is further configured to implement the method comprising:
obtaining resource name information in the request path of the download request, and a naming feature directed at the language resource data, wherein the request path of the download request comprises multiple resource data with a plurality pieces of resource name information;
determining whether target resource name information that matches the naming feature of the language resource data exists among the plurality pieces of resource name information of the request path;
in response to the target resource name information existing, determine, among the multiple resource data of the request path, resource data corresponding to the target resource name information as first target resource data, and determine whether second target resource data having a predetermined character exists in the first target resource data; and
in response to the second target resource data existing, determining that the download request is directed at the language resource data.

### Claim 13 (depends on 9)

The electronic device according to claim 9, wherein the language resource data comprises at least one of: a language resource package or a language resource entry.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the processor is further configured to implement the method comprising:
obtaining packet format information by performing format analysis of the language resource package using the predetermined automation service, and extracting a candidate language resource entry from the language resource package; and
translating the candidate language resource entry, and generating a target language resource package by packaging translated language resource entry according to the packet format information; and
returning the target language resource package to the client.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein the processor is further configured to implement the method comprising:
translating language resource entries one by one using the predetermined automation service, and obtaining translated language resource entries; and
returning the translated language resource entries to the client.

### Claim 16 (depends on 11)

The electronic device according to claim 11, wherein the processor is further configured to implement the method comprising:
obtaining code logic having a translation function; and
obtaining target download traffic by injecting the code logic into intercepted download traffic, and returning the target download traffic to the client.

### Claim 17 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, when the game data is sent by the game server in response to the active request, the processor is further configured to implement the method comprising:
in response to a download request sent by the client for the game data, obtaining feature information of the download request, wherein a proxy service is deployed on the client;
determining whether the download request is directed at the language resource data according to the feature information; and
in response to the download request being directed at the language resource data, intercepting download traffic returned by the game server for the game data based on the proxy service.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, the feature information comprises a request path of the download request, and wherein the processor is further configured to implement the method comprising:
obtaining resource name information in the request path of the download request, and a naming feature directed at the language resource data, wherein the request path of the download request comprises multiple resource data with a plurality pieces of resource name information;
determining whether target resource name information that matches the naming feature of the language resource data exists among the plurality pieces of resource name information of the request path;
in response to the target resource name information existing, determine, among the multiple resource data of the request path, resource data corresponding to the target resource name information as first target resource data, and determine whether second target resource data having a predetermined character exists in the first target resource data; and
in response to the second target resource data existing, determining that the download request is directed at the language resource data.

### Claim 19 (depends on 10)

The non-transitory computer-readable storage medium according to claim 10, wherein the language resource data comprises at least one of: a language resource package or a language resource entry.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the processor is further configured to implement the method comprising:
obtaining packet format information by performing format analysis of the language resource package using the predetermined automation service, and extracting a candidate language resource entry from the language resource package; and
translating the candidate language resource entry, and generating a target language resource package by packaging translated language resource entry according to the packet format information; and
returning the target language resource package to the client.
