我需要用英文翻译一段话
发布网友
发布时间:2022-04-21 18:18
我来回答
共3个回答
懂视网
时间:2022-04-21 22:39
关注 JSDigs 偶尔给你来点干的。
这是一个利用HTML注释的页面翻译解决方案。对于少量的静态页面,这种解决方案显得更简单。它没有依赖,压缩只有只有(~2kb)。
支持 IMG 文本 切换
支持 URL 加载语言
支持本地缓存选择
作为模块安装
$ npm install translater.js
传统使用方法
<div> 这里是中文 <!--{jp}ここは日本語です--> <!--{en}Here is English--></div><script src="../dist/translater.min.js" type="text/javascript"></script><script type="text/javascript">var tran = new Translater({ lang:"jp"});</script>
切换语言方法通过超链接
<a href="javascript:tran.setLang('default');">English</a><a href="javascript:tran.setLang('jp');">日本語</a><a href="javascript:tran.setLang('cn');">中文</a>
可以通过URL穿参数设置语言
http://.../test.html?lang=jp
文本翻译添加
<div> 这里是中文 <!--{jp}ここは日本語です--> <!--{en}Here is English--></div>
图片切换
<img alt="images" src="../img/imgae.jpg" data-lang-cn="../img/imgae_cn.jpg" data-lang-jp="../img/imgae_jp.jpg" />
热心网友
时间:2022-04-21 19:47
version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Free Online Translator</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Free Online Language Translation. Translates from English, Chinese Simplified, Chinese Traditional,
Dutch, French, German, Greek, Italian, Japanese, Korean, Portuguese, Russian, Swedish, Arabic, Spanish to English, Chinese Simplified, Chinese Traditional,
Dutch, French, German, Greek, Italian, Japanese, Korean, Portuguese, Russian, Swedish, Arabic, Spanish" />
<meta name="keywords" content="online translator, Text Translator, translators online, chinese alphabet letters,
Online Spanish Translator, chinese characters alphabet, dictionary english german, english french dictionary,
english german translator, english japanese dictionary, english spanish converter, english spanish translator,
english to french dictionary, english to french online translation, english to french translations,
english words to chinese symbols, english/spanish dictionary, english-french dictionary, foreign language translations,
foreign language translator, free french translations, free french translator, free german translator,
free language translations, free online language translator, free spanish translater, free spanish translators,
free translator online, french dictionary online, french english translation dictionary, french language, french names,
french to english dictionary, french translator, french-english dictionary, german online translators, german translater,
internet translator spanish, Chinese Symbols for Words" />
<meta name="copyright" content="WorldLingo Translations LLC" /><link href="/wlstyles.css" type="text/css" rel="stylesheet"/> <link href="/favicon.ico" type="image/ico" rel="Shortcut Icon" />
<style TYPE="text/css">
<!--
#mainCol {
width:405px;
}
.textbox {
width:300px;
}
#rightCol {
width:295px;
}
#rightCol h2 {
width:284px;
}
#rightCol ul{
width:284px;padding:5px;
}
-->
</style>
</head>
<body>
<div id="PageWrapper">
<div id="logo" onclick="location.href='/'">World<span class="black">Lingo</span></div>
<div id="search" align="right">
<form action="/wl/search/search_results.html" method="get" style="float:right" >
<input id="searchQuery" type="text" name="query" size="24" /><input class="searchButton" type="submit" name="submit" value="Search" />
</form>
<!--logged in status goes here -->
<div id="l_o" align="right"></div>
</div>
<br clear="all"/>
<div class="navcontainer">
<ul id="menu">
<li><a href="/en/solutions/" title="Language Translation Solutions">Solutions</a></li>
<li><a href="/en/procts/" title="Machine Translation Procts">Procts</a></li>
<li><a href="/en/services/" title="Translation Services">Services</a></li>
<li><a href="/en/contact/" title="Contact WorldLingo Support">Support</a></li>
<li><a href="/en/company/" title="About WorldLingo">Company</a></li>
<li id="menu5"><a href="/login/" title="Your Account">Your Account</a></li>
</ul>
</div>
<!--main body content -->
<h1>Free Online Language Translator</h1>
<p id="navigator"><a href="/" title="Home">Home</a> › Free Online Translator</p>
<div id="BodyWrapper">
<div align="center" style="padding:5px; border-bottom: dashed 1px #cccccc;"> <!-- ValueClick Media 468x60 and 728x90 Banner CODE for worldlingo.com -->
<script language="javascript" src="http://media.fastclick.net/w/get.media?sid=25961&m=1&tp=5&d=j&t=n"></script>
<noscript><a href="http://media.fastclick.net/w/click.here?sid=25961&m=1&c=1" target="_blank">
<img src="http://media.fastclick.net/w/get.media?sid=25961&m=1&tp=5&d=s&c=1" width=728 height=90 border=1/></a></noscript>
<!-- ValueClick Media 468x60 and 728x90 Banner CODE for worldlingo.com -->
</div>
<div id="mainCol">
<div class="navcontainer">
<ul id="navlist">
<li id="TextTran" title="Text Translator" ><b>Text Translator</b></li>
<li><a href="/en/websites/url_translator.html" title="Website Translator" id="WebTran">Website Translator</a></li>
<li><a href="/en/procts/email_translator_form.html" title="Email Translator" id="EmailTran">Email Translator</a></li>
</ul>
</div>
<span id="wl_service:S591.3">
<script type="text/javascript" src="http://www.worldlingo.com/S591.3/loader"></script>
</span>
</div>
<div id="rightCol">
<h2>Professional Translation</h2>
<ul>
<li><a title="Upload your document for an instant quote" href="/en/services/document_translation.html">Upload your Word, Excel, PDF, HTML, rich text or text document for an instant quote</a></li>
</ul>
<h2>Word Document Translator</h2>
<ul>
<li><a title="Microsoft Office Translations" href="/en/solutions/office_translations.html">Get WorldLingo translations from within Microsoft Word</a></li>
</ul> <!-- Casale Media 2006 (C) -->
<!-- Ad Format: Medium Rectangle -->
<!-- Domain(s): worldlingo.com -->
<script type="text/javascript"><!--
var casaleD=new Date();var casaleR=(casaleD.getTime()%8673806982)+Math.random();
var casaleUU=escape(window.location.href); var casaleHost='.casalemedia.com/';
var casaleWH='" width="300" height="250" ';
var casaleFR='marginwidth="0" marginheight="0" frameborder="0" scrolling="no"';
casaleFR += 'allowtransparency="true">';
document.write('<ifr'+'ame src="http://as'+casaleHost+'s?s=73900&u='+casaleUU);
document.write('&f=4&id='+casaleR+casaleWH+casaleFR+'<a hr'+'ef="http://c');
document.write(casaleHost+'c?s=73900&f=4&id='+casaleR+'" target="_blank">');
document.write('<i'+'mg src="http://as'+casaleHost+'s?s=73900&u='+casaleUU);
document.write('&f=4&id='+casaleR+'&if=0'+casaleWH+'border="0"></a>');
document.write('</ifr'+'ame>');
//--></script><noscript>
<iframe src="http://as.casalemedia.com/s?s=73900&u=http%3A%2F%2Fworldlingo.com&f=4&id=1"
width="300" height="250" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"
allowtransparency="true">
<a href="http://c.casalemedia.com/c?s=73900&f=4&id=0" target="_blank"><img
src="http://as.casalemedia.com/s?s=73900&u=http%3A%2F%2Fworldlingo.com&f=4&id=0&if=0"
width="300" height="250" border="0" alt=""></a></iframe></noscript>
<!-- Casale Media 2006 (C) -->
</div>
</div>
<!--FOOTER GOES HERE -->
<p id="footer">
<a title="WorldLingo" href="/">Home</a> |
<a title="Human Translation" href="/en/services/document_translation.html">Human Translation</a> |
<a title="Website Translation" href="/en/solutions/website_translation.html">Website Translation</a> |
<a title="Email Translation" href="/en/procts/email_translator.html">Email Translation</a> |
<a title="Software Localization" href="/en/services/software_localization.html">Software Localization</a> |
<a title="Online Translator" href="/en/procts_services/worldlingo_translator.html">Online Translator</a> |
<a title="More WorldLingo Solutions" href="/en/solutions/">More.. </a>
<br/>
<a title="Terms & Conditions" href="/en/company/terms_conditions.html">Terms & Conditions</a> |
<a title="Privacy Policy" href="/en/company/privacy.html">Privacy Policy</a> |
<a title="Accessibility Statement" href="/en/company/accessibility.html">Accessibility Statement</a> |
<a title="Contact WorldLingo" href="/en/contact/">Contact </a>
</p>
<p id="copyright">© Copyright 2006 WorldLingo Translations LLC. All rights reserved.</p>
</div>
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-309475-1";
urchinTracker();
</script>
<!-- ValueClick Media POP-UNDER CODE v1.8 for worldlingo.com (96 hour) -->
<script language="javascript"><!--
var dc=document; var date_ob=new Date();
dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
dc.write('/w/pop.cgi?sid=25961&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
date_ob.setTime(date_ob.getTime()+345600000);
dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
</script>
<!-- ValueClick Media POP-UNDER CODE v1.8 for worldlingo.com -->
</body>
</ht
热心网友
时间:2022-04-21 21:05
In in more than half centuries development, various countries television entertainment program content and style although have occurred either is deep or the shallow change But took a program shape, the television entertainment program actually throughout is occupying an important position In the 1990s later periods, the entertainment program very quickly on still held the pipa in China's development from "partly to obstruct surface" to enter the "thousand trees ten thousand trees plow furrows to open" the aspect From central station to regional station, even is various columns all has own entertainment program 1998 year the data display nation provincial level television station to hold the entertainment program to have 32, since the city level television station has set up the entertainment program to have 42 1999 years, successively also has 32 television stations to introce the entertainment program Thereupon we saw the multi-colored television entertainment program, it has become the television program type which the people pursues holds, and undertook the television program entertainment function But our country television entertainment program must base to the localization develops with the humanities concern can have the long-time development space, therefore walks 原创性 the path is our country entertainment program bases the foundation