|
OpenTAP 9.34
API Reference
|
Functions for working with translations. More...
Static Public Member Functions | |
| static DisplayAttribute | TranslateMember (IReflectionData mem, CultureInfo language=null) |
| Get an appropriate DisplayAttribute for the specified reflection data in the requested language. | |
| static DisplayAttribute | TranslateEnum (Enum e, CultureInfo language=null) |
| Get an appropriate DisplayAttribute for the specified enum in the requested language. | |
| static string | TranslateKey (string key, CultureInfo language=null) |
| Get an appropriate DisplayAttribute for the specified enum in the requested language. | |
| static FormatString | TranslateFormat (this IStringLocalizer stringLocalizer, string neutral, [CallerMemberName] string key=null, CultureInfo language=null) |
| Look for a translated version of the input member and validate the format parameters. If no translation is found, or the parameter count does not match, return the neutral string. | |
| static string | Translate (this IStringLocalizer stringLocalizer, string neutral, [CallerMemberName] string key=null, CultureInfo language=null) |
| Look for a translated version of the input member. If no translation is found, return the neutral string. | |
Functions for working with translations.
|
inlinestatic |
Look for a translated version of the input member. If no translation is found, return the neutral string.
| stringLocalizer | The string localizer which owns the translated string. |
| neutral | The neutral (non-translated) string. |
| key | Lookup key for finding the translation. |
| language | The desired translation language |
|
inlinestatic |
Get an appropriate DisplayAttribute for the specified enum in the requested language.
| e | |
| language |
|
inlinestatic |
Look for a translated version of the input member and validate the format parameters. If no translation is found, or the parameter count does not match, return the neutral string.
| stringLocalizer | The string localizer which owns the translated string. |
| neutral | The neutral (non-translated) string. |
| key | Lookup key for finding the translation. |
| language | The desired translation language |
|
inlinestatic |
Get an appropriate DisplayAttribute for the specified enum in the requested language.
| key | |
| language |
|
inlinestatic |
Get an appropriate DisplayAttribute for the specified reflection data in the requested language.
| mem | |
| language |
OpenTAP 9.34 API built Wed Jul 1 2026 09:21:16