Answer the question
In order to leave comments, you need to log in
How to customize google website translator?
Bottom line:
you need to use the google website translator to translate into English and Chinese,
you need to get rid of the traces of Google by hiding its select and implement it through the country flags.
In the arsenal we have 3 flags
<img src="/russia.jpg">
<img src="/china.jpg">
<img src="/obama.jpg">
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'ru', includedLanguages: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element');
}
</script>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'ru', includedLanguages: 'zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element');
}
</script>
Answer the question
In order to leave comments, you need to log in
Код готов к использованию. Языки: Русский, Английский, Китайский
**********************************************************
<style>
.translated-ltr,
body {top: 0 !important;}
.goog-te-gadget {color: rgba(255, 255, 255, 0)!important;}
.goog-te-banner-frame,
.goog-logo-link,
#goog-gt-tt{ display: none!important;}
.goog-text-highlight{ background-color:rgba(255, 255, 255, 0)!important;
-webkit-box-shadow: none!important;
-moz-box-shadow: none!important;
box-shadow: none!important;}
#google_translate_element{opacity: 0;
z-index:-999; position: relative;}
.lng img{ width: 40px;
height: 25px;
margin-bottom: 2px;}
.goog-te-menu-frame{display: block!important;
width: 45px!important;
left: -48px!important;
opacity: 0;
position: absolute;}
.lng { width: 40px;
position: absolute;
left: -45px;
opacity: 0.7;
top: 34px;}
.unhide{opacity:1!important;}
</style>
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'ru', includedLanguages: 'en,ru,zh-CN', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script>
function in_lang(){
$('.lng').addClass('unhide');
$('.goog-te-gadget-simple').click();
}
</script>
<div onclick="in_lang()" class="lng">
<img src="https://russia.png" >
<img src="https://english.png" >
<img src="https://china.jpg" >
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question