Skip to content

Commit

Permalink
Adding translations for CRM configs and config categories
Browse files Browse the repository at this point in the history
* Translations now have decription with example value that
can be used for a setting.
* Adding REMP logos to Admin layout so they can be used
as a default value for admin_logo setting.

Co-Authored-By: Peter Dulacka <[email protected]>
Co-Authored-By: Dominik Skerhak <[email protected]>

remp/crm#773
  • Loading branch information
zoldia authored and rootpd committed Sep 26, 2019
1 parent cb72317 commit 1fee156
Show file tree
Hide file tree
Showing 5 changed files with 432 additions and 51 deletions.
81 changes: 80 additions & 1 deletion src/lang/payments.cs_CZ.neon
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,83 @@ frontend:
proforma_invoice:
title: Platba předfakturou
form_title: 'Pro dokončení objednávky prosím vyplňte fakturační údaje'
thank_you: 'Děkujeme za vaši objednávku, předfakturu Vám zašleme do 3 pracovních dnů e-mailem.'
thank_you: 'Děkujeme za vaši objednávku, předfakturu Vám zašleme do 3 pracovních dnů e-mailem.'


config:
category: Platby
donation_vat_rate:
name: DPH pro dary
tatrapay_sharedsecret:
name: Tatrapay sharedsecret
cardpay_sharedsecret:
name: Cardpay sharedsecret
comfortpay_terminalid:
name: Comfortpay terminalid
comfortpay_sharedsecret:
name: Comfortpay sharedsecret
comfortpay_local_cert_path:
name: Cesta ke Comfortpay lokálnímu certifikátu
description: "Cesta k certifikátu (napr. /data/web/example/cert.pem)"
comfortpay_local_passphrase_path:
name: Lokální cesta ke Comfortpay passphrase
description: "Cert pass cesta (napr. /data/web/example/pass)"
comfortpay_tem:
name: Comfortpay tem
description: "Comfortpay odesílány info o registrování karet (napr. Y)"
comfortpay_rem:
name: Comfortpay rem
description: Comfortpay
paypal_mode:
name: Paypal mode
description: 'Přepínač pro "test" (sandbox) mód nebo "live" (production) mód'
paypal_username:
name: Paypal username
paypal_password:
name: Paypal password
paypal_signature:
name: Paypal signature
paypal_merchant:
name: Paypal merchant
csob_merchant_id:
name: ČSOB Merchant ID
description: 'Merchant ID poskytnuté bankou nebo vygenerované přes https://iplatebnibrana.csob.cz/keygen/ (pro vývojářské účely)'
csob_shop_name:
name: ČSOB obchodní jméno
description: "Obchodní jméno zobrazené v popisu platby (pokud je automaticky vygenerované)"
csob_bank_public_key_file_path:
name: ČSOB Veřejný klíč banky pro verifikovaných odpovědí z banky
description: "Cesta k veřejnému klíči banky dostupná na https://github.com/csob/paymentgateway/tree/master/keys (rozdílné klíče pro sandbox a production)"
csob_private_key_file_path:
name: ČSOB Soukromý klíč pro merchanta
description: "Cesta ke soukromému klíči poskytnutého bankou nebo vygenerovaného na https://iplatebnibrana.csob.cz/keygen/ (pro vývojářské účely)"
csob_mode:
name: ČSOB gateway mode
description: 'Přepínač pro "test" (sandbox) mód nebo "live" (production) mód'
recurrent_payment_gateway_fail_delay:
name: Pauza po neúspěšném spojení
description: "Definice intervalu (https://en.wikipedia.org/wiki/ISO_8601#Durations) po chybě v komunikaci. (napr. PT1H)"
recurrent_payment_charges:
name: Opakování rekurentních plateb
description: "Definice intervalů (https://en.wikipedia.org/wiki/ISO_8601#Durations) oddělených čárkou. (napr. PT15M, PT6H, PT6H, PT6H, PT6H)"
gopay_go_id:
name: GoPay Go ID
gopay_client_id:
name: GoPay Client ID
gopay_client_secret:
name: GoPay Client secret
gopay_mode:
name: GoPay Test Mode
gopay_recurrence_date_to:
name: GoPay rekurentný profil datum do
gopay_eet_enabled:
name: Zapnuté EET
description: Zapnutý EET reporting z platební brány
tatrapay_mid:
name: Tatrapay mid
cardpay_mid:
name: Cardpay mid
comfortpay_mid:
name: Comfortpay mid
comfortpay_ws:
name: Comforpay ws
80 changes: 79 additions & 1 deletion src/lang/payments.en_US.neon
Original file line number Diff line number Diff line change
Expand Up @@ -469,4 +469,82 @@ frontend:
proforma_invoice:
title: Proforma invoice payment
form_title: 'Please fill up your invoice details to complete the order'
thank_you: 'Thank you for the order, the invoice will be sent to your email within 3 working days.'
thank_you: 'Thank you for the order, the invoice will be sent to your email within 3 working days.'

