script (MEL) |
Only available in MEL |
localizedUIComponentLabel |
In categories: System, Localization |
Go to: Synopsis. Return value. MEL examples.
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".
None
// This command creates a menu item with the localized version of the attribute editor
// name as its label.
menuItem -label (localizedUIComponentLabel("Attribute Editor"))