GatherText deleting changes when run

We’re running into a serious problem after our loc team mistaken localized some strings that are referenced in blueprints.

Normally, simply changing the strings in the Game.archive and running GatherText again would solve this issue. But as we’ve noticed recently, any time changes are made to the Game.archive and GatherText is run, the process somehow reverts the localized string back to it’s previous iteration.

So, when I change this:

		"Source":
		{
			"Text": "Magnesium"
		},
		"Translation":
		{
			"Text": "Magnez"
		}

To this:

		"Source":
		{
			"Text": "Magnesium"
		},
		"Translation":
		{
			"Text": "Magnesium"
		}

When I run the GatherText process again my changes are wiped completely.

If unfixed, this issue will prevent us from shipping localized languages when our game goes live next week - PLEASE HELP!

For Reference - These are the steps we’re following for our project:

GatherText:

  1. Close down the editor
    
  2. Check out the entire “…/Nebraska/Content/Localization/” folder in p4v

  3. Run command line, cd to C:\Nebraska directory

  4. Run the GatherText command by executing the following command in its entirety: C:\UnrealEngine-4.7.4-release\Engine\Binaries\Win64\Ue4Editor.exe C:\Nebraska\Nebraska.uproject –Run=GatherText –config=”C:\Nebraska\Config\Localization\Game.ini” –log > localization.log

  5. You should see another window open open while the GatherText operation executes. Watch for red text both at the beginning, and at the end. It’ll auto close on completion. a. GatherText will scan the entire project, not just what’s packaged up in the build. b. Note Some of the red text errors it spits out (while valid errors) aren’t anything to be concerned with since they aren’t packaged assets include in the build

  6. Upon Completion, open up “C:\Nebraska\localization.log” and scroll to the bottom to make sure the operation completed successfully a. This output near the end confirms everything worked properly: “[2015.11.11-19.35.34:471][ 0]LogInit:Display: Success - 0 error(s), 488 warning(s)”

  7. Run GatherText once again after all of the files come back from translation in order for them to work properly

Any help with this is greatly appreciated - Thanks in advance!

Is your gather process setup to perform an import and export to .po?

If so you’re likely importing the old changes in your .po which is stomping on your manual changes to the archive. Either stop importing or just make the change in your .po file instead.


This is caused by an order of operations issue and the fact that none of the changes have timestamps so the merging process has no idea which string is newest, so it assumes you’re importing the newest data.

That’s correct - Thanks, Sarge… I’ll give that a shot and report back!

That worked - Thanks again for the quick reply!

All changes will now be made in the .po