Payment never completed when localizing Contribution statuses
Same kind of problem that https://issues.civicrm.org/jira/browse/CRM-21791, in CRM_Core_Payment, the label is used instead of the name which cause problems when localizing / customizing contribution status label.
To reproduce :
- go to /civicrm/admin/options?gid=11&reset=1
- change the "Completed" label to anything else, e.g. "Terminé"
- make a payment using a contribution form page that goes through CRM_Core_Payment::doPayment (e.g. use Stripe extension processor)
- the transaction status is never set to "Completed"/"Terminé"