# US 2017/0371652 A1 · Automated generation and identification of screenshots for translation reference

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

- Number: US 2017/0371652 A1
- Document ID: US20170371652A1
- Status: Published application
- Kind: A1
- Application number: 15/193,574
- Filed: 2016-06-27
- Published: 2017-12-28
- Earliest claimed: 2016-06-27
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Yu-Ning Hsu; I-Hsiang Liao; Chih-Yuan Lin; Cheng-Yu Yu
- Web page: https://patentgrep.com/patent/US20170371652A1

## CPC

- G06F 9/454: {Multi-language systems; Localisation; Internationalisation}
- G06F 3/0484: for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F 8/76: Adapting program code to run in a different environment; Porting
- G06F 11/3692: {for test results analysis}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 40/194: Calculation of difference between files
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- 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
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Software translation quality and efficiency are improved by providing user interface (UI) context for translators. Unicode symbols are used to uniquely tag user-visible strings from the source code and into resource files. Those strings include titles, product names, error messages, strings in images and any other text that may be present on the user interface. Once the ‘pseudo’ resource files are integrated into a build, automation is run to gather screenshots of the application. Image recognition is then used to link screenshots of the UI in which a resource file string appears, such that screenshots will be brought forward and displayed to the translator when working on translating the user-visible strings of the software being localized.

## Claims

### Claim 1

A method of providing context for translation of software during software localization to a user comprising the steps of:
a computer tagging each user-visible string of source code with a unique number;
the computer converting the unique number to a number represented by a numeral system selected from the group consisting of: a binary numeral system, a quaternary numeral system, an octal numeral system, and a hexadecimal numeral system;
the computer replacing the numeral system representing the unique number with Unicode symbols to create pseudo resource files with Unicode symbol sequences;
the computer integrating the pseudo resource files into a build to create a pseudo build;
the computer initiating a graphical user interface testing tool to capture user interface screenshots based on the pseudo build; and
the computer utilizing image recognition to match Unicode symbol sequences with the pseudo resource files to link the captured user interface screenshots with the pseudo resource files, such that when the user views the user interface screenshots, a context information panel displaying the pseudo resource files is displayed to the user.

### Claim 2 (depends on 1)

The method of claim 1, wherein the user is a translator.

### Claim 3 (depends on 1)

The method of claim 1, wherein image recognition is a technique selected from the group consisting of: template matching and object recognition.

### Claim 4 (depends on 3)

The method of claim 3, wherein template matching and objection recognition are determined using a feature-based approach selected from the group consisting of: scale-invariant feature transform and speeded up robust features.

### Claim 5 (depends on 1)

The method of claim 1, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-4 number of the quaternary numeral system.

### Claim 6 (depends on 1)

The method of claim 1, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-8 number of the octal numeral system.

### Claim 7 (depends on 1)

The method of claim 1, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-16 number of the hexadecimal numeral system.

### Claim 8

A computer program product for providing context for translation of software during software localization to a user, a computer comprising at least one processor, one or more memories, one or more computer readable storage media, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by the computer to perform a method comprising:
tagging, by the computer, each user-visible string of source code with a unique number;
converting, by the computer, the unique number to a number represented by a numeral system selected from the group consisting of: a binary numeral system, a quaternary numeral system, an octal numeral system, and a hexadecimal numeral system;
replacing, by the computer, the numeral system representing the unique number with Unicode symbols to create pseudo resource files with Unicode symbol sequences;
integrating, by the computer, the pseudo resource files into a build to create a pseudo build;
initiating, by the computer, a graphical user interface testing tool to capture user interface screenshots based on the pseudo build; and
utilizing, by the computer, image recognition to match Unicode symbol sequences with the pseudo resource files to link the captured user interface screenshots with the pseudo resource files, such that when the user views the user interface screenshots, a context information panel displaying the pseudo resource files is displayed to the user.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein image recognition is a technique selected from the group consisting of: template matching and object recognition.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein template matching and objection recognition are determined using a feature-based approach selected from the group consisting of: scale-invariant feature transform and speeded up robust features.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-4 number of the quaternary numeral system.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-8 number of the octal numeral system.

### Claim 13 (depends on 8)

The computer program product of claim 8, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-16 number of the hexadecimal numeral system.

### Claim 14

A computer system for providing context for translation of software during software localization to a user comprising a computer comprising at least one processor, one or more memories, one or more computer readable storage media having program instructions executable by the computer to perform the program instructions comprising:
tagging, by the computer, each user-visible string of source code with a unique number;
converting, by the computer, the unique number to a number represented by a numeral system selected from the group consisting of: a binary numeral system, a quaternary numeral system, an octal numeral system, and a hexadecimal numeral system;
replacing, by the computer, the numeral system representing the unique number with Unicode symbols to create pseudo resource files with Unicode symbol sequences;
integrating, by the computer, the pseudo resource files into a build to create a pseudo build;
initiating, by the computer, a graphical user interface testing tool to capture user interface screenshots based on the pseudo build; and
utilizing, by the computer, image recognition to match Unicode symbol sequences with the pseudo resource files to link the captured user interface screenshots with the pseudo resource files, such that when the user views the user interface screenshots, a context information panel displaying the pseudo resource files is displayed to the user.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein image recognition is a technique selected from the group consisting of: template matching and object recognition.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein template matching and objection recognition are determined using a feature-based approach selected from the group consisting of: scale-invariant feature transform and speeded up robust features.

### Claim 17 (depends on 14)

The computer system of claim 14, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-4 number of the quaternary numeral system.

### Claim 18 (depends on 14)

The computer system of claim 14, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-8 number of the octal numeral system.

### Claim 19 (depends on 14)

The computer system of claim 14, wherein, if the Unicode symbol sequence exceeds a predetermined length, converting the unique number into a base-16 number of the hexadecimal numeral system.
