You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
This is handled by the ELocTextPlatformSplitMode enum, used by FLocTextHelper (default is ELocTextPlatformSplitMode::None to preserve old behavior), and allows you to optionally split localization data for all platforms, or for any NDA restricted platforms. Note: Any localization data that is used by multiple platforms is still considered platform agnostic, even if it appears only within platform specific files. #jira UE-65600 #rb Francis.Hurteau #lockdown Matt.Kuhlenschmidt [CL 4761508 by Jamie Dale in Dev-Editor branch]
31 lines
1.4 KiB
C++
31 lines
1.4 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Internationalization/TextKey.h"
|
|
|
|
class FLocTextHelper;
|
|
class FTextLocalizationMetaDataResource;
|
|
class FTextLocalizationResource;
|
|
|
|
/** Utility functions for generating compiled LocMeta (Localization MetaData Resource) and LocRes (Localization Resource) files from source localization data */
|
|
class FTextLocalizationResourceGenerator
|
|
{
|
|
public:
|
|
/**
|
|
* Given a loc text helper, generate a compiled LocMeta resource.
|
|
*/
|
|
LOCALIZATION_API static bool GenerateLocMeta(const FLocTextHelper& InLocTextHelper, const FString& InResourceName, FTextLocalizationMetaDataResource& OutLocMeta);
|
|
|
|
/**
|
|
* Given a loc text helper, generate a compiled LocRes resource for the given culture.
|
|
*/
|
|
LOCALIZATION_API static bool GenerateLocRes(const FLocTextHelper& InLocTextHelper, const FString& InCultureToGenerate, const bool bSkipSourceCheck, const FTextKey& InLocResID, FTextLocalizationResource& OutPlatformAgnosticLocRes, TMap<FName, TSharedRef<FTextLocalizationResource>>& OutPerPlatformLocRes, const int32 InPriority = 0);
|
|
|
|
/**
|
|
* Given a config file, generate a compiled LocRes resource for the active culture and use it to update the live-entries in the localization manager.
|
|
*/
|
|
LOCALIZATION_API static bool GenerateLocResAndUpdateLiveEntriesFromConfig(const FString& InConfigFilePath, const bool bSkipSourceCheck);
|
|
};
|