问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

请帮忙翻译一下

发布网友 发布时间:2022-04-20 09:05

我来回答

4个回答

懂视网 时间:2022-05-13 23:37

关注 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-05-13 20:45

你把代码去处抄下来就行 了我刚帮你翻的.
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;
}

-->
</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>
</body>
</ht

热心网友 时间:2022-05-13 22:03

The reason that I like 《 the chaotic beauty 》 of is because I like the beauty of 斯 brave strong, like the 瑞 especially of tactful is resolute, like the outside of the 玫兰妮 soft inside just.The beauty of 斯 is a person for having the character very much, loving two men in her whole life, but she didn't an is an understanding of.If she understands the rare gift of 阿 , that she will not love him;If she understands the 瑞 especially, that she will not lose him.She always is to be ungrateful to the 瑞 especially of, she is just not to stop the rare gift of prince- 阿 who make track for oneself's in a dream.She is just to think the characteristics that loves by herself that the rare gift of 阿 have, she just does a gorgeous clothes, letting rare gift of 阿 put on, being in love with him and then.But fact is, she love just that clothes.For all that, for her, I still have to admire of.I admire her strong, admire her to the persist of land, admire her ability under the ecation that that in environment under let go of before be subjected to the farmland stem live, admiring the speech that she can neglect the society but founding own business.Her life contain a few souls, an is her mother.His mother is a madam with expensive very able and gentle and soft typical model, is the person who she respect and admire most .But, mother typhoid for saving the person but ising infect, die.Another, is her more than ten in the last years favourite of person- 阿 rare gift.Her ability stands up in the adverse circumstances, have very greatly a part of reason is a rare gift of 阿 .She the rare to阿 gift persists unusually.Still have a, is the 玫兰妮 .More than ten years that struggle together in, the 玫兰妮 has already become her life in the indispensability of a part.

热心网友 时间:2022-05-13 23:38

The reason that I like 《 the chaotic beauty 》 of is because I like the beauty of SIGALY brave strong, like the RUITE especially of tactful is resolute, like the outside of the MELANI soft inside just.The beauty of SIGALY is a person for having the character very much, loving two men in her whole life, but she didn't an is an understanding of.If she understands the rare gift of ASILY , that she will not love him;If she understands the RUITE especially, that she will not lose him.She always is to be ungrateful to the RUITE especially of, she is just not to stop the rare gift of prince- ASILY who make track for oneself's in a dream.She is just to think the characteristics that loves by herself that the rare gift of ASILY have, she just does a gorgeous clothes, letting rare gift of ASILY put on, being in love with him and then.But fact is, she love just that clothes.For all that, for her, I still have to admire of.I admire her strong, admire her to the persist of land, admire her ability under the ecation that that in environment under let go of before be subjected to the farmland stem live, admiring the speech that she can neglect the society but founding own business.Her life contain a few souls, an is her mother.His mother is a madam with expensive very able and gentle and soft typical model, is the person who she respect and admire most .But, mother typhoid for saving the person but ising infect, die.Another, is her more than ten in the last years favourite of person- ASILY rare gift.Her ability stands up in the adverse circumstances, have very greatly a part of reason is a rare gift of ASILY .She the rare to ASILY gift persists unusually.Still have a, is the MELANI.More than ten years that struggle together in, the MELANI has already become her life in the indispensability of a part.
声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
...我想退掉一张办后从未用过的工商银行的牡丹灵通卡,应该怎么做呢?要... 今天办理了工商银行卡,顺带开通网银,要每年缴费10元,手机也要收费,很麻... Microsoft VBScript 运行时错误 (0x800A000D)类型不匹配: 'rsup' 关于VFP,谁知道这个为什么报操作符/操作数类型不匹配啊! 数据查询提示“数据类型不匹配” ...介绍《天下无贼》的歌曲说明:谁能告诉我阿 ? ...不起来叫什么名了·请弟兄姊妹帮帮忙·急需···里面的歌词是... ...你是千堆雪我是长街,怕日出一到彼此瓦解这句歌词的意思? 两个人合伙开一个室内设计工作室,都是男的,求一个响亮内涵的名字!高 ... 饥荒红薯怎么种植 什么是UL标签,有何标准! 网络seo问题:url.alibaba.com/r/aHR0cDovL3d3dy5j... desulphonation什么意思 死神Bleach中乌尔奇奥拉的英文名称是Ulquolrra还是... ul检测报告mh与e代表什么意思 html作业,使用语义化表单标签 form里面能不能放ul 8-14,电路分析,求解过程中j25代表什么?R的求解... 路亚竿R RS F FF是什么调性 马吉斯轮胎dot后面ULRY是什么意思? 在营养与食品卫生学中,RDA DRL EAR RNI AI UL 分... UL证书上的R T I、Elec、Mech、Ipm、Str分别代表什... 风火轮小跑车哪个好,说出名字。 SFP,SFP+是什么? 一级蜗轮蜗杆课程设计 单级蜗轮蜗杆减速器设计(F=5KN,V=0.7,D=390) 如何做图片 跪求一级蜗轮蜗杆减速器的课程设计 一级蜗轮蜗杆减速器课程设计 说明书 装配图 零件图... 图片类型 求翻译 个别单词有错误 谁能帮我翻译这句话啊??-韩文 重金 UL认证里面的小R在多小的范围内可以不印刷出来 &lt;ul&gt;..&lt;form&gt;..&lt;li&gt; ,,&lt;/li&gt; &lt;/form&gt; ..&lt;/ul&gt; 这样... 男生女生该怎么做害羞的事情 为什么男生喜欢女生羞羞的样子 男女发生关系,是一件羞羞的事情吗? 男友想和你做羞羞的事正常吗? 男朋友经常和你聊羞羞正常吗? 第一次羞羞应该怎么办 夫妻间的羞羞事,为什么都喜欢在晚上进行? 女孩子和自己的男朋友能干出什么羞羞的事 男生为什么会和女生聊很污的话题 男生会喜欢害羞的女生吗? 跟男朋友做羞羞事正常吗 男生和女生在一起为什么会害羞! 男生女生如何做害羞的事情 做羞羞事为什么会叫 男朋友想跟我羞羞,可我来大姨妈了,怎么办? 你经历过最羞羞的事是什么?