gpt4 book ai didi

HTML PayPal 始终使用德语

转载 作者:太空宇宙 更新时间:2023-11-03 15:55:09 28 4
gpt4 key购买 nike

我在德国主机上有自己的网站(还没有完成,所以我无法链接它)。

该主机上的网站包含一个捐赠页面,PayPal 按钮的 div 是:

<div class="centerDiv">
<h6>PayPal</h6>
<form id="donateForm" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="H57A47NP4KVLW">
<input id="imageDonate" type="image" src="images/coperonate_now.png" name="submit" alt="PayPal - The safer, easier way to pay online!">
</form>
</div>

我在我母亲的手机上尝试了意大利的按钮,该手机使用意大利语,但页面显示为德语。似乎语言是从主机的位置获取的,因此是德语。

如果是这样,我该如何解决?如果不是...我该如何解决? :)

最佳答案

好的,我可以自己回答,我刚开始搜索“paypal donate button language”而不是“paypal always in german”并找到了解决方案。

来自PayPal link :

lc The locale of the login or sign-up page, which may have the specific country's language available, depending on localization. If unspecified, PayPal determines the locale by using a cookie in the subscriber's browser. If there is no PayPal cookie, the default locale is US.

所以我加了

<input type="hidden" name="lc" value="__ppLang__">

div 因为该网站是通过 PHP 动态创建的,所以 __ppLang__ 将被替换为从查询中获得的语​​言标签。

希望这对其他人有帮助。

关于HTML PayPal 始终使用德语,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32384142/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com