Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Internationalization.h File Reference
+ Include dependency graph for Internationalization.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FInternationalization
 
struct  FInternationalization::FCultureStateSnapshot
 

Namespaces

namespace  UE4LocGen_Private
 

Macros

#define LOC_DEFINE_REGION
 
#define LOCTEXT(InKey, InTextLiteral)   FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText(TEXT(InTextLiteral), TEXT(LOCTEXT_NAMESPACE), TEXT(InKey))
 
#define NSLOCTEXT(InNamespace, InKey, InTextLiteral)   FInternationalization::ForUseOnlyByLocMacroAndGraphNodeTextLiterals_CreateText(TEXT(InTextLiteral), TEXT(InNamespace), TEXT(InKey))
 
#define INVTEXT(InTextLiteral)   FText::AsCultureInvariant(TEXT(InTextLiteral))
 
#define LOCGEN_NUMBER(InNum, InCulture)   FText::AsNumber(InNum, nullptr, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_NUMBER_GROUPED(InNum, InCulture)   FText::AsNumber(InNum, &FNumberFormattingOptions::DefaultWithGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_NUMBER_UNGROUPED(InNum, InCulture)   FText::AsNumber(InNum, &FNumberFormattingOptions::DefaultNoGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_NUMBER_CUSTOM(InNum, InOpts, InCulture)   FText::AsNumber(InNum, &FNumberFormattingOptions().InOpts, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_PERCENT(InNum, InCulture)   FText::AsPercent(InNum, nullptr, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_PERCENT_GROUPED(InNum, InCulture)   FText::AsPercent(InNum, &FNumberFormattingOptions::DefaultWithGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_PERCENT_UNGROUPED(InNum, InCulture)   FText::AsPercent(InNum, &FNumberFormattingOptions::DefaultNoGrouping(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_PERCENT_CUSTOM(InNum, InOpts, InCulture)   FText::AsPercent(InNum, &FNumberFormattingOptions().InOpts, UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_CURRENCY(InNum, InCurrency, InCulture)   FText::AsCurrencyBase(InNum, TEXT(InCurrency), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_DATE_UTC(InUnixTime, InDateStyle, InTimeZone, InCulture)   FText::AsDate(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_DATE_LOCAL(InUnixTime, InDateStyle, InCulture)   FText::AsDate(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_TIME_UTC(InUnixTime, InTimeStyle, InTimeZone, InCulture)   FText::AsTime(FDateTime::FromUnixTimestamp(InUnixTime), InTimeStyle, TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_TIME_LOCAL(InUnixTime, InTimeStyle, InCulture)   FText::AsTime(FDateTime::FromUnixTimestamp(InUnixTime), InTimeStyle, FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_DATETIME_UTC(InUnixTime, InDateStyle, InTimeStyle, InTimeZone, InCulture)   FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, InTimeStyle, TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_DATETIME_LOCAL(InUnixTime, InDateStyle, InTimeStyle, InCulture)   FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), InDateStyle, InTimeStyle, FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_DATETIME_CUSTOM_UTC(InUnixTime, InPattern, InTimeZone, InCulture)   FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), TEXT(InPattern), TEXT(InTimeZone), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_DATETIME_CUSTOM_LOCAL(InUnixTime, InPattern, InCulture)   FText::AsDateTime(FDateTime::FromUnixTimestamp(InUnixTime), TEXT(InPattern), FText::GetInvariantTimeZone(), UE4LocGen_Private::GetCultureImpl(TEXT(InCulture)))
 
#define LOCGEN_TOUPPER(InText)   (InText).ToUpper()
 
#define LOCGEN_TOLOWER(InText)   (InText).ToLower()
 
#define LOCGEN_FORMAT_ORDERED(InPattern, ...)   FText::FormatOrdered(InPattern, __VA_ARGS__)
 
#define LOCGEN_FORMAT_NAMED(InPattern, ...)   FText::FormatNamed(InPattern, __VA_ARGS__)
 

Functions

FCulturePtr UE4LocGen_Private::GetCultureImpl (const TCHAR *InCulture)
 

Macro Definition Documentation

◆ INVTEXT

Creates a culture invariant FText from the given string literal.

Definition at line 301 of file Internationalization.h.

◆ LOC_DEFINE_REGION

#define LOC_DEFINE_REGION

Definition at line 16 of file Internationalization.h.

◆ LOCGEN_CURRENCY

Generate an FText representation of the given number as a currency (alias for FText::AsCurrencyBase). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InNumThe number to generate the FText from, specified in the smallest fractional value of the currency being used.
InCurrencyThe currency code (eg, USD, GBP, EUR).
InCultureThe culture code to use, or an empty string to use the active locale.

Definition at line 334 of file Internationalization.h.

◆ LOCGEN_DATE_LOCAL

◆ LOCGEN_DATE_UTC

