Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Private/TranslationUnit.cpp
Jamie Dale 58c2a3cb69 Translation Editor now shows stale translations as "Needs Review" rather than "Untranslated"
#jira
#rb none

[CL 11610730 by Jamie Dale in 4.25 branch]
2020-02-25 13:26:57 -05:00

25 lines
728 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "TranslationUnit.h"
#include "UObject/UnrealType.h"
UTranslationUnit::UTranslationUnit( const FObjectInitializer& ObjectInitializer )
: Super(ObjectInitializer)
{
}
void UTranslationUnit::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
const FName Name = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
if (Name == GET_MEMBER_NAME_CHECKED(UTranslationUnit, Translation))
{
// Consider modifying the translation to be an implicit review
HasBeenReviewed = true;
}
TranslationUnitPropertyChangedEvent.Broadcast(Name);
}