Add gravity flow demo

This commit is contained in:
Almira Krdzic
2018-06-28 10:02:07 +02:00
parent 1b5076bf2f
commit 12a5066018
1106 changed files with 317603 additions and 4720 deletions

View File

@@ -0,0 +1,8 @@
[main]
host = https://www.transifex.com
[gravityflowformconnector.gravityflowformconnector]
file_filter = languages/gravityflowformconnector-<lang>.po
source_file = languages/gravityflowformconnector.pot
source_lang = en_US
type = PO

View File

@@ -0,0 +1,806 @@
<?php
/**
* Gravity Flow Form Connector
*
*
* @package GravityFlow
* @subpackage Classes/Extension
* @copyright Copyright (c) 2015-2018, Steven Henty S.L.
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
* @since 1.0
*/
// Make sure Gravity Forms is active and already loaded.
if ( class_exists( 'GFForms' ) ) {
class Gravity_Flow_Form_Connector extends Gravity_Flow_Extension {
private static $_instance = null;
public $_version = GRAVITY_FLOW_FORM_CONNECTOR_VERSION;
public $edd_item_name = GRAVITY_FLOW_FORM_CONNECTOR_EDD_ITEM_NAME;
// The Framework will display an appropriate message on the plugins page if necessary
protected $_min_gravityforms_version = '1.9.10';
protected $_slug = 'gravityflowformconnector';
protected $_path = 'gravityflowformconnector/formconnector.php';
protected $_full_path = __FILE__;
// Title of the plugin to be used on the settings page, form settings and plugins page.
protected $_title = 'Form Connector Extension';
// Short version of the plugin title to be used on menus and other places where a less verbose string is useful.
protected $_short_title = 'Form Connector';
protected $_capabilities = array(
'gravityflowformconnector_uninstall',
'gravityflowformconnector_settings',
);
protected $_capabilities_app_settings = 'gravityflowformconnector_settings';
protected $_capabilities_uninstall = 'gravityflowformconnector_uninstall';
public static $form_submission_validation_error = '';
public static function get_instance() {
if ( self::$_instance == null ) {
self::$_instance = new Gravity_Flow_Form_Connector();
}
return self::$_instance;
}
private function __clone() {
} /* do nothing */
/**
* Adds the cron job hook.
*
* @since 1.3.1-dev
*/
public function pre_init() {
parent::pre_init();
add_action( 'gravityflow_cron', array( $this, 'cron' ), 11 );
}
/**
* Perform tasks when the Gravity Flow cron runs.
*
* @since 1.3.1-dev
*/
public function cron() {
$this->log_debug( __METHOD__ . '() Starting cron.' );
Gravity_Flow_Step_Delete_Entry::cron_delete_local_entries();
$this->log_debug( __METHOD__ . '() Finished cron.' );
}
public function init() {
parent::init();
add_filter( 'gform_pre_render', array( $this, 'filter_gform_pre_render' ) );
add_action( 'gform_after_submission', array( $this, 'action_gform_after_submission' ), 999, 2 );
add_filter( 'gform_form_tag', array( $this, 'filter_gform_form_tag' ), 10, 2 );
add_filter( 'gform_validation', array( $this, 'filter_gform_validation' ) );
add_filter( 'gform_save_field_value', array( $this, 'filter_save_field_value' ), 10, 5 );
add_filter( 'gform_pre_replace_merge_tags', array( $this, 'filter_gform_pre_replace_merge_tags' ), 10, 7 );
add_filter( 'gform_post_payment_completed', array( $this, 'action_gform_post_payment_completed' ), 10, 3 );
add_action( 'gravityflow_workflow_complete', array( $this, 'action_gflow_after_workflow_complete' ), 5, 3 );
add_action( 'gravityflow_entry_detail', array( $this, 'action_gravityflow_entry_detail' ), 10, 3 );
}
/**
* Add the extension capabilities to the Gravity Flow group in Members.
*
* @since 1.2.2-dev
*
* @param array $caps The capabilities and their human readable labels.
*
* @return array
*/
public function get_members_capabilities( $caps ) {
$prefix = $this->get_short_title() . ': ';
$caps['gravityflowformconnector_settings'] = $prefix . __( 'Manage Settings', 'gravityflowformconnector' );
$caps['gravityflowformconnector_uninstall'] = $prefix . __( 'Uninstall', 'gravityflowformconnector' );
return $caps;
}
public function upgrade( $previous_version ) {
if ( ! empty( $previous_version ) && version_compare( '1.0-beta-2', $previous_version, '<' ) ) {
$this->upgrade_steps();
}
}
public function upgrade_steps() {
$forms = GFAPI::get_forms();
foreach ( $forms as $form ) {
$feeds = gravity_flow()->get_feeds( $form['id'] );
foreach ( $feeds as $feed ) {
if ( $feed['meta']['step_type'] == 'form_connector' ) {
if ( $feed['meta']['action'] == 'create' ) {
$feed['meta']['step_type'] = 'new_entry';
} else {
$feed['meta']['step_type'] = 'update_entry';
}
gravity_flow()->update_feed_meta( $feed['id'], $feed['meta'] );
}
}
}
}
public function get_entry_meta( $entry_meta, $form_id ) {
$entry_meta[ 'workflow_parent_entry_id' ] = array(
'label' => 'Parent Workflow ID',
'is_numeric' => true,
'update_entry_meta_callback' => array( $this, 'update_entry_meta_callback' ),
'is_default_column' => false, // this column will be displayed by default on the entry list
'filter' => array(
'operators' => array( 'is' ),
),
);
$entry_meta[ 'workflow_parent_entry_hash' ] = array(
'label' => 'Parent Workflow HASH',
'is_numeric' => false,
'update_entry_meta_callback' => array( $this, 'update_entry_meta_callback' ),
'is_default_column' => false, // this column will be displayed by default on the entry list
'filter' => array(
'operators' => array( 'is' ),
),
);
return $entry_meta;
}
public function update_entry_meta_callback( $key, $entry, $form ) {
if ( $key =='workflow_parent_entry_id' && isset( $_REQUEST['workflow_parent_entry_id'] ) ) {
return absint( $_REQUEST['workflow_parent_entry_id'] );
}
if ( $key =='workflow_parent_entry_hash' && isset( $_REQUEST['workflow_hash'] ) ) {
return $_REQUEST['workflow_hash'];
}
if ( isset( $entry[ $key ] ) ) {
return $entry[ $key ];
}
return '';
}
public function filter_gform_pre_render( $form ) {
$parent_entry_id = absint( rgget( 'workflow_parent_entry_id' ) );
if ( empty( $parent_entry_id ) ) {
return $form;
}
$parent_entry = GFAPI::get_entry( $parent_entry_id );
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
$parent_entry_current_step = $api->get_current_step( $parent_entry );
if ( empty( $parent_entry_current_step ) ) {
return $form;
}
if ( ! $parent_entry_current_step instanceof Gravity_Flow_Step_Form_Submission ) {
return $form;
}
$current_user_assignee_key = gravity_flow()->get_current_user_assignee_key();
if ( ! $current_user_assignee_key || $current_user_assignee_key == 'user_id|0' ) {
return $form;
}
$assignee = new Gravity_Flow_Assignee( $current_user_assignee_key );
if ( $assignee->get_type() == 'user_id' ) {
$user_id = $assignee->get_id();
} else {
$user_id = 0;
}
$form = $this->prepopulate_form( $form, $parent_entry_current_step, $user_id );
return $form;
}
/**
* Set up dynamic population to map the default values from the parent entry.
*
* @param $form
* @param Gravity_Flow_Step_Form_Submission $parent_entry_current_step
* @param bool $user_id
*
* @return mixed
*/
public function prepopulate_form( $form, $parent_entry_current_step, $user_id = false ) {
$parent_entry = $parent_entry_current_step->get_entry();
$parent_form = GFAPI::get_form( $parent_entry['form_id'] );
$mapped_fields = $parent_entry_current_step->do_mapping( $parent_form, $parent_entry );
$mapped_field_ids = array_map( 'intval', array_keys( $mapped_fields ) );
foreach ( $form['fields'] as &$field ) {
if ( ! in_array( $field->id, $mapped_field_ids ) ) {
continue;
}
$value = false;
switch ( $field->get_input_type() ) {
case 'checkbox':
$value = rgar( $mapped_fields, $field->id );
if ( empty( $value ) ) {
$value = array();
foreach ( $field->inputs as $input ) {
$val = rgar( $mapped_fields, (string) $input['id'] );
if ( is_array( $val ) ) {
$val = GFCommon::implode_non_blank( ',', $val );
}
$value[] = $val;
}
}
if ( is_array( $value ) ) {
$value = GFCommon::implode_non_blank( ',', $value );
}
break;
case 'list':
$value = rgar( $mapped_fields, $field->id );
if ( is_serialized( $value ) ) {
$value = unserialize( $value );
$list_values = array();
if ( is_array( $value ) ) {
foreach ( $value as $vals ) {
if ( ! is_array( $vals ) ) {
$vals = array( $vals );
}
$list_values = array_merge( $list_values, array_values( $vals ) );
}
$value = $list_values;
}
} else {
$value = array_map( 'trim', explode( ',', $value ) );
}
break;
case 'date':
$value = GFCommon::date_display( rgar( $mapped_fields, $field->id ), $field->dateFormat, false );
break;
default:
// handle complex fields
$inputs = $field->get_entry_inputs();
if ( is_array( $inputs ) ) {
foreach ( $inputs as &$input ) {
$filter_name = $this->prepopulate_input( $input['id'], rgar( $mapped_fields, (string) $input['id'] ) );
$field->allowsPrepopulate = true;
$input['name'] = $filter_name;
}
$field->inputs = $inputs;
} else {
$value = is_array( rgar( $mapped_fields, $field->id ) ) ? implode( ',', rgar( $mapped_fields, $field->id ) ) : rgar( $mapped_fields, $field->id );
}
}
if ( rgblank( $value ) ) {
continue;
}
$filter_name = self::prepopulate_input( $field->id, $value );
$field->allowsPrepopulate = true;
$field->inputName = $filter_name;
}
return $form;
}
/**
* Add the filter to populate the default field value.
*
* @param $input_id
* @param $value
*
* @return string
*/
public function prepopulate_input( $input_id, $value ) {
$filter_name = 'gravityflow_field_' . str_replace( '.', '_', $input_id );
add_filter( "gform_field_value_{$filter_name}", array( new Gravity_Flow_Form_Connector_Dynamic_Hook( $value, $this ), 'filter_gform_field_value' ) );
return $filter_name;
}
/**
* Filters the field value to prepoulate the value.
*
* @since 1.3.1
*
* @param $filter_values
* @param $prepopulate_value
*
* @return mixed
*/
public function filter_gform_field_value( $filter_values, $prepopulate_value ) {
return $prepopulate_value;
}
/**
* Callback for the gform_after_submission action.
*
* If appropriate, completes the step for the current assignee and processes the workflow.
*
* @param $entry
* @param $form
*/
public function action_gform_after_submission( $entry, $form ) {
$this->log_debug( __METHOD__ . '() starting' );
if ( ! isset( $_POST['workflow_parent_entry_id'] ) ) {
return;
}
$parent_entry_id = absint( rgpost( 'workflow_parent_entry_id' ) );
$hash = rgpost( 'workflow_hash' );
if ( empty( $hash ) ) {
return;
}
$parent_entry = GFAPI::get_entry( $parent_entry_id );
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
$current_step = $api->get_current_step( $parent_entry );
if ( empty( $current_step ) || ! $current_step instanceof Gravity_Flow_Step_Form_Submission ) {
return;
}
$verify_hash = $this->get_workflow_hash( $parent_entry_id, $current_step );
if ( ! hash_equals( $hash, $verify_hash ) ) {
return;
}
$assignee_key = gravity_flow()->get_current_user_assignee_key();
$is_assignee = $current_step->is_assignee( $assignee_key );
if ( ! $is_assignee ) {
return;
}
$assignee = new Gravity_Flow_Assignee( $assignee_key, $current_step );
$note = esc_html__( $current_step->get_name() . ':' . 'Submission received.', 'gravityflowformconnector' );
$current_step->add_note( $note );
$assignee_status = 'pending';
$payment_status = strtolower( rgar( $entry, 'payment_status' ) );
if ( empty( $payment_status ) || $payment_status == 'paid' ) {
$assignee_status = 'complete';
$current_step->process_assignee_status( $assignee, $assignee_status, $form );
} else {
if ( strtolower( $entry['payment_status'] ) == 'processing' ) {
$processing_meta = array(
'parent_entry_id' => $parent_entry_id,
'assignee_key' => $assignee_key,
);
gform_update_meta( $entry['id'], 'workflow_form_submission_step_processing_meta', $processing_meta );
}
}
$this->log_debug( __METHOD__ . '() entry payment status: ' . $entry['payment_status'] );
$this->log_debug( __METHOD__ . '() assignee status: ' . $assignee_status );
if (is_numeric($entry['workflow_step'])) {
$note = esc_html__( $current_step->get_name() . ':' . 'Pending approval', 'gravityflowformconnector' );
$current_step->add_note( $note );
return;
}
$api->process_workflow( $parent_entry_id );
}
public function action_gflow_after_workflow_complete($entry_id, $form, $final_status) {
$entry = GFAPI::get_entry($entry_id);
$parent_entry_id = $entry['workflow_parent_entry_id'];
if (empty($parent_entry_id)) {
return;
}
$parent_entry_id = absint( $parent_entry_id );
$parent_entry = GFAPI::get_entry( $parent_entry_id );
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
$current_step = $api->get_current_step( $parent_entry );
if ( empty( $current_step ) ) {
return;
}
$note = esc_html__( $current_step->get_name() . ':' . 'Approved', 'gravityflowformconnector' );
$current_step->add_note( $note );
$api->process_workflow( $parent_entry_id );
}
public function action_gravityflow_entry_detail( $form, $entry, $current_step ) {
// find all child workflows
$api = new Gravity_Flow_API( $form['id'] );
$current_step = $api->get_current_step( $entry );
if ( empty( $current_step ) || ! $current_step instanceof Gravity_Flow_Step_Form_Submission ) {
return;
}
$target_form = $current_step->get_target_form();
// find child entry
$page_size = 20;
$search_criteria = array(
'status' => 'active',
'field_filters' => array(
array( 'key' => 'workflow_parent_entry_id',
'value' => $entry['id']
),
),
);
$sorting = array( 'key' => 'date_created', 'direction' => 'DESC' );
$paging = array( 'offset' => 0, 'page_size' => $page_size );
$total_count = 0;
$entries = GFAPI::get_entries( $target_form['id'], $search_criteria, $sorting, $paging, $total_count );
if (empty($entries)) {
return;
}
$child_entry = $entries[0];
?>
<div>
<?php
$text = esc_html__( 'View entry', 'gravityflowformconnector' );
$query_args = array(
'page' => 'gravityflow-inbox',
'view' => 'entry',
'id' => $target_form['id'],
'lid' => $child_entry['id'],
);
$url = 'http://localhost/workflow-inbox/?page=gravityflow-inbox&view=entry&id=' . $target_form['id'] . '&lid=' . $child_entry['id'];
echo '<br /><div class="gravityflow-action-buttons">';
echo sprintf( '<a href="%s" target="_blank" class="button button-large button-primary">%s</a><br><br>', $url, $text );
echo '</div>';
?>
</div>
<?php
}
/**
* Target for the gform_form_tag filter. Adds the parent entry ID and hash as a hidden fields.
*
* @param $form_tag
* @param $form
*
* @return string
*/
public function filter_gform_form_tag( $form_tag, $form ) {
if ( ! isset( $_REQUEST['workflow_parent_entry_id'] ) ) {
return $form_tag;
}
$parent_entry_id = absint( rgget( 'workflow_parent_entry_id' ) );
$hash = sanitize_text_field( rgget( 'workflow_hash' ) );
if ( empty( $hash ) ) {
return $form_tag;
}
$parent_entry = GFAPI::get_entry( $parent_entry_id );
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
$current_step = $api->get_current_step( $parent_entry );
if ( empty( $current_step ) ) {
return $form_tag;
}
$this->log_debug( __METHOD__ . '() - current step: ' . $current_step->get_name() . ' for entry id ' . $parent_entry_id );
if ( ! $current_step instanceof Gravity_Flow_Step_Form_Submission ) {
$this->log_debug( __METHOD__ . '(): adding validation error; not form submission step' );
$form_tag .= sprintf( '<div class="validation_error">%s</div>', esc_html__( 'The link to this form is no longer valid.', 'gravityflowformconnector' ) );
return $form_tag;
}
$assignee_key = gravity_flow()->get_current_user_assignee_key();
$is_assignee = $current_step->is_assignee( $assignee_key );
if ( ! $is_assignee ) {
$this->log_debug( __METHOD__ . '(): adding validation error; not assignee' );
$message = esc_html__( 'The link to this form is no longer valid.', 'gravityflowformconnector' );
$form_tag .= sprintf( '<div class="validation_error">%s</div>', $message );
return $form_tag;
}
$hash_tag = sprintf( '<input type="hidden" name="workflow_hash" value="%s"/>', $hash );
$parent_entry_id_tag = sprintf( '<input type="hidden" name="workflow_parent_entry_id" value="%s"/>', $parent_entry_id );
return $form_tag . $parent_entry_id_tag . $hash_tag;
}
/**
* Callback for the gform_validation filter.
*
* Validates that the parent ID is valid and that the entry is on a form submission step.
*
* @param $validation_result
*
* @return mixed
*/
public function filter_gform_validation( $validation_result ) {
$parent_entry_id = absint( rgpost( 'workflow_parent_entry_id' ) );
if ( empty( $parent_entry_id ) ) {
return $validation_result;
}
$hash = rgpost( 'workflow_hash' );
if ( empty( $hash ) ) {
return $validation_result;
}
$parent_entry = GFAPI::get_entry( $parent_entry_id );
if ( is_wp_error( $parent_entry ) ) {
$validation_result['is_valid'] = false;
$this->customize_validation_message( __( 'This form is no longer valid.', 'gravityflowformconnector' ) );
add_filter( 'gform_validation_message', array( $this, 'filter_gform_validation_message' ), 10, 2 );
return $validation_result;
}
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
$current_step = $api->get_current_step( $parent_entry );
if ( empty( $current_step ) ) {
$this->customize_validation_message( __( 'This form is no longer accepting submissions.', 'gravityflowformconnector' ) );
$validation_result['is_valid'] = false;
return $validation_result;
}
$assignee_key = gravity_flow()->get_current_user_assignee_key();
$is_assignee = $current_step->is_assignee( $assignee_key );
if ( ! $is_assignee ) {
$validation_result['is_valid'] = false;
$this->customize_validation_message( __( 'Your input is no longer required.', 'gravityflowformconnector' ) );
return $validation_result;
}
$verify_hash = $this->get_workflow_hash( $parent_entry_id, $current_step );
if ( ! hash_equals( $hash, $verify_hash ) ) {
$this->customize_validation_message( __( 'There was a problem with you submission. Please use the link provided.', 'gravityflowformconnector' ) );
$validation_result['is_valid'] = false;
}
return $validation_result;
}
/**
* Returns a hash based on the current entry ID and the step timestamp.
*
* @param int $parent_entry_id
* @param Gravity_Flow_Step $step
*
* @return string
*/
public function get_workflow_hash( $parent_entry_id, $step ) {
return wp_hash( 'workflow_parent_entry_id:' . $parent_entry_id . $step->get_step_timestamp() );
}
/**
* Sets up the custom validation message.
*
* @param $message
*/
public function customize_validation_message( $message ) {
self::$form_submission_validation_error = $message;
add_filter( 'gform_validation_message', array( $this, 'filter_gform_validation_message' ), 10, 2 );
}
/**
* Callback for the gform_validation_message filter.
*
* Customizes the validation message.
*
* @param $message
* @param $form
*
* @return string
*/
public function filter_gform_validation_message( $message, $form ) {
return "<div class='validation_error'>" . esc_html( self::$form_submission_validation_error ) . '</div>';
}
/**
* Target for the gform_save_field_value filter.
*
* Ensures that the values for hidden and administrative fields are mapped from the source entry.
*
*
* @param string $value
* @param array $entry
* @param GF_Field $field
* @param array $form
* @param string $input_id
*
* @return mixed
*/
public function filter_save_field_value( $value, $entry, $field, $form, $input_id ) {
$parent_entry_id = absint( rgpost( 'workflow_parent_entry_id' ) );
if ( empty( $parent_entry_id ) ) {
return $value;
}
$hash = rgpost( 'workflow_hash' );
if ( empty( $hash ) ) {
return $value;
}
if ( ! $field instanceof GF_Field ) {
return $value;
}
if ( ! ( $field->get_input_type() == 'hidden' || $field->is_administrative() || $field->visibility == 'hidden' ) ) {
return $value;
}
$parent_entry = GFAPI::get_entry( $parent_entry_id );
if ( is_wp_error( $parent_entry ) ) {
return $value;
}
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
/* @var Gravity_Flow_Step_Form_Submission $current_step */
$current_step = $api->get_current_step( $parent_entry );
if ( empty( $current_step ) || ! $current_step instanceof Gravity_Flow_Step_Form_Submission ) {
return $value;
}
$parent_entry = $current_step->get_entry();
$mapped_entry = $current_step->do_mapping( $form, $parent_entry );
return isset( $mapped_entry[ $input_id ] ) ? $mapped_entry[ $input_id ] : $value;
}
/**
* Target for the gform_pre_replace_merge_tags filter. Replaces the workflow_timeline and created_by merge tags.
*
*
* @param string $text
* @param array $form
* @param array $entry
* @param bool $url_encode
* @param bool $esc_html
* @param bool $nl2br
* @param string $format
*
* @return string
*/
public function filter_gform_pre_replace_merge_tags( $text, $form, $entry, $url_encode, $esc_html, $nl2br, $format ) {
$api = new Gravity_Flow_API( $form['id'] );
$step = $api->get_current_step( $entry );
if ( empty( $step ) ) {
return $text;
}
if ( ! $step instanceof Gravity_Flow_Step_Form_Submission ) {
return $text;
}
$assignee_key = gravity_flow()->get_current_user_assignee_key();
$is_assignee = $step->is_assignee( $assignee_key );
if ( ! $is_assignee ) {
return $text;
}
$assignee = new Gravity_Flow_Assignee( $assignee_key, $entry );
$text = $step->replace_variables( $text, $assignee );
return $text;
}
public function action_gform_post_payment_completed( $entry, $action ) {
$this->log_debug( __METHOD__ . '() starting' );
$processing_meta = gform_get_meta( $entry['id'], 'workflow_form_submission_step_processing_meta' );
if ( $processing_meta ) {
$this->log_debug( __METHOD__ . '() processing meta: ' . print_r( $processing_meta, 1 ) );
$assignee_key = $processing_meta['assignee_key'];
$parent_entry_id = $processing_meta['parent_entry_id'];
$parent_entry = GFAPI::get_entry( $parent_entry_id );
$api = new Gravity_Flow_API( $parent_entry['form_id'] );
$current_step = $api->get_current_step( $parent_entry );
if ( empty( $current_step ) ) {
$this->log_debug( __METHOD__ . '() parent entry not on a workflow step. Bailing.' );
return;
}
if ( ! $current_step instanceof Gravity_Flow_Step_Form_Submission ) {
$this->log_debug( __METHOD__ . '() parent entry not on a form submission step. Bailing.' );
return;
}
$is_assignee = $current_step->is_assignee( $assignee_key );
if ( ! $is_assignee ) {
$this->log_debug( __METHOD__ . '() assignee in the meta is not an assignee. Bailing.' );
return;
}
$assignee = new Gravity_Flow_Assignee( $assignee_key, $current_step );
$current_step->process_assignee_status( $assignee, 'complete', $current_step->get_form() );
$api->process_workflow( $parent_entry_id );
}
}
}
}

