plugin updates

This commit is contained in:
Tony Volpe
2024-06-17 14:48:11 -04:00
parent ecc5fbf831
commit 3751a5a1a6
1318 changed files with 91130 additions and 52250 deletions

View File

@@ -54,8 +54,8 @@ class Field extends acf_field
'name' => 'return_format',
'layout' => 'horizontal',
'choices' => [
'post_object' => __('Form Object', ACF_GF_FIELD_TEXTDOMAIN),
'id' => __('Form ID', ACF_GF_FIELD_TEXTDOMAIN)
'post_object' => __('Form Object', 'acf-gravityforms-add-on'),
'id' => __('Form ID', 'acf-gravityforms-add-on')
],
]);
@@ -128,7 +128,7 @@ class Field extends acf_field
// Check if we're allowing an empty form. If so, create a default option
if ($field['allow_null']) {
$field_options .= '<option value="">' . __('- Select a form -', ACF_GF_FIELD_TEXTDOMAIN) . '</option>';
$field_options .= '<option value="">' . __('- Select a form -', 'acf-gravityforms-add-on') . '</option>';
}
// Loop trough all our choices

View File

@@ -79,8 +79,8 @@ class FieldForV4 extends acf_field
'name' => 'fields[' . $key . '][return_format]',
'value' => $field['return_format'],
'choices' => [
'post_object' => __('Form Object', ACF_GF_FIELD_TEXTDOMAIN),
'id' => __('Form ID', ACF_GF_FIELD_TEXTDOMAIN)
'post_object' => __('Form Object', 'acf-gravityforms-add-on'),
'id' => __('Form ID', 'acf-gravityforms-add-on')
],
'layout' => 'horizontal',
]); ?>

View File

@@ -57,6 +57,6 @@ class Init
*/
public function loadTextDomain()
{
load_plugin_textdomain(ACF_GF_FIELD_TEXTDOMAIN, false, ACF_GF_FIELD_LANGUAGES);
load_plugin_textdomain('acf-gravityforms-add-on', false, ACF_GF_FIELD_LANGUAGES);
}
}

View File

@@ -30,7 +30,7 @@ class Notices
if (!class_exists('GFAPI')) {
$notice = sprintf(__(
'Warning: You need to <a href="%s">Activate Gravityforms</a> in order to use the Advanced Custom Fields: Gravityforms Add-on.',
ACF_GF_FIELD_TEXTDOMAIN
'acf-gravityforms-add-on'
), admin_url('plugins.php'));
$this->createNotice($notice, $inline, $alt);
@@ -50,7 +50,7 @@ class Notices
if (!$this->forms) {
$notice = sprintf(__(
' Warning: There are no active forms. You need to <a href="%s">Create a New Form</a> in order to use the Advanced Custom Fields: Gravityforms Add-on.',
ACF_GF_FIELD_TEXTDOMAIN
'acf-gravityforms-add-on'
), admin_url('admin.php?page=gf_new_form'));
$this->createNotice($notice, $inline, $alt);
@@ -65,7 +65,7 @@ class Notices
if (!function_exists('get_field')) {
$notice = sprintf(__(
'Warning: You need to <a href="%s">Activate Advanced Custom Fields</a> in order to use the Advanced Custom Fields: Gravityforms Add-on.',
ACF_GF_FIELD_TEXTDOMAIN
'acf-gravityforms-add-on'
), admin_url('plugins.php'));
$this->createNotice($notice, $inline, $alt);