templates.js
10.7 KB
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
this["WPML_TM"] = this["WPML_TM"] || {};
this["WPML_TM"]["templates/translation-editor/footer.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div class="wpml-translation-action-buttons-abort">\n\t<button class="cancel wpml-dialog-close-button js-dialog-cancel">' +
((__t = (cancel)) == null ? '' : __t) +
'</button>\n\t<button class="button-secondary wpml-resign-button js-resign">' +
((__t = (resign)) == null ? '' : __t) +
'</button>\n</div>\n<div class="wpml-translation-action-buttons-status">\n\t<div class="progress-bar js-progress-bar"><div class="progress-bar-text"></div></div>\n\t<label><input class="js-translation-complete" name="complete" type="checkbox"/>' +
((__t = (translation_complete)) == null ? '' : __t) +
'</label>\n\n\n\t<div class="otgs-toggle-group">\n\t\t<input type="checkbox" class="js-toggle-translated otgs-switcher-input" id="wpml_tm_toggle_translated">\n\t\t<label for="wpml_tm_toggle_translated" class="otgs-switcher" data-on="ON" data-off="OFF">' +
((__t = (hide_translated)) == null ? '' : __t) +
'</label>\n\t</div>\n</div>\n<div class = "wpml-translation-action-buttons-apply">\n\t<span class = "js-saving-message" style = "display:none"><img src="' +
((__t = (loading_url)) == null ? '' : __t) +
'" alt="' +
((__t = (saving)) == null ? '' : __t) +
'" height="16" width="16"/>' +
((__t = (saving)) == null ? '' : __t) +
'</span>\n\t<button class = "button button-primary button-large wpml-dialog-close-button js-save-and-close">' +
((__t = (save_and_close)) == null ? '' : __t) +
'</button>\n\t<button class = "button button-primary button-large wpml-dialog-close-button js-save">' +
((__t = (save)) == null ? '' : __t) +
'</button>\n</div>\n\n\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/group.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
if ( title ) { ;
__p +=
((__t = ( title )) == null ? '' : __t);
} ;
__p += '\n<div class="inside">\n</div>\n\n';
if ( divider ) { ;
__p += '\n<hr />\n';
} ;
__p += '\n<button class="button-copy button-secondary js-button-copy-group">\n\t<i class="otgs-ico-copy"></i>\n</button>\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/header.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p +=
((__t = ( title )) == null ? '' : __t) +
'\n<a href="' +
((__t = ( link_url )) == null ? '' : __t) +
'" class="view" target="_blank">' +
((__t = ( link_text )) == null ? '' : __t) +
'</a>\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/image.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '\t<div class="inside">\n\t\t<img src="' +
((__t = ( image_src )) == null ? '' : __t) +
'">\n\t</div>\n\n\n';
if ( divider ) { ;
__p += '\n<hr />\n';
} ;
__p += '\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/languages.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '\t<input type="hidden" name="source_lang" value="' +
((__t = ( language.source )) == null ? '' : __t) +
'" />\n\t<input type="hidden" name="target_lang" value="' +
((__t = ( language.target )) == null ? '' : __t) +
'" />\n\t<h3 class="wpml-header-original">' +
((__t = ( labels.source_lang )) == null ? '' : __t) +
':\n\t\t<span class="wpml-title-flag"><img src="' +
((__t = ( language.img.source_url )) == null ? '' : __t) +
'" alt="' +
((__t = ( language.source_lang )) == null ? '' : __t) +
'"/></span>\n\t\t<strong>' +
((__t = ( language.source_lang )) == null ? '' : __t) +
'</strong>\n\t</h3>\n\n\t<h3 class="wpml-header-translation">' +
((__t = ( labels.target_lang )) == null ? '' : __t) +
':\n\t\t<span class="wpml-title-flag"><img src="' +
((__t = ( language.img.target_url )) == null ? '' : __t) +
'" alt="' +
((__t = ( language.target_lang )) == null ? '' : __t) +
'"/></span>\n\t\t<strong>' +
((__t = ( language.target_lang )) == null ? '' : __t) +
'</strong>\n\t</h3>\n\n\t<div class="wpml-copy-container">\n\t\t<button class="button-secondary button-copy-all js-button-copy-all" title="' +
((__t = ( labels.copy_from_original )) == null ? '' : __t) +
'">\n\t\t\t<i class="otgs-ico-copy"></i> ' +
((__t = ( labels.copy_all )) == null ? '' : __t) +
'\n\t\t</button>\n\t</div>\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/note.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<p>' +
((__t = ( note )) == null ? '' : __t) +
'</p>\n\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/section.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<div class="handlediv button-link"><br></div>\n<h3 class="hndle">\n\t<span>' +
((__t = ( section.title )) == null ? '' : __t) +
' ';
if ( section.empty ) { ;
__p += ' <i>' +
((__t = ( section.empty_message )) == null ? '' : __t);
} ;
__p += '</span>\n\t';
if ( section.sub_title ) { ;
__p += '\n\t<span class="subtitle"><i class="otgs-ico-warning"></i>' +
((__t = ( section.sub_title )) == null ? '' : __t) +
'</span>\n\t';
} ;
__p += '\n</h3>\n\n<div class="inside">\n</div>\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/single-line.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<label>' +
((__t = (field.title)) == null ? '' : __t) +
'</label>\n<input readonly class="original_value js-original-value" value="' +
__e( field.field_data ) +
'" type="text" ' +
((__t = (field.original_direction)) == null ? '' : __t) +
'/>\n<button class="button-copy button-secondary js-button-copy icl_tm_copy_link otgs-ico-copy" id="icl_tm_copy_link_' +
((__t = (field.field_type)) == null ? '' : __t) +
'" title="' +
((__t = ( labels.copy_from_original )) == null ? '' : __t) +
'" ></button>\n<input class="translated_value js-translated-value" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][data]" value="' +
__e( field.field_data_translated ) +
'" type="text" ' +
((__t = (field.translation_direction)) == null ? '' : __t) +
'/>\n\n<div class="field_translation_complete">\n\t<label><input class="icl_tm_finished js-field-translation-complete" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][finished]" type="checkbox" ';
if (field.field_finished) { ;
__p += ' checked="checked" ';
} ;
__p += ' />' +
((__t = (labels.translation_complete)) == null ? '' : __t) +
'</label>\n</div>\n\n';
if (field.diff) { ;
__p += '\n<a class="js-toggle-diff toggle-diff">' +
((__t = (labels.show_diff)) == null ? '' : __t) +
'</a>\n' +
((__t = (field.diff)) == null ? '' : __t) +
'\n';
} ;
__p += '\n\n\n<input type="hidden" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][tid]" value="' +
((__t = (field.tid)) == null ? '' : __t) +
'">\n<input type="hidden" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][format]" value="base64">\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/textarea.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<label>' +
((__t = (field.title)) == null ? '' : __t) +
'</label>\n<textarea class="original_value js-original-value" readonly cols="22" rows="10" ' +
((__t = (field.original_direction)) == null ? '' : __t) +
'>' +
((__t = ( field.field_data )) == null ? '' : __t) +
'</textarea>\n<button class="button-copy button-secondary js-button-copy icl_tm_copy_link otgs-ico-copy" id="icl_tm_copy_link_' +
((__t = (field.field_type)) == null ? '' : __t) +
'" title="' +
((__t = ( labels.copy_from_original )) == null ? '' : __t) +
'"></button>\n<textarea class="translated_value js-translated-value cols="22" rows="10" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][data]" ' +
((__t = (field.translation_direction)) == null ? '' : __t) +
'>' +
((__t = ( field.field_data_translated )) == null ? '' : __t) +
'</textarea>\n\n<div class="field_translation_complete">\n\t<label><input class="icl_tm_finished js-field-translation-complete" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][finished]" type="checkbox" ';
if (field.field_finished) { ;
__p += ' checked="checked" ';
} ;
__p += ' />' +
((__t = (labels.translation_complete)) == null ? '' : __t) +
'</label>\n</div>\n\n';
if (field.diff) { ;
__p += '\n<a class="js-toggle-diff toggle-diff">' +
((__t = (labels.show_diff)) == null ? '' : __t) +
'</a>\n' +
((__t = (field.diff)) == null ? '' : __t) +
'\n';
} ;
__p += '\n\n\n<input type="hidden" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][tid]" value="' +
((__t = (field.tid)) == null ? '' : __t) +
'">\n<input type="hidden" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][format]" value="base64">\n';
}
return __p
};
this["WPML_TM"]["templates/translation-editor/wysiwyg.html"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
with (obj) {
__p += '<label>' +
((__t = (field.title)) == null ? '' : __t) +
'</label>\n<div id="original_' +
((__t = (field.field_type)) == null ? '' : __t) +
'_placeholder"></div>\n<button class="button-copy button-secondary js-button-copy icl_tm_copy_link otgs-ico-copy" id="icl_tm_copy_link_' +
((__t = (field.field_type)) == null ? '' : __t) +
'" title="' +
((__t = ( labels.copy_from_original )) == null ? '' : __t) +
'"></button>\n<div id="translated_' +
((__t = (field.field_type)) == null ? '' : __t) +
'_placeholder"></div>\n<input type="hidden" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][tid]" value="' +
((__t = (field.tid)) == null ? '' : __t) +
'">\n<input type="hidden" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][format]" value="base64">\n\n<div class="field_translation_complete">\n <label><input class="icl_tm_finished js-field-translation-complete" name="fields[' +
((__t = (field.field_type)) == null ? '' : __t) +
'][finished]" type="checkbox" ';
if (field.field_finished) { ;
__p += ' checked="checked" ';
} ;
__p += ' />' +
((__t = (labels.translation_complete)) == null ? '' : __t) +
'</label>\n</div>\n\n';
if (field.diff) { ;
__p += '\n<a class="js-toggle-diff toggle-diff">' +
((__t = (labels.show_diff)) == null ? '' : __t) +
'</a>\n' +
((__t = (field.diff)) == null ? '' : __t) +
'\n';
} ;
__p += '\n\n\n';
}
return __p
};