Go to: Synopsis. Return value. MEL examples.

Synopsis

localizedUIComponentLabel( string $englishPanelLabel )

Use this procedure to obtain the localized versions of UI Component labels such as "Status Line", "Shelf", "Time Slider", "Range Slider", "Command Line", "Help Line", "Maya Live Control Panel", "Tool Box", "Attribute Editor", "Tool Settings", "Channel Box / Layer Editor", "Layer Editor", and "Channel Box".

Return value

string: the localized version of the label passed in. If localizedUIComponentLabel() is passed a label for which no localized label is defined, the returned result is the unchanged input string.

MEL examples

		// This command creates a menu item with the localized version of the attribute editor
		// name as its label.

		menuItem -label (localizedUIComponentLabel("Attribute Editor"))