Prompting
Contents
Overview
The prompt that is passed to an TMS or an LLM translation connection is a combination of:
- The Translation Connection Level prompt. For example:
As a professional translator, translate an application user interface text from English to Latin. Special considerations for UI: Brevity is crucial, Clarity over creativity, Consistency with UI patterns, Action-oriented language. Return only the translated text-no explanation. - The Project Level Prompt: For example:
The application is Globalyzer and Localyzer described here https://lingoport.com/software-localization-tools/localyzer-l10n/ - If InContext Server has astring associated image, that image for that string: For example:
Strings - The text to translation: For example:
Strings
The resulting prompt without an image:
As a professional translator, translate an application user interface text from English to Latin. Special considerations for UI: Brevity is crucial, Clarity over creativity, Consistency with UI patterns, Action-oriented language. Return only the translated text-no explanation. The application is Globalyzer and Localyzer described here https://lingoport.com/software-localization-tools/localyzer-l10n/. Now translate the following: Strings
If an image is associated, the prompt will include:
As a professional translator, translate an application user interface text from English to Latin. Special considerations for UI: Brevity is crucial, Clarity over creativity, Consistency with UI patterns, Action-oriented language. Return only the translated text-no explanation. The application is Globalyzer and Localyzer described here https://lingoport.com/software-localization-tools/localyzer-l10n/. Use the image only if it is relevant to understanding the text (e.g., location, image, signs, or symbols). If the image does not correspond to the text, ignore it. Now translate the following: Strings
The PXML section will look like:
Translation Connection Level
Prompting can be passed to
- a TMS - e.g. Trados Enterprise - using PXML
- an LLM connection - e.g. ChatGPT
Example
The Translation Connection Level prompt is set here:
Note: The variables ${SOURCE_LOCALE} and ${TARGET_LOCALE} must be part of the prompt.
Context Prompting
If the ChatGPT connection is configured with an InContext server, then when a context has been associated with a string (See String Manager / Context), the context will be passed to ChatGPT to provide the necessary information to better translate that string.