How to automatically translate a page into an English website has been built. the customer needs to implement the English version. restructuring is too costly. I don't know that the great god knows plug-ins that are similar to google and 360-speed browsers for English translation, how do they implement it? how do I add a piece of code to the Chinese page to implement automatic translation?
Reply to discussion (solution)
You can replace JavaScript
I. Syntax:TRANSLATE (string, from_str, to_str)Ii. Purpose
Replace each character in from_str with a string after the corresponding character in to_str. TRANSLATE Is a superset of the functions provided by REPLACE. If from_str is longer than to_str, extra characters in from_str instead of to_str will be deleted from the string because they do not have replacement characters. To_str cannot be blank. Oracle interprets the NULL String as NULL. If any of t
Who can help me translate php code into java code. Hurry up.
Who can help me translate php code into java code. Hurry up.
Load-> model ('Share');} function iflogin ($ redirect = true, $ forward = '') {$ this-> share-> cncn_session_start (); $ uid = 0; // check whether the SESSION is consistent with the uch_auth in the COOKIE. ensure that the SESSION is the same person $ still_login = false; if (isset ($
Google believes that people will be able to rely on machine logic in the future and not linguists to translate documents into the world's main language immediately.
Google's program is called "Statistical machine Translation" (Statistical machine translation), which is different from previous efforts.
In the past, people have put grammar rules and dictionaries set up by linguists into computers.
Google will put the documents that people have translate
Type of animation Android animation is made up of four different types in XML Alpha gradient Transparency animation effect Scale gradient dimension stretch animation effect Translate picture conversion position Move animation effect Rotate Picture Transfer rotation animation effect In Javacode Alphaanimation Gradient Transparency animation effect Scaleanimation Gradient dimension stretch animation effect Translateanimation picture conversion
Because php configuration generally uses data, which is exactly the same as that of objects in js, you can do this:Copy codeThe Code is as follows: Copy codeThe Code is as follows:Var $ strings = {};$ Strings ['hide '] = 'hide ';$ Strings ['show'] = 'show ';Google. load ("language", "1 ");Function translate (name, oldValue ){Var fromlang = "en ";Var tolang = "zh-CN ";Var str = "$ strings ['" + name + "'] =" + "'" + oldValue + "'; Var div = document. g
C # implement Google Translate API,
Since Google Translate's official API is a paid version, in the spirit of free and open source, share the code for implementing Google Translate API with C. This code is very simple, mainly divided into two parts: request content through WebRequest; Get request parameters (the difficulty lies in obtaining tk ).
1. WebRequest code
var webRequest = WebRequest.Create(url) as
Many browsers have the ability to automatically translate Web pages, such as Google Chrome, in fact, through the Google API interface can also be added to the Zen-cart site page of a translation selection box, as follows: The following is the code to add:! Start Google Tra
Many browsers have the ability to automatically translate Web pages, such as Google Chrome, in fact, through the Googl
What is phpmassassignment? What is php mass assignment? How can I translate mass assignment into Chinese?
Reply content:
What is php mass assignment? How can I translate mass assignment into Chinese?
In the past 12 years, this concept was first proposed in Ror. Later Laravel proposed this concept.
This means that when you create a new data entry in the database, there are unnecessary (not) update data
CSS3 2D ConversionDiv{transform:rotate (30deg);-ms-transform:rotate (30deg); /* IE 9 */-webkit-transform:rotate (30deg); /* Safari and Chrome */-o-transform:rotate (30deg); /* Opera */-moz-transform:rotate (30deg); / * Firefox */} Translate () methodWith the translate () method, the element moves from its current position, based on the given left (x-coordinate) and top (y-coordinate) positional parameter
Entire page translation:
1, open 360 browser, in the browser to open the English web site you want to browse, choose the browser above the translation of triangular symbols.
2, choose the first item, translate the current page, will begin to translate.
3, after the translation, you can see all is Chinese.
Single sentence translation:
1, the same choice browser above translation, se
Call Google translation API for translation
#!/usr/bin/python #coding: UTF-8 import sys reload (SYS) sys.setdefaultencoding (' UTF8 ') from xml.etree import Eleme Nttree as ET #引入解析xml文件的模块 import re import urllib,urllib2 #引入接入网络接口API的模块 from socket import error as SocketError IM Port errno import OS import string #调用google translator API to translate def translate (text, F, t): "' Simulate the behavior of
Translate (x, y) moves both horizontally and vertically (that is, the y-axis moves simultaneously), TranslateX (x) moves horizontally (x-axis), Translatey (y) moves vertically (Y-axis movement) by default from the upper-left corner.Here x, Y is the actual number;When x, Y is a percentage, it is the width +padding of the moving element, and the percentage of the high +padding. Examples are as follows:1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCha
Easily integrate Google Translate into your web App with jquery.1. [Code][javascript] Code?1?2 [Code]loadscript, setting the path?? 1LoadScript (ScriptPath + "jquery-blockui.js");2LoadScript (ScriptPath + "jquery.translate-1.4.7.min.js");3LoadScript (ScriptPath + "jquery.cookie.js");? 3.Code [JavaScript] Code01function Getscriptspath () {Scripts var = document.getelementsbytagname ("script");The var regex =/(. *\/) translatorscript/i;for (var i = 0; i
Tags: now ace--ERR character BCD span character conversion div1. TRANSLATE syntax: TRANSLATE (Char, from, tousage: Returns a string that replaces each character that appears in the From, with the corresponding character in to. If the from is longer than the to string, then the characters that are more than to in the from will be deleted. One of the three parameters is empty, and the return value
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.