-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
238 lines (232 loc) · 11.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons.css">
<style type="text/css">
body {
color: white;
}
.top-logo {margin-bottom:50px;}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-74685517-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body bgcolor="#1E824C">
<center>
<!-- Header -->
<img src="http://joeybronner.fr/translatemysheet/tms_white.png" width="250px" />
<!-- Body -->
<div class="inline form-group" align="left">
<label for="sourceLanguage"><b>Source</b> Language</label>
<select id="sourceLanguage">
<option value="" selected>Auto detect</option>
<option value="en">English</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="it">Italian</option>
<option value="es">Spanish</option>
<option value="af">Afrikaans</option>
<option value="sq">Albanian</option>
<option value="ar">Arabic</option>
<option value="az">Azerbaijani</option>
<option value="eu">Basque</option>
<option value="bn">Bengali</option>
<option value="be">Belarusian</option>
<option value="bg">Bulgarian</option>
<option value="ca">Catalan</option>
<option value="zh-CN">Chinese(simple)</option>
<option value="zh-TW">Chinese(trad)</option>
<option value="hr">Croatian</option>
<option value="cs">Czech</option>
<option value="da">Danish</option>
<option value="nl">Dutch</option>
<option value="eo">Esperanto</option>
<option value="et">Estonian</option>
<option value="tl">Filipino</option>
<option value="fi">Finnish</option>
<option value="gl">Galician</option>
<option value="ka">Georgian</option>
<option value="el">Greek</option>
<option value="gu">Gujarati</option>
<option value="ht">Haitian Creole</option>
<option value="iw">Hebrew</option>
<option value="hi">Hindi</option>
<option value="hu">Hungarian</option>
<option value="is">Icelandic</option>
<option value="id">Indonesian</option>
<option value="ga">Irish</option>
<option value="ja">Japenese</option>
<option value="kn">Kannada</option>
<option value="km">Khmer</option>
<option value="ko">Korean</option>
<option value="lo">Lao</option>
<option value="la">Latin</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="mk">Macedinian</option>
<option value="ms">Malay</option>
<option value="mt">Maltese</option>
<option value="mi">Maori</option>
<option value="mr">Marathi</option>
<option value="mn">Mongolian</option>
<option value="no">Norwegian</option>
<option value="fa">Persian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="sr">Serbian</option>
<option value="sk">Slovak</option>
<option value="sl">Slovenian</option>
<option value="sw">Swahili</option>
<option value="sv">Swedish</option>
<option value="ta">Tamil</option>
<option value="te">Telugu</option>
<option value="th">Thai</option>
<option value="tr">Turkish</option>
<option value="uk">Ukrainian</option>
<option value="ur">Urdu</option>
<option value="vi">Vietnamese</option>
<option value="cy">Welsh</option>
<option value="yi">Yiddish</option>
<option value="yo">Yoruba</option>
<option value="zu">Zulu</option>
</select>
</div>
<img align="center" src="http://joeybronner.fr/translatemysheet/arrow_white.png" width="30"/>
<div class="inline form-group">
<label for="targetLanguage"><b>Target</b> Language</label>
<select id="targetLanguage">
<option value="en">English</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="it">Italian</option>
<option value="es">Spanish</option>
<option value="af">Afrikaans</option>
<option value="sq">Albanian</option>
<option value="ar">Arabic</option>
<option value="az">Azerbaijani</option>
<option value="eu">Basque</option>
<option value="bn">Bengali</option>
<option value="be">Belarusian</option>
<option value="bg">Bulgarian</option>
<option value="ca">Catalan</option>
<option value="zh-CN">Chinese(simple)</option>
<option value="zh-TW">Chinese(trad)</option>
<option value="hr">Croatian</option>
<option value="cs">Czech</option>
<option value="da">Danish</option>
<option value="nl">Dutch</option>
<option value="eo">Esperanto</option>
<option value="et">Estonian</option>
<option value="tl">Filipino</option>
<option value="fi">Finnish</option>
<option value="gl">Galician</option>
<option value="ka">Georgian</option>
<option value="el">Greek</option>
<option value="gu">Gujarati</option>
<option value="ht">Haitian Creole</option>
<option value="iw">Hebrew</option>
<option value="hi">Hindi</option>
<option value="hu">Hungarian</option>
<option value="is">Icelandic</option>
<option value="id">Indonesian</option>
<option value="ga">Irish</option>
<option value="ja">Japenese</option>
<option value="kn">Kannada</option>
<option value="km">Khmer</option><!doctype html>
<html>
<head>
<meta charset="utf-8">
<link href="https://ssl.gstatic.com/docs/script/css/add-ons.css" rel="stylesheet">
<style type="text/css">
/* my custom style */
</style>
</head>
<body>
<div style="text-align: center">
<img src="http://joeybronner.fr/translatemysheet/tms_black.png"><br>
<p style="text-align: justify">Translate my sheet is <i>(as its name
implies)</i> an add-on created to <b>translate your spreadsheet</b>
cell by cell or fully in one click.<br><br>
It uses the Google Translate API and supports more than <b>100
languages</b>.</p>
<hr>
<br>
<img src=
"http://www.fastly.com/img/customers/casestudy/github_logo.png" width=
"80"><br><br>
You can find and contribute at the source code on <a href=
"http://github.com/joeybronner/TranslateMySheet" target=
"_blank">GitHub</a>.<br>
Developed by <a href="http://joeybronner.fr" target="_blank">Joey
Bronner</a>
</div>
</body>
</html>
<option value="ko">Korean</option>
<option value="lo">Lao</option>
<option value="la">Latin</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="mk">Macedinian</option>
<option value="ms">Malay</option>
<option value="mt">Maltese</option>
<option value="mi">Maori</option>
<option value="mr">Marathi</option>
<option value="mn">Mongolian</option>
<option value="no">Norwegian</option>
<option value="fa">Persian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="sr">Serbian</option>
<option value="sk">Slovak</option>
<option value="sl">Slovenian</option>
<option value="sw">Swahili</option>
<option value="sv">Swedish</option>
<option value="ta">Tamil</option>
<option value="te">Telugu</option>
<option value="th">Thai</option>
<option value="tr">Turkish</option>
<option value="uk">Ukrainian</option>
<option value="ur">Urdu</option>
<option value="vi">Vietnamese</option>
<option value="cy">Welsh</option>
<option value="yi">Yiddish</option>
<option value="yo">Yoruba</option>
<option value="zu">Zulu</option>
</select>
</div>
<div class="inline form-group" style="margin: 10px 0px 10px 0px;" align="left">
<p style="text-align:center;"><b>Which values would you like translate?</b></p>
<div style="text-align:center;width:100%;">
<label unselectable="on"><input type="radio" id="radioFull" name="translationType" value="full" /> Full sheet<br></label>
<label unselectable="on"><input type="radio" id="radioSelected" name="translationType" value="selected" checked /> Selected range<br></label>
</div>
<p style="text-align:center;"><b>Override original cells or work with duplicate cells to a new sheet?</b></p>
<!--<br><br><b>'Original sheet'</b> will <b>overwrite</b> the original values with the translations.-->
<!--<br><br><b>'New sheet'</b> will first create a duplicate work sheet and apply the translations there preserving the original.-->
<div style="text-align:center;width:100%;">
<label unselectable="on"><input type="radio" id="radioOgSheet" name="translationTarget" value="original" /> Override cells<br></label>
<label unselectable="on"><input type="radio" id="radioNewSheet" name="translationTarget" value="new" checked /> Duplicate sheet<br></label>
</div>
</div>
<!-- Footer -->
<div style="margin: 10px 0px 10px 0px;">
<button class="action" style="width:200px;height:40px" onclick="return google.script.run.translate(radioFull.checked, radioSelected.checked, radioOgSheet.checked, radioNewSheet.checked, sourceLanguage.options[sourceLanguage.selectedIndex].value, targetLanguage.options[targetLanguage.selectedIndex].value);">Translate</button>
</div>
<div style="width:97%;margin: 10px 0px 10px 0px;">
<img src="http://joeybronner.fr/translatemysheet/translatemysheetinlinemini.png" />
</div>
</center>
</body>
</html>