Files
bryan sefcik de1956f47b Ran IWYU on Public headers under Engine/Source/Developer/...
Headers are updated to contain any missing #includes needed to compile and #includes are sorted.  Nothing is removed.

#ushell-cherrypick of 21064294 by bryan.sefcik
#jira
#preflight 62d5c2111062f2e63015e598

#ROBOMERGE-OWNER: bryan.sefcik
#ROBOMERGE-AUTHOR: bryan.sefcik
#ROBOMERGE-SOURCE: CL 21155249 via CL 21158121 via CL 21161259
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21182053 by bryan sefcik in ue5-main branch]
2022-07-20 12:03:45 -04:00

46 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
class FString;
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();
};