https://bugzilla.redhat.com/show_bug.cgi?id=1619530
--- Comment #12 from Mike FABIAN <mfabian(a)redhat.com> ---
(In reply to Jens Petersen from comment #10)
(In reply to Mike FABIAN from comment #9)
> So anaconda should make an exception for Georgian not to automatically
> capitalize the first letter.
Shouldn't that be handled elsewhere?
I guess this code does it:
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/localizati...
def get_native_name(locale):
"""
Function returning native name for the given locale.
:param locale: locale to return native name for
:type locale: str
:return: english name for the locale or empty string if unknown
:rtype: st
:raise InvalidLocaleSpec: if an invalid locale is given (see LANGCODE_RE)
"""
parts = parse_langcode(locale)
if "language" not in parts:
raise InvalidLocaleSpec("'%s' is not a valid locale" % locale)
name = langtable.language_name(languageId=parts["language"],
territoryId=parts.get("territory",
""),
scriptId=parts.get("script", ""),
languageIdQuery=parts["language"],
territoryIdQuery=parts.get("territory",
""),
scriptIdQuery=parts.get("script",
""))
return upcase_first_letter(name)
So it upper cases the first letter of the language name. For almost all
languages, this is what we want if the name appears isolated in a list, it is
sort of like at the start of a sentence then. For languages which don’t have
uppercase letters (like Japanese for example), the uppercasing changes nothing.
Georgian seems special in that uppercase letters are available, but apparently
they are not supposed to be used in title case.
--
You are receiving this mail because:
You are on the CC list for the bug.