multiple identical lines in a translation file

Started by EnterTheStory (aka tolworthy), Mon 05/04/2010 17:15:55

Previous topic - Next topic

EnterTheStory (aka tolworthy)

Is it normal for 3.x translation files to have multiple identical lines? I'm updating a translation file and keep finding duplicate lines, usually instructions like "Save" and "Cancel." Is this normal? The first appearance is translated and the second is not (it only appeared in the update). Should I manually copy the translation of the first occurrence and paste it after the second occurrence as well?

Pumaman

There shouldn't be duplicate lines, no. If duplicates are being generated, that sounds like a bug which I would need to look into.

EnterTheStory (aka tolworthy)

The only genuine duplicates seem to be GUI buttons and responses, 'Save' 'Cancel 'There are no more saved game slots' and of course this only happens with updating a translation file, not with the original. The first version was generated with 2.72 then imported into 3.12 if that's any help.

Also it seemed to me that some older dialog lines were not removed when they should have been. E.g. I'd fix a spelling mistake, and in the update the original bad spelling was still there as well as the new line. I can't swear to that, though , it's always possible that I used the same line twice and only fixed one spelling (the file I was checking had eight thousand lines so I may have missed one).

Oh, and a question - I'm assuming that it does no harm to delete lines that are not translated? As long as the remaining lines are still in pairs of course?

Pumaman

Hmm, there's definitely no extra spaces on those lines or anything like that, that might make it think they're different?

Old dialog lines are not automatically removed when you update the translation source -- this is because you might have manually added some extra lines to the translation file and so you wouldn't want AGS to automatically remove them again next time you updated it.

QuoteI'm assuming that it does no harm to delete lines that are not translated? As long as the remaining lines are still in pairs of course?

Yes, that should be fine.

SMF spam blocked by CleanTalk