Files
UnrealEngineUWP/Engine/Source/Developer/LocalizationService/Public/LocalizationServiceHelpers.h
ben marsh 2b46ba7b94 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4662404 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4662413 by ben marsh in Dev-Networking branch]
2018-12-14 13:44:01 -05:00

45 lines
1.3 KiB
C++

// Copyright 1998-2019 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();
};