Files
UnrealEngineUWP/Engine/Source/Developer/LocalizationService/Public/LocalizationServiceHelpers.h
ryan durand 471d972e62 Updating copyright for Engine Developer.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869240 via CL 10869516 via CL 10869902
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870584 by ryan durand in Main branch]
2019-12-26 15:32:37 -05:00

45 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
class ILocalizationServiceProvider;
namespace LocalizationServiceHelpers
{
/**
* Helper function to get the ini filename for storing localization service settings
* @return the filename
*/
LOCALIZATIONSERVICE_API extern const FString& GetSettingsIni();
/**
* Helper function to get the ini filename for storing global localization service settings
* @return the filename
*/
LOCALIZATIONSERVICE_API extern const FString& GetGlobalSettingsIni();
/**
* Helper function to commit a translation
*/
//LOCALIZATIONSERVICE_API extern bool CommitTranslation(const FString& Culture, const FString& Namespace, const FString& Source, const FString& Translation);
}
/**
* Helper class that ensures FLocalizationService is properly initialized and shutdown by calling Init/Close in
* its constructor/destructor respectively.
*/
class LOCALIZATIONSERVICE_API FScopedLocalizationService
{
public:
/** Constructor; Initializes localization service Provider */
FScopedLocalizationService();
/** Destructor; Closes localization service Provider */
~FScopedLocalizationService();
/** Get the provider we are using */
ILocalizationServiceProvider& GetProvider();
};