Details
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.
The issue is confirmed to be closed.