请帮忙翻译一下

发布网友 发布时间: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