config:
category: Payments
donation_vat_rate:
name: Donation VAT rate
tatrapay_sharedsecret:
name: Tatrapay sharedsecret
cardpay_sharedsecret:
name: Cardpay sharedsecret
comfortpay_terminalid:
name: Comfortpay terminalid
comfortpay_sharedsecret:
name: Comfortpay sharedsecret
comfortpay_local_cert_path:
name: Comfortpay local cert path
description: "Path to cert (e.g. /data/web/example/cert.pem)"
comfortpay_local_passphrase_path:
name: Comfortpay local passphrase path
description: "Cert pass path (e.g. /data/web/example/pass)"
comfortpay_tem:
name: Comfortpay tem
description: "Comfortpay date sending info about registering cards (e.g. Y)"
comfortpay_rem:
name: Comfortpay rem
description: Comfortpay
paypal_mode:
name: Paypal mode
description: 'Switch for "test" (sandbox) mode or "live" (production) mode'
paypal_username:
name: Paypal username
paypal_password:
name: Paypal password
paypal_signature:
name: Paypal signature
paypal_merchant:
name: Paypal merchant
csob_merchant_id:
name: ČSOB Merchant ID
description: 'Merchant ID provided by bank or generated via https://iplatebnibrana.csob.cz/keygen/ (for development purpose)'
csob_shop_name:
name: ČSOB Shop name
description: "Shop name displayed in the payment description (if it's autogenerated)"
csob_bank_public_key_file_path:
name: ČSOB Public key of bank for verification of bank responses
description: "Path to public key of bank available at https://github.com/csob/paymentgateway/tree/master/keys (different keys for sandbox and production)"
csob_private_key_file_path:
name: ČSOB Private key of merchant
description: "Path to private key provided by bank or generated via https://iplatebnibrana.csob.cz/keygen/ (for development purpose)"
csob_mode:
name: ČSOB gateway mode
description: 'Switch for "test" (sandbox) mode or "live" (production) mode'
recurrent_payment_gateway_fail_delay:
name: Pause after unsuccessful connection
description: "Interval definition (https://en.wikipedia.org/wiki/ISO_8601#Durations) after error in communication. (e.g. PT1H)"
recurrent_payment_charges:
name: Repeat recurrent payment
description: "Interval definition (https://en.wikipedia.org/wiki/ISO_8601#Durations) separated by comma. (e.g. PT15M, PT6H, PT6H, PT6H, PT6H)"
gopay_go_id:
name: GoPay Go ID
gopay_client_id:
name: GoPay Client ID
gopay_client_secret:
name: GoPay Client secret
gopay_mode:
name: GoPay Test Mode
gopay_recurrence_date_to:
name: GoPay Recurrent profile date to
gopay_eet_enabled:
name: Zapnute EET
description: Zapnuty EET reporting z platobnej brany
tatrapay_mid:
name: Tatrapay mid
cardpay_mid:
name: Cardpay mid
comfortpay_mid:
name: Comfortpay mid
comfortpay_ws:
name: Comforpay ws
80 changes: 79 additions & 1 deletion src/lang/payments.sk_SK.neon
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,82 @@ frontend:
proforma_invoice:
title: Platba predfaktúrou
form_title: 'Pre dokončenie objednávky prosím vyplňte fakturačné údaje'
thank_you: 'Ďakujeme za vašu objednávku, predfaktúru Vám zašleme do 3 pracovných dní e-mailom.'
thank_you: 'Ďakujeme za vašu objednávku, predfaktúru Vám zašleme do 3 pracovných dní e-mailom.'

