IzPack

Fix display of localized pack names in PackPanel

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.11.0
  • Fix Version/s: 4.0.0
  • Component/s: Installer
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    1

Description

The fix for r1858 is too simplistic. If the localized pack name happens to equal the pack id, you return (the unlocalized) pack.name but who said that the pack name from the installer script matches the requested locale? For example, assume pack.id = "SVG-Support", pack.name = "SVG-Unterstützung" and pack.name.eng = "SVG-Support". Requesting the pack name for the locale "eng" will erroneously return "SVG-Unterstützung" in this case because the code misinterprets pack.id == pack.name.locale as a missing string value.

If the code wants to test for undefined keys, the method LocaleDatabase.getString() is the wrong choice.

Activity

Hide
Julien Ponge added a comment -

The issue is confirmed to be closed.

Show
Julien Ponge added a comment - The issue is confirmed to be closed.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: