diff --git a/icu4c/source/i18n/locdspnm.cpp b/icu4c/source/i18n/locdspnm.cpp index b3b59540e6..65ac4a3d90 100644 --- a/icu4c/source/i18n/locdspnm.cpp +++ b/icu4c/source/i18n/locdspnm.cpp @@ -728,15 +728,7 @@ LocaleDisplayNamesImpl::scriptDisplayName(const char* script, UnicodeString& LocaleDisplayNamesImpl::scriptDisplayName(UScriptCode scriptCode, UnicodeString& result) const { - const char* name = uscript_getName(scriptCode); - if (nameLength == UDISPCTX_LENGTH_SHORT) { - langData.get("Scripts%short", name, result); - if (!result.isBogus()) { - return adjustForUsageAndContext(kCapContextUsageScript, result); - } - } - langData.get("Scripts", name, result); - return adjustForUsageAndContext(kCapContextUsageScript, result); + return scriptDisplayName(uscript_getName(scriptCode), result); } UnicodeString&