Strips out menu loaders from the given path.
string $path: The path to process.
The given path where all the menu loaders are replaced with "%".
function _translation_entity_menu_strip_loaders($path) {
return preg_replace('|%[^/]+|', '%', $path);
}