• Resolved passegua

    (@passegua)


    I’m quite satisfied by this plugin.
    However I’m trying to localize it in my language: Italian.
    I already did it, but %INFORMATION% is still coming in English.
    I suppose it comes directly from PayPal since I cannot find any
    of %INFORMATION% content such as:
    Product:
    Amount:
    Buyer Email:
    Download Link:
    in any plugin file.
    So how could I force PayPal to use the Italian version?
    Many thanks.

    https://wordpress.org/plugins/sell-downloads/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    If you want force to PayPal to use the Italian version, go to the store’s settings, and select the option “Italy – Italian” in the configuration option “PayPal language”

    Best regards.

    Thread Starter passegua

    (@passegua)

    Hi,

    I already set that option.

    Thanks.

    Thread Starter passegua

    (@passegua)

    Moreover I asked Stackoverflow forum and I got an answer that I don’t understand. Maybe you can?

    http://stackoverflow.com/questions/24327890/localize-this-paypal-link-webscr

    Thanks.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    Yes, that’s correct. If you read the code of the “Sell Downloads” plugin, you will see that it uses both hidden fields: the currency_code and lc, in the group of data submitted to PayPal. The currency code and the language, are defined in the page of the store’s settings.

    Best regards.

    Thread Starter passegua

    (@passegua)

    Well, but as I wrote, the it-IT setting is already there, in the store settings.

    I’d like to change the automatic email from this:

    Product: Whatever
    Amount: 1.00 EUR
    Buyer Email: whatever@ever.com
    Download Link: http://www.sinapsi.org/whatever

    to this:

    Prodotto: Whatever
    Importo: 1.00 EUR
    Email acquirente: whatever@ever.com
    Scarica qui il tuo acquisto: http://www.sinapsi.org/whatever

    Thanks.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    The information you want translate is not related with PayPal. Please, follow the steps below:

    1. Open the sd-ipn.php file, located “/wp-content/plugins/sell-downloads/sd-core/sd-ipn.php”, with the text editor your choice.

    2. Go to the snippet of code:

    $information_payer = “Product: {$item_name}\n”.
    “Amount: {$payment_amount} {$payment_currency}\n”.
    “Download Link: “.$dlurl.”purchase_id={$_GET[‘purchase_id’]}\n”;

    $information_seller = “Product: {$item_name}\n”.
    “Amount: {$payment_amount} {$payment_currency}\n”.
    “Buyer Email: {$payer_email}\n”.
    “Download Link: “.$dlurl.”purchase_id={$_GET[‘purchase_id’]}\n”;

    and translate the texts.

    Best regards.

    Thread Starter passegua

    (@passegua)

    Many thanks, I didn’t find that since the windows 7 search function doesn’t work as expected.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    You don’t need to use the Windows 7 search function, go directly to the file. Inside your website exists the “wp-content” directory, the location of file is “/wp-content/plugins/sell-downloads/sd-core/sd-ipn.php”. Open the file in the text editor your choice, and translates the texts.

    Best regards.

    Thread Starter passegua

    (@passegua)

    Yes I did that. But if the Search function was working as expected I could have found those words by myself without bothering anybody.
    Anyway many thanks. Now all the plugin output has been translated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Where the %INFORMATION% comes from?’ is closed to new replies.