From a9e4ff3ac0c235dd71d7629601a73ffe9a4e20c6 Mon Sep 17 00:00:00 2001 From: Erik <11491369+kebbet@users.noreply.github.com> Date: Fri, 2 Jun 2023 14:31:23 +0200 Subject: [PATCH] I18N: Makes strings possible to translate. --- admin/admin-emails.php | 6 +++--- admin/admin-entries.php | 4 ++-- admin/forms/forms-import.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/admin-emails.php b/admin/admin-emails.php index f0937506..17ed5d0c 100644 --- a/admin/admin-emails.php +++ b/admin/admin-emails.php @@ -130,7 +130,7 @@ function email_acf_fields( $field_group ) { 'id' => '', ), 'default_value' => '', - 'placeholder' => 'Name this email for your reference', + 'placeholder' => __( 'Name this email for your reference', 'advanced-forms' ), 'prepend' => '', 'append' => '', 'maxlength' => '', @@ -148,7 +148,7 @@ function email_acf_fields( $field_group ) { 'class' => '', 'id' => '', ), - 'message' => 'Yes', + 'message' => __( 'Yes', 'advanced-forms' ), 'default_value' => 1, ), array ( @@ -239,7 +239,7 @@ function email_acf_fields( $field_group ) { 'label' => __( 'From', 'advanced-forms' ), 'name' => 'from', 'type' => 'text', - 'instructions' => 'Must be either an email address or on the form "Name <Email address>".', + 'instructions' => __( 'Must be either an email address or on the form "Name <Email address>".', 'advanced-forms' ), 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( diff --git a/admin/admin-entries.php b/admin/admin-entries.php index 3dc46280..b3d73f01 100644 --- a/admin/admin-entries.php +++ b/admin/admin-entries.php @@ -269,8 +269,8 @@ function add_form_settings_fields( $field_group ) { 'message' => '', 'default_value' => 0, 'ui' => 1, - 'ui_on_text' => 'Yes', - 'ui_off_text' => 'No', + 'ui_on_text' => __( 'Yes', 'advanced-forms' ), + 'ui_off_text' => __( 'No', 'advanced-forms' ), ); diff --git a/admin/forms/forms-import.php b/admin/forms/forms-import.php index 8da543b2..aca897fd 100644 --- a/admin/forms/forms-import.php +++ b/admin/forms/forms-import.php @@ -33,7 +33,7 @@ function import_form() {