/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
/**
* A TranslationContext is part of the system for managing translation tags in localization text.
* This system handles text with special tags. E.g.: Press to look at point of interest.
* A TranslationContext provides information that cannot be deduced from the text alone.
* In the example above player1 and player2 might have different buttons mapped to the POI action;
* a per-player context helps translate based on the player's controller setup.
*/
class TranslationContext extends Object
native;
/** TranslatorTags that define this TranslationContext. */
var array TranslatorTags;
/** Add a Tag to this Context */
function native bool RegisterTranslatorTag( TranslatorTag InTagHandler );
cpptext
{
public:
/**
* Translator the given string by attempting to pass it to each of the registered translators.
*
* @param InString Text to translate.
* @param OutTranslated Translated text.
*
* @return True if the translation succeeded.
*/
UBOOL Translate( const FString& InString, FString *OutTranslated );
private:
/**
* Given a tag, return the appropriate translator if possible.
* e.g. Given get the Appropriate translator for MyTag.
*/
UTranslatorTag* TranslatorTagFromName( FName InName ) const;
}
defaultproperties
{
}