Generate an FText representation of the given timestamp as a date (alias for FText::AsDate). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InUnixTimeThe Unix timestamp to generate the FText from.
InDateStyleThe style to use for the date.
InTimeZoneThe timezone to display the timestamp in.
InCultureThe culture code to use, or an empty string to use the active locale.

Definition at line 344 of file Internationalization.h.

◆ LOCGEN_DATETIME_CUSTOM_LOCAL

◆ LOCGEN_DATETIME_CUSTOM_UTC

Generate an FText representation of the given timestamp as a date and time (alias for FText::AsDateTime). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InUnixTimeThe Unix timestamp to generate the FText from.
InPatternThe custom strftime-like pattern for the date/time string (see FDateTime::ToFormattedString).
InTimeZoneThe timezone to display the timestamp in.
InCultureThe culture code to use, or an empty string to use the active locale.

Definition at line 378 of file Internationalization.h.

◆ LOCGEN_DATETIME_LOCAL

◆ LOCGEN_DATETIME_UTC

Generate an FText representation of the given timestamp as a date and time (alias for FText::AsDateTime). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InUnixTimeThe Unix timestamp to generate the FText from.
InDateStyleThe style to use for the date.
InTimeStyleThe style to use for the time.
InTimeZoneThe timezone to display the timestamp in.
InCultureThe culture code to use, or an empty string to use the active locale.

Definition at line 367 of file Internationalization.h.

◆ LOCGEN_FORMAT_NAMED

#define LOCGEN_FORMAT_NAMED ( InPattern,
... )   FText::FormatNamed(InPattern, __VA_ARGS__)

Generate an FText representation of the given format pattern with the named arguments inserted into it (alias for FText::FormatNamed). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Definition at line 403 of file Internationalization.h.

◆ LOCGEN_FORMAT_ORDERED

#define LOCGEN_FORMAT_ORDERED ( InPattern,
... )   FText::FormatOrdered(InPattern, __VA_ARGS__)

Generate an FText representation of the given format pattern with the ordered arguments inserted into it (alias for FText::FormatOrdered). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Definition at line 397 of file Internationalization.h.

◆ LOCGEN_NUMBER

Generate an FText representation of the given number (alias for FText::AsNumber). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InNumThe number to generate the FText from.
InCultureThe culture code to use, or an empty string to use the active locale.
InOptsCustom formatting options specified as chained setter functions of FNumberFormattingOptions (eg, SetAlwaysSign(true).SetUseGrouping(false)).

Definition at line 310 of file Internationalization.h.

◆ LOCGEN_NUMBER_CUSTOM

◆ LOCGEN_NUMBER_GROUPED

◆ LOCGEN_NUMBER_UNGROUPED

◆ LOCGEN_PERCENT

Generate an FText representation of the given number as a percentage (alias for FText::AsPercent). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InNumThe number to generate the FText from.
InCultureThe culture code to use, or an empty string to use the active locale.
InOptsCustom formatting options specified as chained setter functions of FNumberFormattingOptions (eg, SetAlwaysSign(true).SetUseGrouping(false)).

Definition at line 322 of file Internationalization.h.

◆ LOCGEN_PERCENT_CUSTOM

◆ LOCGEN_PERCENT_GROUPED

◆ LOCGEN_PERCENT_UNGROUPED

◆ LOCGEN_TIME_LOCAL

◆ LOCGEN_TIME_UTC

Generate an FText representation of the given timestamp as a time (alias for FText::AsTime). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Parameters
InUnixTimeThe Unix timestamp to generate the FText from.
InTimeStyleThe style to use for the time.
InTimeZoneThe timezone to display the timestamp in.
InCultureThe culture code to use, or an empty string to use the active locale.

Definition at line 355 of file Internationalization.h.

◆ LOCGEN_TOLOWER

#define LOCGEN_TOLOWER ( InText)    (InText).ToLower()

Generate an FText representation of the given FText when transformed into lower-case (alias for FText::ToLower). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Definition at line 391 of file Internationalization.h.

◆ LOCGEN_TOUPPER

#define LOCGEN_TOUPPER ( InText)    (InText).ToUpper()

Generate an FText representation of the given FText when transformed into upper-case (alias for FText::ToUpper). This macro exists to allow UHT to parse C++ default FText arguments in UFunctions (as this macro matches the syntax used by FTextStringHelper when exporting/importing stringified FText) and should not be used generally.

Definition at line 385 of file Internationalization.h.

◆ LOCTEXT

The global namespace that must be defined/undefined to wrap uses of the NS-prefixed macros below Creates an FText. All parameters must be string literals. All literals will be passed through the localization system. The global LOCTEXT_NAMESPACE macro must be first set to a string literal to specify this localization key's namespace.

Definition at line 291 of file Internationalization.h.

◆ NSLOCTEXT

Creates an FText. All parameters must be string literals. All literals will be passed through the localization system.

Definition at line 296 of file Internationalization.h.