I was using an FInternationalization. But it seems to no longer work in 4.16. I get the following error.
Tt did work fine in 4.14-15.
.cpp
#pragma once
#include "Kismet/BlueprintFunctionLibrary.h"
#include "Getlanguage.generated.h"
/**
*
*/
UCLASS()
class TGAME_API UGetlanguage : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
/* Get Current Localization at Runtime. */
UFUNCTION(BlueprintPure, meta = (DisplayName = "GetActiveLanguage", CompactNodeTitle = "ActiveLanguage", Keywords = "GetActiveLanguage"), Category = "Localization")
static FString GetActiveLanguage();
};
.h
#include "Getlanguage.h"
#include "Tgame.h"
FString UGetlanguage::GetActiveLanguage()
{
return FInternationalization::Get().GetCurrentCulture()->GetName();
}
Can anyone help.