Hi, following this https://docs.unrealengine.com/latest/INT/Gameplay/Localization/Setup/index.html and this Localization of a game - Programming & Scripting - Epic Developer Community Forums i made files for Multiplayer Shootout example from learn tab in launcher: In level blueprint i have a string public variable, but i can’t understand why:
gather text doesn’t grab texts from widgets and blueprints
should i somehow specify additional SourceFileSearchFilters in Game.ini except
SourceFileSearchFilters=*.h
SourceFileSearchFilters=*.cpp
SourceFileSearchFilters=*.ini
?
more details on my extablished files below, gather text log aat the end, seems it fails because
[2015.06.24-11.17.02:083] 0]LogGatherTextFromSourceCommandlet:Error: The GatherTextFromSource commandlet couldn't find any source files matching (D:/ue4/projects/4.8.0/MultiplayerShootout/*.h, D:/ue4/projects/4.8.0/MultiplayerShootout/*.cpp, D:/ue4/projects/4.8.0/MultiplayerShootout/*.ini) in the specified directories:
grab_localization.bat
cd D:\ue4\projects\4.8.0\MultiplayerShootout\
"D:\ue4\installed\Epic Games\4.8\Engine\Binaries\Win64\UE4Editor.exe" "D:\ue4\projects\4.8.0\MultiplayerShootout\MultiplayerShootout.uproject" -Run=GatherText -config="Config\Localization\Game.ini" -log > localization.log
pause
Config\Localization\Game.ini
;Common settings to be used for all commandlets as needed.
[CommonSettings]
SourcePath=./Content/Localization/Game
DestinationPath=./Content/Localization/Game
ManifestName=Game.manifest
ArchiveName=Game.archive
ResourceName=Game.locres
PortableObjectName=Game.po
;English
SourceCulture=en
;English
CulturesToGenerate=en
;Russian
CulturesToGenerate=ru
;Gather text from source code and configuration files.
[GatherTextStep0]
CommandletClass=GatherTextFromSource
IncludePaths=./Source/
IncludePaths=./Config/
ExcludePaths=*/Config/Localization/*
SourceFileSearchFilters=*.h
SourceFileSearchFilters=*.cpp
SourceFileSearchFilters=*.ini
;Gather text from assets in content.
[GatherTextStep1]
CommandletClass=GatherTextFromAssets
IncludePaths=./Content/
ExcludePaths=*/Content/Localization/*
PackageExtensions=*.umap
PackageExtensions=*.uasset
;Create manifest with all gathered source text.
[GatherTextStep2]
CommandletClass=GenerateGatherManifest
;Create new archives/update existing archives with new entries from the manifest.
[GatherTextStep3]
CommandletClass=GenerateGatherArchive
;Import new translations from PO (portable object) files into existing archives.
[GatherTextStep4]
CommandletClass=InternationalizationExport
bImportLoc=true
;Export new source from existing archives into PO (portable object) files.
[GatherTextStep5]
CommandletClass=InternationalizationExport
bExportLoc=true
;Compile source text and translations into binary form for use by the application.
[GatherTextStep6]
CommandletClass=GenerateTextLocalizationResource
Config\DefaultGame.ini
[/Script/EngineSettings.GeneralProjectSettings]
ProjectID=6ACFB9FC45FFB7091465F3AAD9AED211
[/Script/Engine.GameSession]
MaxPlayers=2
[Internationalization]
;This first entry is inherited from BaseGame.ini by default.
+LocalizationPaths=%GAMEDIR%Content/Localization/Game
;+LocalizationPaths=%GAMEDIR%Content/Localization/DLC
[/Script/UnrealEd.ProjectPackagingSettings]
BuildConfiguration=PPBC_Development
StagingDirectory=(Path="D:/ue4/projects/4.8.0/MultiplayerShootout/packaged/win32 with steam upgraded from 4.7.6")
FullRebuild=False
ForDistribution=False
IncludeDebugFiles=False
UsePakFile=False
bGenerateChunks=False
bBuildHttpChunkInstallData=False
HttpChunkInstallDataDirectory=(Path=)
HttpChunkInstallDataVersion=
IncludePrerequisites=True
IncludeCrashReporter=True
InternationalizationPreset=English
+CulturesToStage=ru_RU
+CulturesToStage=en
DefaultCulture=en
bCookAll=False
bCookMapsOnly=False
bCompressed=False
-DirectoriesToAlwaysStageAsUFS=(Path=)
+DirectoriesToAlwaysStageAsUFS=(Path=)
but when i run grab_localization.bat it create only log file
localization.log
[2015.06.24-11.16.59:252] 0]LogTextLocalizationManager:Warning: Loaded localization resources contain conflicting entries for (Namespace:ContentBrowser, Key:ImportAssetToolTip):
Localization Resource: (D:/ue4/installed/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (-630476809) Localized String: (Import to {0}...)
Localization Resource: (D:/ue4/installed/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (1271782899) Localized String: (Imports an asset from file to this folder.)
[2015.06.24-11.16.59:551] 0]LogShaderCompilers:Display: Using Local Shader Compiler.
[2015.06.24-11.17.00:294] 0]LogTemp:Display: Loaded TP DesktopTargetPlatform
[2015.06.24-11.17.00:307] 0]LogTemp:Display: Loaded TP WindowsClientTargetPlatform
[2015.06.24-11.17.00:320] 0]LogTemp:Display: Loaded TP WindowsNoEditorTargetPlatform
[2015.06.24-11.17.00:333] 0]LogTemp:Display: Loaded TP WindowsServerTargetPlatform
[2015.06.24-11.17.00:347] 0]LogTemp:Display: Loaded TP WindowsTargetPlatform
[2015.06.24-11.17.00:359] 0]LogTemp:Display: Loaded TP AndroidTargetPlatform
[2015.06.24-11.17.00:371] 0]LogTemp:Display: Loaded TP Android_ASTCTargetPlatform
[2015.06.24-11.17.00:382] 0]LogTemp:Display: Loaded TP Android_ATCTargetPlatform
[2015.06.24-11.17.00:395] 0]LogTemp:Display: Loaded TP Android_DXTTargetPlatform
[2015.06.24-11.17.00:407] 0]LogTemp:Display: Loaded TP Android_ETC1TargetPlatform
[2015.06.24-11.17.00:418] 0]LogTemp:Display: Loaded TP Android_ETC2TargetPlatform
[2015.06.24-11.17.00:430] 0]LogTemp:Display: Loaded TP Android_PVRTCTargetPlatform
[2015.06.24-11.17.00:472] 0]LogTemp:Display: Loaded TP IOSTargetPlatform
[2015.06.24-11.17.00:484] 0]LogTemp:Display: Loaded TP LinuxNoEditorTargetPlatform
[2015.06.24-11.17.00:495] 0]LogTemp:Display: Loaded TP LinuxServerTargetPlatform
[2015.06.24-11.17.00:509] 0]LogTemp:Display: Loaded TP LinuxTargetPlatform
[2015.06.24-11.17.00:510] 0]LogTargetPlatformManager:Display: Building Assets For Windows
[2015.06.24-11.17.00:693] 0]LogDerivedDataCache:Display: Max Cache Size: 512 MB
[2015.06.24-11.17.00:744] 0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users/UnrealEngine/AppData/Local/UnrealEngine/4.8/DerivedDataCache/Boot.ddc
[2015.06.24-11.17.00:895] 0]LogDerivedDataCache:Display: Pak cache opened for reading ../../../Engine/DerivedDataCache/Compressed.ddp.
[2015.06.24-11.17.02:048] 0]LogGatherTextFromSourceCommandlet:Warning: IncludePaths detected in section GatherTextStep0. IncludePaths is deprecated, please use SearchDirectoryPaths.
[2015.06.24-11.17.02:049] 0]LogGatherTextFromSourceCommandlet:Warning: ExcludePaths detected in section GatherTextStep0. ExcludePaths is deprecated, please use ExcludePathFilters.
[2015.06.24-11.17.02:049] 0]LogGatherTextFromSourceCommandlet:Warning: SourceFileSearchFilters detected in section GatherTextStep0. SourceFileSearchFilters is deprecated, please use FileNameFilters.
[2015.06.24-11.17.02:083] 0]LogGatherTextFromSourceCommandlet:Error: The GatherTextFromSource commandlet couldn't find any source files matching (D:/ue4/projects/4.8.0/MultiplayerShootout/*.h, D:/ue4/projects/4.8.0/MultiplayerShootout/*.cpp, D:/ue4/projects/4.8.0/MultiplayerShootout/*.ini) in the specified directories:
+ D:/ue4/projects/4.8.0/MultiplayerShootout/Source/
+ D:/ue4/projects/4.8.0/MultiplayerShootout/Config/
- D:/ue4/projects/4.8.0/MultiplayerShootout/*/Config/Localization/*
[2015.06.24-11.17.02:087] 0]LogGatherTextCommandlet:Error: GatherTextStep0-GatherTextFromSourceCommandlet reported an error.
[2015.06.24-11.17.02:088] 0]LogInit:Display:
[2015.06.24-11.17.02:089] 0]LogInit:Display: Warning/Error Summary
[2015.06.24-11.17.02:090] 0]LogInit:Display: ---------------------
[2015.06.24-11.17.02:091] 0]LogInit:Display: LogGatherTextFromSourceCommandlet:Error: The GatherTextFromSource commandlet couldn't find any source files matching (D:/ue4/projects/4.8.0/MultiplayerShootout/*.h, D:/ue4/projects/4.8.0/MultiplayerShootout/*.cpp, D:/ue4/projects/4.8.0/MultiplayerShootout/*.ini) in the specified directories:
+ D:/ue4/projects/4.8.0/MultiplayerShootout/Source/
+ D:/ue4/projects/4.8.0/MultiplayerShootout/Config/
- D:/ue4/projects/4.8.0/MultiplayerShootout/*/Config/Localization/*
[2015.06.24-11.17.02:093] 0]LogInit:Display: LogGatherTextCommandlet:Error: GatherTextStep0-GatherTextFromSourceCommandlet reported an error.
[2015.06.24-11.17.02:095] 0]LogInit:Display: LogTextLocalizationManager:Warning: Loaded localization resources contain conflicting entries for (Namespace:ContentBrowser, Key:ImportAssetToolTip):
Localization Resource: (D:/ue4/installed/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (-630476809) Localized String: (Import to {0}...)
Localization Resource: (D:/ue4/installed/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (1271782899) Localized String: (Imports an asset from file to this folder.)
[2015.06.24-11.17.02:098] 0]LogInit:Display: LogGatherTextFromSourceCommandlet:Warning: IncludePaths detected in section GatherTextStep0. IncludePaths is deprecated, please use SearchDirectoryPaths.
[2015.06.24-11.17.02:099] 0]LogInit:Display: LogGatherTextFromSourceCommandlet:Warning: ExcludePaths detected in section GatherTextStep0. ExcludePaths is deprecated, please use ExcludePathFilters.
[2015.06.24-11.17.02:100] 0]LogInit:Display: LogGatherTextFromSourceCommandlet:Warning: SourceFileSearchFilters detected in section GatherTextStep0. SourceFileSearchFilters is deprecated, please use FileNameFilters.
[2015.06.24-11.17.02:101] 0]LogInit:Display:
[2015.06.24-11.17.02:103] 0]LogInit:Display: Commandlet->Main return this error code: -1
[2015.06.24-11.17.02:104] 0]LogInit:Display: With 2 error(s), 4 warning(s)
[2015.06.24-11.17.02:105] 0]LogInit:Display:
Execution of commandlet took: 0.09 seconds
[2015.06.24-11.17.02:396] 0]LogOnline:Display: NULL: FOnlineSubsystemNull::Shutdown()
[2015.06.24-11.17.02:396] 0]LogOnline:Display: Unloading online subsystem: STEAM
[2015.06.24-11.17.02:397] 0]LogOnline:Display: Unloading online subsystem: Null
p.s. engine 4.8.0 release