UKismetInternationalizationLibrary::GetCultureDisplayName
#include "Kismet/KismetInternationalizationLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns a human-readable display name for a culture code, either localized into the culture's own language or into the current display language.
Caveats & Gotchas
- • Localized=true returns the name in the target culture's own language (e.g. "Deutsch" for German), which is standard for a language-picker menu; set it false to get the name translated into the current UI language instead.
- • Falls back to returning the raw culture code string unchanged if it can't resolve a display name — don't assume the result is always human-friendly.
Signature
static ENGINE_API FString GetCultureDisplayName(const FString& Culture, const bool Localized = true); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Culture | const FString& | The culture to get the display name of, as an IETF language tag. | — |
| Localized | const bool | True to get the name localized into the culture's own language, false to get it in the current display language. | true |
Return Type
FString Example
Show culture names in a language-select list C++
const FString Label = UKismetInternationalizationLibrary::GetCultureDisplayName(TEXT("de"), true); // "Deutsch" See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?