def METHOD_NAME(self, callingWindow, itmContext, mainItem, selection):
    if isinstance(mainItem, es_Cargo):
        return _t("Change Selection Quantity")
    return _t("Change {0} Quantity").format(itmContext)