x

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 export order

I'm trying to export certain texts for localization. The texts are located in an array in some asset. I run GatherText and then export to .PO file. The problem is that the texts are not gathered the way it stored in an array, but alphabetically! This would be a nightmare to translate, because the context of text (surrounding dialog lines) are lost.

How can I affect an order in which texts are gathered or exported? Any solution would do, even changes in the engine code.

Product Version: UE 4.16
Tags:
more ▼

asked Aug 22 '17 at 10:23 AM in Packaging & Deployment

avatar image

kirdaybov
78 3 9

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

The sorting happens in FPortableObjectFormatDOM::SortEntries.

Generally we find order to be unimportant since once the PO is imported into a translation provider the entries will be sorted however there system wants them to be anyway (although it sounds like you're editing the POs directly, which is also fine).

If you're using our dialogue waves for your audio, then these have the ability to provide translation notes that appear as comments in the PO file. If you're not, then string tables (defined from CSV or in code) have the ability to provide meta-data that appears as comments in the PO file.

more ▼

answered Aug 22 '17 at 01:26 PM

avatar image

Jamie Dale STAFF
7.4k 176 66 304

avatar image kirdaybov Aug 23 '17 at 07:10 AM

Thank you for the answer.

The translation software I've encountered (poedit) only provided sorting by translation, and by source text. If you know any PO editor that can sort by reference, we would appreciate a link :)

Thank you for the information on string tables, I'll look into it. For now, I made a simple predicate to sort entries by reference and it does what we need at the moment.

(comments are locked)
10|2000 characters needed characters left
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