RE: Patch for lyx.org PayPal donate call
From: Scott Kostyshak Sent: Thursday, March 01, 2012 4:42 AM The English version has been working fine, but all of the other languages are still directed to an English Paypal page. The other country codes are listed here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-contentcontent_ID=developer/e_howto_api_nvp_country_codes However, it looks like it's not straightforward to make the link sensitive to the language of the webpage? Should I forget about this? It doesn't seem like a big problem and it appears to be difficult to fix. Scott
RE: Patch for lyx.org PayPal donate call
From: Scott Kostyshak Sent: Thursday, March 01, 2012 4:42 AM >The English version has been working fine, but all of the other languages are >still directed to an English Paypal page. >The other country codes are listed >here: >https://cms.paypal.com/us/cgi-bin/?cmd=_render-content_ID=developer/e_howto_api_nvp_country_codes >However, it looks like it's not straightforward to make the link sensitive to >the language of the webpage? Should I forget about this? It doesn't seem like a big problem and it appears to be difficult to fix. Scott
RE: Patch for lyx.org PayPal donate call
From: lyx-devel@lists.lyx.org [lyx-devel@lists.lyx.org] on behalf of Richard Heck [rgh...@comcast.net] Sent: Monday, January 16, 2012 11:45 AM On 01/16/2012 11:14 AM, Jean-Marc Lasgouttes wrote: Le 16/01/2012 16:45, Richard Heck a écrit : So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. I added a line to set lc (language code) to GB for now (in farm/cookbook/LyX/paypal.php) To make it sensitive to the language of the document, we have to find out how to pass paramteres to pmwiki templates. It may be trivial, I just do not know. I'll cc Christian. He presumably will know. The English version has been working fine, but all of the other languages are still directed to an English Paypal page. The other country codes are listed here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-contentcontent_ID=developer/e_howto_api_nvp_country_codes However, it looks like it's not straightforward to make the link sensitive to the language of the webpage? Scott
RE: Patch for lyx.org PayPal donate call
From: lyx-devel@lists.lyx.org [lyx-devel@lists.lyx.org] on behalf of Richard Heck [rgh...@comcast.net] Sent: Monday, January 16, 2012 11:45 AM >On 01/16/2012 11:14 AM, Jean-Marc Lasgouttes wrote: >> Le 16/01/2012 16:45, Richard Heck a écrit : >>> So can you explain what this line would do? What is the lc field this is >>> setting? >>> >>> I'll have to figure out how to make this sensitive to the language of >>> the webpage. >> I added a line to set lc (language code) to GB for now (in >> farm/cookbook/LyX/paypal.php) > >> To make it sensitive to the language of the document, we have to find >> out how to pass paramteres to pmwiki templates. It may be trivial, I >> just do not know. >I'll cc Christian. He presumably will know. The English version has been working fine, but all of the other languages are still directed to an English Paypal page. The other country codes are listed here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content_ID=developer/e_howto_api_nvp_country_codes However, it looks like it's not straightforward to make the link sensitive to the language of the webpage? Scott
Re: Patch for lyx.org PayPal donate call
On Sat, Jan 14, 2012 at 7:16 PM, Scott Kostyshak skost...@princeton.edu wrote: Comments? Can others reproduce? Confirmed. The paypal page shows up in Norwegian on my Archlinux system. Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas AM University Fax: +1 (979) 845-6421 College Station, Texas, USA
Re: Patch for lyx.org PayPal donate call
On 12/12/2011 03:40 AM, Scott Kostyshak wrote: The donate PayPal button, accessed on http://www.lyx.org/Donate gave me a PayPal page in Norwegian. I don't know if others will be able to reproduce this because I think that PayPal tries to find out your language. If it fails to, I guess it defaults to the language of the destination of the payment. I would suggest this patch for all of the languages that lyx.org supports. The list of countries and their codes that should be passed to PayPal are located here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-contentcontent_ID=developer/e_howto_api_nvp_country_codes For English, the current html code for the PayPal call is form method=post action=https://www.paypal.com/cgi-bin/webscr; p input type=hidden value=_xclick name=cmd input type=hidden value=donati...@lyx.org name=business input type=hidden value=Optional Note name=cn input type=hidden value=EUR name=currency_code input type=image alt=Make payments with PayPal - it's fast, free and secure! name=submit src=https://www.paypal.com/images/x-click-but04.gif; /p /form I propose adding the following line: input type=hidden value=US name=lc So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. Richard
Re: Patch for lyx.org PayPal donate call
Le 16/01/2012 16:45, Richard Heck a écrit : So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. I added a line to set lc (language code) to GB for now (in farm/cookbook/LyX/paypal.php) To make it sensitive to the language of the document, we have to find out how to pass paramteres to pmwiki templates. It may be trivial, I just do not know. It is strnage that we have to do that, but I checked on the kde.org website that they do use this variable. JMarc
Re: Patch for lyx.org PayPal donate call
On 01/16/2012 11:14 AM, Jean-Marc Lasgouttes wrote: Le 16/01/2012 16:45, Richard Heck a écrit : So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. I added a line to set lc (language code) to GB for now (in farm/cookbook/LyX/paypal.php) To make it sensitive to the language of the document, we have to find out how to pass paramteres to pmwiki templates. It may be trivial, I just do not know. I'll cc Christian. He presumably will know. Richard
Re: Patch for lyx.org PayPal donate call
On Sat, Jan 14, 2012 at 7:16 PM, Scott Kostyshakwrote: > Comments? Can others reproduce? Confirmed. The paypal page shows up in Norwegian on my Archlinux system. Stefano -- __ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A University Fax: +1 (979) 845-6421 College Station, Texas, USA
Re: Patch for lyx.org PayPal donate call
On 12/12/2011 03:40 AM, Scott Kostyshak wrote: The donate PayPal button, accessed on http://www.lyx.org/Donate gave me a PayPal page in Norwegian. I don't know if others will be able to reproduce this because I think that PayPal tries to find out your language. If it fails to, I guess it defaults to the language of the destination of the payment. I would suggest this patch for all of the languages that lyx.org supports. The list of countries and their codes that should be passed to PayPal are located here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content_ID=developer/e_howto_api_nvp_country_codes For English, the current html code for the PayPal call is https://www.paypal.com/cgi-bin/webscr;> https://www.paypal.com/images/x-click-but04.gif;> I propose adding the following line: So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. Richard
Re: Patch for lyx.org PayPal donate call
Le 16/01/2012 16:45, Richard Heck a écrit : So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. I added a line to set lc (language code) to GB for now (in farm/cookbook/LyX/paypal.php) To make it sensitive to the language of the document, we have to find out how to pass paramteres to pmwiki templates. It may be trivial, I just do not know. It is strnage that we have to do that, but I checked on the kde.org website that they do use this variable. JMarc
Re: Patch for lyx.org PayPal donate call
On 01/16/2012 11:14 AM, Jean-Marc Lasgouttes wrote: Le 16/01/2012 16:45, Richard Heck a écrit : So can you explain what this line would do? What is the lc field this is setting? I'll have to figure out how to make this sensitive to the language of the webpage. I added a line to set lc (language code) to GB for now (in farm/cookbook/LyX/paypal.php) To make it sensitive to the language of the document, we have to find out how to pass paramteres to pmwiki templates. It may be trivial, I just do not know. I'll cc Christian. He presumably will know. Richard
Re: Patch for lyx.org PayPal donate call
Scott Kostyshak skost...@princeton.edu writes: | Comments? Can others reproduce? Only that I have no problem with that change being made on the web page. Anyhow I do not know why it would be necessary, at the very least the PayPal account itself is setup with all defaults to English. But it might be as you say that since owner of the account is Norwegian that is what you get, when it does not find a better fit. -- Lgb
Re: Patch for lyx.org PayPal donate call
Scott Kostyshakwrites: | Comments? Can others reproduce? Only that I have no problem with that change being made on the web page. Anyhow I do not know why it would be necessary, at the very least the PayPal account itself is setup with all defaults to English. But it might be as you say that since owner of the account is Norwegian that is what you get, when it does not find a better fit. -- Lgb
RE: Patch for lyx.org PayPal donate call
Comments? Can others reproduce? From: Scott Kostyshak Sent: Monday, December 12, 2011 3:40 AM To: lyx-devel@lists.lyx.org Subject: Patch for lyx.org PayPal donate call The donate PayPal button, accessed on http://www.lyx.org/Donate gave me a PayPal page in Norwegian. I don't know if others will be able to reproduce this because I think that PayPal tries to find out your language. If it fails to, I guess it defaults to the language of the destination of the payment. I would suggest this patch for all of the languages that lyx.org supports. The list of countries and their codes that should be passed to PayPal are located here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-contentcontent_ID=developer/e_howto_api_nvp_country_codes For English, the current html code for the PayPal call is form method=post action=https://www.paypal.com/cgi-bin/webscr; p input type=hidden value=_xclick name=cmd input type=hidden value=donati...@lyx.org name=business input type=hidden value=Optional Note name=cn input type=hidden value=EUR name=currency_code input type=image alt=Make payments with PayPal - it's fast, free and secure! name=submit src=https://www.paypal.com/images/x-click-but04.gif; /p /form I propose adding the following line: input type=hidden value=US name=lc so that the complete PayPal call would be form method=post action=https://www.paypal.com/cgi-bin/webscr; p input type=hidden value=_xclick name=cmd input type=hidden value=donati...@lyx.org name=business input type=hidden value=Optional Note name=cn input type=hidden value=EUR name=currency_code input type=hidden value=US name=lc input type=image alt=Make payments with PayPal - it's fast, free and secure! name=submit src=https://www.paypal.com/images/x-click-but04.gif; /p /form Best, Scott Kostyshak
RE: Patch for lyx.org PayPal donate call
Comments? Can others reproduce? From: Scott Kostyshak Sent: Monday, December 12, 2011 3:40 AM To: lyx-devel@lists.lyx.org Subject: Patch for lyx.org PayPal donate call The donate PayPal button, accessed on http://www.lyx.org/Donate gave me a PayPal page in Norwegian. I don't know if others will be able to reproduce this because I think that PayPal tries to find out your language. If it fails to, I guess it defaults to the language of the destination of the payment. I would suggest this patch for all of the languages that lyx.org supports. The list of countries and their codes that should be passed to PayPal are located here: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content_ID=developer/e_howto_api_nvp_country_codes For English, the current html code for the PayPal call is https://www.paypal.com/cgi-bin/webscr;> https://www.paypal.com/images/x-click-but04.gif;> I propose adding the following line: so that the complete PayPal call would be https://www.paypal.com/cgi-bin/webscr;> https://www.paypal.com/images/x-click-but04.gif;> Best, Scott Kostyshak