-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
251 lines (232 loc) · 11.6 KB
/
index.php
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
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>StringsXml Builder & Translator | rignaneseleo</title>
<!-- facebook -->
<meta property="og:title" content="StringsXmlBuilder And Translator" />
<meta property="og:image" content="http://stringsxmlbuilder.netsons.org/sxb.png"/>
<meta property="og:site_name" content="StringsXmlBuilder" />
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />
<link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection" />
<!-- favicon -->
<link rel="apple-touch-icon" sizes="57x57" href="favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/manifest.json">
</head>
<body>
<div class="section no-pad-bot" id="index-banner">
<div class="container">
<?php include_once("partials/header.php"); ?>
<div class="row center" style="padding-top: 30px; margin-bottom: 88px;">
<div class="col s12">
<ul class="tabs blue-text">
<li class="tab col s6"><a class="active grey-text" href="#newFile">Translate new file</a></li>
<li class="tab col s6"><a class="active grey-text" href="#rimained">Translate remaining strings</a></li>
</ul>
</div>
<div id="newFile" class="col s12">
<form method="post" action="goBuilder.php">
<div class="input-field" >
<input type="url" value="<?php if (!empty($_GET['originalXmlURL'])){echo rawurldecode($_GET['originalXmlURL']);}else if (!empty($_GET['url'])){echo rawurldecode($_GET['url']);}?>" name="originalXmlURL" class="validate" />
<label for="originalXmlURL">Github Strings.xml URL</label>
</div>
<label for="translationLang">Your translation language</label>
<div class="input-field">
<select name="translationLang">
<option value="" disabled selected >Choose the language that you know</option>
<option value="" data-icon="" class="circle">Don't translate the strings</option>
<option value="ar" data-icon="" class="circle">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="zh-CN">Chinese (Simplified)</option>
<option value="zh-TW">Chinese (Traditional)</option>
<option value="nl">Dutch</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="gu">Gujarati</option>
<option value="ht">Haitian Creole</option>
<option value="ha">Hausa</option>
<option value="iw">Hebrew</option>
<option value="hi">Hindi</option>
<option value="hu">Hungarian</option>
<option value="is">Icelandic</option>
<option value="ig">Igbo</option>
<option value="id">Indonesian</option>
<option value="ga">Irish</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="kn">Kannada</option>
<option value="kk">Kazakh</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">Macedonian</option>
<option value="mt">Maltese</option>
<option value="mi">Maori</option>
<option value="mr">Marathi</option>
<option value="mn">Mongolian</option>
<option value="ne">Nepali</option>
<option value="no">Norwegian</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="si">Sinhala</option>
<option value="sk">Slovak</option>
<option value="sl">Slovenian</option>
<option value="es">Spanish</option>
<option value="su">Sundanese</option>
<option value="sw">Swahili</option>
<option value="sv">Swedish</option>
<option value="tg">Tajik</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="uz">Uzbek</option>
<option value="vi">Vietnamese</option>
<option value="yo">Yoruba</option>
<option value="zu">Zulu</option>
</select>
</div>
<div id="progressbar" class="progress hide">
<div class="indeterminate"></div>
</div>
<button style="margin-top: 10px;" type="submit" class="waves-effect waves-light btn orange" id="generateBuilder" name="generateBuilder">Go to Builder</button>
</form>
</div>
<div id="rimained" class="col s12">
<form method="post" action="goBuilder.php">
<div class="input-field" >
<input type="url" value="<?php if (!empty($_GET['originalXmlURL'])){echo rawurldecode($_GET['originalXmlURL']);}else if (!empty($_GET['url'])){echo rawurldecode($_GET['url']);} ?>" name="originalXmlURL" class="validate" />
<label for="originalXmlURL">Original Strings.xml URL</label>
</div>
<div class="input-field" >
<input type="url" value="<?php if (!empty($_GET['translatedXmlURL'])){echo $_GET['translatedXmlURL'];} ?>" name="translatedXmlURL" class="validate" />
<label for="translatedXmlURL">Translated Strings.xml URL</label>
</div>
<label for="translationLang">Your translation language</label>
<div class="input-field">
<select name="translationLang">
<option value="" disabled selected>Choose the language that you know</option>
<option value="" data-icon="" class="circle">Don't translate the strings</option>
<option value="ar" data-icon="" class="circle">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="zh-CN">Chinese (Simplified)</option>
<option value="zh-TW">Chinese (Traditional)</option>
<option value="nl">Dutch</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="gu">Gujarati</option>
<option value="ht">Haitian Creole</option>
<option value="ha">Hausa</option>
<option value="iw">Hebrew</option>
<option value="hi">Hindi</option>
<option value="hu">Hungarian</option>
<option value="is">Icelandic</option>
<option value="ig">Igbo</option>
<option value="id">Indonesian</option>
<option value="ga">Irish</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="kn">Kannada</option>
<option value="kk">Kazakh</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">Macedonian</option>
<option value="mt">Maltese</option>
<option value="mi">Maori</option>
<option value="mr">Marathi</option>
<option value="mn">Mongolian</option>
<option value="ne">Nepali</option>
<option value="no">Norwegian</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="si">Sinhala</option>
<option value="sk">Slovak</option>
<option value="sl">Slovenian</option>
<option value="es">Spanish</option>
<option value="su">Sundanese</option>
<option value="sw">Swahili</option>
<option value="sv">Swedish</option>
<option value="tg">Tajik</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="uz">Uzbek</option>
<option value="vi">Vietnamese</option>
<option value="yo">Yoruba</option>
<option value="zu">Zulu</option>
</select>
</div>
<div id="progressbar" class="progress hide">
<div class="indeterminate"></div>
</div>
<button style="margin-top: 10px;" type="submit" class="waves-effect waves-light btn orange" id="generateBuilder" name="generateBuilder">Go to Builder</button>
</form>
</div>
</div>
<div class="divider"></div>
<div class="row center">
<div class="col s4">
<h4><a href="https://github.com/rignaneseleo/Strings.xml-builder-and-translator-PHP" target="_blank"><i class="material-icons">library_books</i> Github</a></h4>
</div>
<div class="col s4">
<h4><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7NFPYFBNAL3AL" target="_blank"><i class="material-icons">favorite</i> Donate</a></h4>
</div>
<div class="col s4">
<h4><a href="http://forum.xda-developers.com/android/software/webtool-strings-xml-builder-translator-t3371665" target="_blank"><i class="material-icons">forum</i> XDA</a></h4>
</div>
</div>
</div>
</div>
<?php include_once("partials/footer.php"); ?>
<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<script src="js/analytics.js"></script>
<script>
$(document).ready(function() {
$('select').material_select(); //intialize the select
$('ul.tabs').tabs();//initialize the tabs
});
$('#generateBuilder').click(function() {//intialize the progress bar
$('#progressbar').removeClass( "hide" );
setTimeout(function(){$('#progressbar').addClass( "hide" );
}, 2500);
});
</script>
</body>
</html>