Files
UnrealEngineUWP/Engine/Source/Editor/UnrealEd/Classes/Commandlets/GenerateTextLocalizationReportCommandlet.h
Ben Marsh 20bf0eb6a1 Updating copyright notices to 2017 (copying from //Tasks/UE4/Dev-Copyright-2017).
#rb none
#lockdown Nick.Penwarden

[CL 3226823 by Ben Marsh in Main branch]
2016-12-08 08:52:44 -05:00

44 lines
1.3 KiB
C++

// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "Commandlets/GatherTextCommandletBase.h"
#include "GenerateTextLocalizationReportCommandlet.generated.h"
UCLASS()
class UGenerateTextLocalizationReportCommandlet : public UGatherTextCommandletBase
{
GENERATED_UCLASS_BODY()
public:
//~ Begin UCommandlet Interface
virtual int32 Main(const FString& Params) override;
//~ End UCommandlet Interface
private:
/**
* Collects word count info and writes out a report.
* @param SourcePath - Source path to localization files.
* @param DestinationPath - The destination folder the report will be write to.
* @return True if successful; false oterwise.
*/
bool ProcessWordCountReport(const FString& SourcePath, const FString& DestinationPath);
/**
* Writes out a report representing localization conflicts. These are conflicts where the namespace
* and key match but the source text differs.
* @param DestinationPath - The destination folder the report will be write to.
* @return True if successful; false oterwise.
*/
bool ProcessConflictReport(const FString& DestinationPath);
private:
FString GatherTextConfigPath;
FString SectionName;
FString CmdlineTimeStamp;
};