IP Library Granted Patent US 9,501,471
Granted Patent B2
US 9,501,471 · App. 13/909,386 · Granted Nov 22, 2016

Generating a context for translating strings based on associated application source code and markup

Inventors: Timothy S. Bartley (Worongary, AU); Gavin G. Bray (Robina, AU); Elizabeth M. Hughes (Australia Fair, AU); Kalvinder P. Singh (Miami, AU)
Assignee: International Business Machines Corporation
G06F17/2872G06F8/40G06F9/4448G06F17/2247
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,501,471
App. No.
13/909,386
Granted
Nov 22, 2016
Kind
B2
Abstract

A method for generating a context for translating strings for a graphical user interface. The method includes receiving a string to be translated and associated source code, the string identified by a unique key within the associated source code. The method includes identifying a first logical section of the associated source code corresponding to a unique key of the string. The method includes identifying one or more graphical user interface components within the identified logical section of the associated source code. The method then includes creating a mockup image presenting the one or more graphical user interface components and the string.

Claims (44)

1. A method for generating a context for translating strings for a graphical user interface, the method comprising:

receiving a string to be translated and associated source code, the string identified by a unique key within the associated source code, the unique key used to identify a location of the string;

identifying, by one or more computer processors, a first logical section of the associated source code corresponding to a unique key of the string;

identifying, by the one or more computer processors, one or more graphical user interface components within the identified logical section of the associated source code; and

creating a mockup image presenting the one or more graphical user interface components and the string.

2. The method of claim 1 , further comprising presenting the created mockup image to a translator.

3. The method of claim 1 , wherein the associated source code is markup language.

4. The method of claim 1 , wherein the one or more graphical user interface components includes one or more of: widgets, pages, dialogs, images, and graphics.

5. The method of claim 1 , further comprising labeling, in the created mockup image, each of the one or more graphical user interface components and the first string of the plurality of strings.

6. The method of claim 1 , further comprising:

identifying, by the one or more computer processors, one or more additional graphical user interface components in one or more additional logical sections adjacent or near to the first logical section; and

creating a mockup image presenting the one or more graphical user interface components and the string, and the one or more additional graphical user interface components.

7. The method of claim 6 , wherein the one or more additional graphical user interface components include both graphical user interface components and an additional one or more strings to be translated.

8. A computer program product for generating a context for translating strings for a graphical user interface, the computer program product comprising:

one or more computer-readable tangible storage media and program instructions stored on the one or more computer-readable tangible storage media, the program instructions comprising:

program instructions to receive a string to be translated and associated source code, the string identified by a unique key within the associated source code, the unique key used to identify a location of the string;

program instructions to identify a first logical section of the associated source code corresponding to a unique key of the string;

program instructions to identify one or more graphical user interface components within the identified logical section of the associated source code; and

program instructions to create a mockup image presenting the one or more graphical user interface components and the string.

9. The computer program product of claim 8 , further comprising program instructions to present the created mockup image to a translator.

10. The computer program product of claim 8 , wherein the associated source code is markup language.

11. The computer program product of claim 8 , wherein the one or more graphical user interface components includes one or more of: widgets, pages, dialogs, images, and graphics.

12. The computer program product of claim 8 , further comprising program instructions to label in the created mockup image, each of the one or more graphical user interface components and the first string of the plurality of strings.

13. The computer program product of claim 8 , further comprising:

program instructions to identify one or more additional graphical user interface components in one or more additional logical sections adjacent or near to the first logical section; and

program instructions to create a mockup image presenting the one or more graphical user interface components and the string, and the one or more additional graphical user interface components.

14. A computer system for generating a context for translating strings for a graphical user interface, the computer system comprising:

one or more computer processors;

one or more computer-readable tangible storage media;

program instructions stored on the one or more computer-readable tangible storage media for execution by at least one of the one or more computer processors, the program instructions comprising:

program instructions to receive a string to be translated and associated source code, the string identified by a unique key within the associated source code, the unique key used to identify a location of the string;

program instructions to identify a first logical section of the associated source code corresponding to a unique key of the string;

program instructions to identify one or more graphical user interface components within the identified logical section of the associated source code; and

program instructions to create a mockup image presenting the one or more graphical user interface components and the string.

15. The computer system of claim 14 , further comprising program instructions to present the created mockup image to a translator.

16. The computer system of claim 14 , wherein the associated source code is markup language.

17. The computer system of claim 14 , wherein the one or more graphical user interface components includes one or more of: widgets, pages, dialogs, images, and graphics.

18. The computer system of claim 14 , further comprising program instructions to label in the created mockup image, each of the one or more graphical user interface components and the first string of the plurality of strings.

19. The computer system of claim 14 , further comprising:

program instructions to identify one or more additional graphical user interface components in one or more additional logical sections adjacent or near to the first logical section; and

program instructions to create a mockup image presenting the one or more graphical user interface components and the string, and the one or more additional graphical user interface components.

20. The method of claim 1 , wherein creating the mockup image further comprises:

creating, by the one or more computer processors, a mapping of each string to be translated to the one or more graphical user interface components within the identified logical section of the associated source code; and

grouping, by the one or more computer processors, the string to be translated, and the mapping to the one or more graphical user interface components to provide a context for each string to be translated.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 4, 2013
From: BARTLEY, TIMOTHY S.; BRAY, GAVIN G.; HUGHES, ELIZABETH M.; SINGH, KALVINDER P.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 030541/0554 →
Continuity (1)
Related Publication 20140359495A1 · Dec 4, 2014