View File

@@ -0,0 +1,83 @@
<?php
/*
Plugin Name: Gravity Flow Form Connector
Plugin URI: https://gravityflow.io
Description: Form Connector Extension for Gravity Flow.
Version: 1.4-1-dev
Author: Gravity Flow
Author URI: https://gravityflow.io
License: GPL-3.0+
------------------------------------------------------------------------
Copyright 2015-2018 Steven Henty S.L.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define( 'GRAVITY_FLOW_FORM_CONNECTOR_VERSION', '1.4.1-dev' );
define( 'GRAVITY_FLOW_FORM_CONNECTOR_EDD_ITEM_NAME', 'Form Connector' );
add_action( 'gravityflow_loaded', array( 'Gravity_Flow_Form_Connector_Bootstrap', 'load' ), 1 );
class Gravity_Flow_Form_Connector_Bootstrap {
public static function load() {
require_once( 'includes/class-dynamic-hook.php' );
require_once( 'includes/class-step-form-submission.php' );
require_once( 'includes/class-step-new-entry.php' );
require_once( 'includes/class-step-update-entry.php' );
require_once( 'includes/class-step-delete-entry.php' );
Gravity_Flow_Steps::register( new Gravity_Flow_Step_Form_Submission() );
Gravity_Flow_Steps::register( new Gravity_Flow_Step_New_Entry() );
Gravity_Flow_Steps::register( new Gravity_Flow_Step_Update_Entry() );
Gravity_Flow_Steps::register( new Gravity_Flow_Step_Delete_Entry() );
require_once( 'class-form-connector.php' );
// Registers the class name with GFAddOn.
GFAddOn::register( 'Gravity_Flow_Form_Connector' );
}
}
function gravity_flow_form_connector() {
if ( class_exists( 'Gravity_Flow_Form_Connector' ) ) {
return Gravity_Flow_Form_Connector::get_instance();
}
}
add_action( 'admin_init', 'gravityflow_form_connector_edd_plugin_updater', 0 );
function gravityflow_form_connector_edd_plugin_updater() {
if ( ! function_exists( 'gravity_flow_form_connector' ) ) {
return;
}
$gravity_flow_form_connector = gravity_flow_form_connector();
if ( $gravity_flow_form_connector ) {
$settings = $gravity_flow_form_connector->get_app_settings();
$license_key = trim( rgar( $settings, 'license_key' ) );
$edd_updater = new Gravity_Flow_EDD_SL_Plugin_Updater( GRAVITY_FLOW_EDD_STORE_URL, __FILE__, array(
'version' => GRAVITY_FLOW_FORM_CONNECTOR_VERSION,
'license' => $license_key,
'item_name' => GRAVITY_FLOW_FORM_CONNECTOR_EDD_ITEM_NAME,
'author' => 'Steven Henty',
) );
}
}

View File

@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@@ -0,0 +1,65 @@
<?php
/**
* Allows values to be injected into filters and actions.
*
* @since 1.3.1
*
* Class Gravity_Flow_Form_Connector_Dynamic_Hook
*/
class Gravity_Flow_Form_Connector_Dynamic_Hook {
/**
* @since 1.3.1
*
* @var mixed
*/
private $values;
/**
* @since 1.3.1
*
* @var mixed
*/
private $class = null;
/**
* Stores the values for later use.
*
* @since 1.3.1
*
* @param mixed $values
* @param null $class
*/
public function __construct( $values, $class = null ) {
$this->values = $values;
if ( $class ) {
$this->class = $class;
}
}
/**
* Runs the hook callback function.
*
* @since 1.3.1
*
* @param string $callback The name of the method.
* @param array $filter_args The args called by the filter.
*
* @return mixed
*/
public function __call( $callback, $filter_args ) {
$args = array( $filter_args, $this->values );
if ( $this->class ) {
if ( is_callable( array( $this->class, $callback ) ) ) {
return call_user_func_array( array( $this->class, $callback ), $args );
}
}
if ( is_callable( $callback ) ) {
return call_user_func_array( $callback, $args );
}
}
}

View File