config:
category: Platby
donation_vat_rate:
name: DPH pre dary
tatrapay_sharedsecret:
name: Tatrapay sharedsecret
cardpay_sharedsecret:
name: Cardpay sharedsecret
comfortpay_terminalid:
name: Comfortpay terminalid
comfortpay_sharedsecret:
name: Comfortpay sharedsecret
comfortpay_local_cert_path:
name: Cesta ku Comfortpay lokálnemu certifikátu
description: "Cesta k certifikátu (napr. /data/web/example/cert.pem)"
comfortpay_local_passphrase_path:
name: Lokálna cesta ku Comfortpay passphrase
description: "Cert pass cesta (napr. /data/web/example/pass)"
comfortpay_tem:
name: Comfortpay tem
description: "Comfortpay odosielané info o registracii kariet (napr. Y)"
comfortpay_rem:
name: Comfortpay rem
description: Comfortpay
paypal_mode:
name: Paypal mode
description: 'Prepínač pre "test" (sandbox) mód alebo "live" (production) mód'
paypal_username:
name: Paypal username
paypal_password:
name: Paypal password
paypal_signature:
name: Paypal signature
paypal_merchant:
name: Paypal merchant
csob_merchant_id:
name: ČSOB Merchant ID
description: 'Merchant ID poskytnuté bankou alebo vygenerované cez https://iplatebnibrana.csob.cz/keygen/ (pre vývojárske účely)'
csob_shop_name:
name: ČSOB obchodné meno
description: "Obchodné meno zobrazené v popise platby (ak je automaticky vygenerované)"
csob_bank_public_key_file_path:
name: ČSOB Verejný kľúč banky pre verifikovanie odpovedí z banky
description: "Cesta k verejnému kľúču banky dostupná na https://github.com/csob/paymentgateway/tree/master/keys (rozdielne kľúče pre sandbox a production)"
csob_private_key_file_path:
name: ČSOB Súkromný kľúč pre merchanta
description: "Cesta ku súkromnému kľúču poskytnutého bankou alebo vygenerovaného na https://iplatebnibrana.csob.cz/keygen/ (pre vývojárske účely)"
csob_mode:
name: ČSOB gateway mode
description: 'Prepínač pre "test" (sandbox) mód alebo "live" (production) mód'
recurrent_payment_gateway_fail_delay:
name: Pauza po neúspešnom spojení
description: "Definícia intervalu (https://en.wikipedia.org/wiki/ISO_8601#Durations) po chybe v komunikácii. (napr. PT1H)"
recurrent_payment_charges:
name: Opakovanie rekurentnych platieb
description: "Definicia intervalov (https://en.wikipedia.org/wiki/ISO_8601#Durations) oddelenych ciarkou. (napr. PT15M, PT6H, PT6H, PT6H, PT6H)"
gopay_go_id:
name: GoPay Go ID
gopay_client_id:
name: GoPay Client ID
gopay_client_secret:
name: GoPay Client secret
gopay_mode:
name: GoPay Test Mode
gopay_recurrence_date_to:
name: GoPay rekurentný profil dátum do
gopay_eet_enabled:
name: Zapnuté EET
description: Zapnutý EET reporting z platobnej brany
tatrapay_mid:
name: Tatrapay mid
cardpay_mid:
name: Cardpay mid
comfortpay_mid:
name: Comfortpay mid
comfortpay_ws:
name: Comforpay ws
94 changes: 94 additions & 0 deletions src/migrations/20190918122811_payments_translate_configs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?php

use Phinx\Migration\AbstractMigration;

