diff --git a/CRM/Twingle/Form/Profile.php b/CRM/Twingle/Form/Profile.php index 76c9cb4..73022cd 100644 --- a/CRM/Twingle/Form/Profile.php +++ b/CRM/Twingle/Form/Profile.php @@ -648,7 +648,8 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form { if (!isset($profile_data[$key]) && $required) { CRM_Core_Session::setStatus( E::ts( - 'The required configuration option "%1" has no value. Saving the profile might set this option to a possibly unwanted default value.', + 'The required configuration option "%1" has no value.' + . ' Saving the profile might set this option to a possibly unwanted default value.', [1 => $metadata['label'] ?? $key] ), E::ts('Error'), diff --git a/CRM/Twingle/Form/Settings.php b/CRM/Twingle/Form/Settings.php index 450b52a..a92535e 100644 --- a/CRM/Twingle/Form/Settings.php +++ b/CRM/Twingle/Form/Settings.php @@ -29,16 +29,16 @@ class CRM_Twingle_Form_Settings extends CRM_Core_Form { * List of all settings options. */ public static $SETTINGS_LIST = [ - 'twingle_prefix', - 'twingle_use_sepa', - 'twingle_dont_use_reference', - 'twingle_protect_recurring', - 'twingle_protect_recurring_activity_type', - 'twingle_protect_recurring_activity_subject', - 'twingle_protect_recurring_activity_status', - 'twingle_protect_recurring_activity_assignee', - 'twingle_use_shop', - 'twingle_access_key', + 'twingle_prefix', + 'twingle_use_sepa', + 'twingle_dont_use_reference', + 'twingle_protect_recurring', + 'twingle_protect_recurring_activity_type', + 'twingle_protect_recurring_activity_subject', + 'twingle_protect_recurring_activity_status', + 'twingle_protect_recurring_activity_assignee', + 'twingle_use_shop', + 'twingle_access_key', ]; /** @@ -110,22 +110,22 @@ class CRM_Twingle_Form_Settings extends CRM_Core_Form { $this->add( 'checkbox', 'twingle_use_shop', - E::ts('Use Twingle Shop Integration') + E::ts("Use Twingle Shop Integration") ); $this->add( 'text', 'twingle_access_key', - E::ts('Twingle Access Key') + E::ts("Twingle Access Key") ); - $this->addButtons([ - [ - 'type' => 'submit', - 'name' => E::ts('Save'), - 'isDefault' => TRUE, - ], - ]); + $this->addButtons(array( + array ( + 'type' => 'submit', + 'name' => E::ts('Save'), + 'isDefault' => TRUE, + ) + )); // set defaults foreach (self::$SETTINGS_LIST as $setting) { @@ -164,7 +164,7 @@ class CRM_Twingle_Form_Settings extends CRM_Core_Form { CRM_Utils_Array::value('twingle_use_shop', $this->_submitValues) && !CRM_Utils_Array::value('twingle_access_key', $this->_submitValues, FALSE) ) { - $this->_errors['twingle_access_key'] = E::ts('An Access Key is required to enable Twingle Shop Integration'); + $this->_errors['twingle_access_key'] = E::ts("An Access Key is required to enable Twingle Shop Integration"); } return (0 == count($this->_errors)); diff --git a/CRM/Twingle/Submission.php b/CRM/Twingle/Submission.php index 1955d18..48c658a 100644 --- a/CRM/Twingle/Submission.php +++ b/CRM/Twingle/Submission.php @@ -18,6 +18,7 @@ declare(strict_types = 1); use CRM_Twingle_ExtensionUtil as E; use Civi\Twingle\Exceptions\BaseException; use Civi\Twingle\Shop\Exceptions\LineItemException; +use Civi\Twingle\Shop\BAO\TwingleProduct; class CRM_Twingle_Submission { @@ -502,7 +503,7 @@ class CRM_Twingle_Submission { // Try to find the TwingleProduct with its corresponding PriceField // for this product try { - $price_field = CRM_Twingle_BAO_TwingleProduct::findByExternalId($product['id']); + $price_field = TwingleProduct::findByExternalId($product['id']); } catch (Exception $e) { Civi::log()->error(E::LONG_NAME . @@ -545,7 +546,7 @@ class CRM_Twingle_Submission { if (!empty($line_item['is_error'])) { $line_item_name = $line_item_data['name']; throw new CiviCRM_API3_Exception( - E::ts("Could not create line item for product '%1'", [1 => $line_item_name]), + E::ts("Could not create line item for product '$line_item_name'"), 'api_error' ); } diff --git a/CRM/Twingle/BAO/TwingleProduct.php b/Civi/Twingle/Shop/BAO/TwingleProduct.php similarity index 94% rename from CRM/Twingle/BAO/TwingleProduct.php rename to Civi/Twingle/Shop/BAO/TwingleProduct.php index c782314..62f37c3 100644 --- a/CRM/Twingle/BAO/TwingleProduct.php +++ b/Civi/Twingle/Shop/BAO/TwingleProduct.php @@ -1,10 +1,16 @@ [$external_id, 'String']]); if ($dao->fetch()) { $product = new self(); @@ -450,7 +456,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { // Try to lookup object in database try { - $dao = CRM_Twingle_BAO_TwingleShop::executeQuery("SELECT * FROM civicrm_twingle_product WHERE external_id = %1", + $dao = TwingleShopDAO::executeQuery("SELECT * FROM civicrm_twingle_product WHERE external_id = %1", [1 => [$this->external_id, 'String']]); if ($dao->fetch()) { $this->copyValues(array_merge($dao->toArray(), $this->getAttributes())); @@ -458,7 +464,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { } catch (\Civi\Core\Exception\DBQueryException $e) { throw new ProductException( - E::ts('Could not find TwingleProduct in database: %1', [1 => $e->getMessage()]), + E::ts('Could not find TwingleProduct in database: ' . $e->getMessage()), ShopException::ERROR_CODE_COULD_NOT_FIND_SHOP_IN_DB); } @@ -466,8 +472,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { $twingle_product_values = $this->getAttributes(); try { \CRM_Utils_Hook::pre($mode, 'TwingleProduct', $this->id, $twingle_product_values); - } - catch (\Exception $e) { + } catch (\Exception $e) { $tx->rollback(); throw $e; } @@ -482,15 +487,14 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { // Save object to database try { $this->save(); - } - catch (\Exception $e) { + } catch (\Exception $e) { $tx->rollback(); throw new ProductException( - E::ts('Could not save TwingleProduct to database: %1', [1 => $e->getMessage()]), + E::ts('Could not save TwingleProduct to database: ' . $e->getMessage()), ProductException::ERROR_CODE_COULD_NOT_CREATE_PRODUCT); } $result = self::findById($this->id); - /** @var self $result */ + /* @var self $result */ $this->load($result->getAttributes()); // Register post-hook @@ -510,7 +514,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { /** * Delete TwingleProduct along with associated PriceField and PriceFieldValue. * - * @override \CRM_Twingle_DAO_TwingleProduct::delete + * @override \Civi\Twingle\Shop\DAO\TwingleProduct::delete * @throws \CRM_Core_Exception * @throws \Civi\Twingle\Shop\Exceptions\ProductException */ @@ -566,7 +570,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { /** * Compare two products * - * @param CRM_Twingle_BAO_TwingleProduct $product_to_compare_with + * @param TwingleProduct $product_to_compare_with * Product from database * * @return bool @@ -588,7 +592,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { */ public function getFinancialTypeId(): ?int { if (!empty($this->price_field_id)) { - $price_set = PriceField::get() + $price_set = \Civi\Api4\PriceField::get() ->addSelect('financial_type_id') ->addWhere('id', '=', $this->price_field_id) ->execute() @@ -606,7 +610,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { */ public function getPriceFieldValueId() { if (!empty($this->price_field_id)) { - $price_field_value = PriceFieldValue::get() + $price_field_value = \Civi\Api4\PriceFieldValue::get() ->addSelect('id') ->addWhere('price_field_id', '=', $this->price_field_id) ->execute() @@ -631,7 +635,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { } catch (CRM_Core_Exception $e) { throw new ProductException( - E::ts('An Error occurred while searching for the associated PriceFieldValue: %1', [1 => $e->getMessage()]), + E::ts('An Error occurred while searching for the associated PriceFieldValue: ' . $e->getMessage()), ProductException::ERROR_CODE_PRICE_FIELD_VALUE_NOT_FOUND); } try { @@ -639,7 +643,7 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { } catch (CRM_Core_Exception $e) { throw new ProductException( - E::ts('Could not delete associated PriceFieldValue: %1', [1 => $e->getMessage()]), + E::ts('Could not delete associated PriceFieldValue: ' . $e->getMessage()), ProductException::ERROR_CODE_COULD_NOT_DELETE_PRICE_FIELD_VALUE); } @@ -663,14 +667,13 @@ class CRM_Twingle_BAO_TwingleProduct extends CRM_Twingle_DAO_TwingleProduct { } catch (CRM_Core_Exception $e) { throw new ProductException( - E::ts('An Error occurred while searching for the associated PriceField: %1', [1 => $e->getMessage()]), + E::ts('An Error occurred while searching for the associated PriceField: ' . $e->getMessage()), ProductException::ERROR_CODE_PRICE_FIELD_NOT_FOUND); } throw new ProductException( - E::ts('Could not delete associated PriceField: %1', [1 => $e->getMessage()]), + E::ts('Could not delete associated PriceField: ' . $e->getMessage()), ProductException::ERROR_CODE_COULD_NOT_DELETE_PRICE_FIELD); } $this->price_field_id = NULL; } - } diff --git a/CRM/Twingle/BAO/TwingleShop.php b/Civi/Twingle/Shop/BAO/TwingleShop.php similarity index 91% rename from CRM/Twingle/BAO/TwingleShop.php rename to Civi/Twingle/Shop/BAO/TwingleShop.php index 27ae3b8..c27853c 100644 --- a/CRM/Twingle/BAO/TwingleShop.php +++ b/Civi/Twingle/Shop/BAO/TwingleShop.php @@ -1,10 +1,15 @@ \CRM_Utils_Type::T_INT, @@ -59,14 +64,14 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { * @param string $project_identifier * Twingle project identifier * - * @return CRM_Twingle_BAO_TwingleShop + * @return TwingleShop * * @throws ShopException * @throws \Civi\Twingle\Shop\Exceptions\ApiCallError * @throws \CRM_Core_Exception */ public static function findByProjectIdentifier(string $project_identifier) { - $shop = new CRM_Twingle_BAO_TwingleShop(); + $shop = new TwingleShop(); $shop->get('project_identifier', $project_identifier); if (!$shop->id) { $shop->fetchDataFromTwingle($project_identifier); @@ -142,15 +147,14 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { // Try to lookup object in database try { - $dao = self::executeQuery("SELECT * FROM civicrm_twingle_shop WHERE project_identifier = %1", + $dao = TwingleShopDAO::executeQuery("SELECT * FROM civicrm_twingle_shop WHERE project_identifier = %1", [1 => [$this->project_identifier, 'String']]); if ($dao->fetch()) { $this->load($dao->toArray()); } - } - catch (\Civi\Core\Exception\DBQueryException $e) { + } catch (\Civi\Core\Exception\DBQueryException $e) { throw new ShopException( - E::ts('Could not find TwingleShop in database: %1', [1 => $e->getMessage()]), + E::ts('Could not find TwingleShop in database: ' . $e->getMessage()), ShopException::ERROR_CODE_COULD_NOT_FIND_SHOP_IN_DB); } @@ -192,7 +196,7 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { catch (\CRM_Core_Exception $e) { if ($e->getMessage() != 'Expected one PriceSet but found 0') { throw new ShopException( - E::ts('Could not find associated PriceSet: %1', [1 => $e->getMessage()]), + E::ts('Could not find associated PriceSet: ' . $e->getMessage()), ShopException::ERROR_CODE_PRICE_SET_NOT_FOUND); } else { @@ -208,7 +212,7 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { ['id' => $this->price_set_id]); } catch (\CRM_Core_Exception $e) { throw new ShopException( - E::ts('Could not delete associated PriceSet: %1', [1 => $e->getMessage()]), + E::ts('Could not delete associated PriceSet: ' . $e->getMessage()), ShopException::ERROR_CODE_COULD_NOT_DELETE_PRICE_SET); } @@ -255,7 +259,7 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { }, []); foreach ($products_from_db as $product) { - /* @var CRM_Twingle_BAO_TwingleProduct $product */ + /* @var TwingleProductBAO $product */ // Find orphaned products which are in the database but not in Twingle $found = array_key_exists($product->external_id, $products_from_twingle); @@ -282,8 +286,8 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { foreach ($products_from_twingle as $product_from_twingle) { $found = array_key_exists($product_from_twingle['id'], $products); if (!$found) { - $product = new CRM_Twingle_BAO_TwingleProduct(); - $product->load(CRM_Twingle_BAO_TwingleProduct::renameTwingleAttrs($product_from_twingle)); + $product = new TwingleProduct(); + $product->load(TwingleProduct::renameTwingleAttrs($product_from_twingle)); $product->twingle_shop_id = $this->id; $this->products[] = $product; } @@ -294,20 +298,20 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { /** * Get associated products. * - * @return list + * @return array[Civi\Twingle\Shop\BAO\TwingleProduct] * @throws \Civi\Core\Exception\DBQueryException * @throws \Civi\Twingle\Shop\Exceptions\ProductException */ public function getProducts() { $products = []; - $result = CRM_Twingle_BAO_TwingleProduct::executeQuery( + $result = TwingleProductBAO::executeQuery( "SELECT * FROM civicrm_twingle_product WHERE twingle_shop_id = %1", [1 => [$this->id, 'Integer']] ); while ($result->fetch()) { - $product = new CRM_Twingle_BAO_TwingleProduct(); + $product = new TwingleProductBAO(); $product->load($result->toArray()); $products[] = $product; } @@ -452,10 +456,9 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { public function deleteProducts() { try { $products = $this->getProducts(); - } - catch (\Civi\Core\Exception\DBQueryException $e) { + } catch (\Civi\Core\Exception\DBQueryException $e) { throw new ProductException( - E::ts('Could not retrieve associated products: %1', [1 => $e->getMessage()]), + E::ts('Could not retrieve associated products: ' . $e->getMessage()), ProductException::ERROR_CODE_COULD_NOT_GET_PRODUCTS ); } @@ -466,8 +469,8 @@ class CRM_Twingle_BAO_TwingleShop extends CRM_Twingle_DAO_TwingleShop { } catch (ProductException $e) { throw new ProductException( - E::ts('Could not delete associated products: %1', [1 => $e->getMessage()]), - ProductException::ERROR_CODE_COULD_NOT_DELETE_PRICE_SET, + E::ts('Could not delete associated products: ' . $e->getMessage()), + ProductException::ERROR_CODE_COULD_NOT_DELETE_PRICE_SET ); } } diff --git a/CRM/Twingle/DAO/TwingleProduct.php b/Civi/Twingle/Shop/DAO/TwingleProduct.php similarity index 94% rename from CRM/Twingle/DAO/TwingleProduct.php rename to Civi/Twingle/Shop/DAO/TwingleProduct.php index 3adeae7..9d4f075 100644 --- a/CRM/Twingle/DAO/TwingleProduct.php +++ b/Civi/Twingle/Shop/DAO/TwingleProduct.php @@ -1,5 +1,7 @@ 'civicrm_twingle_product.id', 'table_name' => 'civicrm_twingle_product', 'entity' => 'TwingleProduct', - 'bao' => 'CRM_Twingle_DAO_TwingleProduct', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'localizable' => 0, 'html' => [ 'type' => 'Number', @@ -165,7 +167,7 @@ class CRM_Twingle_DAO_TwingleProduct extends CRM_Core_DAO { 'where' => 'civicrm_twingle_product.external_id', 'table_name' => 'civicrm_twingle_product', 'entity' => 'TwingleProduct', - 'bao' => 'CRM_Twingle_DAO_TwingleProduct', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'localizable' => 0, 'html' => [ 'type' => 'Number', @@ -187,7 +189,7 @@ class CRM_Twingle_DAO_TwingleProduct extends CRM_Core_DAO { 'where' => 'civicrm_twingle_product.price_field_id', 'table_name' => 'civicrm_twingle_product', 'entity' => 'TwingleProduct', - 'bao' => 'CRM_Twingle_DAO_TwingleProduct', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'localizable' => 0, 'FKClassName' => 'CRM_Contact_DAO_Contact', 'add' => NULL, @@ -206,9 +208,9 @@ class CRM_Twingle_DAO_TwingleProduct extends CRM_Core_DAO { 'where' => 'civicrm_twingle_product.twingle_shop_id', 'table_name' => 'civicrm_twingle_product', 'entity' => 'TwingleProduct', - 'bao' => 'CRM_Twingle_DAO_TwingleProduct', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'localizable' => 0, - 'FKClassName' => 'CRM_Twingle_DAO_TwingleShop', + 'FKClassName' => 'Civi\Twingle\Shop\DAO\TwingleShop', 'add' => NULL, ], 'created_at' => [ @@ -226,7 +228,7 @@ class CRM_Twingle_DAO_TwingleProduct extends CRM_Core_DAO { 'where' => 'civicrm_twingle_product.created_at', 'table_name' => 'civicrm_twingle_product', 'entity' => 'TwingleProduct', - 'bao' => 'CRM_Twingle_DAO_TwingleProduct', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'localizable' => 0, 'add' => NULL, ], @@ -245,7 +247,7 @@ class CRM_Twingle_DAO_TwingleProduct extends CRM_Core_DAO { 'where' => 'civicrm_twingle_product.updated_at', 'table_name' => 'civicrm_twingle_product', 'entity' => 'TwingleProduct', - 'bao' => 'CRM_Twingle_DAO_TwingleProduct', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'localizable' => 0, 'add' => NULL, ], diff --git a/CRM/Twingle/DAO/TwingleShop.php b/Civi/Twingle/Shop/DAO/TwingleShop.php similarity index 96% rename from CRM/Twingle/DAO/TwingleShop.php rename to Civi/Twingle/Shop/DAO/TwingleShop.php index 4b6e704..bef6db7 100644 --- a/CRM/Twingle/DAO/TwingleShop.php +++ b/Civi/Twingle/Shop/DAO/TwingleShop.php @@ -1,5 +1,7 @@ 'civicrm_twingle_shop.id', 'table_name' => 'civicrm_twingle_shop', 'entity' => 'TwingleShop', - 'bao' => 'CRM_Twingle_DAO_TwingleShop', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleShop', 'localizable' => 0, 'html' => [ 'type' => 'Number', @@ -157,7 +159,7 @@ class CRM_Twingle_DAO_TwingleShop extends CRM_Core_DAO { 'where' => 'civicrm_twingle_shop.project_identifier', 'table_name' => 'civicrm_twingle_shop', 'entity' => 'TwingleShop', - 'bao' => 'CRM_Twingle_DAO_TwingleShop', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleShop', 'localizable' => 0, 'html' => [ 'type' => 'Text', @@ -179,7 +181,7 @@ class CRM_Twingle_DAO_TwingleShop extends CRM_Core_DAO { 'where' => 'civicrm_twingle_shop.numerical_project_id', 'table_name' => 'civicrm_twingle_shop', 'entity' => 'TwingleShop', - 'bao' => 'CRM_Twingle_DAO_TwingleShop', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleShop', 'localizable' => 0, 'html' => [ 'type' => 'Number', @@ -200,7 +202,7 @@ class CRM_Twingle_DAO_TwingleShop extends CRM_Core_DAO { 'where' => 'civicrm_twingle_shop.price_set_id', 'table_name' => 'civicrm_twingle_shop', 'entity' => 'TwingleShop', - 'bao' => 'CRM_Twingle_DAO_TwingleShop', + 'bao' => 'Civi\Twingle\Shop\DAO\TwingleShop', 'localizable' => 0, 'FKClassName' => 'CRM_Price_DAO_PriceSet', 'add' => NULL, diff --git a/api/v3/TwingleProduct/Create.php b/api/v3/TwingleProduct/Create.php index 2490557..36bb48a 100644 --- a/api/v3/TwingleProduct/Create.php +++ b/api/v3/TwingleProduct/Create.php @@ -2,6 +2,7 @@ use Civi\Twingle\Shop\Exceptions\ProductException; use CRM_Twingle_ExtensionUtil as E; +use Civi\Twingle\Shop\BAO\TwingleProduct; /** * TwingleProduct.Create API specification (optional) @@ -120,7 +121,7 @@ function civicrm_api3_twingle_product_Create($params): array { try { // Create TwingleProduct and load params - $product = new CRM_Twingle_BAO_TwingleProduct(); + $product = new TwingleProduct(); $product->load($params); // Save TwingleProduct diff --git a/api/v3/TwingleProduct/Delete.php b/api/v3/TwingleProduct/Delete.php index 7c675ab..60c9591 100644 --- a/api/v3/TwingleProduct/Delete.php +++ b/api/v3/TwingleProduct/Delete.php @@ -1,6 +1,7 @@ delete(); diff --git a/api/v3/TwingleProduct/Get.php b/api/v3/TwingleProduct/Get.php index 9544678..a7f64ca 100644 --- a/api/v3/TwingleProduct/Get.php +++ b/api/v3/TwingleProduct/Get.php @@ -1,6 +1,7 @@ getMessage(), [ diff --git a/api/v3/TwingleShop/Create.php b/api/v3/TwingleShop/Create.php index ab858ff..ebb34f4 100644 --- a/api/v3/TwingleShop/Create.php +++ b/api/v3/TwingleShop/Create.php @@ -1,5 +1,6 @@ load($params); // Save TwingleShop diff --git a/api/v3/TwingleShop/Delete.php b/api/v3/TwingleShop/Delete.php index cc851a7..d1f3323 100644 --- a/api/v3/TwingleShop/Delete.php +++ b/api/v3/TwingleShop/Delete.php @@ -1,6 +1,6 @@ deleteByConstraint(); if ($result) { return civicrm_api3_create_success(1, $params, 'TwingleShop', 'Delete'); diff --git a/api/v3/TwingleShop/Fetch.php b/api/v3/TwingleShop/Fetch.php index 9c5d3e3..961f42b 100644 --- a/api/v3/TwingleShop/Fetch.php +++ b/api/v3/TwingleShop/Fetch.php @@ -1,6 +1,7 @@ fetchProducts(); $returnValues[$projectId] = []; $returnValues[$projectId] += $shop->getAttributes(); @@ -62,7 +63,7 @@ function civicrm_api3_twingle_shop_Fetch($params) { return $product->getAttributes(); }, $products); } - catch (ShopException | ApiCallError | ProductException $e) { + catch (ShopException|ApiCallError|ProductException $e) { // If this project identifier doesn't belong to a project of type // 'shop', just skip it if ($e->getErrorCode() == ShopException::ERROR_CODE_NOT_A_SHOP) { diff --git a/api/v3/TwingleShop/Get.php b/api/v3/TwingleShop/Get.php index 9309e04..2915212 100644 --- a/api/v3/TwingleShop/Get.php +++ b/api/v3/TwingleShop/Get.php @@ -1,6 +1,6 @@ getMessage(), [ diff --git a/info.xml b/info.xml index edfa3fb..f58beb4 100644 --- a/info.xml +++ b/info.xml @@ -14,17 +14,13 @@ https://github.com/systopia/de.systopia.twingle/issues http://www.gnu.org/licenses/agpl-3.0.html - - 1.6-dev - dev + 2024-09-03 + 1.5-beta1 + beta 5.58 - - - - - + de.systopia.xcm @@ -36,7 +32,10 @@ menu-xml@1.0.0 mgd-php@1.0.0 smarty-v2@1.0.1 - entity-types-php@1.0.0 + + + + CRM_Twingle_Upgrader diff --git a/l10n/de.systopia.twingle.pot b/l10n/de.systopia.twingle.pot index e358b75..439b9b5 100644 --- a/l10n/de.systopia.twingle.pot +++ b/l10n/de.systopia.twingle.pot @@ -1,1600 +1,1016 @@ -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find PriceField for Twingle Product ['id': %1, 'external_id': %2]: %3" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find PriceFieldValue for Twingle Product ['id': %1, 'external_id': %2]: %3" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "PriceField for this Twingle Product already exists." -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "PriceField for this Twingle Product does not exist and cannot be edited." -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not check if PriceField for this Twingle Product already exists." -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find PriceSet for this Twingle Product." -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not create PriceField for this Twingle Product: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find PriceFieldValue for this Twingle Product: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not create PriceFieldValue for this Twingle Product: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find TwingleProduct in database: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not save TwingleProduct to database: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "An Error occurred while searching for the associated PriceFieldValue: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not delete associated PriceFieldValue: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "PriceField for this Twingle Product still exists." -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "An Error occurred while searching for the associated PriceField: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not delete associated PriceField: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not find TwingleShop in database: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not find associated PriceSet: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not delete associated PriceSet: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "PriceSet for this Twingle Shop already exists." -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "PriceSet for this Twingle Shop does not exist and cannot be edited." -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not check if PriceSet for this TwingleShop already exists." -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not create PriceSet for this TwingleShop." -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "This Twingle Project is not a shop." -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not retrieve Twingle projects from API.\n Please check your API credentials." -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not retrieve associated products: %1" -msgstr "" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not delete associated products: %1" -msgstr "" - -#: CRM/Twingle/Config.php +#: ./CRM/Twingle/Config.php msgid "No" msgstr "" -#: CRM/Twingle/Config.php +#: ./CRM/Twingle/Config.php msgid "Raise Exception" msgstr "" -#: CRM/Twingle/Config.php +#: ./CRM/Twingle/Config.php msgid "Create Activity" msgstr "" -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Twingle Products" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Twingle Product" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php CRM/Twingle/DAO/TwingleShop.php -msgid "ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Unique TwingleProduct ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "External ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "The ID of this product in the Twingle database" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php api/v3/TwingleProduct/Get.php -msgid "Price Field ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "FK to Price Field" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php api/v3/TwingleProduct/Create.php -msgid "Twingle Shop ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "FK to Twingle Shop" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Created At" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Timestamp of when the product was created in the database" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Updated At" -msgstr "" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Timestamp of when the product was last updated in the database" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Twingle Shops" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Twingle Shop" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Unique TwingleShop ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Create.php api/v3/TwingleShop/Delete.php api/v3/TwingleShop/Get.php -msgid "Project Identifier" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Twingle Project Identifier" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Numerical Project ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Numerical Twingle Project Identifier" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php api/v3/TwingleShop/Get.php -msgid "Price Set ID" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "FK to Price Set" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php api/v3/TwingleShop/Get.php -msgid "Name" -msgstr "" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "name of the shop" -msgstr "" - -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Profile with ID \"%1\" not found" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Delete Twingle API profile %1" msgstr "" -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Page/Profiles.tpl +#: ./CRM/Twingle/Form/Profile.php ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Reset" msgstr "" -#: CRM/Twingle/Form/Profile.php js/twingle_shop.js templates/CRM/Twingle/Page/Profiles.tpl +#: ./CRM/Twingle/Form/Profile.php ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Delete" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "The profile is invalid and cannot be copied." msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Error" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "The profile to be copied could not be found." msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "A database error has occurred. See the log for details." msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "New Twingle API profile" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Edit Twingle API profile %1" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "New Profile" msgstr "" -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Page/Profiles.tpl +#: ./CRM/Twingle/Form/Profile.php ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Profile name" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Project IDs" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Contact Matcher (XCM) Profile" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Location type" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Location type for organisations" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Financial type" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Financial type (recurring)" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "Gender option for submitted value \"male\"" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "Gender option for submitted value \"female\"" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "Gender option for submitted value \"other\"" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "Prefix option for submitted value \"male\"" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "Prefix option for submitted value \"female\"" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "Prefix option for submitted value \"other\"" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Record %1 as" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Record %1 donations with contribution status" msgstr "" -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Profile.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Profile.php msgid "CiviSEPA creditor" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Use Double-Opt-In for newsletter" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Sign up for newsletter groups" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Sign up for postal mail groups" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Sign up for Donation receipt groups" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Default Campaign" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "- none -" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Set Campaign for" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Contribution" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Recurring Contribution" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Membership" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "SEPA Mandate" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Contacts (XCM)" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Create membership of type" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Create membership of type (recurring)" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "API Call for Membership Postprocessing" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "The API call must have the form 'Entity.Action'." msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Contribution source" msgstr "" -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Required address components" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Street" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Postal Code" msgstr "" -#: CRM/Twingle/Form/Profile.php api/v3/TwingleDonation/Submit.php +#: ./CRM/Twingle/Form/Profile.php ./api/v3/TwingleDonation/Submit.php msgid "City" msgstr "" -#: CRM/Twingle/Form/Profile.php api/v3/TwingleDonation/Submit.php +#: ./CRM/Twingle/Form/Profile.php ./api/v3/TwingleDonation/Submit.php msgid "Country" msgstr "" -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Form/Profile.tpl +#: ./CRM/Twingle/Form/Profile.php ./templates/CRM/Twingle/Form/Profile.tpl msgid "Custom field mapping" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Create contribution notes for" msgstr "" -#: CRM/Twingle/Form/Profile.php api/v3/TwingleDonation/Submit.php +#: ./CRM/Twingle/Form/Profile.php ./api/v3/TwingleDonation/Submit.php msgid "Purpose" msgstr "" -#: CRM/Twingle/Form/Profile.php api/v3/TwingleDonation/Submit.php +#: ./CRM/Twingle/Form/Profile.php ./api/v3/TwingleDonation/Submit.php msgid "Remarks" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Create contact notes for" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "User Extra Field" msgstr "" -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Form/Profile.tpl -msgid "Enable Shop Integration" -msgstr "" - -#: CRM/Twingle/Form/Profile.php -msgid "Default Financial Type" -msgstr "" - -#: CRM/Twingle/Form/Profile.php -msgid "Financial Type for top up donations" -msgstr "" - -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Form/Profile.tpl -msgid "Map Products as Price Fields" -msgstr "" - -#: CRM/Twingle/Form/Profile.php CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Profile.php ./CRM/Twingle/Form/Settings.php msgid "Save" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "Warning" msgstr "" -#: CRM/Twingle/Form/Profile.php -msgid "The required configuration option \"%1\" has no value. Saving the profile might set this option to a possibly unwanted default value." -msgstr "" - -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "No profile set." msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "<select profile>" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "none" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "CiviSEPA" msgstr "" -#: CRM/Twingle/Form/Profile.php +#: ./CRM/Twingle/Form/Profile.php msgid "No mailing lists available" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Twingle ID Prefix" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Use CiviSEPA" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Use CiviSEPA generated reference" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Protect Recurring Contributions" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Activity Type" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Subject" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Status" msgstr "" -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "Assigned To" msgstr "" -#: CRM/Twingle/Form/Settings.php -msgid "Use Twingle Shop Integration" -msgstr "" - -#: CRM/Twingle/Form/Settings.php -msgid "Twingle Access Key" -msgstr "" - -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "This is required for activity creation" msgstr "" -#: CRM/Twingle/Form/Settings.php -msgid "An Access Key is required to enable Twingle Shop Integration" -msgstr "" - -#: CRM/Twingle/Form/Settings.php +#: ./CRM/Twingle/Form/Settings.php msgid "-select-" msgstr "" -#: CRM/Twingle/Page/Profiles.php managed/Navigation__twingle_configuration.mgd.php +#: ./CRM/Twingle/Page/Profiles.php ./managed/Navigation__twingle_configuration.mgd.php msgid "Twingle API Profiles" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Unknown attribute %1." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Profile name cannot be empty." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Only alphanumeric characters, space and the underscore (_) are allowed for profile names." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "A profile with the name '%1' already exists." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Project ID(s) [%1] already used in profile '%2'." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Could not parse custom field mapping." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Custom field custom_%1 does not exist." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Custom field custom_%1 is not in a CustomGroup that extends one of the supported CiviCRM entities." msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Could not save/update profile: %1" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Could not reset default profile: %1" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Could not delete profile: %1" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Contribution Status" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Bank transfer" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Debit manual" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Debit automatic" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Credit card" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Mobile phone Germany" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "PayPal" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "SOFORT Überweisung" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Amazon Pay" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Apple Pay" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Google Pay" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Paydirekt" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Twint" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "iDEAL" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Postfinance" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Bancontact" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "Generic Payment Method" msgstr "" -#: CRM/Twingle/Profile.php +#: ./CRM/Twingle/Profile.php msgid "never" msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Invalid donation rhythm." msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Payment method could not be matched to existing payment instrument." msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Invalid date for parameter \"confirmed_at\"." msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Invalid date for parameter \"user_birthdate\"." msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Gender could not be matched to existing gender." msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Invalid format for custom fields." msgstr "" -#: CRM/Twingle/Submission.php -msgid "Invalid format for products." -msgstr "" - -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "campaign_id must be a numeric string. " msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Unknown country %1." msgstr "" -#: CRM/Twingle/Submission.php +#: ./CRM/Twingle/Submission.php msgid "Could not calculate SEPA cycle day from configuration." msgstr "" -#: CRM/Twingle/Submission.php -msgid "Could not create line item for product '%1'" -msgstr "" - -#: CRM/Twingle/Submission.php -msgid "Could not create line item for donation" -msgstr "" - -#: CRM/Twingle/Tools.php +#: ./CRM/Twingle/Tools.php msgid "This is a Twingle recurring contribution. It should be terminated through the Twingle interface, otherwise it will still be collected." msgstr "" -#: CRM/Twingle/Tools.php +#: ./CRM/Twingle/Tools.php msgid "Recurring contribution [%1] (Transaction ID '%2') was terminated by a user. You need to end the corresponding record in Twingle as well, or it will still be collected." msgstr "" -#: Civi/Twingle/Shop/ApiCall.php -msgid "Could not find Twingle API token" -msgstr "" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "Call to Twingle API failed. Please check your api token." -msgstr "" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "GET curl failed" -msgstr "" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "http status code 404 (not found)" -msgstr "" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "https status code 500 (internal error)" -msgstr "" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "Connection not yet established. Use connect() method." -msgstr "" - -#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/Endrecurring.php ./api/v3/TwingleDonation/Submit.php msgid "Project ID" msgstr "" -#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/Endrecurring.php ./api/v3/TwingleDonation/Submit.php msgid "The Twingle project ID." msgstr "" -#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/Endrecurring.php ./api/v3/TwingleDonation/Submit.php msgid "Transaction ID" msgstr "" -#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/Endrecurring.php ./api/v3/TwingleDonation/Submit.php msgid "The unique transaction ID of the donation" msgstr "" -#: api/v3/TwingleDonation/Cancel.php +#: ./api/v3/TwingleDonation/Cancel.php msgid "Cancelled at" msgstr "" -#: api/v3/TwingleDonation/Cancel.php +#: ./api/v3/TwingleDonation/Cancel.php msgid "The date when the donation was cancelled, format: YmdHis." msgstr "" -#: api/v3/TwingleDonation/Cancel.php +#: ./api/v3/TwingleDonation/Cancel.php msgid "Cancel reason" msgstr "" -#: api/v3/TwingleDonation/Cancel.php +#: ./api/v3/TwingleDonation/Cancel.php msgid "The reason for the donation being cancelled." msgstr "" -#: api/v3/TwingleDonation/Cancel.php +#: ./api/v3/TwingleDonation/Cancel.php msgid "Invalid date for parameter \"cancelled_at\"." msgstr "" -#: api/v3/TwingleDonation/Cancel.php +#: ./api/v3/TwingleDonation/Cancel.php msgid "SEPA Mandate for contribution [%1 not found." msgstr "" -#: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Cancel.php ./api/v3/TwingleDonation/Endrecurring.php msgid "Could not terminate SEPA mandate" msgstr "" -#: api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Endrecurring.php msgid "Ended at" msgstr "" -#: api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Endrecurring.php msgid "The date when the recurring donation was ended, format: YmdHis." msgstr "" -#: api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Endrecurring.php msgid "Invalid date for parameter \"ended_at\"." msgstr "" -#: api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Endrecurring.php msgid "SEPA Mandate for recurring contribution [%1 not found." msgstr "" -#: api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Endrecurring.php msgid "SEPA Mandate [%1] already terminated." msgstr "" -#: api/v3/TwingleDonation/Endrecurring.php +#: ./api/v3/TwingleDonation/Endrecurring.php msgid "Mandate closed by TwingleDonation.Endrecurring API call" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Confirmed at" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The date when the donation was issued, format: YmdHis." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The purpose of the donation." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Amount" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The donation amount in minor currency unit." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Currency" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The ISO-4217 currency code of the donation." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Newsletter" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Whether to subscribe the contact to the newsletter group defined in the profile." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Postal mailing" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Whether to subscribe the contact to the postal mailing group defined in the profile." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Donation receipt" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Whether the contact requested a donation receipt." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Payment method" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The Twingle payment method used for the donation." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Donation rhythm" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The interval which the donation is recurring in." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "SEPA IBAN" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The IBAN for SEPA Direct Debit payments, conforming with ISO 13616-1:2007." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "SEPA BIC" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The BIC for SEPA Direct Debit payments, conforming with ISO 9362." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "SEPA Direct Debit Mandate reference" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The mandate reference for SEPA Direct Debit payments." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "SEPA Direct Debit Account holder" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The account holder for SEPA Direct Debit payments." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Anonymous donation" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Whether the donation is submitted anonymously." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Gender" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The gender of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Date of birth" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The date of birth of the contact, format: Ymd." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Formal title" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The formal title of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Email address" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The e-mail address of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "First name" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The first name of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Last name" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The last name of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Street address" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The street address of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Postal code" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The postal code of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The city of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The country of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Telephone" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The telephone number of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Company" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The company of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Language" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The preferred language of the contact. A 2-digit ISO-639-1 language code." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "User extra field" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Additional information of the contact." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Campaign ID" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "The CiviCRM ID of a campaign to assign the contribution." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Custom fields" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Additional information for either the contact or the (recurring) contribution." msgstr "" -#: api/v3/TwingleDonation/Submit.php -msgid "Products" -msgstr "" - -#: api/v3/TwingleDonation/Submit.php -msgid "Products ordered via TwingleShop" -msgstr "" - -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Additional remarks for the donation." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Contribution with the given transaction ID already exists." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Organisation contact could not be found or created." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Individual contact could not be found or created." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Missing attribute %1 for SEPA mandate" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "SEPA creditor is not configured for profile \"%1\"." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Could not create recurring contribution." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Could not find recurring contribution with given parent transaction ID." msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Could not create contribution" msgstr "" -#: api/v3/TwingleDonation/Submit.php +#: ./api/v3/TwingleDonation/Submit.php msgid "Twingle membership postprocessing call has failed, see log for more information" msgstr "" -#: api/v3/TwingleProduct/Create.php api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "TwingleProduct ID" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "The TwingleProduct ID in the database" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Twingle ID" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "External product ID in Twingle database" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "ID of the corresponding Twingle Shop" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Product Name" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Name of the product" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Is active?" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Is the product active?" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Product Description" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Short description of the product" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Product Price" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Price of the product" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Sort" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Sort order of the product" -msgstr "" - -#: api/v3/TwingleProduct/Create.php api/v3/TwingleShop/Create.php -msgid "Financial Type ID" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "ID of the financial type of the product" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "FK to TwingleShop" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Twingle timestamp" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "Timestamp of last update in Twingle db" -msgstr "" - -#: api/v3/TwingleProduct/Create.php -msgid "FK to PriceField" -msgstr "" - -#: api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "The TwingleProduct ID in CiviCRM" -msgstr "" - -#: api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "External TwingleProduct ID" -msgstr "" - -#: api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "Twingle's ID of the product" -msgstr "" - -#: api/v3/TwingleProduct/Delete.php -msgid "TwingleProduct could not be deleted." -msgstr "" - -#: api/v3/TwingleProduct/Get.php -msgid "FK to civicrm_price_field" -msgstr "" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Delete.php api/v3/TwingleShop/Get.php -msgid "TwingleShop ID" -msgstr "" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Delete.php api/v3/TwingleShop/Get.php -msgid "The TwingleShop ID in CiviCRM" -msgstr "" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Create.php api/v3/TwingleShop/Delete.php api/v3/TwingleShop/Get.php -msgid "Twingle project identifier" -msgstr "" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Create.php api/v3/TwingleShop/Get.php -msgid "Numerical Project Identifier" -msgstr "" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Get.php -msgid "Twingle numerical project identifier" -msgstr "" - -#: api/v3/TwingleShop/Create.php -msgid "Numerical Twingle project identifier" -msgstr "" - -#: api/v3/TwingleShop/Create.php -msgid "Shop Name" -msgstr "" - -#: api/v3/TwingleShop/Create.php -msgid "Name of the shop" -msgstr "" - -#: api/v3/TwingleShop/Create.php -msgid "FK to civicrm_financial_type" -msgstr "" - -#: api/v3/TwingleShop/Delete.php -msgid "TwingleShop could not be found." -msgstr "" - -#: api/v3/TwingleShop/Delete.php -msgid "TwingleShop could not be deleted." -msgstr "" - -#: api/v3/TwingleShop/Fetch.php -msgid "Project Identifiers" -msgstr "" - -#: api/v3/TwingleShop/Fetch.php -msgid "Comma separated list of Twingle project identifiers." -msgstr "" - -#: api/v3/TwingleShop/Get.php -msgid "Name of the TwingleShop" -msgstr "" - -#: api/v3/TwingleShop/Get.php -msgid "FK to civicrm_price_set" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not fetch products" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not fetch products. Please check your Twingle API key." -msgstr "" - -#: js/twingle_shop.js -msgid "Create" -msgstr "" - -#: js/twingle_shop.js -msgid "Update" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not create Price Field for this product" -msgstr "" - -#: js/twingle_shop.js -msgid "Delete Price Field" -msgstr "" - -#: js/twingle_shop.js -msgid "Are you sure you want to delete the price field associated with this product?" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not delete Price Field" -msgstr "" - -#: js/twingle_shop.js -msgid "The Price Field was deleted successfully." -msgstr "" - -#: js/twingle_shop.js -msgid "Price Field deleted" -msgstr "" - -#: js/twingle_shop.js -msgid "select financial type" -msgstr "" - -#: js/twingle_shop.js -msgid "Product" -msgstr "" - -#: js/twingle_shop.js -msgid "Financial Type" -msgstr "" - -#: js/twingle_shop.js -msgid "Price Field" -msgstr "" - -#: js/twingle_shop.js -msgid "Create Price Set" -msgstr "" - -#: js/twingle_shop.js -msgid "Update Price Set" -msgstr "" - -#: js/twingle_shop.js -msgid "Delete Price Set" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not create Twingle Shop" -msgstr "" - -#: js/twingle_shop.js -msgid "The Price Set was created successfully." -msgstr "" - -#: js/twingle_shop.js -msgid "Price Field created" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not create TwingleShop" -msgstr "" - -#: js/twingle_shop.js -msgid "Are you sure you want to delete the price set associated with this Twingle Shop?" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not delete Twingle Shop" -msgstr "" - -#: js/twingle_shop.js -msgid "The Price Set was deleted successfully." -msgstr "" - -#: js/twingle_shop.js -msgid "Price Set deleted" -msgstr "" - -#: js/twingle_shop.js -msgid "Could not update Twingle Shop" -msgstr "" - -#: managed/Navigation__twingle_configuration.mgd.php +#: ./managed/Navigation__twingle_configuration.mgd.php msgid "Twingle API Configuration" msgstr "" -#: managed/Navigation__twingle_configuration.mgd.php +#: ./managed/Navigation__twingle_configuration.mgd.php msgid "Twingle API Settings" msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Select which location type to use for addresses for individuals, either when no organisation name is specified, or an organisation address can not be shared with the individual contact." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Put your project's Twingle ID in here, to activate this profile for that project." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "You can also provide multiple project IDs separated by a comma." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "The Contact Matcher (XCM) manages the identification or creation of the related contact." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "We recommend creating a new XCM profile only to be used with the Twingle API." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Select which location type to use for addresses for organisations and shared organisation addresses for individual contacts." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Select which financial type to use for one-time contributions." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Select which financial type to use for recurring contributions." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Select whether to use CiviCRM's Double-Opt-In feature for subscribing to mailing lists. Note that this only works for public mailing lists. Any non-public mailing list selected above will be ignored when this setting is enabled." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Also, do not forget to disable Twingle's own Double Opt-In option in the Twingle Manager to avoid subscribers receiving multiple confirmation e-mails. Only one or the other option should be enabled." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Some organisations have specific conventions on how a membership should be created. Since the Twingle-API can only create a \"bare bone\" membership object, you can enter a API Call (as 'Entity.Action') to adjust any newly created membership to your organisation's needs." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "The API call would receive the following parameters:" msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Select the address components that must be present to create or update an address for the contact." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Depending on your XCM settings, the transferred address might replace an existing one." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "Since in some cases Twingle send the country of the user as the only address parameter, depending on your XCM configuration, not declaring other address components as required might lead to the current user address being overwritten with an address containing the country only." msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "

Map Twingle custom fields to CiviCRM fields using the following format (each assignment in a separate line):

\n
twingle_field_1=custom_123
twingle_field_2=custom_789
\n

Always use the custom_[id] notation for CiviCRM custom fields.

\n

This works for fields that Twingle themselves provide in the custom_fields parameter, and for any other parameter (e.g. user_extrafield)

\n

Only custom fields extending one of the following CiviCRM entities are allowed:

\n " msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "

Create a contribution note for each field specified in this selection.

\n

Tip: You can enable or disable this fields in the TwingleMANAGER.

" msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp +#: ./templates/CRM/Twingle/Form/Profile.hlp msgid "

Create a contact note for each field specified in this selection.

\n

Tip: You can enable or disable this fields in the TwingleMANAGER.

" msgstr "" -#: templates/CRM/Twingle/Form/Profile.hlp -msgid "Enable the processing of orders via Twingle Shop for this profile. The ordered products will then appear as line items in the contribution." -msgstr "" - -#: templates/CRM/Twingle/Form/Profile.hlp -msgid "If this option is enabled, all Twingle Shop products corresponding to the specified project IDs will be retrieved from Twingle and mapped as price sets and price fields. Each Twingle Shop is mapped as a price set with its products as price fields." -msgstr "" - -#: templates/CRM/Twingle/Form/Profile.hlp -msgid "This allows you to manually create contributions with the same line items for phone orders, for example, as would be the case for orders placed through the Twingle Shop." -msgstr "" - -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "General settings" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Help" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "XCM Profile" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Gender/Prefix for value 'male'" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Gender/Prefix for value 'female'" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Gender/Prefix for value 'other'" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Payment methods" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Groups and Correlations" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Newsletter Double Opt-In" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Membership Postprocessing" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl templates/CRM/Twingle/Page/Profiles.tpl -msgid "Shop Integration" -msgstr "" - -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Are you sure you want to reset the default profile?" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Are you sure you want to delete the profile %1?" msgstr "" -#: templates/CRM/Twingle/Form/Profile.tpl +#: ./templates/CRM/Twingle/Form/Profile.tpl msgid "Profile name not given or invalid." msgstr "" -#: templates/CRM/Twingle/Form/Settings.hlp +#: ./templates/CRM/Twingle/Form/Settings.hlp msgid "When the %1 is enabled and one of its payment instruments is assigned to a Twingle payment method (practically the debit_manual payment method), submitting a Twingle donation through the API will create a SEPA mandate with the given data." msgstr "" -#: templates/CRM/Twingle/Form/Settings.hlp +#: ./templates/CRM/Twingle/Form/Settings.hlp msgid "When the %1 is enabled, you can activate this to use your own references instead of the ones submitted by Twingle." msgstr "" -#: templates/CRM/Twingle/Form/Settings.hlp +#: ./templates/CRM/Twingle/Form/Settings.hlp msgid "Will protect all recurring contributions created by Twingle from termination, since this does NOT terminate the Twingle collection process" msgstr "" -#: templates/CRM/Twingle/Form/Settings.hlp +#: ./templates/CRM/Twingle/Form/Settings.hlp msgid "You can use this setting to add a prefix to the Twingle transaction ID, in order to avoid collisions with other transaction ids." msgstr "" -#: templates/CRM/Twingle/Form/Settings.hlp -msgid "If you enable Twingle Shop integration, you can configure Twingle API profiles to include products ordered through Twingle Shop as line items in the created contribution." -msgstr "" - -#: templates/CRM/Twingle/Form/Settings.hlp -msgid "Enter your twingle API access key." -msgstr "" - -#: templates/CRM/Twingle/Page/Configuration.tpl +#: ./templates/CRM/Twingle/Page/Configuration.tpl msgid "Profiles" msgstr "" -#: templates/CRM/Twingle/Page/Configuration.tpl +#: ./templates/CRM/Twingle/Page/Configuration.tpl msgid "Configure profiles" msgstr "" -#: templates/CRM/Twingle/Page/Configuration.tpl +#: ./templates/CRM/Twingle/Page/Configuration.tpl msgid "Settings" msgstr "" -#: templates/CRM/Twingle/Page/Configuration.tpl +#: ./templates/CRM/Twingle/Page/Configuration.tpl msgid "Configure extension settings" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "New profile" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Selectors" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Used" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Last Used" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Operations" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl -msgid "enabled" -msgstr "" - -#: templates/CRM/Twingle/Page/Profiles.tpl -msgid "disabled" -msgstr "" - -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Edit profile %1" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Edit" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Copy profile %1" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Copy" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Reset profile %1" msgstr "" -#: templates/CRM/Twingle/Page/Profiles.tpl +#: ./templates/CRM/Twingle/Page/Profiles.tpl msgid "Delete profile %1" msgstr "" -#: twingle.php +#: ./twingle.php msgid "Twingle API: Access Twingle API" msgstr "" -#: twingle.php +#: ./twingle.php msgid "Allows access to the Twingle API actions." msgstr "" diff --git a/l10n/de_DE/LC_MESSAGES/twingle.mo b/l10n/de_DE/LC_MESSAGES/twingle.mo index b7c9729..78498f0 100644 Binary files a/l10n/de_DE/LC_MESSAGES/twingle.mo and b/l10n/de_DE/LC_MESSAGES/twingle.mo differ diff --git a/l10n/de_DE/LC_MESSAGES/twingle.po b/l10n/de_DE/LC_MESSAGES/twingle.po index a4ce3d5..4907d37 100644 --- a/l10n/de_DE/LC_MESSAGES/twingle.po +++ b/l10n/de_DE/LC_MESSAGES/twingle.po @@ -16,139 +16,6 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 3.0.1\n" -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "" -"Could not find PriceField for Twingle Product ['id': %1, 'external_id': %2]: " -"%3" -msgstr "" -"PriceField für Twingle-Produkt ['id': %1, 'external_id': %2] konnte nicht " -"gefunden werden: %3" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "" -"Could not find PriceFieldValue for Twingle Product ['id': %1, 'external_id': " -"%2]: %3" -msgstr "" -"PriceFieldValue für Twingle-Produkt ['id': %1, 'external_id': %2] konnte " -"nicht gefunden werden: %3" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "PriceField for this Twingle Product already exists." -msgstr "PriceField für dieses Twingle-Produkt existiert bereits." - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "" -"PriceField for this Twingle Product does not exist and cannot be edited." -msgstr "" -"PriceField für dieses Twingle-Produkt existiert nicht und kann nicht " -"bearbeitet werden." - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not check if PriceField for this Twingle Product already exists." -msgstr "" -"Es konnte nicht überprüft werden, ob PriceField für dieses Twingle-Produkt " -"bereits existiert." - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find PriceSet for this Twingle Product." -msgstr "PriceSet für dieses Twingle-Produkt konnte nicht gefunden werden." - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not create PriceField for this Twingle Product: %1" -msgstr "PriceField für dieses Twingle-Produkt konnte nicht erstellt werden: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find PriceFieldValue for this Twingle Product: %1" -msgstr "PriceField für dieses Twingle-Produkt konnte nicht gefunden werden: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not create PriceFieldValue for this Twingle Product: %1" -msgstr "PriceField für dieses Twingle-Produkt konnte nicht erstellt werden: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not find TwingleProduct in database: %1" -msgstr "TwingleProduct konnte nicht in der Datenbank gefunden werden: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not save TwingleProduct to database: %1" -msgstr "TwingleProduct konnte nicht in die Datenbank geschrieben werden: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "" -"An Error occurred while searching for the associated PriceFieldValue: %1" -msgstr "" -"Während der Suche nach zugehörigem PriceFieldValue ist ein Fehler " -"aufgetreten: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not delete associated PriceFieldValue: %1" -msgstr "Zugehöriger PriceFieldValue konnte nicht gelöscht werden: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "PriceField for this Twingle Product still exists." -msgstr "PriceField für dieses Twingle-Produkt existiert noch." - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "An Error occurred while searching for the associated PriceField: %1" -msgstr "" -"Während der Suche nach zugehörigem PriceField ist ein Fehler aufgetreten: %1" - -#: CRM/Twingle/BAO/TwingleProduct.php -msgid "Could not delete associated PriceField: %1" -msgstr "Zugehöriges PriceField konnte nicht gelöscht werden: %1" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not find TwingleShop in database: %1" -msgstr "TwingleShop konnte nicht in der Datenbank gefunden werden: %1" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not find associated PriceSet: %1" -msgstr "Zugehöriges PriceSet konnte nicht gefunden werden: %1" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not delete associated PriceSet: %1" -msgstr "Zugehöriges PriceSet konnte nicht gelöscht werden: %1" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "PriceSet for this Twingle Shop already exists." -msgstr "PriceSet für diesen Twingle-Shop existiert bereits." - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "PriceSet for this Twingle Shop does not exist and cannot be edited." -msgstr "" -"PriceSet für diesen Twingle-Shop existiert nicht und kann nicht bearbeitet " -"werden." - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not check if PriceSet for this TwingleShop already exists." -msgstr "" -"Es konnte nicht überprüft werden, ob PriceSet für diesen TwingleShop bereits " -"existiert." - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not create PriceSet for this TwingleShop." -msgstr "PriceSet für diesen TwingleShop konnte nicht erstellt werden." - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "This Twingle Project is not a shop." -msgstr "Dieses Twingle-Projekt ist kein Shop." - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "" -"Could not retrieve Twingle projects from API.\n" -" Please check your API credentials." -msgstr "" -"Twingle-Projekte konnte nicht über die API abgerufen werden. Überprüfen Sie " -"Ihre Zugangsdaten." - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not retrieve associated products: %1" -msgstr "Zugehörige Profukte konnten nicht abgerufen werden: %1" - -#: CRM/Twingle/BAO/TwingleShop.php -msgid "Could not delete associated products: %1" -msgstr "Zugehörige Produkte konnten nicht gelöscht werden: %1" - #: CRM/Twingle/Config.php msgid "No" msgstr "Nein" @@ -161,108 +28,6 @@ msgstr "Ausnahme auslösen" msgid "Create Activity" msgstr "Aktivität erstellen" -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Twingle Products" -msgstr "Twingle-Produkte" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Twingle Product" -msgstr "Twingle-Produkt" - -#: CRM/Twingle/DAO/TwingleProduct.php CRM/Twingle/DAO/TwingleShop.php -msgid "ID" -msgstr "ID" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Unique TwingleProduct ID" -msgstr "Eindeutige TwingleProduct-ID" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "External ID" -msgstr "Externe ID" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "The ID of this product in the Twingle database" -msgstr "Die ID dieses Produkts in der Twingle-Datenbank" - -#: CRM/Twingle/DAO/TwingleProduct.php api/v3/TwingleProduct/Get.php -msgid "Price Field ID" -msgstr "Preisfeld-ID" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "FK to Price Field" -msgstr "Fremdschlüssel zu Preisfeld" - -#: CRM/Twingle/DAO/TwingleProduct.php api/v3/TwingleProduct/Create.php -msgid "Twingle Shop ID" -msgstr "Twingle-Shop-ID" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "FK to Twingle Shop" -msgstr "Fremdschlüssel zu Twingle-Shop" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Created At" -msgstr "Erstellt am" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Timestamp of when the product was created in the database" -msgstr "Zeitstempel der Erstellung des Produkts in der Datenbank" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Updated At" -msgstr "Aktualisiert am" - -#: CRM/Twingle/DAO/TwingleProduct.php -msgid "Timestamp of when the product was last updated in the database" -msgstr "Zeitstempel der letzten Aktualisierung des Produkts in der Datenbank" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Twingle Shops" -msgstr "Twingle-Shops" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Twingle Shop" -msgstr "Twingle-Shops" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Unique TwingleShop ID" -msgstr "Eindeutige Twingle-Shop-ID" - -#: CRM/Twingle/DAO/TwingleShop.php api/v3/TwingleProduct/Get.php -#: api/v3/TwingleShop/Create.php api/v3/TwingleShop/Delete.php -#: api/v3/TwingleShop/Get.php -msgid "Project Identifier" -msgstr "Projekt-Identifikator" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Twingle Project Identifier" -msgstr "Twingle-Projekt-Identifikator" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Numerical Project ID" -msgstr "Numerische Projekt-ID" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "Numerical Twingle Project Identifier" -msgstr "Numerischer Twingle-Projekt-Identifikator" - -#: CRM/Twingle/DAO/TwingleShop.php api/v3/TwingleShop/Get.php -msgid "Price Set ID" -msgstr "Preisschema-ID" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "FK to Price Set" -msgstr "Fremdschlüssel zu Preisschema" - -#: CRM/Twingle/DAO/TwingleShop.php api/v3/TwingleShop/Get.php -msgid "Name" -msgstr "Name" - -#: CRM/Twingle/DAO/TwingleShop.php -msgid "name of the shop" -msgstr "Name des Shops" - #: CRM/Twingle/Form/Profile.php msgid "Profile with ID \"%1\" not found" msgstr "Profil mit ID \"%1\" nicht gefunden" @@ -275,8 +40,7 @@ msgstr "Twingle-API-Profil %1 löschen" msgid "Reset" msgstr "Zurücksetzen" -#: CRM/Twingle/Form/Profile.php js/twingle_shop.js -#: templates/CRM/Twingle/Page/Profiles.tpl +#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Page/Profiles.tpl msgid "Delete" msgstr "Löschen" @@ -490,22 +254,6 @@ msgstr "Kontakt-Notizen erstellen für" msgid "User Extra Field" msgstr "Benutzer-Extra-Feld" -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Form/Profile.tpl -msgid "Enable Shop Integration" -msgstr "Shop-Integration aktivieren" - -#: CRM/Twingle/Form/Profile.php -msgid "Default Financial Type" -msgstr "Standard-Zuwendungsart" - -#: CRM/Twingle/Form/Profile.php -msgid "Financial Type for top up donations" -msgstr "Zuwendungsart für zusätzliche Spenden" - -#: CRM/Twingle/Form/Profile.php templates/CRM/Twingle/Form/Profile.tpl -msgid "Map Products as Price Fields" -msgstr "Produkte Preisfeldern zuordnen" - #: CRM/Twingle/Form/Profile.php CRM/Twingle/Form/Settings.php msgid "Save" msgstr "Speichern" @@ -514,15 +262,6 @@ msgstr "Speichern" msgid "Warning" msgstr "Warnung" -#: CRM/Twingle/Form/Profile.php -msgid "" -"The required configuration option \"%1\" has no value. Saving the profile " -"might set this option to a possibly unwanted default value." -msgstr "" -"Die erforderliche Konfigurationsoption \"%1\" hat keinen Wert. Das Speichern " -"des Profils könnte diese Option auf einen möglicherweise ungewollten " -"Standardwert setzen." - #: CRM/Twingle/Form/Profile.php msgid "No profile set." msgstr "Kein Profil eingestellt." @@ -575,24 +314,10 @@ msgstr "Status" msgid "Assigned To" msgstr "Zugewiesen an" -#: CRM/Twingle/Form/Settings.php -msgid "Use Twingle Shop Integration" -msgstr "Twingle-Shop-Integration verwenden" - -#: CRM/Twingle/Form/Settings.php -msgid "Twingle Access Key" -msgstr "Twingle-Zugriffsschlüssel" - #: CRM/Twingle/Form/Settings.php msgid "This is required for activity creation" msgstr "Diese Angaben sind erforderlich für das Erstellen von Aktivitäten" -#: CRM/Twingle/Form/Settings.php -msgid "An Access Key is required to enable Twingle Shop Integration" -msgstr "" -"Ein Zugriffsschlüssel ist für die Aktivierung der Twingle-Shop-Integration " -"erforderlich" - #: CRM/Twingle/Form/Settings.php msgid "-select-" msgstr "- auswählen -" @@ -753,10 +478,6 @@ msgstr "" msgid "Invalid format for custom fields." msgstr "Ungültiges Format für benutzerdefinierte Felder." -#: CRM/Twingle/Submission.php -msgid "Invalid format for products." -msgstr "Ungültiges Format für Produkte." - #: CRM/Twingle/Submission.php msgid "campaign_id must be a numeric string. " msgstr "campaign_id muss eine numerische Zeichenkette sein. " @@ -769,14 +490,6 @@ msgstr "Unbekanntes Land %1." msgid "Could not calculate SEPA cycle day from configuration." msgstr "SEPA-Einzugstag konnte nicht aus der Konfiguration berechnet werden." -#: CRM/Twingle/Submission.php -msgid "Could not create line item for product '%1'" -msgstr "Belegzeile für Produkt konnte nicht erstellt werden: %1" - -#: CRM/Twingle/Submission.php -msgid "Could not create line item for donation" -msgstr "Belegzeile für Spende konnte nicht erstellt werden" - #: CRM/Twingle/Tools.php msgid "" "This is a Twingle recurring contribution. It should be terminated through " @@ -795,30 +508,6 @@ msgstr "" "Benutzer beendet. Es ist erforderlich, den zugehörigen Datensatz auch in " "Twingle zu beenden, da die Zuwendung ansonsten weiter eingezogen wird." -#: Civi/Twingle/Shop/ApiCall.php -msgid "Could not find Twingle API token" -msgstr "Twingle-API-Token konnte nicht gefunden werden" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "Call to Twingle API failed. Please check your api token." -msgstr "Aufruf der Twingle-API fehlgeschlagen. Überprüfen Sie Ihren API-Token." - -#: Civi/Twingle/Shop/ApiCall.php -msgid "GET curl failed" -msgstr "GET cURL fehlgeschlagen" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "http status code 404 (not found)" -msgstr "HTTP-Statuscode 404 (not found)" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "https status code 500 (internal error)" -msgstr "HTTP-Statuscode 500 (internal error)" - -#: Civi/Twingle/Shop/ApiCall.php -msgid "Connection not yet established. Use connect() method." -msgstr "Verbindung nch nicht hergestellt. connect()-Methode verwenden." - #: api/v3/TwingleDonation/Cancel.php api/v3/TwingleDonation/Endrecurring.php #: api/v3/TwingleDonation/Submit.php msgid "Project ID" @@ -1138,14 +827,6 @@ msgstr "" "Zusätzliche Informationen für entweder den Kontakt oder die (wiederkehrende) " "Zuwendung." -#: api/v3/TwingleDonation/Submit.php -msgid "Products" -msgstr "Produkte" - -#: api/v3/TwingleDonation/Submit.php -msgid "Products ordered via TwingleShop" -msgstr "Über TwingleShop bestellte Produkte" - #: api/v3/TwingleDonation/Submit.php msgid "Additional remarks for the donation." msgstr "Zusätzliche Anmerkungen für die Zuwendung." @@ -1192,285 +873,6 @@ msgstr "" "Die Nachbearbeitung (postprocessing) der Twingle-Mitgliedschaft ist " "fehlgeschlagen, siehe Protokoll für weitere Informationen." -#: api/v3/TwingleProduct/Create.php api/v3/TwingleProduct/Delete.php -#: api/v3/TwingleProduct/Get.php -msgid "TwingleProduct ID" -msgstr "TwingleProduct-ID" - -#: api/v3/TwingleProduct/Create.php -msgid "The TwingleProduct ID in the database" -msgstr "Die TwingleProduct-ID in der Datenbank" - -#: api/v3/TwingleProduct/Create.php -msgid "Twingle ID" -msgstr "Twingle-ID" - -#: api/v3/TwingleProduct/Create.php -msgid "External product ID in Twingle database" -msgstr "Externe Produkt-ID in der Twingle-Datenbank" - -#: api/v3/TwingleProduct/Create.php -msgid "ID of the corresponding Twingle Shop" -msgstr "ID des zugehlrigen Twingle-Shops" - -#: api/v3/TwingleProduct/Create.php -msgid "Product Name" -msgstr "Produktname" - -#: api/v3/TwingleProduct/Create.php -msgid "Name of the product" -msgstr "Name des Produkts" - -#: api/v3/TwingleProduct/Create.php -msgid "Is active?" -msgstr "Status" - -#: api/v3/TwingleProduct/Create.php -msgid "Is the product active?" -msgstr "Ob das Produkt aktiviert ist" - -#: api/v3/TwingleProduct/Create.php -msgid "Product Description" -msgstr "Produktbeschreibung" - -#: api/v3/TwingleProduct/Create.php -msgid "Short description of the product" -msgstr "Kurzbeschreibung des Produkts" - -#: api/v3/TwingleProduct/Create.php -msgid "Product Price" -msgstr "Produkt-Preis" - -#: api/v3/TwingleProduct/Create.php -msgid "Price of the product" -msgstr "Preis des Produkts" - -#: api/v3/TwingleProduct/Create.php -msgid "Sort" -msgstr "Sortierung" - -#: api/v3/TwingleProduct/Create.php -msgid "Sort order of the product" -msgstr "Sortierungsreihenfolge des Produkts" - -#: api/v3/TwingleProduct/Create.php api/v3/TwingleShop/Create.php -msgid "Financial Type ID" -msgstr "Zuwendungsart" - -#: api/v3/TwingleProduct/Create.php -msgid "ID of the financial type of the product" -msgstr "ID der Zuwendungsart des Produkts" - -#: api/v3/TwingleProduct/Create.php -msgid "FK to TwingleShop" -msgstr "Fremdschlüssel zu TwingleShop" - -#: api/v3/TwingleProduct/Create.php -msgid "Twingle timestamp" -msgstr "Twingle-Zeitstempel" - -#: api/v3/TwingleProduct/Create.php -msgid "Timestamp of last update in Twingle db" -msgstr "Zeitstempel der letzten Aktualisierung in der Twingle-Datenbank" - -#: api/v3/TwingleProduct/Create.php -msgid "FK to PriceField" -msgstr "Fremdschlüssel zu PriceField" - -#: api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "The TwingleProduct ID in CiviCRM" -msgstr "Die TwingleProduct-ID in CiviCRM" - -#: api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "External TwingleProduct ID" -msgstr "Externe TwingleProduct-ID" - -#: api/v3/TwingleProduct/Delete.php api/v3/TwingleProduct/Get.php -msgid "Twingle's ID of the product" -msgstr "Twingles ID des Produkts" - -#: api/v3/TwingleProduct/Delete.php -msgid "TwingleProduct could not be deleted." -msgstr "TwingleProduct konnte nicht gelöscht werden." - -#: api/v3/TwingleProduct/Get.php -msgid "FK to civicrm_price_field" -msgstr "Fremdschlüssel zu civicrm_price_field" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Delete.php -#: api/v3/TwingleShop/Get.php -msgid "TwingleShop ID" -msgstr "TwingleShop-ID" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Delete.php -#: api/v3/TwingleShop/Get.php -msgid "The TwingleShop ID in CiviCRM" -msgstr "Die TwingleShop-ID in CiviCRM" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Create.php -#: api/v3/TwingleShop/Delete.php api/v3/TwingleShop/Get.php -msgid "Twingle project identifier" -msgstr "Twingle-Projekt-Identifikator" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Create.php -#: api/v3/TwingleShop/Get.php -msgid "Numerical Project Identifier" -msgstr "Numerischer Projekt-Identifikator" - -#: api/v3/TwingleProduct/Get.php api/v3/TwingleShop/Get.php -msgid "Twingle numerical project identifier" -msgstr "Twingles numerischer Projekt-Identifikator" - -#: api/v3/TwingleShop/Create.php -msgid "Numerical Twingle project identifier" -msgstr "Numerischer Twingle-Projekt-Identifikator" - -#: api/v3/TwingleShop/Create.php -msgid "Shop Name" -msgstr "Shop-Name" - -#: api/v3/TwingleShop/Create.php -msgid "Name of the shop" -msgstr "Name des Shops" - -#: api/v3/TwingleShop/Create.php -msgid "FK to civicrm_financial_type" -msgstr "ZuwendungsartFremdschlüssel zu civicrm_financial_type" - -#: api/v3/TwingleShop/Delete.php -msgid "TwingleShop could not be found." -msgstr "TwingleShop konnte nicht gefunden werden." - -#: api/v3/TwingleShop/Delete.php -msgid "TwingleShop could not be deleted." -msgstr "TwingleShop konnte nicht gelöscht werden." - -#: api/v3/TwingleShop/Fetch.php -msgid "Project Identifiers" -msgstr "Projekt-Identifikatoren" - -#: api/v3/TwingleShop/Fetch.php -msgid "Comma separated list of Twingle project identifiers." -msgstr "Kommaseparierte Liste von Twingle-Projekt-Identifikatoren." - -#: api/v3/TwingleShop/Get.php -msgid "Name of the TwingleShop" -msgstr "Name des TwingleShop" - -#: api/v3/TwingleShop/Get.php -msgid "FK to civicrm_price_set" -msgstr "Fremdschlüssel zu civicrm_price_set" - -#: js/twingle_shop.js -msgid "Could not fetch products" -msgstr "Produkte konnten nicht abgerufen werden" - -#: js/twingle_shop.js -msgid "Could not fetch products. Please check your Twingle API key." -msgstr "" -"Produkte konnten nicht abgerufen werden. Überprüfen Sie Ihren Twingle-API-" -"Schlüssel." - -#: js/twingle_shop.js -msgid "Create" -msgstr "Erstellen" - -#: js/twingle_shop.js -msgid "Update" -msgstr "Bearbeiten" - -#: js/twingle_shop.js -msgid "Could not create Price Field for this product" -msgstr "Preisfeld für dieses Produkt konnte nicht erstellt werden" - -#: js/twingle_shop.js -msgid "Delete Price Field" -msgstr "Preisfeld löschen" - -#: js/twingle_shop.js -msgid "" -"Are you sure you want to delete the price field associated with this product?" -msgstr "Möchten Sie wirklich das diesem Produkt zugehörige Preisfeld löschen?" - -#: js/twingle_shop.js -msgid "Could not delete Price Field" -msgstr "Preisfeld konnte nicht gelöscht werden" - -#: js/twingle_shop.js -msgid "The Price Field was deleted successfully." -msgstr "Das Preisfeld wurde erfolgreich gelöscht." - -#: js/twingle_shop.js -msgid "Price Field deleted" -msgstr "Preisfeld gelöscht" - -#: js/twingle_shop.js -msgid "select financial type" -msgstr "Zuwendungsart auswählen" - -#: js/twingle_shop.js -msgid "Product" -msgstr "Produkt" - -#: js/twingle_shop.js -msgid "Financial Type" -msgstr "Zuwendungsart" - -#: js/twingle_shop.js -msgid "Price Field" -msgstr "Preisfeld" - -#: js/twingle_shop.js -msgid "Create Price Set" -msgstr "Preisschema erstellen" - -#: js/twingle_shop.js -msgid "Update Price Set" -msgstr "Preisschema bearbeiten" - -#: js/twingle_shop.js -msgid "Delete Price Set" -msgstr "Preisschema löschen" - -#: js/twingle_shop.js -msgid "Could not create Twingle Shop" -msgstr "Twingle-Shop konnte nicht erstellt werden" - -#: js/twingle_shop.js -msgid "The Price Set was created successfully." -msgstr "Das Preisschema wurde erfolgreich erstellt." - -#: js/twingle_shop.js -msgid "Price Field created" -msgstr "Preisfeld erstellt" - -#: js/twingle_shop.js -msgid "Could not create TwingleShop" -msgstr "TwingleShop konnte nicht erstellt werden" - -#: js/twingle_shop.js -msgid "" -"Are you sure you want to delete the price set associated with this Twingle " -"Shop?" -msgstr "" -"Möchten Sie wirklich das diesem Twingle-Shop zugehörige Preisschema löschen?" - -#: js/twingle_shop.js -msgid "Could not delete Twingle Shop" -msgstr "Twingle-Shop konnte nicht gelöscht werden" - -#: js/twingle_shop.js -msgid "The Price Set was deleted successfully." -msgstr "Das Preisschema wurde erfolgreiche gelöscht." - -#: js/twingle_shop.js -msgid "Price Set deleted" -msgstr "Preisschema gelöscht" - -#: js/twingle_shop.js -msgid "Could not update Twingle Shop" -msgstr "Twingle-Shop konnte nicht aktualisiert werden" - #: managed/Navigation__twingle_configuration.mgd.php msgid "Twingle API Configuration" msgstr "Twingle-API-Konfiguration" @@ -1697,37 +1099,6 @@ msgstr "" "

Tipp: Sie können diese Felder im TwingleMANAGER aktivieren oder " "deaktivieren.

" -#: templates/CRM/Twingle/Form/Profile.hlp -msgid "" -"Enable the processing of orders via Twingle Shop for this profile. The " -"ordered products will then appear as line items in the contribution." -msgstr "" -"Aktiviert die Verarbeitung von Bestellungen über den Twingle-Shop für dieses " -"Profil. Die bestellten Produkte werden als Belegzeilen der Zuwendung " -"erscheinen." - -#: templates/CRM/Twingle/Form/Profile.hlp -msgid "" -"If this option is enabled, all Twingle Shop products corresponding to the " -"specified project IDs will be retrieved from Twingle and mapped as price " -"sets and price fields. Each Twingle Shop is mapped as a price set with its " -"products as price fields." -msgstr "" -"Wenn diese Option aktiviert ist, werden alle zur angegebenen Projekt-ID " -"gehörenden Twingle-Shop-Produkte von Twingle abgerufen und als Preisschemata " -"und Preisfelder zugeordnet. Jeder Twingle-Shop wird als ein Preisschema mit " -"seinen Produkten als Preisfelder zugeordnet." - -#: templates/CRM/Twingle/Form/Profile.hlp -msgid "" -"This allows you to manually create contributions with the same line items " -"for phone orders, for example, as would be the case for orders placed " -"through the Twingle Shop." -msgstr "" -"Dies ermöglicht das manuelle Erstellen von Zuwendungen mit den gleichen " -"Belegzeilen wie bei Bestellungen über den Twingle-Shop, z. B. für " -"telefonische Bestellungen." - #: templates/CRM/Twingle/Form/Profile.tpl msgid "General settings" msgstr "Allgemeine Einstellungen" @@ -1768,11 +1139,6 @@ msgstr "Double-Opt-In für Newsletter" msgid "Membership Postprocessing" msgstr "Mitgliedschafts--Nachbearbeitung (Postprocessing)" -#: templates/CRM/Twingle/Form/Profile.tpl -#: templates/CRM/Twingle/Page/Profiles.tpl -msgid "Shop Integration" -msgstr "Shop-Integration" - #: templates/CRM/Twingle/Form/Profile.tpl msgid "Are you sure you want to reset the default profile?" msgstr "Möchten Sie wirklich das Standard-Profil zurücksetzen?" @@ -1822,20 +1188,6 @@ msgstr "" "Transaktions-ID voranzustellen, um Kollisionen mit anderen Transaktions-IDs " "auszuschließen." -#: templates/CRM/Twingle/Form/Settings.hlp -msgid "" -"If you enable Twingle Shop integration, you can configure Twingle API " -"profiles to include products ordered through Twingle Shop as line items in " -"the created contribution." -msgstr "" -"Mit aktivierter Twingle-Shop-Integration können Twingle-API-Profile so " -"konfiguriert werden, dass über den Twingle-Shop bestellte Produkte als " -"Belegzeilen in der erstellten Zuwendung enthalten sind." - -#: templates/CRM/Twingle/Form/Settings.hlp -msgid "Enter your twingle API access key." -msgstr "Geben Sie ihren Zugriffsschlüssel für die Twingle-API ein." - #: templates/CRM/Twingle/Page/Configuration.tpl msgid "Profiles" msgstr "Profile" @@ -1872,14 +1224,6 @@ msgstr "Zuletzt verwendet" msgid "Operations" msgstr "Operationen" -#: templates/CRM/Twingle/Page/Profiles.tpl -msgid "enabled" -msgstr "aktiviert" - -#: templates/CRM/Twingle/Page/Profiles.tpl -msgid "disabled" -msgstr "deaktiviert" - #: templates/CRM/Twingle/Page/Profiles.tpl msgid "Edit profile %1" msgstr "Profil %1 bearbeiten" diff --git a/templates/CRM/Twingle/Form/Profile.hlp b/templates/CRM/Twingle/Form/Profile.hlp index 5e1a401..8098450 100644 --- a/templates/CRM/Twingle/Form/Profile.hlp +++ b/templates/CRM/Twingle/Form/Profile.hlp @@ -91,7 +91,7 @@ {/htxt} {htxt id='id-shop_map_products'} -

{ts domain="de.systopia.twingle"}If this option is enabled, all Twingle Shop products corresponding to the specified project IDs will be retrieved from Twingle and mapped as price sets and price fields. Each Twingle Shop is mapped as a price set with its products as price fields.{/ts}

-

{ts domain="de.systopia.twingle"}This allows you to manually create contributions with the same line items for phone orders, for example, as would be the case for orders placed through the Twingle Shop.{/ts}

+

{ts domain="de.systopia.twingle"}If this option is enabled, all Twingle Shop products corresponding to the specified project IDs will be retrieved from Twingle and mapped as price sets and price fields. Each Twingle Shop is mapped as a price set with its products as price fields.

+

This allows you to manually create contributions with the same line items for phone orders, for example, as would be the case for orders placed through the Twingle Shop.

{/htxt} {/crmScope} diff --git a/templates/CRM/Twingle/Form/Settings.hlp b/templates/CRM/Twingle/Form/Settings.hlp index fe0d483..bfd00e2 100644 --- a/templates/CRM/Twingle/Form/Settings.hlp +++ b/templates/CRM/Twingle/Form/Settings.hlp @@ -31,7 +31,3 @@ {htxt id='id-twingle_use_shop'} {ts domain="de.systopia.twingle"}If you enable Twingle Shop integration, you can configure Twingle API profiles to include products ordered through Twingle Shop as line items in the created contribution.{/ts} {/htxt} - -{htxt id='id-twingle_access_key'} - {ts domain="de.systopia.twingle"}Enter your twingle API access key.{/ts} -{/htxt} diff --git a/templates/CRM/Twingle/Form/Settings.tpl b/templates/CRM/Twingle/Form/Settings.tpl index b13760a..906a91c 100644 --- a/templates/CRM/Twingle/Form/Settings.tpl +++ b/templates/CRM/Twingle/Form/Settings.tpl @@ -89,16 +89,24 @@ - + - - + -
{$form.twingle_use_shop.label} - {help id="id-twingle_use_shop" title=$form.twingle_use_shop.label} + {$form.twingle_use_shop.label}   + {$form.twingle_use_shop.html} +
+ + {$formElements.twingle_use_shop.description} +
{$form.twingle_use_shop.html}
{$form.twingle_access_key.label} - {help id="id-twingle_access_key" title=$form.twingle_access_key.label} + {$form.twingle_access_key.label}   + {$form.twingle_access_key.html} +
+ + {$formElements.twingle_access_key.description} +
{$form.twingle_access_key.html}
diff --git a/twingle.civix.php b/twingle.civix.php index c207adf..6d84d1c 100644 --- a/twingle.civix.php +++ b/twingle.civix.php @@ -198,3 +198,25 @@ function _twingle_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) { } } } + +/** + * (Delegated) Implements hook_civicrm_entityTypes(). + * + * Find any *.entityType.php files, merge their content, and return. + * + * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes + */ +function _twingle_civix_civicrm_entityTypes(&$entityTypes) { + $entityTypes = array_merge($entityTypes, [ + 'Civi\Twingle\Shop\DAO\TwingleProduct' => [ + 'name' => 'TwingleProduct', + 'class' => 'Civi\Twingle\Shop\DAO\TwingleProduct', + 'table' => 'civicrm_twingle_product', + ], + 'Civi\Twingle\Shop\DAO\TwingleShop' => [ + 'name' => 'TwingleShop', + 'class' => 'Civi\Twingle\Shop\DAO\TwingleShop', + 'table' => 'civicrm_twingle_shop', + ], + ]); +} diff --git a/twingle.php b/twingle.php index 9c20db1..c00ac35 100644 --- a/twingle.php +++ b/twingle.php @@ -17,7 +17,7 @@ function twingle_civicrm_pre($op, $objectName, $id, &$params) { // Create/delete PriceField and PriceFieldValue for TwingleProduct elseif ($objectName == 'TwingleProduct') { - $twingle_product = new CRM_Twingle_BAO_TwingleProduct(); + $twingle_product = new \Civi\Twingle\Shop\BAO\TwingleProduct(); $twingle_product->load($params); if ($op == 'create' || $op == 'edit') { $twingle_product->createPriceField(); @@ -30,7 +30,7 @@ function twingle_civicrm_pre($op, $objectName, $id, &$params) { // Create PriceSet for TwingleShop elseif ($objectName == 'TwingleShop' && ($op == 'create' || $op == 'edit')) { - $twingle_shop = new CRM_Twingle_BAO_TwingleShop(); + $twingle_shop = new \Civi\Twingle\Shop\BAO\TwingleShop(); $twingle_shop->load($params); $twingle_shop->createPriceSet(); $params = $twingle_shop->getAttributes(); diff --git a/xml/schema/CRM/Twingle/TwingleProduct.entityType.php b/xml/schema/CRM/Twingle/TwingleProduct.entityType.php index 153d50b..5b8879b 100644 --- a/xml/schema/CRM/Twingle/TwingleProduct.entityType.php +++ b/xml/schema/CRM/Twingle/TwingleProduct.entityType.php @@ -4,7 +4,7 @@ return [ [ 'name' => 'TwingleProduct', - 'class' => 'CRM_Twingle_DAO_TwingleProduct', + 'class' => 'Civi\Twingle\Shop\DAO\TwingleProduct', 'table' => 'civicrm_twingle_product', ], ]; diff --git a/xml/schema/CRM/Twingle/TwingleProduct.xml b/xml/schema/CRM/Twingle/TwingleProduct.xml index 4b6e48a..5787e69 100644 --- a/xml/schema/CRM/Twingle/TwingleProduct.xml +++ b/xml/schema/CRM/Twingle/TwingleProduct.xml @@ -1,7 +1,7 @@ - CRM/Twingle + CRM/Twingle/ShopTwingleProductcivicrm_twingle_productThis table contains the Twingle Product data. diff --git a/xml/schema/CRM/Twingle/TwingleShop.entityType.php b/xml/schema/CRM/Twingle/TwingleShop.entityType.php index 5fe53ea..34e6ce2 100644 --- a/xml/schema/CRM/Twingle/TwingleShop.entityType.php +++ b/xml/schema/CRM/Twingle/TwingleShop.entityType.php @@ -4,7 +4,7 @@ return [ [ 'name' => 'TwingleShop', - 'class' => 'CRM_Twingle_DAO_TwingleShop', + 'class' => 'Civi\Twingle\Shop\DAO\TwingleShop', 'table' => 'civicrm_twingle_shop', ], ]; diff --git a/xml/schema/CRM/Twingle/TwingleShop.xml b/xml/schema/CRM/Twingle/TwingleShop.xml index 5b45a77..3d9d6ba 100644 --- a/xml/schema/CRM/Twingle/TwingleShop.xml +++ b/xml/schema/CRM/Twingle/TwingleShop.xml @@ -1,7 +1,7 @@
- CRM/Twingle + CRM/Twingle/ShopTwingleShopcivicrm_twingle_shopThis table contains the Twingle Shop data. Each Twingle Shop is linked to a corresponding Price Set.