@@ -0,0 +1,268 @@
<?php
/**
* Gravity Flow Delete Entry Step
*
*
* @package GravityFlow
* @subpackage Classes/Step
* @copyright Copyright (c) 2015-2018, Steven Henty S.L.
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
* @since 1.3.1-dev
*/
if ( ! class_exists( 'Gravity_Flow_Step_New_Entry' ) ) {
require_once( 'class-step-new-entry.php' );
}
class Gravity_Flow_Step_Delete_Entry extends Gravity_Flow_Step_New_Entry {
public $_step_type = 'delete_entry';
public function get_label() {
return esc_html__( 'Delete an Entry', 'gravityflowformconnector' );
}
/**
* Returns the array of settings for this step.
*
* @return array
*/
public function get_settings() {
$settings = array(
'title' => esc_html__( 'Delete an Entry', 'gravityflow' ),
'fields' => array(
array(
'name' => 'server_type',
'label' => esc_html__( 'Site', 'gravityflowformconnector' ),
'type' => 'radio',
'default_value' => 'local',
'horizontal' => true,
'onchange' => 'jQuery(this).closest("form").submit();',
'choices' => array(
array( 'label' => esc_html__( 'This site', 'gravityflowformconnector' ), 'value' => 'local' ),
array(
'label' => esc_html__( 'A different site', 'gravityflowformconnector' ),
'value' => 'remote'
),
),
),
array(
'name' => 'remote_site_url',
'label' => esc_html__( 'Site Url', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'remote_public_key',
'label' => esc_html__( 'Public Key', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'remote_private_key',
'label' => esc_html__( 'Private Key', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'delete_action',
'label' => esc_html__( 'Delete Action', 'gravityflowformconnector' ),
'type' => 'radio',
'default_value' => 'permanently',
'horizontal' => true,
'choices' => array(
array(
'label' => esc_html__( 'Permanently delete the entry', 'gravityflowformconnector' ),
'value' => 'permanently',
),
array(
'label' => esc_html__( 'Move the entry to the trash', 'gravityflowformconnector' ),
'value' => 'trash',
),
),
'dependency' => array(
'field' => 'server_type',
'values' => array( 'local' ),
),
),
),
);
$entry_id_field = array(
'name' => 'delete_entry_id',
'label' => esc_html__( 'Entry ID Field', 'gravityflowformconnector' ),
'type' => 'field_select',
'tooltip' => __( 'Select the field which will contain the entry ID of the entry that will be deleted. This is used to lookup the entry so it can be deleted.', 'gravityflowformconnector' ),
'required' => true,
);
if ( function_exists( 'gravity_flow_parent_child' ) ) {
$parent_form_choices = array();
$entry_meta = gravity_flow_parent_child()->get_entry_meta( array(), rgget( 'id' ) );
foreach ( $entry_meta as $meta_key => $meta ) {
$parent_form_choices[] = array( 'value' => $meta_key, 'label' => $meta['label'] );
}
if ( ! empty( $parent_form_choices ) ) {
$entry_id_field['args']['append_choices'] = $parent_form_choices;
}
}
$self_entry_id_choice = array(
array(
'label' => esc_html__( 'Entry ID (Self)', 'gravityflowformconnector' ),
'value' => 'id',
),
);
if ( ! isset( $entry_id_field['args']['append_choices'] ) ) {
$entry_id_field['args']['append_choices'] = array();
}
$entry_id_field['args']['append_choices'] = array_merge( $entry_id_field['args']['append_choices'], $self_entry_id_choice );
$settings['fields'][] = $entry_id_field;
return $settings;
}
/**
* Returns the ID of the entry to be deleted.
*/
public function get_target_entry_id() {
$entry = $this->get_entry();
$form = $this->get_form();
$target_entry_id = rgar( $entry, $this->delete_entry_id );
/**
* Allow the ID of the entry to be deleted to be overidden.
*
* @param string|int $target_entry_id The ID of the entry to be deleted.
* @param array $entry The entry being processed by the current step.
* @param array $form The form which created the current entry.
* @param Gravity_Flow_Step_Delete_Entry $step The step currently being processed.
*/
$target_entry_id = apply_filters( 'gravityflowformconnector_delete_entry_id', $target_entry_id, $entry, $form, $this );
return $target_entry_id;
}
/**
* Deletes a local entry.
*
* @return bool Has the step finished?
*/
public function process_local_action() {
$target_entry_id = $this->get_target_entry_id();
if ( empty( $target_entry_id ) ) {
return true;
}
$this->log_debug( __METHOD__ . '(): running for entry #' . $target_entry_id );
if ( $this->delete_action === 'trash' ) {
$result = GFAPI::update_entry_property( $target_entry_id, 'status', 'trash' );
$this->log_debug( __METHOD__ . '() trashed entry: ' . var_export( $result, 1 ) );
if ( $result ) {
$this->add_note( esc_html__( 'Moved entry to the trash.', 'gravityflowformconnector' ) );
}
} elseif ( $target_entry_id == $this->get_entry_id() ) {
gform_add_meta( $target_entry_id, 'workflow_delete_entry', 1 );
$this->log_debug( __METHOD__ . '(): scheduled for deletion.' );
$this->add_note( esc_html__( 'Scheduled entry for deletion on workflow completion.', 'gravityflowformconnector' ) );
} else {
$result = GFAPI::delete_entry( $target_entry_id );
$this->log_debug( __METHOD__ . '(): deleted entry => ' . var_export( $result, 1 ) );
}
return true;
}
/**
* Deletes a remote entry.
*
* @return bool Has the step finished?
*/
public function process_remote_action() {
$target_entry_id = $this->get_target_entry_id();
if ( empty( $target_entry_id ) ) {
return true;
}
$this->delete_remote_entry( $target_entry_id );
return true;
}
/**
* Sends a request to delete a remote entry.
*
* @param int $entry_id The ID of the entry to be deleted.
*
* @return bool
*/
public function delete_remote_entry( $entry_id ) {
$route = 'entries/' . absint( $entry_id );
$method = 'DELETE';
$this->log_debug( __METHOD__ . '(): running for entry #' . $entry_id );
$result = $this->remote_request( $route, $method );
$this->log_debug( __METHOD__ . '(): result => ' . print_r( $result, 1 ) );
return $result;
}
/**
* Deletes the local entries when the Gravity Flow cron is processed.
*
* @return void
*/
public static function cron_delete_local_entries() {
gravity_flow_form_connector()->log_debug( __METHOD__ . '(): Starting.' );
$form_ids = gravity_flow()->get_workflow_form_ids();
if ( empty( $form_ids ) ) {
gravity_flow_form_connector()->log_debug( __METHOD__ . '(): aborting; no applicable forms.' );
return;
}
$criteria = array(
'status' => 'active',
'field_filters' => array(
array(
'key' => 'workflow_delete_entry',
'value' => 1,
),
array(
'key' => 'workflow_final_status',
'operator' => 'not in',
'value' => array( 'pending', 'cancelled' ),
)
),
);
$entry_ids = GFAPI::get_entry_ids( 0, $criteria );
foreach ( $entry_ids as $entry_id ) {
gravity_flow_form_connector()->log_debug( __METHOD__ . '(): deleting entry #' . $entry_id );
$result = GFAPI::delete_entry( $entry_id );
gravity_flow_form_connector()->log_debug( __METHOD__ . '(): result => ' . print_r( $result, 1 ) );
}
gravity_flow_form_connector()->log_debug( __METHOD__ . '(): Finished. Processed: ' . count( $entry_ids ) );
}
}

View File

@@ -0,0 +1,797 @@
<?php
/**
* Gravity Flow Form Submission Step
*
*
* @package GravityFlow
* @subpackage Classes/Step
* @copyright Copyright (c) 2015-2018, Steven Henty S.L.
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
* @since 1.0
*/
if ( class_exists( 'Gravity_Flow_Step' ) ) {
class Gravity_Flow_Step_Form_Submission extends Gravity_Flow_Step {
public $_step_type = 'form_submission';
public function get_label() {
return esc_html__( 'Form Submission', 'gravityflowformconnector' );
}
public function get_settings() {
$settings_api = $this->get_common_settings_api();
$forms = $this->get_forms();
$form_choices[] = array( 'label' => esc_html__( 'Select a Form', 'gravityflowformconnector' ), 'value' => '' );
foreach ( $forms as $form ) {
$form_choices[] = array( 'label' => $form->title, 'value' => $form->id );
}
$account_choices = gravity_flow()->get_users_as_choices();
$type_field_choices = array(
array( 'label' => __( 'Select', 'gravityflowformconnector' ), 'value' => 'select' ),
array( 'label' => __( 'Conditional Routing', 'gravityflowformconnector' ), 'value' => 'routing' ),
);
$page_choices = $this->get_page_choices();
$settings = array(
'title' => esc_html__( 'Form Submission', 'gravityflowformconnector' ),
'fields' => array(
$settings_api->get_setting_assignee_type(),
$settings_api->get_setting_assignees(),
$settings_api->get_setting_assignee_routing(),
array(
'id' => 'assignee_policy',
'name' => 'assignee_policy',
'label' => __( 'Assignee Policy', 'gravityflowformconnector' ),
'tooltip' => __( 'Define how this step should be processed. If all assignees must complete this step then the entry will require input from every assignee before the step can be completed. If the step is assigned to a role only one user in that role needs to complete the step.', 'gravityflowformconnector' ),
'type' => 'radio',
'default_value' => 'all',
'choices' => array(
array(
'label' => __( 'At least one assignee must complete this step', 'gravityflowformconnector' ),
'value' => 'any',
),
array(
'label' => __( 'All assignees must complete this step', 'gravityflowformconnector' ),
'value' => 'all',
),
),
),
$settings_api->get_setting_instructions(),
$settings_api->get_setting_display_fields(),
$settings_api->get_setting_notification_tabs( array(
array(
'label' => __( 'Assignee email', 'gravityflowformconnector' ),
'id' => 'tab_assignee_notification',
'fields' => $settings_api->get_setting_notification( array(
'checkbox_default_value' => true,
'default_message' => __( 'Please submit the following form: {workflow_form_submission_link}', 'gravityflowformconnector' ),
) ),
),
) ),
array(
'name' => 'target_form_id',
'label' => esc_html__( 'Form', 'gravityflowformconnector' ),
'tooltip' => __( 'Select the form to be used for this form submission step.', 'gravityflowformconnector' ),
'type' => 'select',
'onchange' => "jQuery(this).closest('form').submit();",
'choices' => $form_choices,
),
array(
'name' => 'submit_page',
'tooltip' => __( 'Select the page to be used for the form submission. This can be the Workflow Submit Page in the WordPress Admin Dashboard or you can choose a page with either a Gravity Flow submit shortcode or a Gravity Forms shortcode.', 'gravityflowformconnector' ),
'label' => __( 'Submission Page', 'gravityflowformconnector' ),
'type' => 'select',
'default_value' => 'admin',
'choices' => $page_choices,
),
),
);
// Use Generic Map setting to allow custom values.
$mapping_field = array(
'name' => 'mappings',
'label' => esc_html__( 'Field Mapping', 'gravityflowformconnector' ),
'type' => 'generic_map',
'enable_custom_key' => false,
'enable_custom_value' => true,
'key_field_title' => esc_html__( 'Field', 'gravityflowformconnector' ),
'value_field_title' => esc_html__( 'Value', 'gravityflowformconnector' ),
'value_choices' => $this->value_mappings(),
'key_choices' => $this->field_mappings(),
'tooltip' => '<h6>' . esc_html__( 'Mapping', 'gravityflowformconnector' ) . '</h6>' . esc_html__( 'Map the fields of this form to the selected form. Values from this form will be saved in the entry in the selected form' , 'gravityflowformconnector' ),
'dependency' => array(
'field' => 'target_form_id',
'values' => array( '_notempty_' ),
),
);
$settings['fields'][] = $mapping_field;
return $settings;
}
/**
* Prepare field map.
*
* @return array
*/
public function field_mappings() {
$target_form_id = $this->get_setting( 'target_form_id' );
if ( empty( $target_form_id ) ) {
return false;
}
$target_form = $this->get_target_form();
if ( empty( $target_form ) ) {
return false;
}
$fields = $this->get_field_map_choices( $target_form );
return $fields;
}
/**
* Prepare value map.
*
* @return array
*/
public function value_mappings() {
$form = $this->get_form();
$fields = $this->get_field_map_choices( $form );
return $fields;
}
function process() {
$this->log_debug( __METHOD__ . '() starting' );
$complete = $this->assign();
$note = $this->get_name() . ': ' . esc_html__( 'Pending.', 'gravityflowformconnector' );
$this->add_note( $note );
$this->log_debug( __METHOD__ . '() complete: ' . $complete );
return $complete;
}
public function status_evaluation() {
$assignee_details = $this->get_assignees();
$step_status = 'complete';
foreach ( $assignee_details as $assignee ) {
$user_status = $assignee->get_status();
if ( $this->type == 'select' && $this->assignee_policy == 'any' ) {
if ( $user_status == 'complete' ) {
$step_status = 'complete';
break;
} else {
$step_status = 'pending';
}
} else if ( empty( $user_status ) || $user_status == 'pending' ) {
$step_status = 'pending';
}
}
return $step_status;
}
public function get_forms() {
$forms = GFFormsModel::get_forms();
return $forms;
}
public function get_target_form() {
$target_form_id = $this->get_setting( 'target_form_id' );
$form = GFAPI::get_form( $target_form_id );
return $form;
}
public function get_field_map_choices( $form, $field_type = null, $exclude_field_types = null ) {
$fields = array();
// Setup first choice
if ( rgblank( $field_type ) || ( is_array( $field_type ) && count( $field_type ) > 1 ) ) {
$first_choice_label = __( 'Select a Field', 'gravityflowformconnector' );
} else {
$type = is_array( $field_type ) ? $field_type[0] : $field_type;
$type = ucfirst( GF_Fields::get( $type )->get_form_editor_field_title() );
$first_choice_label = sprintf( __( 'Select a %s Field', 'gravityflowformconnector' ), $type );
}
$fields[] = array( 'value' => '', 'label' => $first_choice_label );
// if field types not restricted add the default fields and entry meta
if ( is_null( $field_type ) ) {
$fields[] = array( 'value' => 'id', 'label' => esc_html__( 'Entry ID', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'date_created', 'label' => esc_html__( 'Entry Date', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'ip', 'label' => esc_html__( 'User IP', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'source_url', 'label' => esc_html__( 'Source Url', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'created_by', 'label' => esc_html__( 'Created By', 'gravityflowformconnector' ) );
$entry_meta = GFFormsModel::get_entry_meta( $form['id'] );
foreach ( $entry_meta as $meta_key => $meta ) {
$fields[] = array( 'value' => $meta_key, 'label' => rgars( $entry_meta, "{$meta_key}/label" ) );
}
}
// Populate form fields
if ( is_array( $form['fields'] ) ) {
foreach ( $form['fields'] as $field ) {
$input_type = $field->get_input_type();
$inputs = $field->get_entry_inputs();
$field_is_valid_type = ( empty( $field_type ) || ( is_array( $field_type ) && in_array( $input_type, $field_type ) ) || ( ! empty( $field_type ) && $input_type == $field_type ) );
if ( is_null( $exclude_field_types ) ) {
$exclude_field = false;
} elseif ( is_array( $exclude_field_types ) ) {
if ( in_array( $input_type, $exclude_field_types ) ) {
$exclude_field = true;
} else {
$exclude_field = false;
}
} else {
//not array, so should be single string
if ( $input_type == $exclude_field_types ) {
$exclude_field = true;
} else {
$exclude_field = false;
}
}
if ( is_array( $inputs ) && $field_is_valid_type && ! $exclude_field ) {
//If this is an address field, add full name to the list
if ( $input_type == 'address' ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Full', 'gravityflowformconnector' ) . ')',
);
}
//If this is a name field, add full name to the list
if ( $input_type == 'name' ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Full', 'gravityflowformconnector' ) . ')',
);
}
//If this is a checkbox field, add to the list
if ( $input_type == 'checkbox' ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Selected', 'gravityflowformconnector' ) . ')',
);
}
foreach ( $inputs as $input ) {
$fields[] = array(
'value' => $input['id'],
'label' => GFCommon::get_label( $field, $input['id'] ),
);
}
} elseif ( $input_type == 'list' && $field->enableColumns && $field_is_valid_type && ! $exclude_field ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Full', 'gravityflowformconnector' ) . ')',
);
$col_index = 0;
foreach ( $field->choices as $column ) {
$fields[] = array(
'value' => $field->id . '.' . $col_index,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html( rgar( $column, 'text' ) ) . ')',
);
$col_index ++;
}
} elseif ( ! rgar( $field, 'displayOnly' ) && $field_is_valid_type && ! $exclude_field ) {
$fields[] = array( 'value' => $field->id, 'label' => GFCommon::get_label( $field ) );
}
}
}
return $fields;
}
/**
* Maps the field values of the entry to the target form.
*
* @param $form
* @param $entry
*
* @return array $new_entry
*/
public function do_mapping( $form, $entry ) {
$new_entry = array();
if ( ! is_array( $this->mappings ) ) {
return $new_entry;
}
$target_form = $this->get_target_form();
if ( ! $target_form ) {
$this->log_debug( __METHOD__ . '(): aborting; unable to get target form.' );
return $new_entry;
}
foreach ( $this->mappings as $mapping ) {
if ( rgblank( $mapping['key'] ) ) {
continue;
}
$new_entry = $this->add_mapping_to_entry( $mapping, $entry, $new_entry, $form, $target_form );
}
return apply_filters( 'gravityflowformconnector_' . $this->get_type(), $new_entry, $entry, $form, $target_form, $this );
}
/**
* Add the mapped value to the new entry.
*
* @param array $mapping The properties for the mapping being processed.
* @param array $entry The entry being processed by this step.
* @param array $new_entry The entry to be added or updated.
* @param array $form The form being processed by this step.
* @param array $target_form The target form for the entry being added or updated.
*
* @return array
*/
public function add_mapping_to_entry( $mapping, $entry, $new_entry, $form, $target_form ) {
$target_field_id = trim( $mapping['key'] );
$source_field_id = (string) $mapping['value'];
$source_field = GFFormsModel::get_field( $form, $source_field_id );
if ( is_object( $source_field ) ) {
$is_full_source = $source_field_id === (string) intval( $source_field_id );
$source_field_inputs = $source_field->get_entry_inputs();
$target_field = GFFormsModel::get_field( $target_form, $target_field_id );
if ( $is_full_source && is_array( $source_field_inputs ) ) {
$is_full_target = $target_field_id === (string) intval( $target_field_id );
$target_field_inputs = is_object( $target_field ) ? $target_field->get_entry_inputs() : false;
if ( $is_full_target && is_array( $target_field_inputs ) ) {
foreach ( $source_field_inputs as $input ) {
$input_id = str_replace( $source_field_id . '.', $target_field_id . '.', $input['id'] );
$source_field_value = $this->get_source_field_value( $entry, $source_field, $input['id'] );
$new_entry[ $input_id ] = $this->get_target_field_value( $source_field_value, $target_field, $input_id );
}
} else {
$new_entry[ $target_field_id ] = $source_field->get_value_export( $entry, $source_field_id, true );
}
} else {
$source_field_value = $this->get_source_field_value( $entry, $source_field, $source_field_id );
$new_entry[ $target_field_id ] = $this->get_target_field_value( $source_field_value, $target_field, $target_field_id );
}
} elseif ( $source_field_id == 'gf_custom' ) {
$new_entry[ $target_field_id ] = GFCommon::replace_variables( $mapping['custom_value'], $form, $entry, false, false, false, 'text' );
} else {
$new_entry[ $target_field_id ] = $entry[ $source_field_id ];
}
return $new_entry;
}
/**
* Get the source field value.
*
* Returns the choice text instead of the unique value for choice based poll, quiz and survey fields.
*
* The source field choice unique value will not match the target field unique value.
*
* @param array $entry The entry being processed by this step.
* @param GF_Field $source_field The source field being processed.
* @param string $source_field_id The ID of the source field or input.
*
* @return string
*/
public function get_source_field_value( $entry, $source_field, $source_field_id ) {
if ( ! isset( $entry[ $source_field_id ] ) ) {
return '';
}
$field_value = $entry[ $source_field_id ];
if ( in_array( $source_field->type, array( 'poll', 'quiz', 'survey' ) ) ) {
if ( $source_field->inputType == 'rank' ) {
$values = explode( ',', $field_value );
foreach ( $values as &$value ) {
$value = $this->get_source_choice_text( $value, $source_field );
}
return implode( ',', $values );
}
if ( $source_field->inputType == 'likert' && $source_field->gsurveyLikertEnableMultipleRows ) {
list( $row_value, $field_value ) = rgexplode( ':', $field_value, 2 );
}
return $this->get_source_choice_text( $field_value, $source_field );
}
return $field_value;
}
/**
* Get the value to be set for the target field.
*
* Returns the target fields choice unique value instead of the source field choice text for choice based poll, quiz and survey fields.
*
* @param string $field_value The source field value.
* @param GF_Field $target_field The target field being processed.
* @param string $target_field_id The ID of the target field or input.
*
* @return string
*/
public function get_target_field_value( $field_value, $target_field, $target_field_id ) {
if ( is_object( $target_field ) && in_array( $target_field->type, array( 'poll', 'quiz', 'survey' ) ) ) {
if ( $target_field->inputType == 'rank' ) {
$values = explode( ',', $field_value );
foreach ( $values as &$value ) {
$value = $this->get_target_choice_value( $value, $target_field );
}
return implode( ',', $values );
}
$field_value = $this->get_target_choice_value( $field_value, $target_field );
if ( $target_field->inputType == 'likert' && $target_field->gsurveyLikertEnableMultipleRows ) {
$row_value = $target_field->get_row_id( $target_field_id );
$field_value = sprintf( '%s:%s', $row_value, $field_value );
}
}
return $field_value;
}
/**
* Gets the choice text for the supplied choice value.
*
* @param string $selected_choice The choice value from the source field.
* @param GF_Field $source_field The source field being processed.
*
* @return string
*/
public function get_source_choice_text( $selected_choice, $source_field ) {
return $this->get_choice_property( $selected_choice, $source_field->choices, 'value', 'text' );
}
/**
* Gets the choice value for the supplied choice text.
*
* @param string $selected_choice The choice text from the source field.
* @param GF_Field $target_field The target field being processed.
*
* @return string
*/
public function get_target_choice_value( $selected_choice, $target_field ) {
return $this->get_choice_property( $selected_choice, $target_field->choices, 'text', 'value' );
}
/**
* Helper to get the specified choice property for the selected choice.
*
* @param string $selected_choice The selected choice value or text.
* @param array $choices The field choices.
* @param string $compare_property The choice property the $selected_choice is to be compared against.
* @param string $return_property The choice property to be returned.
*
* @return string
*/
public function get_choice_property( $selected_choice, $choices, $compare_property, $return_property ) {
if ( $selected_choice && is_array( $choices ) ) {
foreach ( $choices as $choice ) {
if ( $choice[ $compare_property ] == $selected_choice ) {
return $choice[ $return_property ];
}
}
}
return $selected_choice;
}
/**
* Display the workflow detail box for this step.
*
* @param array $form The current form.
* @param array $args The page arguments.
*/
public function workflow_detail_box( $form, $args ) {
?>
<div>
<?php
$this->maybe_display_assignee_status_list( $args, $form );
$assignee_status = $this->get_current_assignee_status();
list( $role, $role_status ) = $this->get_current_role_status();
$can_submit = $assignee_status == 'pending' || $role_status == 'pending';
if ( $can_submit ) {
$assignee_key = gravity_flow()->get_current_user_assignee_key();
$assignee = new Gravity_Flow_Assignee( $assignee_key );
$url = $this->get_target_form_url( $this->submit_page, $assignee );
$text = esc_html__( 'Open Form', 'gravityflowformconnector' );
echo '<br /><div class="gravityflow-action-buttons">';
echo sprintf( '<a href="%s" target="_blank" class="button button-large button-primary">%s</a><br><br>', $url, $text );
echo '</div>';
}
?>
</div>
<?php
}
/**
* If applicable display the assignee status list.
*
* @param array $args The page arguments.
* @param array $form The current form.
*/
public function maybe_display_assignee_status_list( $args, $form ) {
$display_step_status = (bool) $args['step_status'];
/**
* Allows the assignee status list to be hidden.
*
* @param array $form
* @param array $entry
* @param Gravity_Flow_Step $current_step
*/
$display_assignee_status_list = apply_filters( 'gravityflow_assignee_status_list_form_submission', $display_step_status, $form, $this );
if ( ! $display_assignee_status_list ) {
return;
}
echo sprintf( '<h4 style="margin-bottom:10px;">%s (%s)</h4>', $this->get_name(), $this->get_status_string() );
echo '<ul>';
$assignees = $this->get_assignees();
$this->log_debug( __METHOD__ . '(): assignee details: ' . print_r( $assignees, true ) );
foreach ( $assignees as $assignee ) {
$assignee_status = $assignee->get_status();
$this->log_debug( __METHOD__ . '(): showing status for: ' . $assignee->get_key() );
$this->log_debug( __METHOD__ . '(): assignee status: ' . $assignee_status );
if ( ! empty( $assignee_status ) ) {
$assignee_type = $assignee->get_type();
$assignee_id = $assignee->get_id();
if ( $assignee_type == 'user_id' ) {
$user_info = get_user_by( 'id', $assignee_id );
$status_label = $this->get_status_label( $assignee_status );
echo sprintf( '<li>%s: %s (%s)</li>', esc_html__( 'User', 'gravityflowformconnector' ), $user_info->display_name, $status_label );
} elseif ( $assignee_type == 'email' ) {
$email = $assignee_id;
$status_label = $this->get_status_label( $assignee_status );
echo sprintf( '<li>%s: %s (%s)</li>', esc_html__( 'Email', 'gravityflowformconnector' ), $email, $status_label );
} elseif ( $assignee_type == 'role' ) {
$status_label = $this->get_status_label( $assignee_status );
$role_name = translate_user_role( $assignee_id );
echo sprintf( '<li>%s: (%s)</li>', esc_html__( 'Role', 'gravityflowformconnector' ), $role_name, $status_label );
echo '<li>' . $role_name . ': ' . $assignee_status . '</li>';
}
}
}
echo '</ul>';
}
/**
* Get the status string, including icon (if complete).
*
* @return string
*/
public function get_status_string() {
$input_step_status = $this->get_status();
$status_str = __( 'Pending Submission', 'gravityflowformconnector' );
if ( $input_step_status == 'complete' ) {
$approve_icon = '<i class="fa fa-check" style="color:green"></i>';
$status_str = $approve_icon . __( 'Complete', 'gravityflowformconnector' );
} elseif ( $input_step_status == 'queued' ) {
$status_str = __( 'Queued', 'gravityflowformconnector' );
}
return $status_str;
}
/**
* Returns the URL for the target form.
*
* @param int|string $page_id
* @param null $assignee
* @param string $access_token
*
* @return string
*/
public function get_target_form_url( $page_id = null, $assignee = null, $access_token = '' ) {
$args = array(
'id' => $this->target_form_id,
'workflow_parent_entry_id' => $this->get_entry_id(),
'workflow_hash' => gravity_flow_form_connector()->get_workflow_hash( $this->get_entry_id(), $this ),
);
if ( $page_id == 'admin' ) {
$args['page'] = 'gravityflow-submit';
}
return Gravity_Flow_Common::get_workflow_url( $args, $page_id, $assignee, $access_token );
}
public function supports_expiration() {
return true;
}
/**
* @param $text
* @param Gravity_Flow_Assignee $assignee
*
* @return mixed
*/
public function replace_variables( $text, $assignee ) {
$text = parent::replace_variables( $text, $assignee );
$comment = rgpost( 'gravityflow_note' );
$text = str_replace( '{workflow_note}', $comment, $text );
preg_match_all( '/{workflow_form_submission_url(:(.*?))?}/', $text, $matches, PREG_SET_ORDER );
if ( is_array( $matches ) ) {
foreach ( $matches as $match ) {
$full_tag = $match[0];
$options_string = isset( $match[2] ) ? $match[2] : '';
$options = shortcode_parse_atts( $options_string );
$args = shortcode_atts(
array(
'page_id' => $this->submit_page,
'token' => false,
), $options
);
$token = $this->get_workflow_access_token( $args, $assignee );
$submission_url = $this->get_target_form_url( $args['page_id'], $assignee, $token );
$submission_url = esc_url_raw( $submission_url );
$text = str_replace( $full_tag, $submission_url, $text );
}
}
preg_match_all( '/{workflow_form_submission_link(:(.*?))?}/', $text, $matches, PREG_SET_ORDER );
if ( is_array( $matches ) ) {
foreach ( $matches as $match ) {
$full_tag = $match[0];
$options_string = isset( $match[2] ) ? $match[2] : '';
$options = shortcode_parse_atts( $options_string );
$target_form_id = $this->get_setting( 'target_form_id' );
$form = GFAPI::get_form( $target_form_id );
$args = shortcode_atts(
array(
'page_id' => $this->submit_page,
'text' => $form['title'],
'token' => false,
), $options
);
$token = $this->get_workflow_access_token( $args, $assignee );
$submission_url = $this->get_target_form_url( $args['page_id'], $assignee, $token );
$submission_url = esc_url_raw( $submission_url );
$submission_link = sprintf( '<a href="%s">%s</a>', $submission_url, esc_html( $args['text'] ) );
$text = str_replace( $full_tag, $submission_link, $text );
}
}
return $text;
}
/**
* Returns the choices for the Submit Page setting.
*
* @return array
*/
public function get_page_choices() {
$choices = array(
array(
'label' => __( 'Default - WordPress Admin Dashboard: Workflow Submit Page', 'gravityflowformconnector' ),
'value' => 'admin',
),
);
$pages = get_pages();
foreach( $pages as $page ) {
$choices[] = array(
'label' => $page->post_title,
'value' => $page->ID,
);
}
return $choices;
}
/**
* Get the access token for the workflow_entry_ and workflow_inbox_ merge tags.
*
* @param array $a The merge tag attributes.
*
* @param null|Gravity_Flow_Assignee $assignee
*
* @return string
*/
public function get_workflow_access_token( $a, $assignee = null ) {
$force_token = $a['token'] == 'true';
$token = '';
if ( $assignee && $force_token ) {
$token_lifetime_days = apply_filters( 'gravityflowformconnector_form_submission_token_expiration_days', 30, $assignee );
$token_expiration_timestamp = strtotime( '+' . (int) $token_lifetime_days . ' days' );
$token = gravity_flow()->generate_access_token( $assignee, null, $token_expiration_timestamp );
}
return $token;
}
/**
* Process a status change for an assignee.
*
* @param Gravity_Flow_Assignee $assignee
* @param string $new_status
* @param array $form
*
* @return string|bool Return a success feedback message safe for page output or false.
*/
public function process_assignee_status( $assignee, $new_status, $form ) {
if ( $new_status != 'complete' ) {
$this->log_debug( __METHOD__ . '() bailing - assignee ' . $assignee->get_key() . ' ' . $new_status );
return false;
}
$current_user_status = $assignee->get_status();
list( $role, $current_role_status ) = $this->get_current_role_status();
if ( $current_user_status == 'pending' ) {
$assignee->update_status( $new_status );
}
if ( $current_role_status == 'pending' ) {
$this->update_role_status( $role, $new_status );
}
$this->log_debug( __METHOD__ . '() assignee ' . $assignee->get_key() . ' complete' );
$note = $this->get_name() . ': ' . esc_html__( 'Processed', 'gravityflow' );
$this->add_note( $note );
return $note;
}
}
}

