Skip to content

Issue with obsolete string #8

@maduin75

Description

@maduin75

Hi,

There seem to have an issue with obsolete string. For exemple, if I have an entry in the PO file that looks like this (note that the msg* string of the first block are marked as obsolete) :

#. Key: 4EC8E9094C30B300EE2B129090719D37
#. SourceLocation: /Game/UI/WBP_Events_Character_Menu.WBP_Events_Character_Menu_C:WidgetTree.TextBlock_107.Text
#: /Game/UI/WBP_Events_Character_Menu.WBP_Events_Character_Menu_C:WidgetTree.TextBlock_107.Text
#~ msgctxt ",4EC8E9094C30B300EE2B129090719D37"
#~ msgid "Character select"
#~ msgstr "Character select"

#. Key: 597E72D944E780B7A33242AEDE6FBB6C
#. SourceLocation: /Game/UI/WBP_Location_Menu.WBP_Location_Menu_C:ExecuteUbergraph_WBP_Location_Menu [Script Bytecode]
#: /Game/UI/WBP_Location_Menu.WBP_Location_Menu_C:ExecuteUbergraph_WBP_Location_Menu [Script Bytecode]
msgctxt ",597E72D944E780B7A33242AEDE6FBB6C"
msgid "Location : {Location}"
msgstr "Location : {Location}"

When I save back the file with the POGenerator, I get this result:

#. Key: 4EC8E9094C30B300EE2B129090719D37
#. SourceLocation: /Game/UI/WBP_Events_Character_Menu.WBP_Events_Character_Menu_C:WidgetTree.TextBlock_107.Text
#. Key: 597E72D944E780B7A33242AEDE6FBB6C
#. SourceLocation: /Game/UI/WBP_Location_Menu.WBP_Location_Menu_C:ExecuteUbergraph_WBP_Location_Menu [Script Bytecode]
#: /Game/UI/WBP_Events_Character_Menu.WBP_Events_Character_Menu_C:WidgetTree.TextBlock_107.Text
#: /Game/UI/WBP_Location_Menu.WBP_Location_Menu_C:ExecuteUbergraph_WBP_Location_Menu [Script Bytecode]
msgctxt ",597E72D944E780B7A33242AEDE6FBB6C"
msgid "Location : {Location}"
msgstr "Location : {Location}"

The two entries merged together and the msg* lines are lost. I've checked in the Catalog and the entry with the obsolete string is not there and merge with the next entry in the catalog.

Obsolete entries are described here. This tool is based on GNU Specification.
http://pology.nedohodnik.net/doc/user/en_US/ch-poformat.html Section 2.5.3

For an entry to be obsolete, it should be preceded by #~ even the msg* line.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions