msi: Translate the resulting string only if the previous call succeeded.