View File

@@ -0,0 +1,698 @@
<?php
/**
* Gravity Flow Add Entry Step
*
*
* @package GravityFlow
* @subpackage Classes/Step
* @copyright Copyright (c) 2015-2018, Steven Henty S.L.
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
* @since 1.0
*/
if ( class_exists( 'Gravity_Flow_Step' ) ) {
class Gravity_Flow_Step_New_Entry extends Gravity_Flow_Step {
public $_step_type = 'new_entry';
public function get_label() {
return esc_html__( 'New Entry', 'gravityflowformconnector' );
}
public function get_settings() {
$forms = $this->get_forms();
$form_choices[] = array( 'label' => esc_html__( 'Select a Form', 'gravityflowformconnector' ), 'value' => '' );
foreach ( $forms as $form ) {
$form_choices[] = array( 'label' => $form->title, 'value' => $form->id );
}
$settings = array(
'title' => esc_html__( 'New Entry', 'gravityflow' ),
'fields' => array(
array(
'name' => 'server_type',
'label' => esc_html__( 'Site', 'gravityflowformconnector' ),
'type' => 'radio',
'default_value' => 'local',
'horizontal' => true,
'onchange' => 'jQuery(this).closest("form").submit();',
'choices' => array(
array( 'label' => esc_html__( 'This site', 'gravityflowformconnector' ), 'value' => 'local' ),
array( 'label' => esc_html__( 'A different site', 'gravityflowformconnector' ), 'value' => 'remote' ),
),
),
array(
'name' => 'remote_site_url',
'label' => esc_html__( 'Site Url', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'remote_public_key',
'label' => esc_html__( 'Public Key', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'remote_private_key',
'label' => esc_html__( 'Private Key', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'target_form_id',
'label' => esc_html__( 'Form', 'gravityflowformconnector' ),
'type' => 'select',
'onchange' => "jQuery(this).closest('form').submit();",
'choices' => $form_choices,
),
),
);
if ( version_compare( gravity_flow()->_version, '1.3.0.10', '>=' ) ) {
// Use Generic Map setting to allow custom values.
$mapping_field = array(
'name' => 'mappings',
'label' => esc_html__( 'Field Mapping', 'gravityflowformconnector' ),
'type' => 'generic_map',
//'callback' => array( gravity_flow_form_connector(), 'generic_map' ),
'enable_custom_key' => false,
'enable_custom_value' => true,
'key_field_title' => esc_html__( 'Field', 'gravityflowformconnector' ),
'value_field_title' => esc_html__( 'Value', 'gravityflowformconnector' ),
'value_choices' => $this->value_mappings(),
'key_choices' => $this->field_mappings(),
'tooltip' => '<h6>' . esc_html__( 'Mapping', 'gravityflowformconnector' ) . '</h6>' . esc_html__( 'Map the fields of this form to the selected form. Values from this form will be saved in the entry in the selected form' , 'gravityflowformconnector' ),
'dependency' => array(
'field' => 'target_form_id',
'values' => array( '_notempty_' ),
),
);
} else {
$mapping_field = array(
'name' => 'mappings',
'label' => esc_html__( 'Field Mapping', 'gravityflowformconnector' ),
'type' => 'dynamic_field_map',
'disable_custom' => true,
'field_map' => $this->field_mappings(),
'tooltip' => '<h6>' . esc_html__( 'Mapping', 'gravityflowformconnector' ) . '</h6>' . esc_html__( 'Map the fields of this form to the selected form. Values from this form will be saved in the entry in the selected form' , 'gravityflowformconnector' ),
'dependency' => array(
'field' => 'target_form_id',
'values' => array( '_notempty_' ),
),
);
}
$settings['fields'][] = $mapping_field;
$entry_id_field = array(
'name' => 'store_new_entry_id',
'label' => esc_html__( 'Store New Entry ID', 'gravityflowformconnector' ),
'type' => 'checkbox_and_container',
'checkbox' => array(
'label' => esc_html__( 'Store the ID of the new entry.', 'gravityflowformconnector' ),
),
'settings' => array(
array(
'name' => 'new_entry_id_field',
'type' => 'field_select',
'args' => array(
'input_types' => array(
'text',
'textarea',
'hidden',
),
),
),
),
);
$settings['fields'][] = $entry_id_field;
return $settings;
}
/**
* Prepare field map.
*
* @return array
*/
public function field_mappings() {
$target_form_id = $this->get_setting( 'target_form_id' );
if ( empty( $target_form_id ) ) {
return false;
}
$target_form = $this->get_target_form( $target_form_id );
if ( empty( $target_form ) ) {
return false;
}
$fields = $this->get_field_map_choices( $target_form );
return $fields;
}
/**
* Prepare value map.
*
* @return array
*/
public function value_mappings() {
$form = $this->get_form();
$fields = $this->get_field_map_choices( $form );
return $fields;
}
function process() {
$server_type = $this->server_type;
if ( $server_type == 'remote' ) {
$result = $this->process_remote_action();
} else {
$result = $this->process_local_action();
}
$note = $this->get_name() . ': ' . esc_html__( 'Processed.', 'gravityflow' );
$this->add_note( $note );
return $result;
}
public function process_local_action() {
$entry = $this->get_entry();
$form = $this->get_form();
$new_entry = $this->do_mapping( $form, $entry );
if ( ! empty( $new_entry ) ) {
$new_entry['form_id'] = $this->target_form_id;
$new_entry['workflow_parent_entry_id'] = $this->get_entry_id();
$entry_id = GFAPI::add_entry( $new_entry );
if ( is_wp_error( $entry_id ) ) {
$this->log_debug( __METHOD__ .'(): failed to add entry' );
} else {
$this->maybe_store_new_entry_id( $entry_id );
}
}
return true;
}
public function process_remote_action() {
$entry = $this->get_entry();
$form = $this->get_form();
$new_entry = $this->do_mapping( $form, $entry );
if ( ! empty( $new_entry ) ) {
$new_entry['form_id'] = $this->target_form_id;
$entry_id = $this->add_remote_entry( $new_entry );
$this->maybe_store_new_entry_id( $entry_id );
}
return true;
}
/**
* Stores the specified entry ID if the setting is enabled.
*
* @param $entry_id
*/
public function maybe_store_new_entry_id( $entry_id ) {
if ( ! $this->store_new_entry_idEnable ) {
$this->log_debug( __METHOD__ .'(): not storing the new entry ID because the setting is not enabled' );
return;
}
$entry_id = absint( $entry_id );
if ( empty( $entry_id ) ) {
$this->log_debug( __METHOD__ .'(): failed to store new entry ID' );
return;
}
$field_id = $this->new_entry_id_field;
GFAPI::update_entry_field( $this->get_entry_id(), $field_id, $entry_id );
}
public function get_forms() {
$server_type = $this->get_setting( 'server_type' );
if ( $server_type == 'remote' ) {
$forms = $this->get_remote_forms();
$forms = json_decode( json_encode( $forms ) );
} else {
$forms = GFFormsModel::get_forms();
}
return $forms;
}
public function get_remote_forms() {
$forms = $this->remote_request( 'forms' );
if ( empty( $forms ) || is_wp_error( $forms ) ) {
$forms = array();
}
return $forms;
}
function calculate_signature( $string, $private_key ) {
$hash = hash_hmac( 'sha1', $string, $private_key, true );
$sig = rawurlencode( base64_encode( $hash ) );
return $sig;
}
public function get_target_form( $form_id ) {
$server_type = $this->get_setting( 'server_type' );
if ( $server_type == 'remote' ) {
$form = $this->get_remote_form( $form_id );
} else {
$form = GFAPI::get_form( $form_id );
}
return $form;
}
public function get_remote_form( $form_id ) {
$form = $this->remote_request( 'forms/' . $form_id );
if ( empty( $form ) || is_wp_error( $form ) ) {
$form = false;
}
$form = GFFormsModel::convert_field_objects( $form );
return $form;
}
public function remote_request( $route, $method = 'GET', $body = null, $query_args = array() ) {
$this->log_debug( __METHOD__ . '(): starting.' );
$site_url = $this->get_setting( 'remote_site_url' );
$api_key = $this->get_setting( 'remote_public_key' );
$private_key = $this->get_setting( 'remote_private_key' );
if ( empty( $site_url ) || empty( $api_key ) || empty( $private_key ) ) {
return false;
}
$expires = strtotime( '+5 mins' );
$string_to_sign = sprintf( '%s:%s:%s:%s', $api_key, $method, $route, $expires );
$this->log_debug( __METHOD__ . '(): string to sign: ' . $string_to_sign );
$sig = $this->calculate_signature( $string_to_sign, $private_key );
$site_url = trailingslashit( $site_url );
$route = trailingslashit( $route );
$url = $site_url . 'gravityformsapi/' . $route . '?api_key=' . $api_key . '&signature=' . $sig . '&expires=' . $expires;
if ( ! empty( $query_args ) ) {
$url .= '&' . http_build_query( $query_args );
}
$args = array( 'method' => $method );
if ( in_array( $method, array( 'POST', 'PUT' ) ) ) {
$args['body'] = $body;
}
$response = wp_remote_request( $url, $args );
$this->log_debug( __METHOD__ . '(): response: ' . print_r( $response, true ) );
$response_body = wp_remote_retrieve_body( $response );
if ( wp_remote_retrieve_response_code( $response ) != 200 || ( empty( $response_body ) ) ) {
return false;
}
$body = json_decode( wp_remote_retrieve_body( $response ), true );
if ( $body['status'] > 202 ) {
return false;
}
return $body['response'];
}
/**
* Add the remote entry
*
* @param $entry
*
* @return int The new Entry ID
*/
public function add_remote_entry( $entry ) {
$target_form_id = $this->target_form_id;
$route = 'forms/' . $target_form_id . '/entries';
$method = 'POST';
$body = json_encode( array( $entry ) );
$entry_ids = $this->remote_request( $route, $method, $body );
return $entry_ids[0];
}
/**
* Returns the field map choices.
*
* @param array $form
* @param null|array|string $field_type
* @param null|array $exclude_field_types
*
* @return array
*/
public function get_field_map_choices( $form, $field_type = null, $exclude_field_types = null ) {
$fields = array();
// Setup first choice
if ( rgblank( $field_type ) || ( is_array( $field_type ) && count( $field_type ) > 1 ) ) {
$first_choice_label = __( 'Select a Field', 'gravityflowformconnector' );
} else {
$type = is_array( $field_type ) ? $field_type[0] : $field_type;
$type = ucfirst( GF_Fields::get( $type )->get_form_editor_field_title() );
$first_choice_label = sprintf( __( 'Select a %s Field', 'gravityflowformconnector' ), $type );
}
$fields[] = array( 'value' => '', 'label' => $first_choice_label );
// if field types not restricted add the default fields and entry meta
if ( is_null( $field_type ) ) {
$fields[] = array( 'value' => 'id', 'label' => esc_html__( 'Entry ID', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'date_created', 'label' => esc_html__( 'Entry Date', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'ip', 'label' => esc_html__( 'User IP', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'source_url', 'label' => esc_html__( 'Source Url', 'gravityflowformconnector' ) );
$fields[] = array( 'value' => 'created_by', 'label' => esc_html__( 'Created By', 'gravityflowformconnector' ) );
$server_type = $this->get_setting( 'server_type' );
$entry_meta = $server_type == 'remote' ? array() : GFFormsModel::get_entry_meta( $form['id'] );
foreach ( $entry_meta as $meta_key => $meta ) {
$fields[] = array( 'value' => $meta_key, 'label' => rgars( $entry_meta, "{$meta_key}/label" ) );
}
}
// Populate form fields
if ( is_array( $form['fields'] ) ) {
foreach ( $form['fields'] as $field ) {
$input_type = $field->get_input_type();
$inputs = $field->get_entry_inputs();
$field_is_valid_type = ( empty( $field_type ) || ( is_array( $field_type ) && in_array( $input_type, $field_type ) ) || ( ! empty( $field_type ) && $input_type == $field_type ) );
if ( is_null( $exclude_field_types ) ) {
$exclude_field = false;
} elseif ( is_array( $exclude_field_types ) ) {
if ( in_array( $input_type, $exclude_field_types ) ) {
$exclude_field = true;
} else {
$exclude_field = false;
}
} else {
//not array, so should be single string
if ( $input_type == $exclude_field_types ) {
$exclude_field = true;
} else {
$exclude_field = false;
}
}
if ( is_array( $inputs ) && $field_is_valid_type && ! $exclude_field ) {
//If this is an address field, add full name to the list
if ( $input_type == 'address' ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Full', 'gravityflowformconnector' ) . ')',
);
}
//If this is a name field, add full name to the list
if ( $input_type == 'name' ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Full', 'gravityflowformconnector' ) . ')',
);
}
//If this is a checkbox field, add to the list
if ( $input_type == 'checkbox' ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Selected', 'gravityflowformconnector' ) . ')',
);
}
foreach ( $inputs as $input ) {
$fields[] = array(
'value' => $input['id'],
'label' => GFCommon::get_label( $field, $input['id'] )
);
}
} elseif ( $input_type == 'list' && $field->enableColumns && $field_is_valid_type && ! $exclude_field ) {
$fields[] = array(
'value' => $field->id,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html__( 'Full', 'gravityflowformconnector' ) . ')',
);
$col_index = 0;
foreach ( $field->choices as $column ) {
$fields[] = array(
'value' => $field->id . '.' . $col_index,
'label' => GFCommon::get_label( $field ) . ' (' . esc_html( rgar( $column, 'text' ) ) . ')',
);
$col_index ++;
}
} elseif ( ! rgar( $field, 'displayOnly' ) && $field_is_valid_type && ! $exclude_field ) {
$fields[] = array( 'value' => $field->id, 'label' => GFCommon::get_label( $field ) );
}
}
}
return $fields;
}
/**
* @param $form
* @param $entry
*
* @return array $new_entry
*/
public function do_mapping( $form, $entry ) {
$new_entry = array();
if ( ! is_array( $this->mappings ) ) {
return $new_entry;
}
$target_form = $this->get_target_form( $this->target_form_id );
if ( ! $target_form ) {
$this->log_debug( __METHOD__ . '(): aborting; unable to get target form.' );
return $new_entry;
}
foreach ( $this->mappings as $mapping ) {
if ( rgblank( $mapping['key'] ) ) {
continue;
}
$new_entry = $this->add_mapping_to_entry( $mapping, $entry, $new_entry, $form, $target_form );
}
return apply_filters( 'gravityflowformconnector_' . $this->get_type(), $new_entry, $entry, $form, $target_form, $this );
}
/**
* Add the mapped value to the new entry.
*
* @param array $mapping The properties for the mapping being processed.
* @param array $entry The entry being processed by this step.
* @param array $new_entry The entry to be added or updated.
* @param array $form The form being processed by this step.
* @param array $target_form The target form for the entry being added or updated.
*
* @return array
*/
public function add_mapping_to_entry( $mapping, $entry, $new_entry, $form, $target_form ) {
$target_field_id = (string) trim( $mapping['key'] );
$source_field_id = (string) $mapping['value'];
$source_field = GFFormsModel::get_field( $form, $source_field_id );
if ( is_object( $source_field ) ) {
$is_full_source = $source_field_id === (string) intval( $source_field_id );
$source_field_inputs = $source_field->get_entry_inputs();
$target_field = GFFormsModel::get_field( $target_form, $target_field_id );
if ( $is_full_source && is_array( $source_field_inputs ) ) {
$is_full_target = $target_field_id === (string) intval( $target_field_id );
$target_field_inputs = is_object( $target_field ) ? $target_field->get_entry_inputs() : false;
if ( $is_full_target && is_array( $target_field_inputs ) ) {
foreach ( $source_field_inputs as $input ) {
$input_id = str_replace( $source_field_id . '.', $target_field_id . '.', $input['id'] );
$source_field_value = $this->get_source_field_value( $entry, $source_field, $input['id'] );
$new_entry[ $input_id ] = $this->get_target_field_value( $source_field_value, $target_field, $input_id );
}
} else {
$new_entry[ $target_field_id ] = $this->get_source_field_value( $entry, $source_field, $source_field_id );
}
} else {
$source_field_value = $this->get_source_field_value( $entry, $source_field, $source_field_id );
$new_entry[ $target_field_id ] = $this->get_target_field_value( $source_field_value, $target_field, $target_field_id );
}
} elseif ( $source_field_id == 'gf_custom' ) {
$new_entry[ $target_field_id ] = GFCommon::replace_variables( $mapping['custom_value'], $form, $entry, false, false, false, 'text' );
} else {
$new_entry[ $target_field_id ] = $entry[ $source_field_id ];
}
return $new_entry;
}
/**
* Get the source field value.
*
* Returns the choice text instead of the unique value for choice based poll, quiz and survey fields.
*
* The source field choice unique value will not match the target field unique value.
*
* @param array $entry The entry being processed by this step.
* @param GF_Field $source_field The source field being processed.
* @param string $source_field_id The ID of the source field or input.
*
* @return string
*/
public function get_source_field_value( $entry, $source_field, $source_field_id ) {
if ( in_array( $source_field->type, array( 'poll', 'quiz', 'survey' ) ) ) {
$field_value = $entry[ $source_field_id ];
if ( $source_field->inputType == 'rank' ) {
$values = explode( ',', $field_value );
foreach ( $values as &$value ) {
$value = $this->get_source_choice_text( $value, $source_field );
}
return implode( ',', $values );
}
if ( $source_field->inputType == 'likert' && $source_field->gsurveyLikertEnableMultipleRows ) {
list( $row_value, $field_value ) = rgexplode( ':', $field_value, 2 );
}
return $this->get_source_choice_text( $field_value, $source_field );
} else {
/**
* Allow choice text to be returned when retrieving the source field value.
*
* @since 1.3.1-dev
*
* @param bool $use_choice_text When processing choice based fields should the choice text be returned instead of the value. Default is false.
* @param GF_Field $source_field The source field being processed.
* @param array $entry The entry being processed by this step.
* @param Gravity_Flow_Step $this The current step.
*/
$use_choice_text = apply_filters( 'gravityflowformconnector_' . $this->get_type() . '_use_choice_text', false, $source_field, $entry, $this );
$field_value = $source_field->get_value_export( $entry, $source_field_id, $use_choice_text );
}
return $field_value;
}
/**
* Get the value to be set for the target field.
*
* Returns the target fields choice unique value instead of the source field choice text for choice based poll, quiz and survey fields.
*
* @param string $field_value The source field value.
* @param GF_Field $target_field The target field being processed.
* @param string $target_field_id The ID of the target field or input.
*
* @return string
*/
public function get_target_field_value( $field_value, $target_field, $target_field_id ) {
if ( is_object( $target_field ) && in_array( $target_field->type, array( 'poll', 'quiz', 'survey' ) ) ) {
if ( $target_field->inputType == 'rank' ) {
$values = explode( ',', $field_value );
foreach ( $values as &$value ) {
$value = $this->get_target_choice_value( $value, $target_field );
}
return implode( ',', $values );
}
$field_value = $this->get_target_choice_value( $field_value, $target_field );
if ( $target_field->inputType == 'likert' && $target_field->gsurveyLikertEnableMultipleRows ) {
$row_value = $target_field->get_row_id( $target_field_id );
$field_value = sprintf( '%s:%s', $row_value, $field_value );
}
}
return $field_value;
}
/**
* Gets the choice text for the supplied choice value.
*
* @param string $selected_choice The choice value from the source field.
* @param GF_Field $source_field The source field being processed.
*
* @return string
*/
public function get_source_choice_text( $selected_choice, $source_field ) {
return $this->get_choice_property( $selected_choice, $source_field->choices, 'value', 'text' );
}
/**
* Gets the choice value for the supplied choice text.
*
* @param string $selected_choice The choice text from the source field.
* @param GF_Field $target_field The target field being processed.
*
* @return string
*/
public function get_target_choice_value( $selected_choice, $target_field ) {
return $this->get_choice_property( $selected_choice, $target_field->choices, 'text', 'value' );
}
/**
* Helper to get the specified choice property for the selected choice.
*
* @param string $selected_choice The selected choice value or text.
* @param array $choices The field choices.
* @param string $compare_property The choice property the $selected_choice is to be compared against.
* @param string $return_property The choice property to be returned.
*
* @return string
*/
public function get_choice_property( $selected_choice, $choices, $compare_property, $return_property ) {
if ( $selected_choice && is_array( $choices ) ) {
foreach ( $choices as $choice ) {
if ( $choice[ $compare_property ] == $selected_choice ) {
return $choice[ $return_property ];
}
}
}
return $selected_choice;
}
}
}

