2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2015-05-19 22:51:39 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
};
|