Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Localization System not working (.po parse errors)

The Dashboard

After setting up the system for localization in the Localization Dashboard, and after translating exported .po files externally (i.e. Google Translator Toolkit), it will let me import localized text succesfully on the first attempt.

However, the problem I run into is that any language added after the first attempt will generate a 'Error: Failed to parse Portable Object' message, even though this Portable Object is generated identically to the one(s) on the first attempt. This question from a few months ago describes the same problem:

Manual Setup

I understand the Localization Dashboard is an experimental feature, so instead I also followed all steps in the official Unreal Engine 4 documentation on localization This procedure created errors of functions being deprecated, which makes me believe this documentation is outdated. That aside, after getting this procedure to function, it also reported the same 'Error: Failed to parse Portable Object' message.

A snippet of the error:

 [2018.02.06-15.53.34:306][  0]LogInit: Display: Warning/Error Summary (Unique only)
 [2018.02.06-15.53.34:307][  0]LogInit: Display: -----------------------------------
 [2018.02.06-15.53.34:307][  0]LogInit: Display: LogPortableObjectPipeline: Error: Failed to parse Portable Object file I:/[PROJECT]/Development/develop/./Content/Localization/Game/zh-Hans/Game.po.
 [2018.02.06-15.53.34:309][  0]LogInit: Display: LogInternationalizationExportCommandlet: Error: Failed to import localization files.

Product Version: UE 4.18
more ▼

asked Feb 06 '18 at 04:33 PM in Everything Else

avatar image

6 1 4

avatar image Jamie Dale STAFF Feb 06 '18 at 04:39 PM

Yeah, the documentation is quite outdated and the dashboard is the way to go.

Can you send me your PO file (you can PM me on the forums if you don't want to post it here). That error means that FPortableObjectFormatDOM::FromString is failing, and sadly that function gives no further logging data.

avatar image Jamie Dale STAFF Feb 07 '18 at 01:36 AM

Thanks for sending me the PO files. It seems you have some unescaped new-lines in your PO data.

I'm guessing it's Google Translator Toolkit that's doing this, but it's not actually a valid PO file (POedit also fails to open it correctly, but fails more gracefully).

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

After Jamie looked into the .po files, it seems like the Google Translator Toolkit breaks the .po files with their generated translation in most cases. In some languages it breaks it in such a way that importing is still possible. Hence why the first attempt was succesful.

Sadly, the toolkit is the only way to check if all your text is properly set up for bigger projects without additional costs before sending it for external translation.

OneSky and POedit are recommended by Jamie to use for testing localization, however these do not support (free) auto translation.

more ▼

answered Feb 07 '18 at 02:05 PM

avatar image

6 1 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question