Jump to content

Templates doesn't work


goldmorphin
 Share

Go to solution Solved by Daniel F,

Recommended Posts

Hello!

Can anybody explain what's going on?

I recorded small video: https://i.gyazo.com/755f8718693fb0e5791913077c80bffd.mp4

When i change my lang string on string from IPS i see data from "sprintf", but when i return back my strings, data is lose! Why? Magic? 
Yes, i have language string in my plugin (as you actually can see in the video).
And yes, i have own template in /dev/html/admin/transactions folder of my plugin.

Link to comment
Share on other sites

1 hour ago, newbie LAC said:

Show the lang.php

Sure.

<?php

$lang = array(
	'__app_unitpayintegration'	=> "Unitpay Integration",
	
	
	/* Payouts */
	'payout__data_Unitpay'	=> "Wallet and Payment System",
	'payout__admin_Unitpay' => "Unitpay",
	'payout__admin_Unitpay_desc' => "The biggest and the most promising payment gateway in Russia and CIS. Link to main site <a href='https://unitpay.ru/'>Click here</a>",
	'unitpay_api_login' => "Email of partner in Unitpay",
	'unitpay_api_secretKey' => "Partner secret key in Unitpay",
	'unitpay_api_secretKey_desc' => "Can be found here: <a href='https://unitpay.ru/partner/'>click</a>. Click on your avatar, select your email-address and copy Секретный ключ",
	'unitpay_payment_methods ' => "Available payment methods",
	'unitpay_api_methods' => "Available methods for payouts thru Unitpay",
	'withdraw__Unitpay' => "Withdraw thru Unitpay",
	'unitpay_webmoney' => "WebMoney Wallet",
	'unitpay_qiwi' => "Qiwi Wallet",
	'unitpay_qiwi_desc' => "Starts without '+'. Eleven or Twelve numeric only! <br> Example for Russian: 79110001122, for Ukranian: 380934000111, for Belarus: 375292000111",
	'unitpay_card' => "CreditCard number",
	'unitpay_card_desc' => "We do not store ANY information about your credit card. It's absolute secure for you.",
	'unitpay_yandex' => "Yandex Wallet",
	'unitpay_mc' => "Telephone number",
	'unitpay_mc_desc' => "Starts without '+'. Eleven or Twelve numeric only! <br> Example for Russian: 79110001122, for Ukranian: 380934000111, for Belarus: 375292000111",
	'unitpay_mc_country' => "Select your country",
	'unitpay_mc_country_desc' => "The country in which the SIM card was issued",
	'unitpay_mc_operator' => "Select your operator",
	'unitpay_group_access' => "Available for groups",
	'unitpay_no_access' => "Withdrawals forbidden for your account type.",
	'unitpay_api_publicKey' => "Public key of your project",
	'unitpay_api_publicKey_desc' => "Can be found here: <a href='https://unitpay.ru/partner/project/list'>click</a>. Go to your project and copy PUBLIC KEY",
	'unitpay_api_projectSecretKey' => "Secret key of your project",
	'unitpay_api_projectSecretKey_desc' => "Can be found here: <a href='https://unitpay.ru/partner/project/list'>click</a>. Go to your project and copy SECRET KEY under of hidden field",

	
	
	/* Payment */
	'unitpay_public_key' => "Public key of your project",
	'unitpay_public_key_desc' => "Can be found here: <a href='https://unitpay.ru/partner/project/list'>click</a>. Go to your project and copy PUBLIC KEY",
	'unitpay_secret_key' => "Secret key of your project",
	'unitpay_secret_key_desc' => "Can be found here: <a href='https://unitpay.ru/partner/project/list'>click</a>. Go to your project and copy SECRET KEY under of hidden field",
	'unitpay_pmid' => "Select payment system",
	'unitpay_pmid_desc' => "Please, select the most convenient for you payment system",
	'unitpay_errors_contains_notnum' => "Only numbers! Without +,-, or any other symbols! See example above.",
	'unitpay_trans_receipturl' => "Receipt:",
	'unitpay_trans_statusurl' => "Status URL:",
	'unitpay_trans_paymentType' => "Payment system:",
	'unitpay_trans_operator' => "Mobile operator:",
	'unitpay_trans_purse' => "Purse:",
	'unitpay_trans_phone' => "Telephone number:"
);

 

Link to comment
Share on other sites

  • Solution

You're missing the directives in your language strings:)

'unitpay_trans_receipturl' => "Receipt:",
	'unitpay_trans_statusurl' => "Status URL:",
	'unitpay_trans_paymentType' => "Payment system:",

should be

'unitpay_trans_receipturl' => "Receipt: %s",
	'unitpay_trans_statusurl' => "Status URL: %s",
	'unitpay_trans_paymentType' => "Payment system: %s",

Please take a look at the sprintf function for further information http://php.net/manual/en/function.sprintf.php

Link to comment
Share on other sites

4 minutes ago, Daniel F said:

You're missing the directives in your language strings:)


'unitpay_trans_receipturl' => "Receipt:",
	'unitpay_trans_statusurl' => "Status URL:",
	'unitpay_trans_paymentType' => "Payment system:",

should be


'unitpay_trans_receipturl' => "Receipt: %s",
	'unitpay_trans_statusurl' => "Status URL: %s",
	'unitpay_trans_paymentType' => "Payment system: %s",

Please take a look at the sprintf function for further information http://php.net/manual/en/function.sprintf.php

This is my first experience :lol:
Thank you so much, all works fine! 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...