Go to: Synopsis. Return value. MEL examples.
localizedPanelLabel( string $englishPanelLabel )
None
// This command returns a non-null result when running in English.
//
$panel = `getPanel -withLabel "Graph Editor"`;
// Result: graphEditor1 //
// But the same command returns a null result when running in another language.
//
$panel = `getPanel -withLabel "Graph Editor"`;
// Result: //
// In order to find the graphEditor panel by its label, "getPanel -withLabel"
// must be passed the name of the Graph Editor in the localized language. But
// hard-coding the localized name for one language means the script will fail
// for other localizations, so one way to guarantee consistent script behaviour
// across languages is to use localizedPanelLabel().
//
$panel = `getPanel -withLabel (localizedPanelLabel("Graph Editor"))`;
// Result: graphEditor1 //