class PaymentsTranslateConfigs extends AbstractMigration
{
public function up()
{
$this->execute("
update configs set display_name = 'payments.config.donation_vat_rate.name' where name = 'donation_vat_rate';
update configs set description = null where name = 'donation_vat_rate';
update configs set display_name = 'payments.config.tatrapay_sharedsecret.name' where name = 'tatrapay_sharedsecret';
update configs set description = null where name = 'tatrapay_sharedsecret';
update configs set display_name = 'payments.config.cardpay_sharedsecret.name' where name = 'cardpay_sharedsecret';
update configs set description = null where name = 'cardpay_sharedsecret';
update configs set display_name = 'payments.config.comfortpay_mid.name' where name = 'comfortpay_mid';
update configs set description = null where name = 'comfortpay_mid';
update configs set display_name = 'payments.config.comfortpay_ws.name' where name = 'comfortpay_ws';
update configs set description = null where name = 'comfortpay_ws';
update configs set display_name = 'payments.config.comfortpay_terminalid.name' where name = 'comfortpay_terminalid';
update configs set description = null where name = 'comfortpay_terminalid';
update configs set display_name = 'payments.config.comfortpay_sharedsecret.name' where name = 'comfortpay_sharedsecret';
update configs set description = null where name = 'comfortpay_sharedsecret';
update configs set display_name = 'payments.config.comfortpay_local_cert_path.name' where name = 'comfortpay_local_cert_path';
update configs set description = 'payments.config.comfortpay_local_cert_path.description' where name = 'comfortpay_local_cert_path';
update configs set display_name = 'payments.config.comfortpay_local_passphrase_path.name' where name = 'comfortpay_local_passphrase_path';
update configs set description = 'payments.config.comfortpay_local_passphrase_path.description' where name = 'comfortpay_local_passphrase_path';
update configs set display_name = 'payments.config.comfortpay_tem.name' where name = 'comfortpay_tem';
update configs set description = 'payments.config.comfortpay_tem.description' where name = 'comfortpay_tem';
update configs set display_name = 'payments.config.comfortpay_rem.name' where name = 'comfortpay_rem';
update configs set description = 'payments.config.comfortpay_rem.description' where name = 'comfortpay_rem';
update configs set display_name = 'payments.config.paypal_mode.name' where name = 'paypal_mode';
update configs set description = 'payments.config.paypal_mode.description' where name = 'paypal_mode';
update configs set display_name = 'payments.config.paypal_username.name' where name = 'paypal_username';
update configs set display_name = 'payments.config.paypal_password.name' where name = 'paypal_password';
update configs set display_name = 'payments.config.paypal_signature.name' where name = 'paypal_signature';
update configs set display_name = 'payments.config.paypal_merchant.name' where name = 'paypal_merchant';
update configs set display_name = 'payments.config.csob_merchant_id.name' where name = 'csob_merchant_id';
update configs set description = 'payments.config.csob_merchant_id.description' where name = 'csob_merchant_id';
update configs set display_name = 'payments.config.csob_shop_name.name' where name = 'csob_shop_name';
update configs set description = 'payments.config.csob_shop_name.description' where name = 'csob_shop_name';
update configs set display_name = 'payments.config.csob_bank_public_key_file_path.name' where name = 'csob_bank_public_key_file_path';
update configs set description = 'payments.config.csob_bank_public_key_file_path.description' where name = 'csob_bank_public_key_file_path';
update configs set display_name = 'payments.config.csob_private_key_file_path.name' where name = 'csob_private_key_file_path';
update configs set description = 'payments.config.csob_private_key_file_path.description' where name = 'csob_private_key_file_path';
update configs set display_name = 'payments.config.csob_mode.name' where name = 'csob_mode';
update configs set description = 'payments.config.csob_mode.description' where name = 'csob_mode';
update configs set display_name = 'payments.config.recurrent_payment_gateway_fail_delay.name' where name = 'recurrent_payment_gateway_fail_delay';
update configs set description = 'payments.config.recurrent_payment_gateway_fail_delay.description' where name = 'recurrent_payment_gateway_fail_delay';
update configs set display_name = 'payments.config.recurrent_payment_charges.name' where name = 'recurrent_payment_charges';
update configs set description = 'payments.config.recurrent_payment_charges.description' where name = 'recurrent_payment_charges';
update configs set display_name = 'payments.config.gopay_go_id.name' where name = 'gopay_go_id';
update configs set display_name = 'payments.config.gopay_client_id.name' where name = 'gopay_client_id';
update configs set display_name = 'payments.config.gopay_client_secret.name' where name = 'gopay_client_secret';
update configs set display_name = 'payments.config.gopay_mode.name' where name = 'gopay_mode';
update configs set display_name = 'payments.config.gopay_recurrence_date_to.name' where name = 'gopay_recurrence_date_to';
update configs set display_name = 'payments.config.gopay_eet_enabled.name' where name = 'gopay_eet_enabled';
update configs set description = 'payments.config.gopay_eet_enabled.description' where name = 'gopay_eet_enabled';
update configs set display_name = 'payments.config.tatrapay_mid.name' where name = 'tatrapay_mid';
update configs set display_name = 'payments.config.cardpay_mid.name' where name = 'cardpay_mid';
");
}

public function down()
{

}
}
Loading

0 comments on commit 1fee156

Please sign in to comment.