使用google插件使你的網站支持多語言

http://translate.google.com/manager/website/?hl=en  註冊賬號

 

add websites

 

Paste this code onto your website

Copy and paste the following code snippets onto every page you want to translate
Place this meta tag before the closing </head>:
 
  1. <meta name="google-translate-customization" 
  2. content="867dc3f419d47a9-f902c9141601d379-g7b45463124b1a33e-b"></meta> 

Place this snippet where you'd like to display the Website Translator plugin on your page

 

  1. <div id="google_translate_element"></div>
  2. <script type="text/javascript"> 
  3. function googleTranslateElementInit() { 
  4.   new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element'); 
  5. </script>
  6. <script type="text/javascript" src="//translate.google.com/translate_a/element.js
  7. ?cb=googleTranslateElementInit"></script> 
  8.          

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章