将AddThis共享按钮定义为一种语言

时间:2015-04-15 19:28:12

标签: javascript addthis

我在我的网站上使用AddThis共享按钮,但我遇到的问题是根据用户浏览器语言更改了按钮语言。

JavaScript代码:

<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-552ac4af2fde1432" async="async"></script>

HTML code:

<div class="addthis_native_toolbox"></div>

我使用此代码设置一种语言,但它没有工作

var addthis_config = {
      ui_language: "fr" 
} 

1 个答案:

答案 0 :(得分:0)

您也应该更改按钮。试试吧:

<a href="http://www.addthis.com/bookmark.php"
    class="addthis_button"><img
    src="http://s7.addthis.com/static/btn/v2/lg-share-fr.gif"
    width="125" height="16" border="0" alt="Share" /></a>