Translatable Code Generation Using AI Prompt Embedding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Developing software code for global deployment is time-consuming and expensive due to the need for language-specific adaptations, as much of the text is written in a language unsuitable for worldwide use.

Innovation Solution

Utilizing generative artificial intelligence (AI) to generate prompts that ensure code output is translatable, with features like prompt embedding and standalone processing to make existing code translatable, and integrating a plugin with development tools for configuration and translation services.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If developers write text in a native or target market language, then the software is suitable for the target market, but it is not suitable for global deployment and requires time-consuming language-specific adaptations

Engineering Contradiction:
Improveglobal deployment capabilityVSAvoidtime for language-specific adaptations
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent segments text into translatable code elements (strings, literals) that can be independently extracted and translated without affecting the code structure. This allows selective translation of only the necessary text portions while maintaining the original code architecture.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary extraction of translatable elements during the coding phase, preparing them for future translation. This advance preparation enables efficient localization later without requiring time-consuming code modifications when global deployment is needed.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If developers perform language-specific adaptations for global deployment, then the software can be deployed worldwide, but the development cost increases

Engineering Contradiction:
Improveworldwide deployment capabilityVSAvoiddevelopment cost
Core Design Contradiction:
Adaptability or versatilityVSEase of manufacture

Solution Approach 1:

The system enables developers to perform translation-related tasks themselves using automated tools that extract, translate, and integrate text elements. This self-service approach eliminates the need for expensive professional localization services while maintaining translation quality through consistent terminology management.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The patent changes the parameter of text representation from hardcoded strings to extractable translatable elements, fundamentally altering how text is handled in code. This parameter change enables automated translation workflows that significantly reduce development costs compared to traditional manual localization processes.

Inventive Principle:
Principle #35Parameter changes

3Productivity

If code is designed for translatable output using generative AI, then code can be efficiently generated in multiple languages, but the complexity of the development process increases

Engineering Contradiction:
Improvecode generation efficiencyVSAvoiddevelopment process complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary layer between code generation and text output, using generative AI to automatically create translatable code elements. This intermediary handles the complexity of multi-language support, allowing developers to write code in their native language while the system manages translation logistics.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system replaces manual mechanical processes of text extraction, translation, and integration with automated generative AI workflows. This substitution reduces development complexity by eliminating repetitive manual tasks while maintaining code quality and translatability.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

4Adaptability or versatility

If existing code is processed to make it translatable, then the code becomes suitable for multiple languages, but additional processing steps are required

Engineering Contradiction:
Improvecode translatabilityVSAvoidprocessing steps
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The system performs preliminary analysis of existing code to identify translatable elements before translation begins. This advance identification prepares the code structure for efficient processing, reducing the number of iterative processing steps needed during actual translation implementation.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12591421B2Systems and methods for enabling software code for different languages
Publication Date: 2026.03.31 SAP SE
  • US12591421B2 patent drawing
  • US12591421B2 patent drawing
  • US12591421B2 patent drawing

AI summary

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.