View File

@@ -0,0 +1,525 @@
<?php
/**
* Gravity Flow Update Entry Step
*
*
* @package GravityFlow
* @subpackage Classes/Step
* @copyright Copyright (c) 2015-2018, Steven Henty S.L.
* @license http://opensource.org/licenses/gpl-3.0.php GNU Public License
* @since 1.0
*/
if ( class_exists( 'Gravity_Flow_Step' ) ) {
class Gravity_Flow_Step_Update_Entry extends Gravity_Flow_Step_New_Entry {
public $_step_type = 'update_entry';
public function get_label() {
return esc_html__( 'Update an Entry', 'gravityflowformconnector' );
}
/**
* Returns the array of settings for this step.
*
* @return array
*/
public function get_settings() {
$forms = $this->get_forms();
$form_choices[] = array(
'label' => esc_html__( 'Select a Form', 'gravityflowformconnector' ),
'value' => '',
);
foreach ( $forms as $form ) {
$form_choices[] = array( 'label' => $form->title, 'value' => $form->id );
}
$action_choices = $this->action_choices();
$settings = array(
'title' => esc_html__( 'Update an Entry', 'gravityflow' ),
'fields' => array(
array(
'name' => 'server_type',
'label' => esc_html__( 'Site', 'gravityflowformconnector' ),
'type' => 'radio',
'default_value' => 'local',
'horizontal' => true,
'onchange' => 'jQuery(this).closest("form").submit();',
'choices' => array(
array( 'label' => esc_html__( 'This site', 'gravityflowformconnector' ), 'value' => 'local' ),
array( 'label' => esc_html__( 'A different site', 'gravityflowformconnector' ), 'value' => 'remote' ),
),
),
array(
'name' => 'remote_site_url',
'label' => esc_html__( 'Site Url', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'remote_public_key',
'label' => esc_html__( 'Public Key', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'remote_private_key',
'label' => esc_html__( 'Private Key', 'gravityflowformconnector' ),
'type' => 'text',
'dependency' => array(
'field' => 'server_type',
'values' => array( 'remote' ),
),
),
array(
'name' => 'target_form_id',
'label' => esc_html__( 'Form', 'gravityflowformconnector' ),
'type' => 'select',
'onchange' => "jQuery('#action').val('update');jQuery(this).closest('form').submit();",
'choices' => $form_choices,
),
array(
'name' => 'action',
'label' => esc_html__( 'Action', 'gravityflowformconnector' ),
'type' => count( $action_choices ) == 1 ? 'hidden' : 'select',
'default_value' => 'update',
'horizontal' => true,
'onchange' => "jQuery(this).closest('form').submit();",
'choices' => $action_choices,
),
),
);
$entry_id_field = array(
'name' => 'update_entry_id',
'label' => esc_html__( 'Entry ID Field', 'gravityflowformconnector' ),
'type' => 'field_select',
'tooltip' => __( 'Select the field which will contain the entry ID of the entry that will be updated. This is used to lookup the entry so it can be updated.', 'gravityflowformconnector' ),
'required' => true,
'dependency' => array(
'field' => 'action',
'values' => array( 'update', 'approval', 'user_input' ),
),
);
if ( function_exists( 'gravity_flow_parent_child' ) ) {
$parent_form_choices = array();
$entry_meta = gravity_flow_parent_child()->get_entry_meta( array(), rgget( 'id' ) );
foreach ( $entry_meta as $meta_key => $meta ) {
$parent_form_choices[] = array( 'value' => $meta_key, 'label' => $meta['label'] );
}
if ( ! empty( $parent_form_choices ) ) {
$entry_id_field['args']['append_choices'] = $parent_form_choices;
}
}
if ( $this->get_setting( 'target_form_id' ) == $this->get_form_id() ) {
$self_entry_id_choice = array( array( 'label' => esc_html__( 'Entry ID (Self)', 'gravityflowformconnector' ), 'value' => 'id' ) );
if ( ! isset( $entry_id_field['args']['append_choices'] ) ) {
$entry_id_field['args']['append_choices'] = array();
}
$entry_id_field['args']['append_choices'] = array_merge( $entry_id_field['args']['append_choices'], $self_entry_id_choice );
}
$settings['fields'][] = $entry_id_field;
$settings['fields'][] = array(
'name' => 'approval_status_field',
'label' => esc_html__( 'Approval Status Field', 'gravityflowformconnector' ),
'type' => 'field_select',
'dependency' => array(
'field' => 'action',
'values' => array( 'approval' ),
),
);
$mapping_field = array(
'name' => 'mappings',
'label' => esc_html__( 'Field Mapping', 'gravityflowformconnector' ),
'type' => 'generic_map',
'enable_custom_key' => false,
'enable_custom_value' => true,
'key_field_title' => esc_html__( 'Field', 'gravityflowformconnector' ),
'value_field_title' => esc_html__( 'Value', 'gravityflowformconnector' ),
'value_choices' => $this->value_mappings(),
'key_choices' => $this->field_mappings(),
'tooltip' => '<h6>' . esc_html__( 'Mapping', 'gravityflowformconnector' ) . '</h6>' . esc_html__( 'Map the fields of this form to the selected form. Values from this form will be saved in the entry in the selected form', 'gravityflowformconnector' ),
'dependency' => array(
'field' => 'action',
'values' => array( 'update', 'user_input' ),
),
);
$settings['fields'][] = $mapping_field;
$action = $this->get_setting( 'action' );
if ( $this->get_setting( 'server_type' ) == 'remote' && in_array( $action, array(
'approval',
'user_input',
) )
) {
$target_form_id = $this->get_setting( 'target_form_id' );
if ( ! empty ( $target_form_id ) ) {
$settings['fields'][] = array(
'name' => 'remote_assignee',
'label' => esc_html__( 'Assignee', 'gravityflowformconnector' ),
'type' => 'select',
'choices' => $this->get_remote_assignee_choices( $target_form_id ),
);
}
} elseif ( $this->get_setting( 'server_type' ) == 'local' && $this->get_setting( 'action' ) == 'user_input' ) {
$target_form_id = $this->get_setting( 'target_form_id' );
if ( ! empty ( $target_form_id ) ) {
$settings['fields'][] = array(
'name' => 'local_assignee',
'label' => esc_html__( 'Assignee', 'gravityflowformconnector' ),
'type' => 'select',
'choices' => $this->get_local_assignee_choices( $target_form_id ),
);
}
}
return $settings;
}
/**
* Returns the array of choices for the action setting.
*
* @return array
*/
public function action_choices() {
$choices = array(
array( 'label' => esc_html__( 'Update an Entry', 'gravityflow' ), 'value' => 'update' ),
);
$target_form_id = $this->get_setting( 'target_form_id' );
if ( empty( $target_form_id ) ) {
return $choices;
}
$has_approval_step = false;
$has_user_input_step = false;
if ( $this->get_setting( 'server_type' ) == 'remote' ) {
$steps = $this->get_remote_steps( $target_form_id );
if ( $steps ) {
foreach ( $steps as $step ) {
if ( $step['type'] == 'approval' ) {
$has_approval_step = true;
} elseif ( $step['type'] == 'user_input' ) {
$has_user_input_step = true;
}
}
}
} else {
$api = new Gravity_Flow_API( $target_form_id );
$steps = $api->get_steps();
foreach ( $steps as $step ) {
if ( $step->get_type() == 'approval' ) {
$has_approval_step = true;
} elseif ( $step->get_type() == 'user_input' ) {
$has_user_input_step = true;
}
}
}
if ( $has_approval_step ) {
$choices[] = array( 'label' => esc_html__( 'Approval', 'gravityflow' ), 'value' => 'approval' );
}
if ( $has_user_input_step ) {
$choices[] = array( 'label' => esc_html__( 'User Input', 'gravityflow' ), 'value' => 'user_input' );
}
return $choices;
}
/**
* Updates a local entry.
*
* @return bool Has the step finished?
*/
public function process_local_action() {
$entry = $this->get_entry();
$target_form_id = $this->target_form_id;
$api = new Gravity_Flow_API( $target_form_id );
$steps = $api->get_steps();
$form = $this->get_form();
$target_entry_id = rgar( $entry, $this->update_entry_id );
$target_entry_id = apply_filters( 'gravityflowformconnector_update_entry_id', $target_entry_id, $target_form_id, $entry, $form, $this );
if ( empty( $target_entry_id ) ) {
return true;
}
$target_entry = GFAPI::get_entry( $target_entry_id );
if ( is_wp_error( $target_entry ) ) {
return true;
}
$new_entry = $this->do_mapping( $form, $entry );
$new_entry['form_id'] = $this->target_form_id;
if ( in_array( $this->action, array( 'update', 'user_input' ) ) ) {
if ( ! is_wp_error( $target_entry ) ) {
foreach ( $new_entry as $key => $value ) {
$target_entry[ (string) $key ] = $value;
}
GFAPI::update_entry( $target_entry );
}
}
if ( in_array( $this->action, array( 'approval', 'user_input' ) ) && $steps ) {
if ( empty( $target_entry['workflow_final_status'] ) || $target_entry['workflow_final_status'] == 'pending' ) {
$current_step = $api->get_current_step( $target_entry );
if ( $current_step ) {
$status = ( $this->action == 'approval' ) ? strtolower( rgar( $entry, $this->approval_status_field ) ) : 'complete';
if ( empty( $this->local_assignee ) || $this->local_assignee == 'created_by') {
$assignee_key = gravity_flow()->get_current_user_assignee_key();
if ( ! $assignee_key && rgar( $entry, 'created_by' ) ) {
$assignee_key = 'user_id|' . $entry['created_by'];
}
} else {
$assignee_key = $this->local_assignee;
}
$assignees = array();
if ( $assignee_key ) {
$is_assignee = $current_step->is_assignee( $assignee_key );
if ( $is_assignee ) {
$assignee = new Gravity_Flow_Assignee( $assignee_key, $current_step );
$assignees = array( $assignee );
} else {
// Assignee not set by the local_assignee setting or by current user.
// Could be legacy settings triggered by cron or anonymous form submission.
// Complete step for all assignees.
$assignees = $current_step->get_assignees();
}
}
$form = GFAPI::get_form( $this->target_form_id );
$process_required = false;
foreach ( $assignees as $assignee ) {
$result = $current_step->process_assignee_status( $assignee, $status, $form );
if ( $result ) {
$process_required = true;
}
}
if ( $process_required ) {
$api->process_workflow( $target_entry_id );
}
}
}
}
return true;
}
/**
* Updates a remote entry.
*
*
* @return bool Has the step finished?
*/
public function process_remote_action() {
$entry = $this->get_entry();
$form = $this->get_form();
$new_entry = $this->do_mapping( $form, $entry );
$target_form_id = $this->target_form_id;
$new_entry['form_id'] = $target_form_id;
$target_entry_id = rgar( $entry, $this->update_entry_id );
$target_entry_id = apply_filters( 'gravityflowformconnector_update_entry_id', $target_entry_id, $target_form_id, $entry, $form, $this );
if ( empty( $target_entry_id ) ) {
return true;
}
switch ( $this->action ) {
case 'update' :
case 'user_input' :
$target_entry = $this->get_remote_entry( $target_entry_id );
foreach ( $new_entry as $key => $value ) {
$target_entry[ (string) $key ] = $value;
}
$result = $this->update_remote_entry( $target_entry );
$this->log_debug( __METHOD__ . '(): update result - ' . print_r( $result, true ) );
if ( $this->action == 'user_input' ) {
$assignee_key = strtolower( urlencode( sanitize_text_field( $this->remote_assignee ) ) );
$route = 'entries/' . $target_entry_id . '/assignees/' . $assignee_key;
$body = json_encode( array( 'status' => 'complete' ) );
$assignee_update_result = $this->remote_request( $route, 'POST', $body );
$this->log_debug( __METHOD__ . '(): update assignee result - ' . print_r( $assignee_update_result, true ) );
}
break;
case 'approval' :
$assignee_key = strtolower( urlencode( sanitize_text_field( $this->remote_assignee ) ) );
$status = sanitize_text_field( strtolower( rgar( $entry, $this->approval_status_field ) ) );
$route = sprintf( 'entries/%d/assignees/%s', $target_entry_id, $assignee_key );
$body = json_encode( array( 'status' => $status ) );
$this->remote_request( $route, 'POST', $body );
}
return true;
}
/**
* Returns a remote entry.
*
* @param $entry_id
*
* @return bool
*/
public function get_remote_entry( $entry_id ) {
$route = 'entries/' . $entry_id;
$result = $this->remote_request( $route );
return $result;
}
/**
* Updates a remote entry.
*
* @param $entry
*
* @return bool
*/
public function update_remote_entry( $entry ) {
$route = 'entries/' . absint( $entry['id'] );
$method = 'PUT';
$body = json_encode( $entry );
$result = $this->remote_request( $route, $method, $body );
return $result;
}
/**
* Returns the steps for the remote entry.
*
* @param $form_id
*
* @return bool
*/
public function get_remote_steps( $form_id ) {
$route = 'forms/' . $form_id . '/steps';
$steps = $this->remote_request( $route );
return $steps;
}
/**
* Returns the remote assignees.
*
* @param $form_id
*
* @return array
*/
public function get_remote_assignee_choices( $form_id ) {
$steps = $this->get_remote_steps( $form_id );
if ( empty( $steps ) ) {
return array();
}
$assignee_keys = $choices = array();
foreach ( $steps as $step ) {
foreach ( $step['assignees'] as $assignee ) {
$assignee_keys[ $assignee['key'] ] = $assignee['display_name'];
}
}
foreach ( $assignee_keys as $assignee_key => $display_name ) {
$choices[] = array( 'label' => $display_name, 'value' => $assignee_key );
}
return $choices;
}
/**
* Returns the remote assignees.
*
* @param $form_id
*
* @return array
*/
public function get_local_assignee_choices( $form_id ) {
$steps = gravity_flow()->get_steps( $form_id );
if ( empty( $steps ) ) {
return array();
}
$assignee_keys = $choices = array();
foreach ( $steps as $step ) {
$assignees = $step->get_assignees();
foreach ( $assignees as $assignee ) {
$assignee_keys[ $assignee->get_key() ] = $assignee->get_display_name();
}
}
$source_form = $this->get_form();
$choices[] = array(
'label' => __( 'Select an assignee', 'gravityflow' ),
'value' => '',
);
if ( rgar( $source_form, 'requireLogin' ) ) {
$choices[] = array(
'label' => __( 'User (created_by)', 'gravityflow' ),
'value' => 'created_by',
);
}
foreach ( $assignee_keys as $assignee_key => $display_name ) {
$choices[] = array( 'label' => $display_name, 'value' => $assignee_key );
}
return $choices;
}
}
}

View File

@@ -0,0 +1,2 @@
<?php
//Nothing to see here

View File

@@ -0,0 +1,374 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Ecron <ecron_89@hotmail.com>, 2017
# Xavi Ivars <xavi.ivars@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Xavi Ivars <xavi.ivars@gmail.com>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/gravityflow/teams/50678/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Gestiona els paràmetres"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Desinstal·la"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "S'ha rebut la tramesa."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "L'enllaç a aquest formulari ja no és vàlid."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Aquest formulari ja no és vàlid."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Aquest formulari ja no accepta trameses."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Ja no es requereix la vostra entrada."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
"Hi ha hagut un problema amb la tramesa. Utilitzeu l'enllaç que se us "
"proporciona."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Tramesa del formulari"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Seleccioneu un formulari"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Selecciona"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Encaminament condicional"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Política d'encarregats"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Definiu com s'hauria de processar aquest pas. Si tots els encarregats han de"
" completar-lo, llavors l'entrada requerirà introducció de cada encarregat "
"abans que el pas es pugui completar. Si s'assigna el pas a un rol, només "
"caldrà que un usuari d'aquell rol el completi."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Al menys un encarregat ha de completar el pas"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Tots els encarregats han de completar el pas"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Adreça de l'encarregat"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr "Trameteu el formulari següent: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formulari"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
"Seleccioneu el formulari a utilitzar en aquest pas de tramesa del formulari."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Seleccioneu la pàgina a utilitzar per a la tramesa del formulari. Aquesta "
"pot ser una pàgina d'enviament de flux de treball al tauler de control del "
"WordPress, o podeu triar una pàgina amb un codi curt de tramesa del Gravity "
"Flow o del Gravity Forms."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Pàgina de tramesa"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Assignació de camps"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Camp"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Valor"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Assignació"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Assigneu els camps d'aquest formulari al formulari seleccionat. Els valors "
"d'aquest formulari es desaran en l'entrada al formulari seleccionat."
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Pendent."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Seleccioneu un camp"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Seleccioneu un camp %s"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "ID de l'entrada"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Data de l'entrada"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "IP d'usuari"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "URL d'origen"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Creat per"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Completa"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Seleccionada"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Obre el formulari"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Usuari"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "Adreça electrònica"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Rol"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Tramesa pendent"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Completat"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "En cua"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
"Per omissió - Tauler de control de WordPress: Pàgina de Tramesa del Flux de "
"Treball"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Processat"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Entrada nova"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Lloc"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Aquest lloc"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Un lloc diferent"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "URL del lloc"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Clau pública"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Clau privada"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Emmagatzema una ID d'entrada nova"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Emmagatzema la ID de la entrada nova."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "S'ha processat."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Actualitza una entrada"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Acció"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Camp d'entrada de la ID"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Seleccioneu el camp que contindrà la ID de l'entrada que actualitzareu. Això"
" s'utilitza per a trobar l'entrada perquè es pugui actualitzar."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "ID de l'entrada (pròpia)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Camp d'estat d'aprovació"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Encarregat"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Aprovació"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Introducció d'usuari"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Seleccioneu un assignat"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Usuari (creat per)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Extensió Connector de Formularis per al Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,376 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Christian Herrmann, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Christian Herrmann, 2017\n"
"Language-Team: German (Germany) (https://www.transifex.com/gravityflow/teams/50678/de_DE/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de_DE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Einstellungen verwalten"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Deinstallieren"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Einreichung erhalten."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "Der Link zu diesem Formular ist nicht länger gültig."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Dieses Formular ist nicht länger gültig."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Dieses Formular akzeptiert keine Einreichungen mehr."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Deine Eingabe ist nicht länger erforderlich."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
"Es gab ein Problem mit deiner Einreichung. Bitte benutze den angegebenen "
"Link."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Formular-Einreichung"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Ein Formular auswählen"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Auswählen"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Bedingtes Routing"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Beauftragten-Regelung"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Definiere wie dieser Schritt bearbeitet werden soll. Wenn alle Beauftragte "
"diesen Schritt abschliessen müssen, wird von jedem Beauftragten eine Eingabe"
" benötigt, bevor dieser Schritt abgeschlossen werden kann. Wenn dieser "
"Schritt einer Rolle zugewiesen wird, muss nur ein Beauftragter dieser Rolle "
"diesen Schritt abschliessen."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Mindestens ein Beauftragter muss diesen Schritt abschließen"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Alle Beauftragte müssen diesen Schritt abschließen"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Beauftragter-E-Mail"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr ""
"Bitte das folgende Formular einreichen: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formular"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
"Das Formular auswählen, welches für den Schritt der Einreichung dieses "
"Formulars benutzt werden soll."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Die Seite auswählen, welche für die Formulareinreichung benutzt werden soll."
" Das kann die Seite Workflow Einreichen im WordPress Admin Dashboard sein "
"oder du kannst eine Seite mit Gravity Flow Einreichungs-Shortcode oder einem"
" Gravity Forms Shortcode wählen."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Einreichungs-Seite"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Feld-Zuordnung"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Feld"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Wert"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Zuordnung"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Die Felder dieses Formulars dem gewählten Formular zuordnen. Werte aus "
"diesem Formular werden in den Einträgen des ausgewählten Formulars "
"gespeichert."
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Unerledigt."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Ein Feld auswählen"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Ein %s-Feld auswählen"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "Eintrags-ID"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Eintragsdatum"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "Benutzer-IP"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "Quell-URL"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Erstellt von"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Vollständig"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Ausgewählt"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Formular öffnen"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Benutzer"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "E-Mail"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Rolle"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Warten auf Einreichung"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Abgeschlossen"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "Eingereiht"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr "Standard - WordPress Admin Dashboard: Workflow Einreichungs-Seite"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Bearbeitet"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Neuer Eintrag"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Website"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Diese Website"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Eine andere Website"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "Website-URL"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Öffentlicher Schlüssel:"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Privater Schlüssel"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Neue Eintrags-ID speichern"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Die ID des neuen Eintrags speichern."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Verarbeitet."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Einen Eintrag aktualisieren"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Aktion"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Feld für Eintrags-ID"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Das Feld auswählen, welches die Eintrags-ID des Eintrags enthalten wird, die"
" aktualisiert werden soll. Dies wird benutzt, um dein Eintrag zu ermitteln, "
"sodass er aktualisiert werden kann."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "Eintrags-ID (Selbst)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Genehmigungs-Status-Feld"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Beauftragter"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Genehmigung"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Benutzereingabe"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Beauftragten auswählen"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Benutzer (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Formular-Verbindungs-Erweiterung für Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,372 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Ibon Azkoitia <ibon@kreatidos.com>, 2017
# Luis Rull <luisrull@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Luis Rull <luisrull@gmail.com>, 2017\n"
"Language-Team: Spanish (Spain) (https://www.transifex.com/gravityflow/teams/50678/es_ES/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: es_ES\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Gestionar ajustes"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Desinstalar"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Envío recibido."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "El enlace a este formulario ya no es válido."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Este formulario ya no es válido."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Este formulario ya no acepta envíos."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Ya no hace falta que escribas nada."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr "Hay un problema con tu envío. Por favor, usa el enlace proporcionado."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Envío de formulario"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Selecciona un formulario"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Selecciona"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Enrutamiento condicional"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Política de encargados"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Define como debe procesarse este paso. Si todos los encargados deben "
"completar este paso entonces la entrada necesitará respuesta de cada uno de "
"los encargados para completar el paso. Si este paso está asignado a un rol "
"sólo uno de los usuarios con ese rol necesitará completar el paso."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Al menos uno de los encargados debe completar este paso"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Todos los encargados deben completar este paso"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Correo electrónico de encargado"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr ""
"Por favor rellena el siguiente formulario: {workflow_form_submission_link} "
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formulario"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr "Elige el formulario para este paso de envío de formulario."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Elige la página que debe usarse para el envío de formulario. Puede ser la "
"página de envío de Workflow en el escritorio de administración de WordPress "
"o puedes elegir una página que tenga el shortcode de envío de Gravity Flow o"
" un shortcode de Gravity Forms."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Página de envío"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Mapeo de campos"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Campo"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Valor"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Mapeo"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Mapea los campo de éste formulario al formulario seleccionado. Los valores "
"de este formulario se guardarán en la entrada en el formulario seleccionado"
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Pendiente."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Seleccionar un campo"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Seleccionar un campo de %s"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "ID de entrada"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Fecha de la entrada"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "IP del usuario"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "Url de origen"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Creado por"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Completo"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Seleccionado"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Formulario abierto"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Usuario"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "Email"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Rol"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Envío pendiente"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Completado"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "En cola"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
"Por defecto - Escritorio de administración de WordPress: Página de de envío "
"de Workflow"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Procesado"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Nueva entrada"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Sitio"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Este sitio"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Un sitio diferente"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "Url del sitio"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Clave Pública"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Clave privada"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Guardar ID de la nueva entrada"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Guarda la ID de la nueva entrada."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Procesado."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Actualiza una entrada"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Acción"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Campo de ID de la entrada"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Elige el campo que contiene la ID de la entrada que será actualizada. Esto "
"se utiliza para buscar la entrada para que sea actualizada."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "ID de entrada (Propia)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Campo de estado de aprobación"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Encargado"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Aprobación"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Aportación del usuario"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Elige un encargado"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "User (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Extensión para conectar formularios de Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,375 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: FX Bénard <fxb@wp-translations.org>, 2017\n"
"Language-Team: French (France) (https://www.transifex.com/gravityflow/teams/50678/fr_FR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fr_FR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Gérer les réglages"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Désinstaller"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Soumission reçue."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "Le lien pour ce formulaire nest plus valide."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Ce formulaire nest plus valide."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Ce formulaire naccepte plus les soumissions."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Votre entrée nest plus nécessaire."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
"Un problème sest produit avec votre soumission. Veuillez utiliser le lien "
"fourni."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Soumission de formulaire"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Sélectionner un formulaire"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Sélectionner"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Routage conditionnel"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Politique des assignations"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Définissez le traitement de cette étape. Si tous les assignés doivent "
"terminer cette étape alors la demande devra être acceptée à lunanimité "
"avant que létape puisse être terminée. Si létape est assigné à rôle alors "
"un seul utilisateur avec ce rôle suffira pour la terminer."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Au moins un assigné doit terminer cette étape"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Tous les assignés doivent terminer cette étape"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "E-mail à lassigné"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr ""
"Veuillez soumettre le formulaire suivant : {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formulaire"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
"Sélectionnez le formulaire à utiliser pour cette étape de soumission de "
"formulaire."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Sélectionnez la page à utiliser pour la soumission de formulaire. Ceci peut "
"être la page de soumission de workflow dans le tableau de bord de "
"ladministration WordPress ou vous pouvez choisir une page avec un code "
"court de soumission de Gravity Flow ou de Gravity Forms."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Page de soumission"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Mapper le champ"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Champ"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Valeur"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Mappage"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Mapper les champs de ce formulaire au formulaire sélectionné. Les valeurs de"
" ce formulaire seront enregistrées dans lentrée du formulaire sélectionné."
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "En attente."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Sélectionner un champ"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Sélectionner un champ %s"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "ID de lentrée"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Date de lentrée"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "IP de lutilisateur"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "URL source"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Créé par"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Complet"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Sélectionné"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Ouvrir le formulaire"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Utilisateur"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "E-mail"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Rôle"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Soumission en attente"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Terminé"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "En file dattente"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
"Par défaut - Tableau de bord dadministration WordPress : Page de soumission"
" workflow"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Effectué"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Nouvelle entrée"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Site"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Ce site"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Un site différent"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "URL du site"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Clé publique"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Clé privée"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Stocker lID de la nouvelle entrée"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Stocker lID de la nouvelle entrée"
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Traité."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Mettre à jour une entrée"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Action"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Champ dID de lentrée"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Sélectionnez le champ qui contient lID de lentrée qui sera mise à jour. "
"Ceci est utilisé pour verrouiller lentrée pour quelle puisse être mise à "
"jour. "
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "ID dentrée (Self)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Champ détat dapprobation"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Assigné"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Acceptation"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Entrée utilisateur"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Sélectionner un assigné"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Utilisateur (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Extension de connecteur de formulaire pour Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,370 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# raffaella isidori <r.isidori@thesign.it>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: raffaella isidori <r.isidori@thesign.it>, 2017\n"
"Language-Team: Italian (Italy) (https://www.transifex.com/gravityflow/teams/50678/it_IT/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it_IT\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Gestisci le impostazioni"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Disinstalla"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Invio ricevuto."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "Il link a questo modulo non è più valido."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Questo modulo non è più valido."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Questo modulo non accetta altri invii."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Il tuo input non è più necessario."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
"C'è stato un problema con il tuo invio. Usa il link che ti è stato fornito."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Invio del modulo"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Scegli un modulo"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Seleziona"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Percorso condizionale"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Policy assegnatario"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Definisci come devono essere approvati i contenuti. Se tutti gli assegnatari"
" devono completare questa Fase, sarà richiesto un intervento da tutti loro "
"prima che la Fase sia completata. Se questa Fase è assegnata a un ruolo, "
"basta che un solo utente in quel ruolo la completi."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Almeno un assegnatario è necessario per completare questa fase"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Tutti gli assegnatari devono completare questa Fase"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Email dell'assegnatario"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr "Invia il seguente modulo: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Modulo"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr "Seleziona il modulo che deve essere usato per questa fase dell'invio."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Seleziona la pagina che deve essere usata per l'invio di questo modulo. "
"Potrebbe essere la Pagina di Invio del Workflow nella bacheca di WordPress o"
" puoi scegliere una pagina con lo shortcode di invio di Gravity Flow o con "
"uno shortcode di Gravity Forms."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Pagina di invio"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Mappatura del campo"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Campo"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Valore"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Mappatura"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Mappa i campi di questo modulo a quelli di quello selezionato. I valori di "
"questo modulo saranno salvati nelle voci del modulo selezionato."
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Sospeso."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Seleziona un campo"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Seleziona un campo %s"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "ID voce"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Data della voce"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "IP dellutente"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "URL del sorgente"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Creato da"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Pieno"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Selezionato"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Modulo aperto"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Utente"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "Email"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Ruolo"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Invio in sospeso"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Completo"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "Messo in coda"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr "Predefinito - Bacheca di WordPress: Pagina di invio del Workflow"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Elaborato"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Nuova voce"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Sito"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Questo sito"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Un sito diverso"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "URL del sito"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Chiave pubblica"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Chiave privata"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Memorizza l'ID della nuova voce"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Memorizza l'ID della nuova voce"
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Elaborato."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Aggiorna una voce"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Azione"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Campo dell'ID della voce"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Seleziona il campo che conterrà l'ID della voce della voce da aggiornare. "
"Questo viene utilizzato per rintracciare la voce, così che possa essere "
"aggiornata."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "ID della voce (propria)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Campo di approvazione dello stato"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Assegnatario"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Approvazione"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Input dellutente"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Seleziona un assegnatario"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Utente (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Estensione Form Connector per Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,373 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Thom, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Thom, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/gravityflow/teams/50678/nl_NL/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Instellingen beheren"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Verwijderen"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Inzending ontvangen."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "De link naar dit formulier is niet meer geldig."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Dit formulier is niet meer geldig."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Dit formulier accepteert geen inzendingen meer."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Jouw bijdrage is niet meer nodig."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr "Er was een probleem met je inzending. Gebruik de opgegeven link."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Formulierinzending"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Selecteer een formulier"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Selecteren"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Voorwaardelijke routering"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Beleid voor toewijzing"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Bepaal hoe deze stap moet worden verwerkt. Als alle toegewezen medewerkers "
"deze stap moeten voltooien dan vereist de inzending een bijdrage van elke "
"toegewezen medewerker, voordat de stap kan worden voltooid. Als de stap is "
"toegewezen aan een rol, hoeft maar één gebruiker in die rol de stap te "
"voltooien."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Minstens één toegewezen medewerker moet deze stap voltooien"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Alle toegewezen medewerkers moeten deze stap voltooien"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Toegewezen medewerker e-mail"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr "Verstuur het volgende formulier: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formulier"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
"Selecteer het formulier dat gebruikt moet worden voor deze formulier "
"inzending stap. "
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Selecteer de pagina die gebruikt moet worden voor de formulier inzending. "
"Dit kan de Workflow Inzenden Pagina in de WordPress Admin Dashboard zijn of "
"je kunt een pagina kiezen met de Gravity Flow inzenden shortcode of een "
"Gravity Forms shortcode. "
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Inzendingspagina"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Veldkoppeling"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Veld"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Waarde"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Koppelen"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Koppel de velden van dit formulier aan het geselecteerde formulier. Waarden "
"van dit formulier worden opgeslagen in de inzending van het geselecteerde "
"formulier."
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Wachtend."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Selecteer een veld"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Selecteer een %s veld"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "Inzending ID"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Inzendingsdatum"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "Gebruiker IP"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "Bron URL"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Aangemaakt door"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Vol"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Geselecteerd"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Open formulier"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Gebruiker"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "E-mailadres"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Rol"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Wacht op inzending"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Voltooid"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "In de wachtrij"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr "Standaard - WordPress dashboard beheerder: inzendingspagina workflow"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Verwerkt"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Nieuwe inzending"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Site"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Deze site"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Een andere site"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "Site URL"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Publieke sleutel"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Geheime sleutel"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Nieuwe inzending ID opslaan"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Sla het ID van de nieuwe inzending op."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Verwerkt. "
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Inzending bijwerken"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Actie"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Inzending ID-veld"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Selecteer het veld dat het inzending ID bevat van de inzending die je wilt "
"bijwerken. Dit wordt gebruikt om de inzending te vinden, zodat deze kan "
"worden bijgewerkt."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "Inzending ID (eigen)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Status goedkeuring-veld"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Gemachtigde"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Goedkeuring"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Gebruikersinvoer"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Selecteer een toegewezen medewerker"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Gebruiker (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Formulier verbinding-extensie voor Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,373 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Jose Manuel Cardoso Freitas <josefreitas2@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Jose Manuel Cardoso Freitas <josefreitas2@gmail.com>, 2017\n"
"Language-Team: Portuguese (Portugal) (https://www.transifex.com/gravityflow/teams/50678/pt_PT/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pt_PT\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Gerir definições"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Desinstalar"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Submissão recebida."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "A ligação para este formulário já não está válida."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Este formulário já não está válido."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Este formulário já não aceita submissões."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "O seu contributo já não é necessário."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
"Ocorreu um problema com a sua submissão. Por favor, use a ligação "
"disponível."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Submissão do formulário"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Seleccione um formulário"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Seleccione"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Encaminhamento condicional"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Política de titulares"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Defina como este passo deve ser processado. Se todos os titulares têm de "
"concluir este passo, então o registo exigirá a participação de todos. Se o "
"passo estiver atribuído a um papel, apenas um utilizador nesse papel precisa"
" de o concluir."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Pelo menos um dos titulares tem de completar este passo."
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Todos os titulares têm de concluir este passo"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Email do titular"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr ""
"Por favor, submeta o formulário seguinte: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formulário"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr "Seleccione o formulário a ser utilizado nesta submissão."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Seleccione a página a ser utilizada para a submissão do formulário. Esta "
"pode ser a página de submissão do Workflow no painel de administração do "
"WordPress ou pode escolher uma página com o shortcode do Gravity Flow ou o "
"shortcode do Gravity Forms."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Página de submissão"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Campo de mapeamento"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Campo"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Valor"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Mapeamento"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Mapeie os campos deste formulário para o formulário seleccionado. Os valores"
" deste formulário serão guardados no registo do formulário seleccionado"
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Pendente."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Seleccione um campo"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Seleccione um campo %s"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "ID do registo"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Data do registo"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "IP do utilizador"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "URL de origem"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Criado por"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Completo"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Seleccionado"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Abrir formulário"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Utilizador"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "Email"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Papel"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Submissão pendente"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Concluído"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "Em fila"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
"Por omissão - Página de submissão do Workflow no painel de administração do "
"WordPress"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Processado"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Novo registo"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Site"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Este site"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Um site diferente"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "URL do site"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Chave Pública"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Chave Privada"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Guardar ID de novo registo"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Guardar o ID do novo registo."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Processado."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Actualizar um registo"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Acção"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Campo de ID do registo"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Seleccione o campo que irá conter o ID do registo que irá ser actualizado. "
"Isto é usado para referenciar o registo para que possa ser actualizado."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "ID do registo (próprio)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Campo de estado de aprovação"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Titular"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Aprovação"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Contribuição do utilizador"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Seleccione um titular"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Utilizador (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Extensão Connector para Gravity Flow."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,359 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: FX Bénard <fxb@wp-translations.org>, 2017\n"
"Language-Team: Russian (Russia) (https://www.transifex.com/gravityflow/teams/50678/ru_RU/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: ru_RU\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr ""
#: class-form-connector.php:85
msgid "Uninstall"
msgstr ""
#: class-form-connector.php:318
msgid "Submission received."
msgstr ""
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr ""
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr ""
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr ""
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr ""
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr ""
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr ""
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Выбор"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Условная маршрутизация"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Политика представителя"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Определите, как следует обработать этот шаг. Если все представители должны "
"завершить этот шаг, то запись будет требовать ввода данных от каждого "
"представителя перед этапом завершения. Если шаг назначен на роль, только "
"один пользователь с этой ролью должен закончить шаг."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr ""
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Все представители должны завершить этот шаг"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr ""
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr ""
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Форма"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr ""
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr ""
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Поле"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Значение"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr ""
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr ""
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr ""
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr ""
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "ID записи"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr ""
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr ""
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr ""
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Создано"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "По ширине"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr ""
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr ""
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Пользователь"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "Электронная почта"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Роль"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr ""
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Завершено"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "В очереди"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr ""
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr ""
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr ""
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr ""
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr ""
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr ""
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Публичный Ключ"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Закрытый ключ"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr ""
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr ""
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr ""
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr ""
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Действие"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr ""
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr ""
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr ""
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Назначено"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Утверждение"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Ввод данных пользователем"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr ""
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr ""
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr ""
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr ""
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr ""

View File

@@ -0,0 +1,370 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Tor-Bjorn Fjellner, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Tor-Bjorn Fjellner, 2017\n"
"Language-Team: Swedish (Sweden) (https://www.transifex.com/gravityflow/teams/50678/sv_SE/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: sv_SE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Hantera inställningar"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Avinstallera"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Inlämningen har tagits emot."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "Länken till detta formulär är inte längre giltig."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Detta formulär är inte längre giltigt."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Detta formulär tar inte längre emot inskickad information."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Det krävs inte längre någon inmatning från dig."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr "Ett problem inträffade med din inskickade information. Använd länken."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Inskickande av formulär"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Välj ett formulär"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Välj"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Villkorad dirigering"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Policy för val av ansvariga"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Ange hur detta steg ska behandlas. Om alla ansvariga personer måste avsluta "
"detta steg kommer ärendet att kräva inmatning från varje ansvarig person "
"innan steget kan avslutas. Om ansvaret för steget vilar på en roll räcker "
"det med att någon användare i aktuell roll avslutar steget."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "Minst en ansvarig person måste utföra detta steg"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Alla ansvariga personer måste avsluta detta steg"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "E-postadress till ansvarig person"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr "Vänligen skicka in följande formulär: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Formulär"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
"Välj vilket formulär som ska användas för detta formulärinskickningssteg."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Välj sidan som ska användas för inskickningen av formuläret. Det kan vara en"
" formulärinskickningssida i WordPress administrationspanel eller så kan du "
"välja en sida som innehåller en kortkod för Gravity Flow-inskickning eller "
"en kortkod för Gravity Forms."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Inskickningssida"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Fältkoppling"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Fält"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Värde"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Koppling"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Koppla fälten i detta formulär till valt formulär. Värdena i detta formulär "
"kommer att sparas i ärendet i valt formulär"
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Väntar."
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Välj ett fält"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Välj ett %s-fält"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "Ärende-ID"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Ärendets datum"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "Användarens IP-adress"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "URL för källa"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Skapad av"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Fullständig"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Utvalt"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Öppna formulär"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Användare"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "E-post"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Roll"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Väntar på inskickning"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Färdigt"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "Lagt i kö"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
"Standard WordPress administrationspanel: Inskickningssida för arbetsflöde"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "Har behandlats"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Nytt ärende"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Webbplats"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Denna webbplats"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "En annan webbplats"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "Webbplats-URL"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Publik nyckel"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Privat nyckel"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Spara nytt ärende-ID"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Spara ID för det nya ärendet."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "Har bearbetats."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Uppdatera ett ärende"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Åtgärd"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "ID-fält för ärende"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Välj vilket fält som kommer att innehålla ärendets ID för ärendet som ska "
"uppdateras. Detta används för att hitta ärendet så att det kan uppdateras."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "Ärende-ID (eget)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Fält för godkännandestatus"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Ansvarig"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Godkännande"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Användarinmatning"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Välj en ansvarig"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Användare (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Tillägg till Gravity Flow för formulärkoppling."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,371 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# FX Bénard <fxb@wp-translations.org>, 2017
# Türker YILDIRIM <turker.biz@gmail.com>, 2017
# Emre Erkan <kara+transifex@karalamalar.net>, 2017
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: Emre Erkan <kara+transifex@karalamalar.net>, 2017\n"
"Language-Team: Turkish (Turkey) (https://www.transifex.com/gravityflow/teams/50678/tr_TR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: tr_TR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr "Ayarları yönet"
#: class-form-connector.php:85
msgid "Uninstall"
msgstr "Kaldır"
#: class-form-connector.php:318
msgid "Submission received."
msgstr "Gönderi ulaştı."
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "Bu forma bağlantı artık geçerli değil."
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "Bu form artık geçerli değil."
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "Bu form artık gönderi kabul etmiyor."
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "Girişiniz artık gerekli değil."
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
"Gönderizle ilgili bir sorun oluştu. Lütfen verilen bağlantıyı kullanın."
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "Form gönderimi"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "Bir form seçin"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "Seç"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "Koşullu yönlendirme"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "Görevlendirme kuralları"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"Bu adımın nasıl işleneceğini tanımlayın. Eğer tüm görevliler bu adımı "
"tamamlamak zorundaysa herbiri giriş yapana kadar bir sonraki adıma geçilmez."
" Eğer bu adım bir role atandıysa, o roldeki bir görevlinin bu adımı "
"tamamlaması yeterli olur."
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "En az bir görevlinin bu adımı tamamlaması gerekir"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "Tüm görevlilerin bu adımı tamamlaması gerekir"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "Görevli e-postası"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr "Lütfen aşağıdaki formu gönderin: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "Form"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr "Bu form gönderme adımı için kullanılacak formu seçin."
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"Form gönderimi için kullanılacak sayfayı seçin. Bu, WordPress yönetici "
"kontrol panelindeki iş akışı gönderme sayfası olabilir veya Gravity Flow "
"gönderimli kısa kod veya Gravity Forms kısayolu içeren bir sayfa "
"seçebilirsiniz."
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "Gönderi sayfası"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "Alan eşleştirme"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "Alan"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "Değer"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "Eşleştirme"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr ""
"Bu form alanlarını seçili form ile eşleyin. Bu formdaki değerler seçili "
"formdaki kayıt içine kaydedilir"
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "Beklemede"
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "Bir alan seçin"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "Bir %s alanı seçin"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "Kayıt no:"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "Kayıt tarihi"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "Kullanıcı IP"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "Kaynak adres"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "Oluşturan"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "Dolu"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "Seçilmiş"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "Form aç"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "Kullanıcı"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "E-posta"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "Rol"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "Bekleyen gönderi"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "Tamamlandı"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "Sıraya alındı"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
"Varsayılan - WordPress yönetici kontrol paneli: İş akışı gönderme sayfası"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr "İşlenmiş"
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "Yeni kayıt"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "Site"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "Bu site"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "Farklı bir site"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "Site adresi"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "Genel anahtar"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "Özel Anahtar"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "Yeni kayıt noyu sakla"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "Yeni kaydın nosunu sakla."
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "İşlendi."
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "Kayıt güncelle"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "Eylem"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "Kayıt no alanı"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
"Güncellenecek girdinin giriş kimliğini içeren alanı seçin. Bu, girişi aramak"
" için kullanılır, böylece güncellenebilir."
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "Kayıt no (Kendisi)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "Onay durumu alanı"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "Görevli"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "Onaylama"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "Kullanıcı Girişi"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr "Atanacak kişi seçin"
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr "Kullanıcı (created_by)"
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr "Gravity Flow Form Connector"
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr "https://gravityflow.io"
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "Gravity Flow için Form Bağlayıcı Uzantısı."
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr "Gravity Flow"

View File

@@ -0,0 +1,358 @@
# Copyright 2015-2017 Steven Henty.
# Translators:
# michael edi <michaeledi@163.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: gravityflowformconnector\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2017-12-16 16:42:27+00:00\n"
"PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: michael edi <michaeledi@163.com>, 2016\n"
"Language-Team: Chinese (China) (https://www.transifex.com/gravityflow/teams/50678/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:84
msgid "Manage Settings"
msgstr ""
#: class-form-connector.php:85
msgid "Uninstall"
msgstr ""
#: class-form-connector.php:318
msgid "Submission received."
msgstr "已收到提交项目。"
#: class-form-connector.php:377 class-form-connector.php:386
msgid "The link to this form is no longer valid."
msgstr "此表单链接已失效。"
#: class-form-connector.php:425
msgid "This form is no longer valid."
msgstr "此表单已失效。"
#: class-form-connector.php:436
msgid "This form is no longer accepting submissions."
msgstr "此表单已经不再接受新的项目提交。"
#: class-form-connector.php:446
msgid "Your input is no longer required."
msgstr "您的输入不再是必需的。"
#: class-form-connector.php:453
msgid "There was a problem with you submission. Please use the link provided."
msgstr "您提交的项目存在问题。请使用提供的链接。"
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr "表单提交"
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26
#: includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr "请选择表单"
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr "选择"
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr "条件式发送规则"
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr "负责人指定规则"
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
"定义该步骤如何操作。如果所有的负责人都必须完成这一步,那么在步骤完成之前,该条目将先要求每个负责人填写。如果该步骤被分配给一个角色,那么只需要一个属于该角色的用户来完成该步骤。"
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr "至少一个负责人必须完成此步骤"
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr "所有的负责人必须完成这个步骤"
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr "负责人邮箱"
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr "请在下表中提交项目: {workflow_form_submission_link}"
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76
#: includes/class-step-update-entry.php:85
msgid "Form"
msgstr "表单"
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr "选择此表单提交步骤所用的表单。"
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the Workflow"
" Submit Page in the WordPress Admin Dashboard or you can choose a page with "
"either a Gravity Flow submit shortcode or a Gravity Forms shortcode."
msgstr ""
"选择要用于表单提交的页面。它可以位于 WordPress "
"管理仪表板中的工作流提交页面你也可以选择包含GravityForms/GravityFlow短代码的页面。"
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr "提交页面"
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr "字段映射"
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr "字段"
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr "值"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr "映射"
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form will"
" be saved in the entry in the selected form"
msgstr "将本表单的字段映射到指定表单。本表单的值将保存到选择的表单条目中。"
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr "待处理。"
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr "选择一个字段"
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr "选择一个 %s 字段"
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr "条目 ID"
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr "条目日期"
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr "用户 IP"
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr "源URL"
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr "创建者"
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr "全部"
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr "已选择"
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr "打开表单"
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr "用户"
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr "邮箱"
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr "角色"
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr "等待提交"
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr "完成"
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr "已队列"
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr "默认值 - WordPress 管理仪表板︰ 工作流提交页"
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr ""
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr "新条目"
#: includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr "站点"
#: includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr "此站点"
#: includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr "其他站点"
#: includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr "网站URL"
#: includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr "公共Key"
#: includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr "私有Key"
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr "保存新条目ID"
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr "保存新条目的ID"
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr "处理完成。"
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr "更新一个条目"
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr "操作"
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr "条目ID字段"
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr "选择包含有将被更新的条目的ID的字段。这将用于查找指定条目以便更新。"
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr "条目ID(自身)"
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr "审批状态字段"
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr "负责人"
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr "批准"
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr "用户输入"
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr ""
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr ""
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr ""
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr "连接不同表单的数据"
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr ""

View File

@@ -0,0 +1,388 @@
# Copyright 2015-2018 Steven Henty.
msgid ""
msgstr ""
"Project-Id-Version: Gravity Flow Form Connector 1.4\n"
"Report-Msgid-Bugs-To: https://www.gravityflow.io\n"
"POT-Creation-Date: 2018-06-17 13:22:04+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
"Last-Translator: Steven Henty <support@gravityflow.io>\n"
"Language-Team: Steven Henty <support@gravityflow.io>\n"
"X-Generator: Gravity Flow Build Script\n"
"X-Poedit-KeywordsList: "
"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_"
"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n"
"Project-Id-Version: gravityflowformconnector\n"
"Language: en_US\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Basepath: ../\n"
"X-Poedit-Bookmarks: \n"
"X-Poedit-Country: United States\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Textdomain-Support: yes\n"
#: class-form-connector.php:106
msgid "Manage Settings"
msgstr ""
#: class-form-connector.php:107
msgid "Uninstall"
msgstr ""
#: class-form-connector.php:354
msgid "Submission received."
msgstr ""
#: class-form-connector.php:416 class-form-connector.php:426
msgid "The link to this form is no longer valid."
msgstr ""
#: class-form-connector.php:465
msgid "This form is no longer valid."
msgstr ""
#: class-form-connector.php:476
msgid "This form is no longer accepting submissions."
msgstr ""
#: class-form-connector.php:486
msgid "Your input is no longer required."
msgstr ""
#: class-form-connector.php:493
msgid "There was a problem with you submission. Please use the link provided."
msgstr ""
#: includes/class-step-delete-entry.php:22
#: includes/class-step-delete-entry.php:32
msgid "Delete an Entry"
msgstr ""
#: includes/class-step-delete-entry.php:36 includes/class-step-new-entry.php:37
#: includes/class-step-update-entry.php:46
msgid "Site"
msgstr ""
#: includes/class-step-delete-entry.php:42 includes/class-step-new-entry.php:43
#: includes/class-step-update-entry.php:52
msgid "This site"
msgstr ""
#: includes/class-step-delete-entry.php:44 includes/class-step-new-entry.php:44
#: includes/class-step-update-entry.php:53
msgid "A different site"
msgstr ""
#: includes/class-step-delete-entry.php:51 includes/class-step-new-entry.php:49
#: includes/class-step-update-entry.php:58
msgid "Site Url"
msgstr ""
#: includes/class-step-delete-entry.php:60 includes/class-step-new-entry.php:58
#: includes/class-step-update-entry.php:67
msgid "Public Key"
msgstr ""
#: includes/class-step-delete-entry.php:69 includes/class-step-new-entry.php:67
#: includes/class-step-update-entry.php:76
msgid "Private Key"
msgstr ""
#: includes/class-step-delete-entry.php:78
msgid "Delete Action"
msgstr ""
#: includes/class-step-delete-entry.php:84
msgid "Permanently delete the entry"
msgstr ""
#: includes/class-step-delete-entry.php:88
msgid "Move the entry to the trash"
msgstr ""
#: includes/class-step-delete-entry.php:102
#: includes/class-step-update-entry.php:104
msgid "Entry ID Field"
msgstr ""
#: includes/class-step-delete-entry.php:104
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"deleted. This is used to lookup the entry so it can be deleted."
msgstr ""
#: includes/class-step-delete-entry.php:123
#: includes/class-step-update-entry.php:128
msgid "Entry ID (Self)"
msgstr ""
#: includes/class-step-delete-entry.php:177
msgid "Moved entry to the trash."
msgstr ""
#: includes/class-step-delete-entry.php:182
msgid "Scheduled entry for deletion on workflow completion."
msgstr ""
#: includes/class-step-form-submission.php:20
#: includes/class-step-form-submission.php:43
msgid "Form Submission"
msgstr ""
#: includes/class-step-form-submission.php:28
#: includes/class-step-new-entry.php:26 includes/class-step-update-entry.php:32
msgid "Select a Form"
msgstr ""
#: includes/class-step-form-submission.php:36
msgid "Select"
msgstr ""
#: includes/class-step-form-submission.php:37
msgid "Conditional Routing"
msgstr ""
#: includes/class-step-form-submission.php:51
msgid "Assignee Policy"
msgstr ""
#: includes/class-step-form-submission.php:52
msgid ""
"Define how this step should be processed. If all assignees must complete "
"this step then the entry will require input from every assignee before the "
"step can be completed. If the step is assigned to a role only one user in "
"that role needs to complete the step."
msgstr ""
#: includes/class-step-form-submission.php:57
msgid "At least one assignee must complete this step"
msgstr ""
#: includes/class-step-form-submission.php:61
msgid "All assignees must complete this step"
msgstr ""
#: includes/class-step-form-submission.php:70
msgid "Assignee email"
msgstr ""
#: includes/class-step-form-submission.php:74
msgid "Please submit the following form: {workflow_form_submission_link}"
msgstr ""
#: includes/class-step-form-submission.php:80
#: includes/class-step-new-entry.php:76 includes/class-step-update-entry.php:85
msgid "Form"
msgstr ""
#: includes/class-step-form-submission.php:81
msgid "Select the form to be used for this form submission step."
msgstr ""
#: includes/class-step-form-submission.php:88
msgid ""
"Select the page to be used for the form submission. This can be the "
"Workflow Submit Page in the WordPress Admin Dashboard or you can choose a "
"page with either a Gravity Flow submit shortcode or a Gravity Forms "
"shortcode."
msgstr ""
#: includes/class-step-form-submission.php:89
msgid "Submission Page"
msgstr ""
#: includes/class-step-form-submission.php:100
#: includes/class-step-new-entry.php:88 includes/class-step-new-entry.php:106
#: includes/class-step-update-entry.php:148
msgid "Field Mapping"
msgstr ""
#: includes/class-step-form-submission.php:104
#: includes/class-step-new-entry.php:93
#: includes/class-step-update-entry.php:152
msgid "Field"
msgstr ""
#: includes/class-step-form-submission.php:105
#: includes/class-step-new-entry.php:94
#: includes/class-step-update-entry.php:153
msgid "Value"
msgstr ""
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid "Mapping"
msgstr ""
#: includes/class-step-form-submission.php:108
#: includes/class-step-new-entry.php:97 includes/class-step-new-entry.php:110
#: includes/class-step-update-entry.php:156
msgid ""
"Map the fields of this form to the selected form. Values from this form "
"will be saved in the entry in the selected form"
msgstr ""
#: includes/class-step-form-submission.php:159
msgid "Pending."
msgstr ""
#: includes/class-step-form-submission.php:205
#: includes/class-step-new-entry.php:382
msgid "Select a Field"
msgstr ""
#: includes/class-step-form-submission.php:212
#: includes/class-step-new-entry.php:389
msgid "Select a %s Field"
msgstr ""
#: includes/class-step-form-submission.php:220
#: includes/class-step-new-entry.php:397
msgid "Entry ID"
msgstr ""
#: includes/class-step-form-submission.php:221
#: includes/class-step-new-entry.php:398
msgid "Entry Date"
msgstr ""
#: includes/class-step-form-submission.php:222
#: includes/class-step-new-entry.php:399
msgid "User IP"
msgstr ""
#: includes/class-step-form-submission.php:223
#: includes/class-step-new-entry.php:400
msgid "Source Url"
msgstr ""
#: includes/class-step-form-submission.php:224
#: includes/class-step-new-entry.php:401
msgid "Created By"
msgstr ""
#: includes/class-step-form-submission.php:261
#: includes/class-step-form-submission.php:268
#: includes/class-step-form-submission.php:288
#: includes/class-step-new-entry.php:439 includes/class-step-new-entry.php:446
#: includes/class-step-new-entry.php:466
msgid "Full"
msgstr ""
#: includes/class-step-form-submission.php:275
#: includes/class-step-new-entry.php:453
msgid "Selected"
msgstr ""
#: includes/class-step-form-submission.php:530
msgid "Open Form"
msgstr ""
#: includes/class-step-form-submission.php:585
msgid "User"
msgstr ""
#: includes/class-step-form-submission.php:589
msgid "Email"
msgstr ""
#: includes/class-step-form-submission.php:593
msgid "Role"
msgstr ""
#: includes/class-step-form-submission.php:610
msgid "Pending Submission"
msgstr ""
#: includes/class-step-form-submission.php:614
msgid "Complete"
msgstr ""
#: includes/class-step-form-submission.php:616
msgid "Queued"
msgstr ""
#: includes/class-step-form-submission.php:721
msgid "Default - WordPress Admin Dashboard: Workflow Submit Page"
msgstr ""
#: includes/class-step-form-submission.php:790
msgid "Processed"
msgstr ""
#: includes/class-step-new-entry.php:20 includes/class-step-new-entry.php:33
msgid "New Entry"
msgstr ""
#: includes/class-step-new-entry.php:122
msgid "Store New Entry ID"
msgstr ""
#: includes/class-step-new-entry.php:125
msgid "Store the ID of the new entry."
msgstr ""
#: includes/class-step-new-entry.php:190
msgid "Processed."
msgstr ""
#: includes/class-step-update-entry.php:20
#: includes/class-step-update-entry.php:42
#: includes/class-step-update-entry.php:203
msgid "Update an Entry"
msgstr ""
#: includes/class-step-update-entry.php:92
msgid "Action"
msgstr ""
#: includes/class-step-update-entry.php:106
msgid ""
"Select the field which will contain the entry ID of the entry that will be "
"updated. This is used to lookup the entry so it can be updated."
msgstr ""
#: includes/class-step-update-entry.php:138
msgid "Approval Status Field"
msgstr ""
#: includes/class-step-update-entry.php:176
#: includes/class-step-update-entry.php:186
msgid "Assignee"
msgstr ""
#: includes/class-step-update-entry.php:241
msgid "Approval"
msgstr ""
#: includes/class-step-update-entry.php:244
msgid "User Input"
msgstr ""
#: includes/class-step-update-entry.php:504
msgid "Select an assignee"
msgstr ""
#: includes/class-step-update-entry.php:510
msgid "User (created_by)"
msgstr ""
#. Plugin Name of the plugin/theme
msgid "Gravity Flow Form Connector"
msgstr ""
#. Author URI of the plugin/theme
msgid "https://gravityflow.io"
msgstr ""
#. Description of the plugin/theme
msgid "Form Connector Extension for Gravity Flow."
msgstr ""
#. Author of the plugin/theme
msgid "Gravity Flow"
msgstr ""

View File

@@ -0,0 +1,33 @@
Gravity Flow Form Connector Extension
=====================================
The Gravity Flow Form Connector Extension is a premium plugin for WordPress which allows Gravity Flow administrators to create workflow steps that create or update entries for a different form.
This repository is a development version of the Gravity Flow Form Connector Extension and is intended to facilitate communication with developers. It is not stable and not intended for installation on production sites.
Bug reports and pull requests are welcome.
If you'd like to receive the release version, automatic updates and support please purchase a license: https://gravityflow.io.
## Installation Instructions
The only thing you need to do to get this development version working is clone this repository into your plugins directory and activate script debug mode. If you try to use this plugin without script mode on the scripts and styles will not load and it will not work properly.
To enable script debug mode just add the following line to your wp-config.php file:
define( 'SCRIPT_DEBUG', true );
## Documentation
User Guides, FAQ, Walkthroughs and Developer Docs: http://docs.gravityflow.io
Class documentation: http://codex.gravityflow.io
## Translations
If you'd like to translate the Gravity Flow Form Connector Extension into your language please create a free account here:
https://www.transifex.com/projects/p/gravityflow/
Copyright 2015-2017 Steven Henty

View File

@@ -0,0 +1,101 @@
=== Gravity Flow Form Connector Extension ===
Contributors: stevehenty
Tags: gravity forms, approvals, workflow
Requires at least: 4.0
Tested up to: 4.8.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Create, update and link entries in Gravity Flow.
== Description ==
The Gravity Flow Form Connector Extension is an advanced extension for Gravity Flow.
Gravity Flow is a premium Add-On for [Gravity Forms](https://gravityflow.io/gravityforms)
= Requirements =
1. [Purchase and install Gravity Forms](https://gravityflow.io/gravityforms)
1. [Purchase and install Gravity Flow](https://gravityflow.io)
1. Wordpress 4.7+
1. Gravity Forms 2.1+
1. Gravity Flow 1.7+
= Support =
If you find any that needs fixing, or if you have any ideas for improvements, please get in touch:
https://gravityflow.io/contact/
== Installation ==
1. Download the zipped file.
1. Extract and upload the contents of the folder to /wp-contents/plugins/ folder
1. Go to the Plugin management page of WordPress admin section and enable the 'Gravity Flow Form Connector Extension' plugin.
== Frequently Asked Questions ==
= Which license of Gravity Flow do I need? =
The Gravity Flow Form Connector Extension will work with any license of [Gravity Flow](https://gravityflow.io).
== ChangeLog ==
= 1.4 =
- Added the Delete Entry step.
- Added the "gravityflowformconnector_{step_type}_use_choice_text" filter allowing the choice text to be returned instead of the choice values.
- Fixed an issue where a checkbox field (selected) mapped to a text field would return the choice text instead of the choice values.
- Fixed a PHP deprecation notice on PHP 7.2 with the Form Submission step.
= 1.3 =
- Added support for the token attribute to the {workflow_form_submission_url} and {workflow_form_submission_link} merge tags.
- Added the Assignee setting to the Update Entry step to allow the assignee to be selected for User Input and Approval actions.
- Fixed a misleading message at the top of the form for email assignees when the link is not valid.
- Fixed an issue with the Form Submission step where the role and email assignees can't complete the step.
- Fixed an issue with the Form Submission step where hidden and administrative fields may not get mapped.
- Updated Members 2.0 integration to use human readable labels for the capabilities. Requires Gravity Flow 1.8.1 or greater.
= 1.2.1 =
- Added support for steps extending Gravity_Flow_Step_Form_Submission
- Fixed an issue with the Parent-Child Forms extension where an invalid link message is displayed when the parent entry is on a step that is not a Form Submission step.
= 1.2 =
- Added the Store New Entry ID setting to the New Entry step settings.
- Added the gravityflowformconnector_update_entry_id filter to allow the target entry ID to be modified.
Example:
add_filter( 'gravityflowformconnector_update_entry_id', 'sh_gravityflowformconnector_update_entry_id', 10, 5);
function sh_gravityflowformconnector_update_entry_id( $target_entry_id, $target_form_id, $entry, $form, $step ) {
// Custom search for the target entry ID based on the value of field ID 4.
$search_criteria['status'] = 'active';
$search_criteria['field_filters'][] = array( 'key' => '2', 'value' => $entry['4'] );
$entries = GFAPI::get_entries( $target_form_id, $search_criteria );
// Return the ID of the first entry in the results.
return $entries[0]['id'];
}
- Added support for updating the same entry when the target and source forms are the same. Select Entry ID (Self) in the Entry ID field setting.
- Fixed an issue with the approval action of the Update Entry Step for entries created with the New Entry step.
- Fixed an issue with the field mappings which may affect some forms.
- Fixed an issue with the update step when triggered by a schedule or the expiration of a previous step where the approval or user input action does not complete.
- Fixed an issue with the update step where remote approval and user input steps can fail on some servers. Requires Gravity Flow 1.6.2-dev+.
= 1.1 =
- Added translations for Chinese (China) and Dutch (Netherlands).
- Added integration with the Gravity Flow Parent-Child Forms Extension; a parent form can now be selected for the 'Entry ID Field' setting on the 'Update an Entry' step.
- Added the Form Submission step.
- Fixed an issue with the value for choice based Poll, Quiz, and Survey fields in the new or updated entry.
= 1.0.1.2 =
- Added support for mapping the created_by field in the target entry.
- Fixed a fatal error which could occur when using the 'Update an Entry' step type and the 'Entry ID Field' setting was not configured.
= 1.0.1.1 =
- Added support for merge tag processing in the custom values fields of mappings.
= 1.0.1 =
- Added support for custom values in the mapping. Requires Gravity Flow 1.3.0.10.
= 1.0.0 =
All new!