Systems and methods for enabling software code for different languages
AssigneeSap SE
InventorsMichail Vasiltschenko, Thomas Wienold, Christian Lieske, Maite Friedrich Dupont
Life of this patent
Estimating the term…
Abstract
Embodiments of the present disclosure include techniques for enabling software code for different languages. In one embodiment, a user creates a prompt. The prompt may be to generate new code or modify existing code. The prompt may be automatically modified to include one or more instructions to extract code elements from source code and the code elements may be translated. In some embodiments, translation services are incorporated into and IDE or build environment as a plugin.
Claims17
A method of generating code in a plurality of languages comprising:
- entering a prompt specifying source code and an instruction to extract translatable code elements from the source code into a generative large language model;
- receiving, from the generative large language model, a first plurality of code elements extracted from the source code comprising first hard coded text strings output to a user;
- sending the first plurality of code elements to a multi-language software system for translating the first hard coded text strings to second hard coded text strings in a different natural language than the first hard coded text strings, wherein the generative large language model is trained to identify the first hard coded text strings and replace the first hard coded text strings with links to one or more external files comprising the second hard coded text strings;
- receiving, from the multi-language software system, a second plurality of code elements comprising the second hard coded text strings;
- and
- replacing the first plurality of code elements in the source code with the second plurality of code elements.
A computer system comprising:
- at least one processor;
- at least one non-transitory computer readable medium storing computer executable instructions that, when executed by the at least one processor, cause the computer system to perform operations for generating code in a plurality of languages comprising:
- entering a prompt specifying source code and an instruction to extract translatable code elements from the source code into a generative large language model;
- receiving, from the generative large language model, a first plurality of code elements extracted from the source code comprising first hard coded text strings output to a user;
- sending the first plurality of code elements to a multi-language software system for translating the first hard coded text strings to second hard coded text strings in a different natural language than the first hard coded text strings, wherein the generative large language model is trained to identify the first hard coded text strings and replace the first hard coded text strings with links to one or more external files comprising the second hard coded text strings;
- receiving, from the multi-language software system, a second plurality of code elements comprising the second hard coded text strings;
- and
- replacing the first plurality of code elements in the source code with the second plurality of code elements.
A non-transitory computer-readable medium storing computer-executable instructions that, when executed by at least one processor, perform operations for generating code in a plurality of languages comprising:
- entering a prompt specifying source code and an instruction to extract translatable code elements from the source code into a generative large language model;
- receiving, from the generative large language model, a first plurality of code elements extracted from the source code comprising first hard coded text strings output to a user;
- sending the first plurality of code elements to a multi-language software system for translating the first hard coded text strings to second hard coded text strings in a different natural language than the first hard coded text strings, wherein the generative large language model is trained to identify the first hard coded text strings and replace the first hard coded text strings with links to one or more external files comprising the second hard coded text strings;
- receiving, from the multi-language software system, a second plurality of code elements comprising the second hard coded text strings;
- and
- replacing the first plurality of code elements in the source code with the second plurality of code elements.
Dependencies are inferred from the claim text.