Strings#

class Strings#

Provides utilities for obtaining string resources.

Overview#

get

Get a localized string from strings.properties.

Import detail#

from ansys.tools.variableinterop.utils.locale_utils import Strings

Method detail#

static Strings.get(section: str, name: str, *args: object) str#

Get a localized string from strings.properties.

Parameters:
sectionstr

Section of strings.properties to get the localized string from.

namestr

Identifier for the string to get.

argsobject

Optional formatting arguments.

Returns:
str

Localized string.