Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
goldmorphin Posted February 14, 2018 Posted February 14, 2018 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.
newbie LAC Posted February 15, 2018 Posted February 15, 2018 Hello, 13 hours ago, goldmorphin said: Yes, i have language string in my plugin (as you actually can see in the video). I only see the keys. Show the lang.php Be sure what you don't have duplicate strings.
goldmorphin Posted February 15, 2018 Author Posted February 15, 2018 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:" );
Daniel F Posted February 15, 2018 Posted February 15, 2018 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
goldmorphin Posted February 15, 2018 Author Posted February 15, 2018 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 Thank you so much, all works fine!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.