# US 11,029,981 B2 · Text resources processing in an application

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

- Number: US 11,029,981 B2
- Document ID: US11029981B2
- Status: Granted
- Kind: B2
- Application number: 16/849,184
- Filed: 2020-04-15
- Published: 2020-07-30
- Granted: 2021-06-08
- Earliest claimed: 2017-01-03
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dong Chen; Shao Jun Ding; Zhi Li Guan; Yang Liang; Ting Yin; Wu Mi Zhong
- Web page: https://patentgrep.com/patent/US11029981B2

## CPC

- G06F 9/454: {Multi-language systems; Localisation; Internationalisation}
- G06F 8/38: for implementing user interfaces
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure relate to text resources in an application. According to a method, an updated application is run, wherein information displayed on at least one text resource in the updated application is editable and the information displayed on at least one text resource in an original application of the updated application is not editable. Then, in response to a first piece of information displayed on a text resource of the at least one text resource being changed to a second piece of information, ID of the text resource of the at least one text resource in the updated application is obtained; and the second piece of information is mapped to the ID of the text resource in a file corresponding to the at least one text resource in the updated application.

## Claims

### Claim 1

A computer-implemented method comprising:
in response to initiation of a plug-in, running an updated application,
wherein information displayed on at least one text resource of a plurality of text resources in an original application of the updated application is not editable, and
wherein a subset of the plurality of text resources includes the at least one text resource;
in response to a first piece of information displayed on a text resource of the at least one text resource being changed to a second piece of information:
obtaining an ID of the text resource of the at least one text resource in the updated application; and
mapping the second piece of information to the ID of the text resource in a file corresponding to the at least one text resource in the updated application, wherein the updated application, when built, deployed and run, comprises a first variable identifier which can be enabled to make the subset of the plurality of text resources in the updated application editable from a user interface (UI) of the updated application, and further comprises a second variable identifier which can be enabled to make an entirety of the plurality of text resources in the updated application editable from the (UI) of the updated application;
obtaining source code of the original application;
in response to determining a type of the source code as a programming language, and in response to the information displayed on the at least one text resource in the original application being not editable:
determining an ID of the at least one text resource, and code templates related to the type of the source code which comprise code with editable text resources;
inputting the ID of each text resource of the at least one text resource into the code templates to produce replaced templates;
applying the replaced templates to produce updated source code;
saving the replaced templates in code of the plug-in; and
building and deploying the updated source code to produce the updated application.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
in response to determining a type of the source code as a markup language, and in response to the information displayed on the at least one text resource in the original application being not editable:
determining the ID of the at least one text resource from a markup language page and code templates related to the markup language page which comprise code with editable text resources,
inputting the ID of each text resource of the at least one text resource into the related code templates to produce the replaced templates, and
adding the replaced templates to the markup language page to produce the updated application which can be directly run in a browser.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the markup language is HTML.

### Claim 4 (depends on 1)

The method according to claim 1, wherein mapping the second piece of information to the ID of the text resource in a file corresponding to the at least one text resource in the updated application comprises:
creating the file in response to the file not existing.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the programing language is Javascript.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the updated application comprises a first variable identifier which can be enabled to make all the at least one text resource in the application editable from a user interface (UI) of the application.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the updated application comprises a second variable identifier which can be enabled to make a text resource in the application editable from a user interface (UI) of the application.

### Claim 8

A device comprising:
a processing unit;
a memory coupled to the processing unit and storing instructions thereon, the instructions, when executed by the processing unit, performing acts including:
in response to initiation of a plug-in, running an updated application,
wherein information displayed on at least one text resource of a plurality of text resources in an original application of the updated application is not editable, and
wherein a subset of the plurality of text resources includes the at least one text resource;
in response to a first piece of information displayed on a text resource of the at least one text resource being changed to a second piece of information:
obtaining an ID of the text resource of the at least one text resource in the updated application; and
mapping the second piece of information to the ID of the text resource in a file corresponding to the at least one text resource in the updated application, wherein the updated application, when built, deployed and run, comprises a first variable identifier which can be enabled to make the subset of the plurality of text resources in the updated application editable from a user interface (UI) of the updated application, and further comprises a second variable identifier which can be enabled to make an entirety of the plurality of text resources in the updated application editable from the (UI) of the updated application;
obtaining source code of the original application;
in response to determining a type of the source code as a programming language, and in response to the information displayed on the at least one text resource in the original application being not editable:
determining an ID of the at least one text resource, and code templates related to the type of the source code which comprise code with editable text resources;
inputting the ID of each text resource of the at least one text resource into the code templates to produce replaced templates;
applying the replaced templates to produce updated source code;
saving the replaced templates in code of the plug-in; and
building and deploying the updated source code to produce the updated application.

