| @@ -255,9 +255,15 @@ | ||
| 255 | 255 | // Honor enable/disable: a disabled confirmation message is skipped so the default confirmation applies. |
| 256 | 256 | if (isset($msgConfig->status) && empty($msgConfig->status)) { |
| 257 | 257 | return $workFlowReturnable; |
| 258 | 258 | } |
| 259 | - $messageContent = $message[0]->message_content; | |
| 259 | + // Translate before smart-tag replacement, so lookups hit the stored text. | |
| 260 | + $messageContent = (string) apply_filters( | |
| 261 | + 'bitform_translate_form_string', | |
| 262 | + (string) $message[0]->message_content, | |
| 263 | + 'msg-content-' . $message[0]->id, | |
| 264 | + static::$_formID | |
| 265 | + ); | |
| 260 | 266 | |
| 261 | 267 | // replace pdf link and password |
| 262 | 268 | if (class_exists('\BitCode\BitFormPro\Admin\DownloadFile') && !empty($entryID)) { |
| 263 | 269 | $downloadFile = new \BitCode\BitFormPro\Admin\DownloadFile(); |
| @@ -293,8 +299,15 @@ | ||
| 293 | 299 | return $workFlowReturnable; |
| 294 | 300 | } |
| 295 | 301 | $url = Utilities::jsonObj($redirectPage[0]->integration_details ?? '')->url ?? ''; |
| 296 | 302 | if (!empty($url)) { |
| 303 | + // Translated before smart-tag replacement: per-language redirect targets. | |
| 304 | + $url = (string) apply_filters( | |
| 305 | + 'bitform_translate_form_string', | |
| 306 | + (string) $url, | |
| 307 | + 'redirect-url-' . $redirectPage[0]->id, | |
| 308 | + static::$_formID | |
| 309 | + ); | |
| 297 | 310 | $url = Helper::replaceFieldWithValue($url, $fieldValue); |
| 298 | 311 | } |
| 299 | 312 | $workFlowReturnable['redirectPage'] = empty($url) ? false : esc_url_raw($url); |
| 300 | 313 | } |