### Claim 9 (depends on 8)

The device according to claim 8, the acts further comprising:
in response to determining a type of the source code as a markup language, and in response to the information displayed on the at least one text resource in the original application being not editable:
determining the ID of the at least one text resource from a markup language page and code templates related to the markup language page which comprise code with editable text resources,
inputting the ID of each text resource of the at least one text resource into the related code templates to produce the replaced templates, and
adding the replaced templates to the markup language page to produce the updated application which can be directly run in a browser.

### Claim 10 (depends on 9)

The device according to claim 9, wherein the markup language is HTML.

### Claim 11 (depends on 8)

The device according to claim 8, wherein mapping the second piece of information to the ID of the text resource in a file corresponding to the at least one text resource in the updated application comprises:
creating the file in response to the file not existing.

### Claim 12 (depends on 8)

The device according to claim 8, wherein the programing language is Javascript.

### Claim 13 (depends on 8)

The device according to claim 8, wherein the updated application comprises a first variable identifier which can be enabled to make all the at least one text resource in the application editable from a user interface (UI) of the application.

### Claim 14 (depends on 8)

The device according to claim 8, wherein the updated application comprises a second variable identifier which can be enabled to make a text resource in the application editable from a user interface (UI) of the application.

### Claim 15

A computer program product being tangibly stored on a non-transient machine-readable medium and comprising machine-executable instructions, the instructions, when executed on a device, causing the device to:
in response to initiation of a plug-in, run an updated application,
wherein information displayed on at least one text resource of a plurality of text resources in an original application of the updated application is not editable, and
wherein a subset of the plurality of text resources includes the at least one text resource;
in response to a first piece of information displayed on a text resource of the at least one text resource being changed to a second piece of information:
obtain an ID of the text resource of the at least one text resource in the updated application; and
map the second piece of information to the ID of the text resource in a file corresponding to the at least one text resource in the updated application, wherein the updated application, when built, deployed and run, comprises a first variable identifier which can be enabled to make the subset of the plurality of text resources in the updated application editable from a user interface (UI) of the updated application, and further comprises a second variable identifier which can be enabled to make an entirety of the plurality of text resources in the updated application editable from the (UI) of the updated application;
obtain source code of the original application;
in response to determining a type of the source code as a programming language, and in response to the information displayed on the at least one text resource in the original application being not editable:
determine an ID of the at least one text resource, and code templates related to the type of the source code which comprise code with editable text resources;
input the ID of each text resource of the at least one text resource into the code templates to produce replaced templates;
apply the replaced templates to produce updated source code;
save the replaced templates in code of the plug-in; and
build and deploy the updated source code to produce the updated application.

### Claim 16 (depends on 15)

The computer program product according to claim 15, the instructions further casing the device to:
in response to determining a type of the source code as a markup language, and in response to the information displayed on the at least one text resource in the original application being not editable:
determine the ID of the at least one text resource from a markup language page and code templates related to the markup language page which comprise code with editable text resources,
input the ID of each text resource of the at least one text resource into the related code templates to produce the replaced templates, and
add the replaced templates to the markup language page to produce the updated application which can be directly run in a browser.

### Claim 17 (depends on 15)

The computer program product according to claim 15, wherein mapping the second piece of information to the ID of the text resource in a file corresponding to the at least one text resource in the updated application comprises:
creating the file in response to the file not existing.

### Claim 18 (depends on 15)

The computer program product according to claim 15, wherein the programing language is Javascript.

### Claim 19 (depends on 15)

The computer program product according to claim 15, wherein the updated application comprises a first variable identifier which can be enabled to make all the at least one text resource in the application editable from a user interface (UI) the application.

### Claim 20 (depends on 15)

The computer program product according to claim 15, wherein the updated application comprises a second variable identifier which can be enabled to make a text resource in a user interface (UI) of the application editable from the application.
