Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit f7f49055fb88e5dfa03c43d91f3c29f7a48aca76

cleaned up export HTML logic
  
109109 # save the html code to the instance directory
110110 datapath = get_path(activity, 'instance')
111111
112 html_file = os.path.join(datapath, "portfolio.html")
112 save_type = '.html'
113 if len(self.tw.saved_pictures) > 0:
114 if self.tw.saved_pictures[0].endswith(('.svg')):
115 save_type = '.xml'
116
117 html_file = os.path.join(datapath, "portfolio" + save_type)
113118 f = file(html_file, "w")
114119 f.write(html)
115120 f.close()
141141 _("presentation")
142142 dsobject.metadata['icon-color'] = profile.get_color().to_string()
143143 if embed_flag == True:
144 dsobject.metadata['mime_type'] = 'text/html'
144 if save_type == '.xml':
145 dsobject.metadata['mime_type'] = 'text/xhtml'
146 else:
147 dsobject.metadata['mime_type'] = 'text/html'
145148 dsobject.set_file_path(html_file)
146149 else:
147150 dsobject.metadata['mime_type'] = 'application/x-tar'
154154 datastore.write(dsobject)
155155 dsobject.destroy()
156156 gobject.timeout_add(250,self.save_as_html.set_icon, "htmloff")
157
158 self.tw.saved_pictures = []
157159 return
158160
159161 def _do_save_as_logo_cb(self, button):
po/vi.po
(1329 / 793)
  
66msgstr ""
77"Project-Id-Version: PACKAGE VERSION\n"
88"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2009-09-18 12:07+0000\n"
10"PO-Revision-Date: 2009-09-25 08:10-0400\n"
9"POT-Creation-Date: 2010-02-25 17:04+0000\n"
10"PO-Revision-Date: 2010-03-08 13:27+0200\n"
1111"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
1212"Language-Team: LANGUAGE <LL@li.org>\n"
1313"Language: vi\n"
1515"Content-Type: text/plain; charset=UTF-8\n"
1616"Content-Transfer-Encoding: 8bit\n"
1717"Plural-Forms: nplurals=1; plural=0;\n"
18"X-Generator: Pootle 1.2.1\n"
18"X-Generator: Pootle 2.0.1\n"
1919
2020# Tên: không nên dịch
2121#: activity/activity.info:2
22#: /home/walter/Desktop/turtleart-activity/taexporthtml.py:229
22#: /home/walter/Desktop/ta-refactoring/tawindow.py:1300
23#: /home/walter/Desktop/ta-refactoring/tawindow.py:2552
24#: /home/walter/Desktop/ta-refactoring/turtleart.py:76
25#: /home/walter/Desktop/ta-refactoring/taexporthtml.py:285
2326msgid "Turtle Art"
2427msgstr "Turtle Art"
2528
26#: /home/walter/Desktop/turtleart-activity/tasetup.py:55
27#: /home/walter/Desktop/turtleart-activity/tasetup.py:65
28msgid "text"
29msgstr "văn bản"
29#: /home/walter/Desktop/ta-refactoring/tawindow.py:507
30#: /home/walter/Desktop/ta-refactoring/tawindow.py:508
31msgid "orientation"
32msgstr "hướng"
3033
31#: /home/walter/Desktop/turtleart-activity/tasetup.py:108
32#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:50
33#: /home/walter/Desktop/turtleart-activity/svg/setxy.py:41
34msgid "x"
35msgstr "x"
34#: /home/walter/Desktop/ta-refactoring/tawindow.py:518
35#: /home/walter/Desktop/ta-refactoring/tawindow.py:786
36msgid "next"
37msgstr "tiếp"
3638
37#: /home/walter/Desktop/turtleart-activity/tasetup.py:136
38#: /home/walter/Desktop/turtleart-activity/tasetup.py:137
39msgid "action"
40msgstr "hành vi"
39#: /home/walter/Desktop/ta-refactoring/tawindow.py:1565
40#: /home/walter/Desktop/ta-refactoring/taconstants.py:328
41msgid "click to open"
42msgstr "nhấn để mở"
4143
42#: /home/walter/Desktop/turtleart-activity/tasetup.py:142
43#: /home/walter/Desktop/turtleart-activity/tasetup.py:143
44#: /home/walter/Desktop/turtleart-activity/tasetup.py:146
44#: /home/walter/Desktop/ta-refactoring/tawindow.py:2549
45#: /home/walter/Desktop/ta-refactoring/tawindow.py:2553
46#: /home/walter/Desktop/ta-refactoring/talogo.py:744
47#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:709
48#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1201
49#: /home/walter/Desktop/ta-refactoring/taconstants.py:375
50msgid "xcor"
51msgstr "xcor"
52
53#: /home/walter/Desktop/ta-refactoring/tawindow.py:2549
54#: /home/walter/Desktop/ta-refactoring/tawindow.py:2553
55#: /home/walter/Desktop/ta-refactoring/talogo.py:745
56#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:709
57#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1201
58#: /home/walter/Desktop/ta-refactoring/taconstants.py:376
59msgid "ycor"
60msgstr "ycor"
61
62#: /home/walter/Desktop/ta-refactoring/tawindow.py:2549
63#: /home/walter/Desktop/ta-refactoring/tawindow.py:2553
64#: /home/walter/Desktop/ta-refactoring/talogo.py:745
65#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:710
66#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1202
67#: /home/walter/Desktop/ta-refactoring/taconstants.py:271
68msgid "heading"
69msgstr "tiêu đề"
70
71#: /home/walter/Desktop/ta-refactoring/tawindow.py:2612
72msgid "image"
73msgstr "ảnh"
74
75#: /home/walter/Desktop/ta-refactoring/talogo.py:704
76msgid "did not output to"
77msgstr "đã không xuất tới"
78
79#: /home/walter/Desktop/ta-refactoring/talogo.py:746
80#: /home/walter/Desktop/ta-refactoring/taconstants.py:331
81msgid "scale"
82msgstr "co giãn"
83
84#: /home/walter/Desktop/ta-refactoring/talogo.py:749
85#: /home/walter/Desktop/ta-refactoring/taconstants.py:297
86msgid "pen down"
87msgstr "bút xuống"
88
89#: /home/walter/Desktop/ta-refactoring/talogo.py:751
90#: /home/walter/Desktop/ta-refactoring/taconstants.py:299
91msgid "pen up"
92msgstr "bút lên"
93
94#: /home/walter/Desktop/ta-refactoring/talogo.py:753
95#: /home/walter/Desktop/ta-refactoring/taconstants.py:255
96#: /home/walter/Desktop/ta-refactoring/taconstants.py:262
97msgid "color"
98msgstr "màu"
99
100#: /home/walter/Desktop/ta-refactoring/talogo.py:754
101#: /home/walter/Desktop/ta-refactoring/taconstants.py:262
102#: /home/walter/Desktop/ta-refactoring/taconstants.py:340
103msgid "shade"
104msgstr "sắc màu"
105
106#: /home/walter/Desktop/ta-refactoring/talogo.py:755
107#: /home/walter/Desktop/ta-refactoring/taconstants.py:298
108msgid "pen size"
109msgstr "kích cỡ bút"
110
111#: /home/walter/Desktop/ta-refactoring/talogo.py:770
112msgid "I don't know how to"
113msgstr "Tôi chưa biết cách"
114
115#: /home/walter/Desktop/ta-refactoring/talogo.py:919
116msgid "doesn't like"
117msgstr "không thích"
118
119#: /home/walter/Desktop/ta-refactoring/talogo.py:919
120msgid "as input"
121msgstr "làm đầu vào"
122
123#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:136
124msgid "presentation"
125msgstr "trình diễn"
126
127#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:189
128#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:895
129msgid "Project"
130msgstr "Dự án"
131
132#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:274
133msgid "snapshot"
134msgstr "hiện trạng"
135
136#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:292
137#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:317
138#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:334
139#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:343
140#: /home/walter/Desktop/ta-refactoring/turtleart.py:142
141msgid "Show palette"
142msgstr "Hiện bảng chọn"
143
144#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:299
145#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:312
146#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:321
147#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:337
148#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:349
149#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:773
150#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1386
151#: /home/walter/Desktop/ta-refactoring/turtleart.py:146
152msgid "Hide palette"
153msgstr "Ẩn bảng chọn"
154
155#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:327
156#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:341
157msgid "Show blocks"
158msgstr "Hiện khối"
159
160#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:330
161#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:347
162#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:677
163#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1152
164#: /home/walter/Desktop/ta-refactoring/taconstants.py:697
165msgid "Hide blocks"
166msgstr "Ẩn khối"
167
168#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:430
169msgid "Rescale coordinates down"
170msgstr "Giảm toạ độ theo tỷ lệ"
171
172#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:438
173#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:725
174#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1230
175msgid "Rescale coordinates up"
176msgstr "Tăng toạ độ theo tỷ lệ"
177
178#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:620
179#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1476
180msgid "Save snapshot"
181msgstr "Lưu ảnh chụp"
182
183#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:627
184#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1324
185msgid "Save as HTML"
186msgstr "Lưu dạng HTML"
187
188#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:634
189msgid "Save as Logo"
190msgstr "Lưu dạng Biểu hình"
191
192#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:641
193#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1342
194msgid "Save as image"
195msgstr "Lưu dạng ảnh"
196
197#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:648
198#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1356
199msgid "Load my block"
200msgstr "Nạp khối của mình"
201
202#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:656
203#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1366
204msgid "Import project from the Journal"
205msgstr "Nhập dự án từ Nhật ký"
206
207# Phím tắt này tương ứng với hành động nào?
208#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:680
209#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1157
210msgid "<Ctrl>b"
211msgstr "<Ctrl>b"
212
213#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:685
214#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1165
215msgid "Fullscreen"
216msgstr "Toàn màn hình"
217
218#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:692
219#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1178
220#: /home/walter/Desktop/ta-refactoring/turtleart.py:96
221msgid "Cartesian coordinates"
222msgstr "Toạ độ thuyết Đê-các-tơ"
223
224#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:698
225#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1187
226#: /home/walter/Desktop/ta-refactoring/turtleart.py:100
227msgid "Polar coordinates"
228msgstr "Toạ độ cực"
229
230#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:731
231#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1216
232#: /home/walter/Desktop/ta-refactoring/turtleart.py:108
233msgid "Grow blocks"
234msgstr "Khối lớn hơn"
235
236#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:738
237#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1223
238#: /home/walter/Desktop/ta-refactoring/turtleart.py:112
239msgid "Shrink blocks"
240msgstr "Khối nhỏ hơn"
241
242# Phím tắt này tương ứng với hành động nào?
243#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:776
244#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1391
245msgid "<Ctrl>p"
246msgstr "<Ctrl>p"
247
248#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:795
249#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1458
250#: /home/walter/Desktop/ta-refactoring/turtleart.py:161
251#: /home/walter/Desktop/ta-refactoring/taconstants.py:682
252msgid "Clean"
253msgstr "Làm sạch"
254
255#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:798
256#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1463
257msgid "<Ctrl>e"
258msgstr "<Ctrl>s"
259
260#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:804
261#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1404
262#: /home/walter/Desktop/ta-refactoring/turtleart.py:165
263#: /home/walter/Desktop/ta-refactoring/taconstants.py:747
264msgid "Run"
265msgstr "Chạy"
266
267#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:807
268#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1408
269msgid "<Ctrl>r"
270msgstr "<Ctrl>y"
271
272#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:813
273#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1416
274#: /home/walter/Desktop/ta-refactoring/turtleart.py:169
275#: /home/walter/Desktop/ta-refactoring/taconstants.py:748
276msgid "Step"
277msgstr "Bước"
278
279#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:816
280#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1420
281msgid "<Ctrl>w"
282msgstr "<Ctrl>b"
283
284#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:822
285#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1428
286#: /home/walter/Desktop/ta-refactoring/turtleart.py:173
287#: /home/walter/Desktop/ta-refactoring/taconstants.py:678
288msgid "Debug"
289msgstr "Gỡ lỗi"
290
291#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:825
292msgid "<Alt>d"
293msgstr "<Alt>g"
294
295#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:831
296#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1441
297#: /home/walter/Desktop/ta-refactoring/taconstants.py:772
298msgid "Stop turtle"
299msgstr "Dừng rùa"
300
301#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:834
302#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1445
303msgid "<Ctrl>s"
304msgstr "<Ctrl>d"
305
306#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:846
307#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1494
308msgid "Samples"
309msgstr "Mẫu lấy"
310
311#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:857
312#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1305
313msgid "Move the cursor over the orange palette for help."
314msgstr "Di chuyển con trỏ trên bảng chọn màu cam để thấy trợ giúp."
315
316#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:866
317#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:903
318msgid "Help"
319msgstr "Trợ giúp"
320
321#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:897
322#: /home/walter/Desktop/ta-refactoring/turtleart.py:121
323msgid "View"
324msgstr "Xem"
325
326#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:899
327#: /home/walter/Desktop/ta-refactoring/turtleart.py:136
328msgid "Edit"
329msgstr "Sửa"
330
331#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:901
332msgid "Import/Export"
333msgstr "Nhập/Xuất"
334
335#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1246
336#: /home/walter/Desktop/ta-refactoring/turtleart.py:127
337msgid "Copy"
338msgstr "Chép"
339
340#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1258
341#: /home/walter/Desktop/ta-refactoring/turtleart.py:131
342msgid "Paste"
343msgstr "Dán"
344
345#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1333
346msgid "Save Logo"
347msgstr "Lưu Biểu hình"
348
349#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1433
350msgid "<Ctrl>d"
351msgstr "<Ctrl>b"
352
353#: /home/walter/Desktop/ta-refactoring/TurtleArtActivity.py:1499
354msgid "<Ctrl>o"
355msgstr "<Ctrl>m"
356
357#: /home/walter/Desktop/ta-refactoring/turtleart.py:81
358msgid "Open"
359msgstr "Mở"
360
361#: /home/walter/Desktop/ta-refactoring/turtleart.py:85
362msgid "Save"
363msgstr "Lưu"
364
365#: /home/walter/Desktop/ta-refactoring/turtleart.py:90
366msgid "File"
367msgstr "Tập tin"
368
369#: /home/walter/Desktop/ta-refactoring/turtleart.py:104
370msgid "Rescale coordinates"
371msgstr "Đặt lại tỷ lệ toạ độ"
372
373#: /home/walter/Desktop/ta-refactoring/turtleart.py:116
374msgid "Reset block size"
375msgstr "Đặt lại kích cỡ khối"
376
377#: /home/walter/Desktop/ta-refactoring/turtleart.py:150
378msgid "Show/hide blocks"
379msgstr "Hiện/ẩn khối"
380
381#: /home/walter/Desktop/ta-refactoring/turtleart.py:155
382msgid "Tools"
383msgstr "Công cụ"
384
385#: /home/walter/Desktop/ta-refactoring/turtleart.py:177
386msgid "Stop"
387msgstr "Dừng"
388
389# Tên: không nên dịch
390#: /home/walter/Desktop/ta-refactoring/turtleart.py:182
391msgid "Turtle"
392msgstr "Rùa"
393
394# Tên: không nên dịch
395#: /home/walter/Desktop/ta-refactoring/taconstants.py:241
396#: /home/walter/Desktop/ta-refactoring/taconstants.py:365
397msgid "turtle"
398msgstr "rùa"
399
400#: /home/walter/Desktop/ta-refactoring/taconstants.py:242
401msgid "and"
402msgstr "và"
403
404#: /home/walter/Desktop/ta-refactoring/taconstants.py:243
405msgid "arc"
406msgstr "cung"
407
408#: /home/walter/Desktop/ta-refactoring/taconstants.py:243
409msgid "angle"
410msgstr "góc"
411
412#: /home/walter/Desktop/ta-refactoring/taconstants.py:243
413msgid "radius"
414msgstr "bán kính"
415
416#: /home/walter/Desktop/ta-refactoring/taconstants.py:245
417msgid "back"
418msgstr "lùi"
419
420#: /home/walter/Desktop/ta-refactoring/taconstants.py:246
421msgid "blue"
422msgstr "xanh"
423
424#: /home/walter/Desktop/ta-refactoring/taconstants.py:247
425msgid "bottom"
426msgstr "dưới"
427
428#: /home/walter/Desktop/ta-refactoring/taconstants.py:248
429msgid "picture bottom"
430msgstr "dưới ảnh"
431
432#: /home/walter/Desktop/ta-refactoring/taconstants.py:249
433#: /home/walter/Desktop/ta-refactoring/taconstants.py:350
45434msgid "box"
46435msgstr "hộp"
47436
48#: /home/walter/Desktop/turtleart-activity/tasetup.py:144
49#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:47
50#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:59
51msgid "name"
52msgstr "tên"
437#: /home/walter/Desktop/ta-refactoring/taconstants.py:250
438msgid "box 1"
439msgstr "hộp 1"
53440
54#: /home/walter/Desktop/turtleart-activity/tasetup.py:151
55#: /home/walter/Desktop/turtleart-activity/tasetup.py:152
56#: /home/walter/Desktop/turtleart-activity/tasetup.py:153
57#: /home/walter/Desktop/turtleart-activity/tasetup.py:154
58#: /home/walter/Desktop/turtleart-activity/tasetup.py:155
59#: /home/walter/Desktop/turtleart-activity/tasetup.py:156
60msgid "title"
61msgstr "tựa đề"
441#: /home/walter/Desktop/ta-refactoring/taconstants.py:251
442msgid "box 2"
443msgstr "hộp 2"
62444
63#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:26
64msgid "palette of turtle commands"
65msgstr "bảng chọn lệnh turtle"
445#: /home/walter/Desktop/ta-refactoring/taconstants.py:252
446msgid "Cartesian"
447msgstr "thuyết Đê-các-tơ"
66448
67#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:27
68msgid "palette of pen commands"
69msgstr "bảng chọn lệnh bút"
449#: /home/walter/Desktop/ta-refactoring/taconstants.py:253
450msgid " clean "
451msgstr " làm sạch "
70452
71#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:28
72msgid "palette of numeric operators"
73msgstr "bảng chọn toán tử thuộc số"
453#: /home/walter/Desktop/ta-refactoring/taconstants.py:254
454msgid "empty heap"
455msgstr "miền nhớ trống"
74456
75#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:29
76msgid "palette of extra options"
77msgstr "bảng chọn tuỳ chọn bổ sung"
457#: /home/walter/Desktop/ta-refactoring/taconstants.py:256
458#: /home/walter/Desktop/ta-refactoring/taconstants.py:515
459msgid "comment"
460msgstr "ghi chú"
78461
79#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:30
80msgid "palette of flow operators"
81msgstr "bảng chọn toán tử luồng"
462#: /home/walter/Desktop/ta-refactoring/taconstants.py:257
463msgid "cyan"
464msgstr "lục lam"
82465
83#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:31
84msgid "palette of variable blocks"
85msgstr "bảng chọn khối biến đổi"
466#: /home/walter/Desktop/ta-refactoring/taconstants.py:260
467msgid "empty trash"
468msgstr "đổ rác"
86469
87#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:32
88msgid "palette of presentation templates"
89msgstr "bảng chọn mẫu trình diễn"
470#: /home/walter/Desktop/ta-refactoring/taconstants.py:262
471msgid "fill screen"
472msgstr "đầy màn hình"
90473
91#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:33
92msgid "clear the screen and reset the turtle"
93msgstr "xoá màn hình và đặt lại turtle"
474#: /home/walter/Desktop/ta-refactoring/taconstants.py:263
475msgid "forever"
476msgstr "hẳn"
94477
95#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:34
96msgid "move turtle forward"
97msgstr "cho rùa đi tới"
478#: /home/walter/Desktop/ta-refactoring/taconstants.py:264
479msgid "forward"
480msgstr "tiếp"
98481
99#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:35
100msgid "move turtle backward"
101msgstr "cho rùa đi lùi"
482#: /home/walter/Desktop/ta-refactoring/taconstants.py:265
483msgid "full screen"
484msgstr "toàn màn hình"
102485
103#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:36
104msgid "turn turtle counterclockwise (angle in degrees)"
105msgstr "quay rùa theo ngược chiều kim đồng hồ (góc theo độ)"
486#: /home/walter/Desktop/ta-refactoring/taconstants.py:267
487msgid "green"
488msgstr "lục"
106489
107#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:37
108msgid "turn turtle clockwise (angle in degrees)"
109msgstr "quay rùa theo chiều kim đồng hồ (góc theo độ)"
490#: /home/walter/Desktop/ta-refactoring/taconstants.py:268
491#: /home/walter/Desktop/ta-refactoring/taconstants.py:345
492#: /home/walter/Desktop/ta-refactoring/taconstants.py:520
493#: /home/walter/Desktop/ta-refactoring/taconstants.py:550
494msgid "action"
495msgstr "hành vi"
110496
111#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:38
112msgid "move turtle along an arc"
113msgstr "cho rùa theo một hình cung"
497#: /home/walter/Desktop/ta-refactoring/taconstants.py:269
498#: /home/walter/Desktop/ta-refactoring/taconstants.py:346
499msgid "action 1"
500msgstr "hành vi 1"
114501
115#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:39
116msgid ""
117"move turtle to position xcor, ycor; (0, 0) is in the center of the screen."
118msgstr "cho rùa đi tới vị trí xcor, ycor; (0, 0) là trung tâm của màn hình."
502#: /home/walter/Desktop/ta-refactoring/taconstants.py:270
503#: /home/walter/Desktop/ta-refactoring/taconstants.py:347
504msgid "action 2"
505msgstr "hành vi 2"
119506
120#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:40
121msgid "set the heading of the turtle (0 is towards the top of the screen.)"
122msgstr "đặt sự hướng về của rùa (0 là hướng về đầu màn hình)"
507#: /home/walter/Desktop/ta-refactoring/taconstants.py:272
508msgid "height"
509msgstr "độ cao"
123510
124#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:41
125msgid "draw text or show media from the Journal"
126msgstr "vẽ văn bản hoặc hiển thị ảnh/nhạc từ Nhật ký"
511#: /home/walter/Desktop/ta-refactoring/taconstants.py:273
512msgid "hide blocks"
513msgstr "ẩn khối"
127514
128#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:42
129msgid "set the scale of media"
130msgstr "đặt tỷ lệ của ảnh/nhạc"
515#: /home/walter/Desktop/ta-refactoring/taconstants.py:276
516#: /home/walter/Desktop/ta-refactoring/taconstants.py:277
517msgid "if"
518msgstr "nếu"
131519
132#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:43
133msgid ""
134"holds current x-coordinate value of the turtle (can be used in place of a "
135"number block)"
136msgstr ""
137"giữ giá trị đồ hoạ X hiện thời của rùa (cũng có thể được sử dụng để thay thế "
138"một khối con số)"
520#: /home/walter/Desktop/ta-refactoring/taconstants.py:276
521msgid "then"
522msgstr "thì"
139523
140#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:44
141msgid ""
142"holds current y-coordinate value of the turtle (can be used in place of a "
143"number block)"
144msgstr ""
145"giữ giá trị đồ hoạ Y hiện thời của rùa (cũng có thể được sử dụng để thay thế "
146"một khối con số)"
524#: /home/walter/Desktop/ta-refactoring/taconstants.py:277
525msgid "then else"
526msgstr "không thì"
147527
148#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:45
149msgid ""
150"holds current heading value of the turtle (can be used in place of a number "
151"block)"
152msgstr ""
153"giữ hướng về hiện thời của rùa (cũng có thể được sử dụng để thay thế một "
154"khối con số)"
528#: /home/walter/Desktop/ta-refactoring/taconstants.py:278
529#: /home/walter/Desktop/ta-refactoring/taconstants.py:341
530msgid "show"
531msgstr "hiện"
155532
156#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:46
157msgid "holds current scale value (can be used in place of a number block)"
158msgstr ""
159"giữ giá trị tỷ lệ hiện thời của rùa (cũng có thể được sử dụng để thay thế "
160"một khối con số)"
533#: /home/walter/Desktop/ta-refactoring/taconstants.py:280
534msgid "query keyboard"
535msgstr "hỏi bàn phím"
161536
162#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:47
163msgid "turtle will not draw when moved"
164msgstr "cho rùa đi thì nó không vẽ"
537#: /home/walter/Desktop/ta-refactoring/taconstants.py:281
538msgid "keyboard"
539msgstr "bàn phím"
165540
166#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:48
167msgid "turtle will draw when moved"
168msgstr "cho rùa đi thì nó vẽ"
541#: /home/walter/Desktop/ta-refactoring/taconstants.py:282
542#: /home/walter/Desktop/ta-refactoring/taconstants.py:283
543msgid "left"
544msgstr "trái"
169545
170#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:49
171msgid "set size of the line drawn by the turtle"
172msgstr "đặt kích cỡ của đường được rùa vẽ"
546#: /home/walter/Desktop/ta-refactoring/taconstants.py:284
547msgid "picture left"
548msgstr "bên trái ảnh"
173549
174#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:50
175msgid "set color of the line drawn by the turtle"
176msgstr "đặt màu của đường được rùa vẽ"
550# Tên ngôn ngữ lập trình: đừng dịch
551#: /home/walter/Desktop/ta-refactoring/taconstants.py:288
552#: /home/walter/Desktop/ta-refactoring/taconstants.py:289
553#: /home/walter/Desktop/ta-refactoring/taconstants.py:290
554#: /home/walter/Desktop/ta-refactoring/taconstants.py:291
555msgid "Python"
556msgstr "Python"
177557
178#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:51
179msgid "set shade of the line drawn by the turtle"
180msgstr "đặt sắc màu của đường được rùa vẽ"
558#: /home/walter/Desktop/ta-refactoring/taconstants.py:293
559msgid "not"
560msgstr "không phải"
181561
182#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:52
183msgid "set color of text drawn by the turtle"
184msgstr "đặt màu của các chữ được rùa vẽ"
562#: /home/walter/Desktop/ta-refactoring/taconstants.py:295
563msgid "orange"
564msgstr "cam"
185565
186#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:53
187msgid "set size of text drawn by turtle"
188msgstr "đặt kích cỡ của các chữ được rùa vẽ"
566#: /home/walter/Desktop/ta-refactoring/taconstants.py:296
567msgid "or"
568msgstr "hoặc"
189569
190#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:54
191msgid "fills the background with (color, shade)"
192msgstr "tô đầy nền bằng (màu, sắc)"
570#: /home/walter/Desktop/ta-refactoring/taconstants.py:306
571msgid "pitch"
572msgstr "âm vực"
193573
194#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:55
195msgid "holds current pen size (can be used in place of a number block)"
196msgstr ""
197"giữ kích cỡ bút hiện thời (cũng có thể dùng để thay thế một khối con số)"
574#: /home/walter/Desktop/ta-refactoring/taconstants.py:308
575msgid "polar"
576msgstr "cực"
198577
199#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:56
200msgid "holds current pen color (can be used in place of a number block)"
201msgstr "giữ màu bút hiện thời (cũng có thể dùng để thay thế một khối con số)"
578#: /home/walter/Desktop/ta-refactoring/taconstants.py:309
579msgid "pop"
580msgstr "pop"
202581
203#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:57
204msgid "holds current pen shade (can be used in place of a number block)"
205msgstr ""
206"giữ sắc màu bút hiện thời (cũng có thể dùng để thay thế một khối con số)"
582#: /home/walter/Desktop/ta-refactoring/taconstants.py:310
583msgid "show heap"
584msgstr "hiện miền nhớ"
207585
208#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:58
209msgid "holds current text size (can be used in place of a number block)"
210msgstr ""
211"giữ kích cỡ chữ hiện thời (cũng có thể dùng để thay thế một khối con số)"
586#: /home/walter/Desktop/ta-refactoring/taconstants.py:311
587msgid "print"
588msgstr "in"
212589
213#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:59
214msgid "holds current text color (can be used in place of a number block)"
215msgstr "giữ màu chữ hiện thời (cũng có thể dùng để thay thế một khối con số)"
590#: /home/walter/Desktop/ta-refactoring/taconstants.py:313
591msgid "purple"
592msgstr "tím"
216593
217#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:60
218msgid "used as numeric input in mathematic operators"
219msgstr "dùng để nhập thuộc số trong toán tử toán học"
594#: /home/walter/Desktop/ta-refactoring/taconstants.py:314
595msgid "push"
596msgstr "đẩy"
220597
221#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:61
222msgid "adds two numeric inputs"
223msgstr "thêm hai đầu vào thuộc số"
598#: /home/walter/Desktop/ta-refactoring/taconstants.py:315
599msgid "random"
600msgstr "ngẫu nhiên"
224601
225#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:62
226msgid "subtracts bottom numeric input from top numeric input"
227msgstr "trừ đầu vào thuộc số dưới từ đầu vào thuộc số trên"
602#: /home/walter/Desktop/ta-refactoring/taconstants.py:315
603msgid "min"
604msgstr "tiểu"
228605
229#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:63
230msgid "multiplies two numeric inputs"
231msgstr "nhân lên nhau hai đầu vào thuộc số"
606#: /home/walter/Desktop/ta-refactoring/taconstants.py:315
607msgid "max"
608msgstr "đại"
232609
233#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:64
234msgid ""
235"divides top numeric input (numerator) by bottom numeric input (denominator)"
236msgstr "chia đầu vào thuộc số trên (tử số) cho đầu vào thuộc số dưới (mẫu số)"
610#: /home/walter/Desktop/ta-refactoring/taconstants.py:316
611msgid "red"
612msgstr "đỏ"
237613
238#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:65
239msgid "modular (remainder) operator"
240msgstr "toán tử đơn thể (phần dư)"
614#: /home/walter/Desktop/ta-refactoring/taconstants.py:317
615msgid "mod"
616msgstr "sửa"
241617
242#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:66
243#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:67
244msgid "identity operator used for extending blocks"
245msgstr "toán tử nhận diện dùng để mở rộng khối"
618#: /home/walter/Desktop/ta-refactoring/taconstants.py:318
619msgid "repeat"
620msgstr "lặp lại"
246621
247#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:68
248msgid "calculate square root"
249msgstr "tính căn bậc hai"
622#: /home/walter/Desktop/ta-refactoring/taconstants.py:319
623msgid "resistance"
624msgstr "điện trở"
250625
251#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:69
252msgid "returns random number between minimum (left) and maximum (right) values"
253msgstr ""
254"trả lại một số ngẫu nhiên nằm giữa hai giá trị là tối thiểu (bên trái) và "
255"tối đa (bên phải)"
626#: /home/walter/Desktop/ta-refactoring/taconstants.py:320
627msgid "restore last"
628msgstr "phục hồi cái cuối"
256629
257#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:70
258msgid "logical equal-to operator"
259msgstr "toán tử bằng-với lôgic"
630#: /home/walter/Desktop/ta-refactoring/taconstants.py:321
631msgid "restore all"
632msgstr "phục hồi tất cả"
260633
261#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:71
262msgid "logical greater-than operator"
263msgstr "toán tử lớn-hơn lôgic"
634#: /home/walter/Desktop/ta-refactoring/taconstants.py:322
635#: /home/walter/Desktop/ta-refactoring/taconstants.py:323
636msgid "right"
637msgstr "phải"
264638
265#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:72
266msgid "logical less-than operator"
267msgstr "toán tử nhỏ hơn lôgic"
639#: /home/walter/Desktop/ta-refactoring/taconstants.py:324
640msgid "picture right"
641msgstr "bên phải ảnh"
268642
269#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:73
270msgid "logical AND operator"
271msgstr "toán tử VÀ lôgic"
643#: /home/walter/Desktop/ta-refactoring/taconstants.py:325
644msgid "save picture"
645msgstr "lưu ảnh"
272646
273#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:74
274msgid "logical OR operator"
275msgstr "toán tử HOẶC lôgic"
647#: /home/walter/Desktop/ta-refactoring/taconstants.py:326
648msgid "save SVG"
649msgstr "lưu SVG"
276650
277#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:75
278msgid "logical NOT operator"
279msgstr "toán tử KHÔNG_PHẢI lôgic"
651#: /home/walter/Desktop/ta-refactoring/taconstants.py:329
652#: /home/walter/Desktop/ta-refactoring/taconstants.py:330
653msgid "top of stack"
654msgstr "đầu đống"
280655
281#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:76
282msgid "prints value in status block at bottom of the screen"
283msgstr "in ra giá trị trong khối trạng thái ở dưới màn hình"
656#: /home/walter/Desktop/ta-refactoring/taconstants.py:332
657msgid "set color"
658msgstr "đặt màu"
284659
285#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:77
286msgid "query for keyboard input (results stored in keyboard block)"
287msgstr "yêu cầu đầu vào bàn phím (kết quả được lưu vào khối bàn phím)"
660#
661#: /home/walter/Desktop/ta-refactoring/taconstants.py:333
662msgid "set heading"
663msgstr "đặt hướng về"
288664
289#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:78
290msgid "holds results of query-keyboard block"
291msgstr "giữ kết quả của khối yêu-cầu-bàn-phím"
665#: /home/walter/Desktop/ta-refactoring/taconstants.py:334
666msgid "set pen size"
667msgstr "đặt kích cỡ bút"
292668
293#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:79
294msgid "runs code found in the tamyblock.py module found in the Journal"
295msgstr "chạy mã nguồn được tìm trong mô-đun tamyblock.py có trong Nhật ký"
669#: /home/walter/Desktop/ta-refactoring/taconstants.py:335
670msgid "set scale"
671msgstr "đặt tỷ lệ"
296672
297#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:80
298msgid ""
299"a programmable block: add your own math equation in the block, e.g., sin(x)"
300msgstr ""
301"một khối có thể lập trình: hãy thêm vào khối phương trình toán tử của mình, "
302"v.d. sin(x)"
673#: /home/walter/Desktop/ta-refactoring/taconstants.py:336
674msgid "set shade"
675msgstr "đặt sắc màu"
303676
304#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:81
305msgid "the canvas width"
306msgstr "chiều rộng vùng vẽ"
677#: /home/walter/Desktop/ta-refactoring/taconstants.py:337
678msgid "set text color"
679msgstr "đặt màu chữ"
307680
308#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:82
309msgid "the canvas height"
310msgstr "chiều cao vùng vẽ"
681#: /home/walter/Desktop/ta-refactoring/taconstants.py:338
682msgid "set text size"
683msgstr "đặt kích cỡ chữ"
311684
312#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:83
313msgid "xcor of left of screen"
314msgstr "xcor bên trái màn hình"
685#: /home/walter/Desktop/ta-refactoring/taconstants.py:339
686msgid "set xy"
687msgstr "đặt xy"
315688
316#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:84
317msgid "ycor of top of screen"
318msgstr "ycor bên trên màn hình"
689#: /home/walter/Desktop/ta-refactoring/taconstants.py:339
690msgid "x"
691msgstr "x"
319692
320#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:85
321msgid "xcor of right of screen"
322msgstr "xcor bên phải màn hình"
693#: /home/walter/Desktop/ta-refactoring/taconstants.py:339
694msgid "y"
695msgstr "y"
323696
324#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:86
697#: /home/walter/Desktop/ta-refactoring/taconstants.py:342
698msgid "show blocks"
699msgstr "hiện khối"
700
701#: /home/walter/Desktop/ta-refactoring/taconstants.py:343
702msgid "show aligned"
703msgstr "hiện sắp hàng"
704
705#: /home/walter/Desktop/ta-refactoring/taconstants.py:348
706msgid "start"
707msgstr "đầu"
708
709#: /home/walter/Desktop/ta-refactoring/taconstants.py:349
710msgid "stop action"
711msgstr "dừng hành vi"
712
713#: /home/walter/Desktop/ta-refactoring/taconstants.py:350
714msgid "store in"
715msgstr "lưu vào"
716
717#: /home/walter/Desktop/ta-refactoring/taconstants.py:350
718msgid "value"
719msgstr "giá trị"
720
721#: /home/walter/Desktop/ta-refactoring/taconstants.py:351
722msgid "store in box 1"
723msgstr "lưu vào hộp 1"
724
725#: /home/walter/Desktop/ta-refactoring/taconstants.py:352
726msgid "store in box 2"
727msgstr "lưu vào hộp 2"
728
729#: /home/walter/Desktop/ta-refactoring/taconstants.py:353
730#: /home/walter/Desktop/ta-refactoring/taconstants.py:548
731#: /home/walter/Desktop/ta-refactoring/taconstants.py:549
732#: /home/walter/Desktop/ta-refactoring/taconstants.py:554
733#: /home/walter/Desktop/ta-refactoring/taconstants.py:562
734msgid "text"
735msgstr "văn bản"
736
737#: /home/walter/Desktop/ta-refactoring/taconstants.py:360
738#: /home/walter/Desktop/ta-refactoring/taconstants.py:655
739msgid "text size"
740msgstr "kích cỡ chữ"
741
742#: /home/walter/Desktop/ta-refactoring/taconstants.py:361
743msgid "title x"
744msgstr "tiêu đề x"
745
746#: /home/walter/Desktop/ta-refactoring/taconstants.py:362
747msgid "title y"
748msgstr "tiêu đề y"
749
750#: /home/walter/Desktop/ta-refactoring/taconstants.py:363
751msgid "top"
752msgstr "trên"
753
754#: /home/walter/Desktop/ta-refactoring/taconstants.py:364
755msgid "picture top"
756msgstr "trên ảnh"
757
758#: /home/walter/Desktop/ta-refactoring/taconstants.py:366
759msgid "until"
760msgstr "đến khi"
761
762#: /home/walter/Desktop/ta-refactoring/taconstants.py:367
763msgid "voltage"
764msgstr "điện áp"
765
766#: /home/walter/Desktop/ta-refactoring/taconstants.py:368
767msgid "volume"
768msgstr "âm lượng"
769
770#: /home/walter/Desktop/ta-refactoring/taconstants.py:370
771msgid "wait"
772msgstr "đợi"
773
774#: /home/walter/Desktop/ta-refactoring/taconstants.py:371
775#: /home/walter/Desktop/ta-refactoring/taconstants.py:372
776msgid "while"
777msgstr "trong khi"
778
779#: /home/walter/Desktop/ta-refactoring/taconstants.py:373
780msgid "width"
781msgstr "rộng"
782
783#: /home/walter/Desktop/ta-refactoring/taconstants.py:374
784msgid "write"
785msgstr "viết"
786
787#: /home/walter/Desktop/ta-refactoring/taconstants.py:377
788msgid "yellow"
789msgstr "vàng"
790
791#: /home/walter/Desktop/ta-refactoring/taconstants.py:514
792#: /home/walter/Desktop/ta-refactoring/taconstants.py:553
793msgid "my box"
794msgstr "hộp mình"
795
796#: /home/walter/Desktop/ta-refactoring/taconstants.py:536
797#: /home/walter/Desktop/ta-refactoring/taconstants.py:537
798msgid "label"
799msgstr "nhãn"
800
801#: /home/walter/Desktop/ta-refactoring/taconstants.py:538
802#: /home/walter/Desktop/ta-refactoring/taconstants.py:539
803msgid "picture name"
804msgstr "tên ảnh"
805
806#: /home/walter/Desktop/ta-refactoring/taconstants.py:555
807#: /home/walter/Desktop/ta-refactoring/taconstants.py:556
808#: /home/walter/Desktop/ta-refactoring/taconstants.py:557
809#: /home/walter/Desktop/ta-refactoring/taconstants.py:558
810#: /home/walter/Desktop/ta-refactoring/taconstants.py:559
811#: /home/walter/Desktop/ta-refactoring/taconstants.py:560
812#: /home/walter/Desktop/ta-refactoring/taconstants.py:861
813#: /home/walter/Desktop/ta-refactoring/taconstants.py:876
814#: /home/walter/Desktop/ta-refactoring/taconstants.py:892
815#: /home/walter/Desktop/ta-refactoring/taconstants.py:923
816#: /home/walter/Desktop/ta-refactoring/taconstants.py:954
817#: /home/walter/Desktop/ta-refactoring/taconstants.py:985
818msgid "Title"
819msgstr "Tiêu đề"
820
821#: /home/walter/Desktop/ta-refactoring/taconstants.py:633
822msgid "audio"
823msgstr "âm thanh"
824
825#: /home/walter/Desktop/ta-refactoring/taconstants.py:634
826msgid "divide"
827msgstr "chia"
828
829#: /home/walter/Desktop/ta-refactoring/taconstants.py:635
830msgid "equal"
831msgstr "bằng"
832
833#: /home/walter/Desktop/ta-refactoring/taconstants.py:636
834msgid "greater than"
835msgstr "lớn hơn"
836
837#: /home/walter/Desktop/ta-refactoring/taconstants.py:637
838msgid "horizontal space"
839msgstr "khoảng nằm ngang"
840
841#: /home/walter/Desktop/ta-refactoring/taconstants.py:638
842msgid "identity"
843msgstr "nhận dạng"
844
845#: /home/walter/Desktop/ta-refactoring/taconstants.py:639
846msgid "if then"
847msgstr "nếu thì"
848
849#: /home/walter/Desktop/ta-refactoring/taconstants.py:640
850msgid "if then else"
851msgstr "nếu thì không thì"
852
853#: /home/walter/Desktop/ta-refactoring/taconstants.py:641
854msgid "journal"
855msgstr "nhật ký"
856
857#: /home/walter/Desktop/ta-refactoring/taconstants.py:642
858msgid "less than"
859msgstr "nhỏ hơn"
860
861#: /home/walter/Desktop/ta-refactoring/taconstants.py:643
862msgid "minus"
863msgstr "trừ"
864
865#: /home/walter/Desktop/ta-refactoring/taconstants.py:644
866msgid "Python code"
867msgstr "mã Python"
868
869#: /home/walter/Desktop/ta-refactoring/taconstants.py:645
870msgid "number"
871msgstr "số"
872
873#: /home/walter/Desktop/ta-refactoring/taconstants.py:646
874msgid "plus"
875msgstr "cộng"
876
877#: /home/walter/Desktop/ta-refactoring/taconstants.py:647
878msgid "multiply"
879msgstr "nhân"
880
881#: /home/walter/Desktop/ta-refactoring/taconstants.py:648
882msgid "square root"
883msgstr "căn bậc hai"
884
885#: /home/walter/Desktop/ta-refactoring/taconstants.py:649
886#: /home/walter/Desktop/ta-refactoring/taconstants.py:650
887msgid "presentation 1x1"
888msgstr "trình diễn 1×1"
889
890#: /home/walter/Desktop/ta-refactoring/taconstants.py:651
891msgid "presentation 1x2"
892msgstr "trình diễn 1×2"
893
894#: /home/walter/Desktop/ta-refactoring/taconstants.py:652
895msgid "presentation 2x1"
896msgstr "trình diễn 2×1"
897
898#: /home/walter/Desktop/ta-refactoring/taconstants.py:653
899msgid "presentation 2x2"
900msgstr "trình diễn 2×2"
901
902#: /home/walter/Desktop/ta-refactoring/taconstants.py:654
903msgid "presentation bulleted list"
904msgstr "trình diễn danh sách nút"
905
906#: /home/walter/Desktop/ta-refactoring/taconstants.py:656
907msgid "vertical space"
908msgstr "khoảng nằm dọc"
909
910#: /home/walter/Desktop/ta-refactoring/taconstants.py:662
911msgid "chooses which turtle to command"
912msgstr "chọn con rùa nào cần điều khiển"
913
914#: /home/walter/Desktop/ta-refactoring/taconstants.py:663
915msgid "logical AND operator"
916msgstr "toán tử VÀ lôgic"
917
918#: /home/walter/Desktop/ta-refactoring/taconstants.py:664
919msgid "moves turtle along an arc"
920msgstr "chuyển rùa theo một hình cung"
921
922#: /home/walter/Desktop/ta-refactoring/taconstants.py:665
923msgid "Sugar Journal audio object"
924msgstr "đối tượng âm thanh Nhật ký Sugar"
925
926#: /home/walter/Desktop/ta-refactoring/taconstants.py:666
927msgid "moves turtle backward"
928msgstr "chuyển rùa đi lùi"
929
930#: /home/walter/Desktop/ta-refactoring/taconstants.py:667
931msgid "Palette of variable blocks"
932msgstr "Bảng chọn khối biến đổi"
933
934#: /home/walter/Desktop/ta-refactoring/taconstants.py:668
325935msgid "ycor of bottom of screen"
326936msgstr "ycor bên dưới màn hình"
327937
328#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:87
329msgid "push value onto FILO (first-in last-out) heap"
330msgstr "đẩy giá trị vào miền nhớ FILO (vào trước thì ra sau)"
938#: /home/walter/Desktop/ta-refactoring/taconstants.py:669
939msgid "Variable 1 (numeric value)"
940msgstr "Biến 1 (giá trị thuộc số)"
331941
332#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:88
333msgid "pop value off FILO"
334msgstr "bỏ giá trị ra FILO"
942#: /home/walter/Desktop/ta-refactoring/taconstants.py:670
943msgid "Variable 2 (numeric value)"
944msgstr "Biến 2 (giá trị thuộc số)"
335945
336#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:89
337msgid "show FILO in status block"
338msgstr "hiện FILO trong khối trạng thái"
946#: /home/walter/Desktop/ta-refactoring/taconstants.py:671
947msgid "named variable (numeric value)"
948msgstr "biến đặt tên (giá trị thuộc số)"
339949
340#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:90
341msgid "empty FILO"
342msgstr "đổ FILO"
950#: /home/walter/Desktop/ta-refactoring/taconstants.py:672
951msgid "displays Cartesian coordinates"
952msgstr "hiển thị toạ độ thuyết Đê-các-tơ"
343953
344#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:91
345msgid "wait specified number of seconds"
346msgstr "đợi trong một số giây được ghi rõ"
954#: /home/walter/Desktop/ta-refactoring/taconstants.py:673
955msgid "clears the screen and reset the turtle"
956msgstr "xoá màn hình và đặt lại rùa"
347957
348#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:92
349msgid "loop forever"
350msgstr "lặp lại vô hạn"
958#: /home/walter/Desktop/ta-refactoring/taconstants.py:674
959msgid "emptys FILO (first-in-last-out heap)"
960msgstr "đổ FILO (miền nhớ kiểu vào trước, ra sau)"
351961
352#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:93
353msgid "loop specified number of times"
354msgstr "lặp lại một số lần được ghi rõ"
962#: /home/walter/Desktop/ta-refactoring/taconstants.py:675
963msgid "holds current pen color (can be used in place of a number block)"
964msgstr "giữ màu bút hiện thời (cũng có thể dùng để thay thế một khối con số)"
355965
356#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:94
357msgid "if-then operator that uses boolean operators from Numbers palette"
358msgstr "toán tử nếu-thì mà sử dụng toán tử lôgic từ bảng chọn Số"
966#: /home/walter/Desktop/ta-refactoring/taconstants.py:676
967msgid "Palette of pen colors"
968msgstr "Bảng chọn màu sắc bút"
359969
360#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:95
361msgid "if-then-else operator that uses boolean operators from Numbers palette"
362msgstr "toán tử nếu-thì-không_thì mà sử dụng toán tử lôgic từ bảng chọn Số"
970#: /home/walter/Desktop/ta-refactoring/taconstants.py:677
971msgid "places a comment in your code"
972msgstr "đặt một ghi chú vào mã nguồn của bạn"
363973
364#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:96
365msgid "do not continue current action"
366msgstr "không tiếp tục hành vi đang làm"
974#: /home/walter/Desktop/ta-refactoring/taconstants.py:679
975msgid "Sugar Journal description field"
976msgstr "trường mô tả Nhật ký Sugar"
367977
368#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:97
369msgid "jog stack right"
370msgstr "đẩy nhẹ đống qua phải"
978#: /home/walter/Desktop/ta-refactoring/taconstants.py:680
979msgid ""
980"divides top numeric input (numerator) by bottom numeric input (denominator)"
981msgstr "chia đầu vào thuộc số trên (tử số) cho đầu vào thuộc số dưới (mẫu số)"
371982
372#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:98
373msgid "jog stack down"
374msgstr "đẩy nhẹ đống xuống dưới"
983#: /home/walter/Desktop/ta-refactoring/taconstants.py:681
984msgid "permanently deletes items in trash"
985msgstr "xoá hẳn các mục trong sọt rác"
375986
376#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:99
377msgid "connects action to toolbar run buttons"
378msgstr "kết nối hành vi đến nút chạy thanh công cụ"
987#: /home/walter/Desktop/ta-refactoring/taconstants.py:683
988msgid "logical equal-to operator"
989msgstr "toán tử bằng-với lôgic"
379990
380#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:100
381msgid "top of action 1 stack"
382msgstr "đầu của đống hành vi 1"
991#: /home/walter/Desktop/ta-refactoring/taconstants.py:684
992msgid "Palette of extra options"
993msgstr "Bảng chọn tuỳ chọn bổ sung"
383994
384#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:101
385msgid "invoke action 1 stack"
386msgstr "gọi đống hành vi 1"
995#: /home/walter/Desktop/ta-refactoring/taconstants.py:685
996msgid "fills the background with (color, shade)"
997msgstr "tô đầy nền bằng (màu, sắc)"
387998
388#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:102
389msgid "top of action 2 stack"
390msgstr "đầu của đống hành vi 2"
999#: /home/walter/Desktop/ta-refactoring/taconstants.py:686
1000msgid "Palette of flow operators"
1001msgstr "Bảng chọn toán tử luồng"
3911002
392#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:103
393msgid "invoke action 2 stack"
394msgstr "gọi đống hành vi 2"
1003#: /home/walter/Desktop/ta-refactoring/taconstants.py:687
1004msgid "loops forever"
1005msgstr "lặp lại vô hạn"
3951006
396#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:104
1007#: /home/walter/Desktop/ta-refactoring/taconstants.py:688
1008msgid "moves turtle forward"
1009msgstr "chuyển rùa đi tới"
1010
1011#: /home/walter/Desktop/ta-refactoring/taconstants.py:689
1012msgid "hides the Sugar toolbars"
1013msgstr "ẩn các thanh công cụ Sugar"
1014
1015#: /home/walter/Desktop/ta-refactoring/taconstants.py:690
1016msgid "logical greater-than operator"
1017msgstr "toán tử lớn-hơn lôgic"
1018
1019#: /home/walter/Desktop/ta-refactoring/taconstants.py:691
1020msgid "top of Action 1 stack"
1021msgstr "đầu của đống Hành vi 1"
1022
1023#: /home/walter/Desktop/ta-refactoring/taconstants.py:692
1024msgid "top of Action 2 stack"
1025msgstr "đầu của đống Hành vi 2"
1026
1027#: /home/walter/Desktop/ta-refactoring/taconstants.py:693
3971028msgid "top of nameable action stack"
3981029msgstr "đầu của đống hành vi có thể đặt tên"
3991030
400#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:105
401msgid "invoke named action stack"
402msgstr "gọi đống hành vi đặt tên"
1031#: /home/walter/Desktop/ta-refactoring/taconstants.py:694
1032msgid ""
1033"holds current heading value of the turtle (can be used in place of a number "
1034"block)"
1035msgstr ""
1036"giữ hướng về hiện thời của rùa (cũng có thể được sử dụng để thay thế một "
1037"khối con số)"
4031038
404#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:106
405msgid "store numeric value in variable 1"
406msgstr "cất giữ giá trị thuộc số trong biến 1"
1039#: /home/walter/Desktop/ta-refactoring/taconstants.py:695
1040msgid "the canvas height"
1041msgstr "chiều cao vùng vẽ"
4071042
408#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:107
409msgid "variable 1 (numeric value)"
410msgstr "biến 1 (giá trị thuộc số)"
1043#: /home/walter/Desktop/ta-refactoring/taconstants.py:696
1044msgid "declutters canvas by hiding blocks"
1045msgstr "làm sạch sẽ vùng vẽ bằng cách ẩn các khối"
4111046
412#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:108
413msgid "store numeric value in variable 2"
414msgstr "cất giữ giá trị thuộc số trong biến 2"
1047#: /home/walter/Desktop/ta-refactoring/taconstants.py:698
1048msgid "jogs stack right"
1049msgstr "đẩy nhẹ đống qua phải"
4151050
416#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:109
417msgid "variable 2 (numeric value)"
418msgstr "biến 2 (giá trị thuộc số)"
1051#: /home/walter/Desktop/ta-refactoring/taconstants.py:699
1052msgid "identity operator used for extending blocks"
1053msgstr "toán tử nhận diện dùng để mở rộng khối"
4191054
420#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:110
421msgid "store numeric value in named variable"
422msgstr "cất giữ giá trị thuộc số trong biến đặt tên"
1055#: /home/walter/Desktop/ta-refactoring/taconstants.py:700
1056msgid "if-then-else operator that uses boolean operators from Numbers palette"
1057msgstr "toán tử nếu-thì-không_thì mà sử dụng toán tử lôgic từ bảng chọn Số"
4231058
424#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:111
425msgid "named variable (numeric value)"
426msgstr "biến đặt tên (giá trị thuộc số)"
1059#: /home/walter/Desktop/ta-refactoring/taconstants.py:701
1060msgid "if-then operator that uses boolean operators from Numbers palette"
1061msgstr "toán tử nếu-thì mà sử dụng toán tử lôgic từ bảng chọn Số"
4271062
428#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:112
429msgid "string value"
430msgstr "giá trị chuỗi"
431
432#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:113
1063#: /home/walter/Desktop/ta-refactoring/taconstants.py:702
4331064msgid "Sugar Journal media object"
4341065msgstr "đối tượng ảnh/nhạc Nhật ký Sugar"
4351066
436#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:114
437msgid "Sugar Journal audio object"
438msgstr "đối tượng âm thanh Nhật ký Sugar"
1067#: /home/walter/Desktop/ta-refactoring/taconstants.py:703
1068msgid "query for keyboard input (results stored in keyboard block)"
1069msgstr "yêu cầu đầu vào bàn phím (kết quả được lưu vào khối bàn phím)"
4391070
440#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:115
441msgid "Sugar Journal description field"
442msgstr "trường mô tả Nhật ký Sugar"
1071#: /home/walter/Desktop/ta-refactoring/taconstants.py:704
1072msgid "holds results of query-keyboard block"
1073msgstr "giữ kết quả của khối yêu-cầu-bàn-phím"
4431074
444#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:116
445msgid "presentation template: select Journal object (with description)"
446msgstr "mẫu trình diễn: chọn đối tượng Nhật ký (với mô tả)"
1075#: /home/walter/Desktop/ta-refactoring/taconstants.py:705
1076msgid "xcor of left of screen"
1077msgstr "xcor bên trái màn hình"
4471078
448#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:117
449#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:118
450msgid "presentation template: select two Journal objects"
451msgstr "mẫu trình diễn: chọn 2 đối tượng Nhật ký"
1079#: /home/walter/Desktop/ta-refactoring/taconstants.py:706
1080msgid "turns turtle counterclockwise (angle in degrees)"
1081msgstr "quay rùa theo ngược chiều kim đồng hồ (góc theo độ)"
4521082
453#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:119
454msgid "presentation template: select four Journal objects"
455msgstr "mẫu trình diễn: chọn 4 đối tượng Nhật ký"
1083#: /home/walter/Desktop/ta-refactoring/taconstants.py:707
1084msgid "logical less-than operator"
1085msgstr "toán tử nhỏ hơn lôgic"
4561086
457#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:120
458msgid "presentation template: select Journal object (no description)"
459msgstr "mẫu trình diễn: chọn đối tượng Nhật ký (không mô tả)"
1087#: /home/walter/Desktop/ta-refactoring/taconstants.py:708
1088msgid "subtracts bottom numeric input from top numeric input"
1089msgstr "trừ đầu vào thuộc số dưới từ đầu vào thuộc số trên"
4601090
461#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:121
462msgid "presentation template: seven bullets"
463msgstr "mẫu trình diễn: bảy chấm điểm"
1091#: /home/walter/Desktop/ta-refactoring/taconstants.py:709
1092msgid "a programmable block: used to add advanced math equations, e.g., sin(x)"
1093msgstr ""
1094"một khối có thể lập trình: dùng để thêm phương trình toán học cấp cao, v.d. "
1095"sin(x)"
4641096
465#: /home/walter/Desktop/turtleart-activity/tahoverhelp.py:122
466msgid "declutter canvas by hiding blocks"
467msgstr "làm sạch vùng vẽ bằng cách ẩn các khối"
1097#: /home/walter/Desktop/ta-refactoring/taconstants.py:710
1098msgid ""
1099"a programmable block: used to add advanced single-valriable math equations, "
1100"e.g., sin(x)"
1101msgstr ""
1102"một khối có thể lập trình: dùng để thêm phương trình toán học biến đơn cấp "
1103"cao, v.d. sin (x)"
4681104
469#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:97
470#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1319
471msgid "Save snapshot"
472msgstr "Lưu ảnh chụp"
1105#: /home/walter/Desktop/ta-refactoring/taconstants.py:711
1106msgid ""
1107"a programmable block: used to add advanced multi-variable math equations, e."
1108"g., sqrt(x*x+y*y)"
1109msgstr ""
1110"một khối có thể lập trình: dùng để thêm phương trình toán học đa biến cấp "
1111"cao, v.d. sqrt(x*x+y*y)"
4731112
474#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:108
475#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:999
476msgid "Save as HTML"
477msgstr "Lưu dạng HTML"
1113#: /home/walter/Desktop/ta-refactoring/taconstants.py:712
1114msgid ""
1115"a programmable block: used to add advanced multi-varialble math equations, e."
1116"g., sin(x+y+z)"
1117msgstr ""
1118"một khối có thể lập trình: dùng để thêm phương trình toán học đa biến cấp "
1119"cao, v.d. sin(x+y+z)"
4781120
479#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:115
480msgid "Save as Logo"
481msgstr "Lưu dạng Biểu hình"
1121#: /home/walter/Desktop/ta-refactoring/taconstants.py:713
1122msgid "displays next palette"
1123msgstr "hiển thị bảng chọn kế tiếp"
4821124
483#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:122
484#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1015
485msgid "Save as image"
486msgstr "Lưu dạng ảnh"
1125#: /home/walter/Desktop/ta-refactoring/taconstants.py:714
1126msgid "runs code found in the tamyblock.py module found in the Journal"
1127msgstr "chạy mã nguồn được tìm trong mô-đun tamyblock.py có trong Nhật ký"
4871128
488#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:129
489msgid "Load my block"
490msgstr "Nạp khối của mình"
1129#: /home/walter/Desktop/ta-refactoring/taconstants.py:715
1130msgid "logical NOT operator"
1131msgstr "toán tử KHÔNG_PHẢI lôgic"
4911132
492#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:148
493#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1302
494msgid "Fullscreen"
495msgstr "Toàn màn hình"
1133#: /home/walter/Desktop/ta-refactoring/taconstants.py:716
1134msgid "Palette of numeric operators"
1135msgstr "Bảng chọn toán tử thuộc số"
4961136
497#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:163
498#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:571
499#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:582
500#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:598
501#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:610
502#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1203
503#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1354
504#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1364
505#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1407
506#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1419
507msgid "Hide palette"
508msgstr "Ẩn bảng chọn"
1137#: /home/walter/Desktop/ta-refactoring/taconstants.py:717
1138msgid "used as numeric input in mathematic operators"
1139msgstr "dùng để nhập thuộc số trong toán tử toán học"
5091140
510#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:166
511#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1207
512msgid "<Alt>p"
513msgstr "<Alt>p"
1141#: /home/walter/Desktop/ta-refactoring/taconstants.py:718
1142msgid "logical OR operator"
1143msgstr "toán tử HOẶC lôgic"
5141144
515#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:172
516#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:591
517#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:608
518#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1215
519#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1400
520#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1417
521msgid "Hide blocks"
522msgstr "Ẩn khối"
1145#: /home/walter/Desktop/ta-refactoring/taconstants.py:719
1146msgid "changes the orientation of the palette of blocks"
1147msgstr "thay đổi hướng của bảng chọn khối"
5231148
524#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:175
525#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1219
526msgid "<Alt>b"
527msgstr "<Alt>b"
1149#: /home/walter/Desktop/ta-refactoring/taconstants.py:720
1150msgid "Turtle will draw when moved."
1151msgstr "Con rùa sẽ vẽ khi được di chuyển."
5281152
529#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:181
530#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1285
531msgid "Clean"
532msgstr "Sạch"
1153#: /home/walter/Desktop/ta-refactoring/taconstants.py:721
1154msgid "Palette of pen commands"
1155msgstr "Bảng chọn lệnh bút"
5331156
534#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:184
535#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1289
536msgid "<Alt>e"
537msgstr "<Alt>e"
1157#: /home/walter/Desktop/ta-refactoring/taconstants.py:722
1158msgid "holds current pen size (can be used in place of a number block)"
1159msgstr ""
1160"giữ kích cỡ bút hiện thời (cũng có thể dùng để thay thế một khối con số)"
5381161
539#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:190
540#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1232
541msgid "Run"
542msgstr "Chạy"
1162#: /home/walter/Desktop/ta-refactoring/taconstants.py:723
1163msgid "Turtle will not draw when moved."
1164msgstr "Con rùa sẽ không vẽ khi được di chuyển."
5431165
544#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:193
545#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1236
546msgid "<Alt>r"
547msgstr "<Alt>r"
1166#: /home/walter/Desktop/ta-refactoring/taconstants.py:724
1167#: /home/walter/Desktop/ta-refactoring/taconstants.py:778
1168msgid "presentation template: select Journal object (with description)"
1169msgstr "mẫu trình diễn: chọn đối tượng Nhật ký (với mô tả)"
5481170
549#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:199
550#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1244
551msgid "Step"
552msgstr "Bước"
1171#: /home/walter/Desktop/ta-refactoring/taconstants.py:725
1172#: /home/walter/Desktop/ta-refactoring/taconstants.py:779
1173msgid "presentation template: select Journal object (no description)"
1174msgstr "mẫu trình diễn: chọn đối tượng Nhật ký (không mô tả)"
5531175
554#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:202
555#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1248
556msgid "<Alt>w"
557msgstr "<Alt>w"
1176#: /home/walter/Desktop/ta-refactoring/taconstants.py:726
1177#: /home/walter/Desktop/ta-refactoring/taconstants.py:727
1178#: /home/walter/Desktop/ta-refactoring/taconstants.py:780
1179#: /home/walter/Desktop/ta-refactoring/taconstants.py:781
1180msgid "presentation template: select two Journal objects"
1181msgstr "mẫu trình diễn: chọn 2 đối tượng Nhật ký"
5581182
559#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:208
560#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1256
561msgid "Debug"
562msgstr "Gỡ lỗi"
1183#: /home/walter/Desktop/ta-refactoring/taconstants.py:728
1184#: /home/walter/Desktop/ta-refactoring/taconstants.py:782
1185msgid "presentation template: select four Journal objects"
1186msgstr "mẫu trình diễn: chọn 4 đối tượng Nhật ký"
5631187
564#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:211
565#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1260
566msgid "<Alt>d"
567msgstr "<Alt>d"
1188#: /home/walter/Desktop/ta-refactoring/taconstants.py:729
1189#: /home/walter/Desktop/ta-refactoring/taconstants.py:783
1190msgid "presentation template: list of bullets"
1191msgstr "mẫu trình diễn: danh sách chấm điểm"
5681192
569#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:217
570#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1268
571msgid "Stop turtle"
572msgstr "Dừng rùa"
1193#: /home/walter/Desktop/ta-refactoring/taconstants.py:730
1194msgid "microphone input pitch"
1195msgstr "âm vực đầu vào máy vi âm"
5731196
574#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:220
575#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1272
576msgid "<Alt>s"
577msgstr "<Alt>s"
1197#: /home/walter/Desktop/ta-refactoring/taconstants.py:731
1198msgid "adds two alphanumeric inputs"
1199msgstr "thêm hai đầu vào chữ số, chử cái"
5781200
579#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:232
580#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1336
581msgid "Samples"
582msgstr "Mẫu lấy"
1201#: /home/walter/Desktop/ta-refactoring/taconstants.py:732
1202msgid "displays polar coordinates"
1203msgstr "hiển thị toạ độ cực"
5831204
584#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:243
585#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:981
586msgid "Move the cursor over the orange palette for help."
587msgstr "Di chuyển con trỏ trên bảng chọn màu cam để thấy trợ giúp."
1205#: /home/walter/Desktop/ta-refactoring/taconstants.py:733
1206msgid "pops value off FILO (first-in last-out heap)"
1207msgstr "đẩy giá trị ra miền nhớ FILO (vào trước thì ra sau)"
5881208
589#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:279
590msgid "Project"
591msgstr "Dự án"
1209#: /home/walter/Desktop/ta-refactoring/taconstants.py:734
1210msgid "Palette of presentation templates"
1211msgstr "Bảng chọn mẫu trình diễn"
5921212
593#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:281
594msgid "Edit"
595msgstr "Sửa"
1213#: /home/walter/Desktop/ta-refactoring/taconstants.py:735
1214msgid "prints value in status block at bottom of the screen"
1215msgstr "in ra giá trị trong khối trạng thái ở dưới màn hình"
5961216
597#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:283
598msgid "Import/Export"
599msgstr "Nhập/Xuất"
1217#: /home/walter/Desktop/ta-refactoring/taconstants.py:736
1218msgid "shows values in FILO (first-in last-out heap)"
1219msgstr "hiển thị các giá trị trong miền nhớ FILO (vào trước thì ra sau)"
6001220
601#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:285
602msgid "Help"
603msgstr "Trợ giúp"
1221#: /home/walter/Desktop/ta-refactoring/taconstants.py:737
1222msgid "multiplies two numeric inputs"
1223msgstr "nhân lên nhau hai đầu vào thuộc số"
6041224
605#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:425
606#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1079
607msgid "presentation"
608msgstr "trình diễn"
1225#: /home/walter/Desktop/ta-refactoring/taconstants.py:738
1226msgid "pushes value onto FILO (first-in last-out heap)"
1227msgstr "đẩy giá trị vào miền nhớ FILO (vào trước thì ra sau)"
6091228
610#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:567
611#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:577
612#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:595
613#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:604
614#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1350
615#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1359
616#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1404
617#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1413
618msgid "Show palette"
619msgstr "Hiện bảng chọn"
1229#: /home/walter/Desktop/ta-refactoring/taconstants.py:739
1230msgid "returns random number between minimum (top) and maximum (bottom) values"
1231msgstr ""
1232"trả lại một số ngẫu nhiên nằm giữa hai giá trị là tối thiểu (bên trên) và "
1233"tối đa (bên dưới)"
6201234
621#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:588
622#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:602
623#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1397
624#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1411
625msgid "Show blocks"
626msgstr "Hiện khối"
1235#: /home/walter/Desktop/ta-refactoring/taconstants.py:740
1236msgid "modular (remainder) operator"
1237msgstr "toán tử đơn thể (phần dư)"
6271238
628#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:930
629msgid "Copy"
630msgstr "Chép"
1239#: /home/walter/Desktop/ta-refactoring/taconstants.py:741
1240msgid "loops specified number of times"
1241msgstr "lặp lại một số lần được ghi rõ"
6311242
632#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:942
633msgid "Paste"
634msgstr "Dán"
1243#: /home/walter/Desktop/ta-refactoring/taconstants.py:742
1244msgid "sensor input resistance"
1245msgstr "điện trở đầu vào máy nhạy"
6351246
636#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1007
637msgid "Save Logo"
638msgstr "Lưu Biểu hình"
1247#: /home/walter/Desktop/ta-refactoring/taconstants.py:743
1248msgid "restores most recent blocks from trash"
1249msgstr "phục hồi từ sọt rác các khối vừa đặt"
6391250
640#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1028
641msgid "load my block"
642msgstr "nạp khối của mình"
1251#: /home/walter/Desktop/ta-refactoring/taconstants.py:744
1252msgid "restore all blocks from trash"
1253msgstr "phục hồi từ sọt rác tất cả các khối"
6431254
644#: /home/walter/Desktop/turtleart-activity/TurtleArtActivity.py:1340
645msgid "<Alt>o"
646msgstr "<Alt>o"
1255#: /home/walter/Desktop/ta-refactoring/taconstants.py:745
1256msgid "xcor of right of screen"
1257msgstr "xcor bên phải màn hình"
6471258
648#: /home/walter/Desktop/turtleart-activity/svg/hat2.py:40
649#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:42
650#: /home/walter/Desktop/turtleart-activity/svg/stack2.py:40
651msgid "stack 2"
652msgstr "đống 2"
1259#: /home/walter/Desktop/ta-refactoring/taconstants.py:746
1260msgid "turns turtle clockwise (angle in degrees)"
1261msgstr "quay rùa theo chiều kim đồng hồ (góc theo độ)"
6531262
654#: /home/walter/Desktop/turtleart-activity/svg/stack1.py:40
655#: /home/walter/Desktop/turtleart-activity/svg/hat1.py:40
656#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:41
657msgid "stack 1"
658msgstr "đống 1"
1263#: /home/walter/Desktop/ta-refactoring/taconstants.py:749
1264msgid "bottom block in a collapsibe stack: click to collapse"
1265msgstr "khối dưới trong một đống có thể thu gọn: nhấn để thu gọn"
6591266
660#: /home/walter/Desktop/turtleart-activity/svg/hideblocks.py:40
661#: /home/walter/Desktop/turtleart-activity/svg/templatesgroup.py:41
662msgid "hide blocks"
663msgstr "ẩn khối"
1267#: /home/walter/Desktop/ta-refactoring/taconstants.py:750
1268msgid "bottom block in a collapsed stack: click to open"
1269msgstr "khối dưới trong một đống đã thu gọn: nhấn để mở lại"
6641270
665#: /home/walter/Desktop/turtleart-activity/svg/heading.py:40
666#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:55
667msgid "heading"
668msgstr "tiêu đề"
1271#: /home/walter/Desktop/ta-refactoring/taconstants.py:751
1272msgid "top of a collapsible stack"
1273msgstr "đầu của một đống có thể thu gọn"
6691274
670#: /home/walter/Desktop/turtleart-activity/svg/start.py:40
671#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:48
672msgid "start"
673msgstr "đầu"
1275#: /home/walter/Desktop/ta-refactoring/taconstants.py:752
1276msgid "top of a collapsed stack"
1277msgstr "đầu của một đống đã thu gọn"
6741278
675#: /home/walter/Desktop/turtleart-activity/svg/keyboard.py:40
676msgid "Keyboard"
677msgstr "Bàn phím"
1279#: /home/walter/Desktop/ta-refactoring/taconstants.py:753
1280msgid "saves a picture to the Sugar Journal"
1281msgstr "lưu một ảnh vào Nhật ký Sugar"
6781282
679#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:40
680msgid "Flow"
681msgstr "Chảy"
1283#: /home/walter/Desktop/ta-refactoring/taconstants.py:754
1284msgid "saves turtle graphics as an SVG file in the Sugar Journal"
1285msgstr "lưu đồ họa rùa dưới dạng một tập tin SVG trong Nhật ký Sugar"
6821286
683#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:41
684#: /home/walter/Desktop/turtleart-activity/svg/wait.py:40
685msgid "wait"
686msgstr "đợi"
1287#: /home/walter/Desktop/ta-refactoring/taconstants.py:755
1288msgid "holds current scale value"
1289msgstr "giữ giá trị tỷ lệ hiện thời"
6871290
688#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:42
689#: /home/walter/Desktop/turtleart-activity/svg/forever.py:40
690msgid "forever"
691msgstr "hẳn"
1291#: /home/walter/Desktop/ta-refactoring/taconstants.py:756
1292msgid "sets color of the line drawn by the turtle"
1293msgstr "đặt màu của đường được rùa vẽ"
6921294
693#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:43
694#: /home/walter/Desktop/turtleart-activity/svg/repeat.py:40
695msgid "repeat"
696msgstr "lặp lại"
1295#: /home/walter/Desktop/ta-refactoring/taconstants.py:757
1296msgid "sets the heading of the turtle (0 is towards the top of the screen.)"
1297msgstr "đặt sự hướng về của rùa (0 là hướng về đầu màn hình)"
6971298
698#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:44
699#: /home/walter/Desktop/turtleart-activity/svg/if.py:40
700#: /home/walter/Desktop/turtleart-activity/svg/ifelse.py:40
701msgid "if"
702msgstr "nếu"
1299#: /home/walter/Desktop/ta-refactoring/taconstants.py:758
1300msgid "sets size of the line drawn by the turtle"
1301msgstr "đặt kích cỡ của đường được rùa vẽ"
7031302
704#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:45
705#: /home/walter/Desktop/turtleart-activity/svg/if.py:41
706#: /home/walter/Desktop/turtleart-activity/svg/ifelse.py:41
707msgid "then"
708msgstr "thì"
1303#: /home/walter/Desktop/ta-refactoring/taconstants.py:759
1304msgid "sets the scale of media"
1305msgstr "đặt tỷ lệ của ảnh/nhạc"
7091306
710#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:46
711#: /home/walter/Desktop/turtleart-activity/svg/ifelse.py:42
712msgid "else"
713msgstr "không thì"
1307#: /home/walter/Desktop/ta-refactoring/taconstants.py:760
1308msgid "sets shade of the line drawn by the turtle"
1309msgstr "đặt sắc màu của đường được rùa vẽ"
7141310
715#: /home/walter/Desktop/turtleart-activity/svg/flowgroup.py:47
716#: /home/walter/Desktop/turtleart-activity/svg/stopstack.py:40
717msgid "stop action"
718msgstr "dừng hành vi"
1311#: /home/walter/Desktop/ta-refactoring/taconstants.py:761
1312msgid "sets color of text drawn by the turtle"
1313msgstr "đặt màu của các chữ được rùa vẽ"
7191314
720#: /home/walter/Desktop/turtleart-activity/svg/print.py:40
721#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:45
722msgid "print"
723msgstr "in"
1315#: /home/walter/Desktop/ta-refactoring/taconstants.py:762
1316msgid "sets size of text drawn by turtle"
1317msgstr "đặt kích cỡ của các chữ được rùa vẽ"
7241318
725#: /home/walter/Desktop/turtleart-activity/svg/color.py:40
726#: /home/walter/Desktop/turtleart-activity/svg/fillscreen.py:41
727#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:48
728msgid "color"
729msgstr "màu"
1319#: /home/walter/Desktop/ta-refactoring/taconstants.py:763
1320msgid ""
1321"moves turtle to position xcor, ycor; (0, 0) is in the center of the screen."
1322msgstr "di chuyển rùa tới vị trí xcor, ycor; (0, 0) là trung tâm của màn hình."
7301323
731#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:40
732msgid "My Blocks"
733msgstr "Khối của mình"
1324#: /home/walter/Desktop/ta-refactoring/taconstants.py:764
1325msgid "holds current pen shade"
1326msgstr "giữ sắc màu bút hiện thời"
7341327
735#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:43
736#: /home/walter/Desktop/turtleart-activity/svg/storeinbox1.py:40
737msgid "store in box 1"
738msgstr "lưu vào hộp 1"
1328#: /home/walter/Desktop/ta-refactoring/taconstants.py:765
1329msgid "draws text or show media from the Journal"
1330msgstr "vẽ văn bản hoặc hiển thị ảnh/nhạc từ Nhật ký"
7391331
740#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:44
741#: /home/walter/Desktop/turtleart-activity/svg/box1.py:40
742msgid "box 1"
743msgstr "hộp 1"
1332#: /home/walter/Desktop/ta-refactoring/taconstants.py:766
1333msgid "restores hidden blocks"
1334msgstr "phục hồi các khối bị ẩn"
7441335
745#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:45
746#: /home/walter/Desktop/turtleart-activity/svg/storeinbox2.py:40
747msgid "store in box 2"
748msgstr "lưu vào hộp 2"
1336#: /home/walter/Desktop/ta-refactoring/taconstants.py:767
1337msgid "calculates square root"
1338msgstr "tính căn bậc hai"
7491339
750#: /home/walter/Desktop/turtleart-activity/svg/myblocksgroup.py:46
751#: /home/walter/Desktop/turtleart-activity/svg/box2.py:40
752msgid "box 2"
753msgstr "hộp 2"
1340#: /home/walter/Desktop/ta-refactoring/taconstants.py:768
1341msgid "invokes Action 1 stack"
1342msgstr "gọi đống Hành vi 1"
7541343
755#: /home/walter/Desktop/turtleart-activity/svg/printheap.py:40
756#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:46
757msgid "show heap"
758msgstr "hiện miền nhớ"
1344#: /home/walter/Desktop/ta-refactoring/taconstants.py:769
1345msgid "invokes Action 2 stack"
1346msgstr "gọi đống Hành vi 2"
7591347
760#: /home/walter/Desktop/turtleart-activity/svg/pendown.py:40
761#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:42
762msgid "pen down"
763msgstr "bút xuống"
1348#: /home/walter/Desktop/ta-refactoring/taconstants.py:770
1349msgid "invokes named action stack"
1350msgstr "gọi đống hành vi đặt tên"
7641351
765#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:40
766msgid "Numbers"
767msgstr "Số"
1352#: /home/walter/Desktop/ta-refactoring/taconstants.py:771
1353msgid "connects action to toolbar run buttons"
1354msgstr "kết nối hành vi đến nút chạy thanh công cụ"
7681355
769#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:41
770#: /home/walter/Desktop/turtleart-activity/svg/random.py:40
771msgid "random"
772msgstr "ngẫu nhiên"
1356#: /home/walter/Desktop/ta-refactoring/taconstants.py:773
1357msgid "stops current action"
1358msgstr "dừng hành vi đang làm"
7731359
774#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:42
775#: /home/walter/Desktop/turtleart-activity/svg/and.py:41
776msgid "and"
777msgstr "và"
1360#: /home/walter/Desktop/ta-refactoring/taconstants.py:774
1361msgid "stores numeric value in Variable 1"
1362msgstr "cất giữ giá trị thuộc số trong Biến 1"
7781363
779#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:43
780#: /home/walter/Desktop/turtleart-activity/svg/or.py:40
781msgid "or"
782msgstr "hoặc"
1364#: /home/walter/Desktop/ta-refactoring/taconstants.py:775
1365msgid "stores numeric value in Variable 2"
1366msgstr "cất giữ giá trị thuộc số trong Biến 2"
7831367
784#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:44
785#: /home/walter/Desktop/turtleart-activity/svg/not.py:40
786msgid "not"
787msgstr "không phải"
1368#: /home/walter/Desktop/ta-refactoring/taconstants.py:776
1369msgid "stores numeric value in named variable"
1370msgstr "cất giữ giá trị thuộc số trong biến đặt tên"
7881371
789#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:46
790msgid "number"
791msgstr "số"
1372#: /home/walter/Desktop/ta-refactoring/taconstants.py:777
1373msgid "string value"
1374msgstr "giá trị chuỗi"
7921375
793#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:47
794msgid "min"
795msgstr "tiểu"
1376#: /home/walter/Desktop/ta-refactoring/taconstants.py:784
1377msgid "holds current text color (can be used in place of a number block)"
1378msgstr "giữ màu chữ hiện thời (cũng có thể dùng để thay thế một khối con số)"
7961379
797#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:48
798msgid "max"
799msgstr "đại"
1380#: /home/walter/Desktop/ta-refactoring/taconstants.py:785
1381msgid "holds current text size (can be used in place of a number block)"
1382msgstr ""
1383"giữ kích cỡ chữ hiện thời (cũng có thể dùng để thay thế một khối con số)"
8001384
801#: /home/walter/Desktop/turtleart-activity/svg/numbersgroup.py:49
802#: /home/walter/Desktop/turtleart-activity/svg/remainder2.py:40
803#: /home/walter/Desktop/turtleart-activity/svg/remainder.py:40
804msgid "mod"
805msgstr "sửa"
1385#: /home/walter/Desktop/ta-refactoring/taconstants.py:786
1386msgid "ycor of top of screen"
1387msgstr "ycor bên trên màn hình"
8061388
807#: /home/walter/Desktop/turtleart-activity/svg/ycor.py:40
808#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:54
809msgid "ycor"
810msgstr "ycor"
1389#: /home/walter/Desktop/ta-refactoring/taconstants.py:787
1390msgid "Trashcan"
1391msgstr "Sọt Rác"
8111392
812#: /home/walter/Desktop/turtleart-activity/svg/shade.py:40
813#: /home/walter/Desktop/turtleart-activity/svg/fillscreen.py:42
814#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:49
815msgid "shade"
816msgstr "sắc màu"
1393#: /home/walter/Desktop/ta-refactoring/taconstants.py:788
1394msgid "Palette of turtle commands"
1395msgstr "Bảng chọn lệnh rùa"
8171396
818#: /home/walter/Desktop/turtleart-activity/svg/templatesgroup.py:40
819msgid "Templates"
820msgstr "Mẫu"
1397#: /home/walter/Desktop/ta-refactoring/taconstants.py:789
1398msgid "do-until-True operator that uses boolean operators from Numbers palette"
1399msgstr "toán tử làm-đến-khi-Đúng mà sử dụng toán tử lôgic từ bảng chọn Số"
8211400
822#: /home/walter/Desktop/turtleart-activity/svg/right.py:40
823#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:51
824#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:45
825#: /home/walter/Desktop/turtleart-activity/svg/rightpos.py:40
826msgid "right"
827msgstr "phải"
1401#: /home/walter/Desktop/ta-refactoring/taconstants.py:790
1402msgid "sensor voltage"
1403msgstr "điện áp máy nhạy"
8281404
829#: /home/walter/Desktop/turtleart-activity/svg/storein.py:40
830msgid "store in"
831msgstr "lưu vào"
1405#: /home/walter/Desktop/ta-refactoring/taconstants.py:791
1406msgid "microphone input volume"
1407msgstr "âm lượng đầu vào máy vi âm"
8321408
833#: /home/walter/Desktop/turtleart-activity/svg/textsize.py:40
834#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:53
835msgid "text size"
836msgstr "kích cỡ chữ"
1409#: /home/walter/Desktop/ta-refactoring/taconstants.py:792
1410msgid "jogs stack down"
1411msgstr "đẩy nhẹ đống xuống dưới"
8371412
838#: /home/walter/Desktop/turtleart-activity/svg/forward.py:40
839#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:42
840msgid "forward"
841msgstr "tiếp"
1413#: /home/walter/Desktop/ta-refactoring/taconstants.py:793
1414msgid "pauses program execution a specified number of seconds"
1415msgstr "tạm dừng thực hiện chương trình trong một số giây đưa ra"
8421416
843#: /home/walter/Desktop/turtleart-activity/svg/scale.py:40
844msgid "scale"
845msgstr "co giãn"
1417#: /home/walter/Desktop/ta-refactoring/taconstants.py:794
1418msgid "do-while-True operator that uses boolean operators from Numbers palette"
1419msgstr "toán tử làm_trong_khi_Đúng mà sử dụng toán tử lôgic từ bảng chọn Số"
8461420
847#: /home/walter/Desktop/turtleart-activity/svg/leftpos.py:40
848#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:49
849#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:44
850#: /home/walter/Desktop/turtleart-activity/svg/left.py:40
851msgid "left"
852msgstr "trái"
1421#: /home/walter/Desktop/ta-refactoring/taconstants.py:795
1422msgid "the canvas width"
1423msgstr "chiều rộng vùng vẽ"
8531424
854#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:40
855msgid "Extras"
856msgstr "Bổ sung"
1425#: /home/walter/Desktop/ta-refactoring/taconstants.py:796
1426msgid ""
1427"holds current x-coordinate value of the turtle (can be used in place of a "
1428"number block)"
1429msgstr ""
1430"giữ giá trị đồ hoạ X hiện thời của rùa (cũng có thể được sử dụng để thay thế "
1431"một khối con số)"
8571432
858#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:41
859#: /home/walter/Desktop/turtleart-activity/svg/kbinput.py:40
860msgid "read key"
861msgstr "đọc phím"
1433#: /home/walter/Desktop/ta-refactoring/taconstants.py:797
1434msgid ""
1435"holds current y-coordinate value of the turtle (can be used in place of a "
1436"number block)"
1437msgstr ""
1438"giữ giá trị đồ hoạ Y hiện thời của rùa (cũng có thể được sử dụng để thay thế "
1439"một khối con số)"
8621440
863#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:42
864msgid "keyboard"
865msgstr "bàn phím"
1441#: /home/walter/Desktop/ta-refactoring/taconstants.py:856
1442msgid "bulleted list"
1443msgstr "danh sách nút"
8661444
867#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:43
868#: /home/walter/Desktop/turtleart-activity/svg/hres.py:40
869msgid "width"
870msgstr "rộng"
1445#: /home/walter/Desktop/ta-refactoring/taconstants.py:871
1446msgid "picture"
1447msgstr "ảnh"
8711448
872#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:44
873#: /home/walter/Desktop/turtleart-activity/svg/vres.py:40
874msgid "height"
875msgstr "cao"
1449#: /home/walter/Desktop/ta-refactoring/taconstants.py:887
1450msgid "2×2 pictures"
1451msgstr "ảnh 2×2"
8761452
877#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:45
878#: /home/walter/Desktop/turtleart-activity/svg/pop.py:40
879msgid "pop"
880msgstr "pop"
1453#: /home/walter/Desktop/ta-refactoring/taconstants.py:918
1454msgid "2×1 pictures"
1455msgstr "ảnh 2×1"
8811456
882#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:47
883#: /home/walter/Desktop/turtleart-activity/svg/clearheap.py:40
884msgid "empty heap"
885msgstr "miền nhớ trống"
1457#: /home/walter/Desktop/ta-refactoring/taconstants.py:949
1458msgid "1×2 pictures"
1459msgstr "ảnh 1×2"
8861460
887#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:48
888#: /home/walter/Desktop/turtleart-activity/svg/push.py:40
889msgid "push"
890msgstr "đẩy"
1461#: /home/walter/Desktop/ta-refactoring/taconstants.py:980
1462msgid "1×1 picture"
1463msgstr "ảnh 1×1"
8911464
892#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:50
893#: /home/walter/Desktop/turtleart-activity/svg/toppos.py:40
894msgid "top"
895msgstr "trên"
1465#~ msgid "name"
1466#~ msgstr "tên"
8961467
897#: /home/walter/Desktop/turtleart-activity/svg/sensorsgroup.py:52
898#: /home/walter/Desktop/turtleart-activity/svg/bottompos.py:40
899msgid "bottom"
900msgstr "dưới"
1468#~ msgid "holds current scale value (can be used in place of a number block)"
1469#~ msgstr ""
1470#~ "giữ giá trị tỷ lệ hiện thời của rùa (cũng có thể được sử dụng để thay thế "
1471#~ "một khối con số)"
9011472
902#: /home/walter/Desktop/turtleart-activity/svg/clean.py:40
903#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:41
904msgid "clean"
905msgstr "gột"
1473#~ msgid "holds current pen shade (can be used in place of a number block)"
1474#~ msgstr ""
1475#~ "giữ sắc màu bút hiện thời (cũng có thể dùng để thay thế một khối con số)"
9061476
907#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:43
908#: /home/walter/Desktop/turtleart-activity/svg/back.py:40
909msgid "back"
910msgstr "lùi"
1477#~ msgid ""
1478#~ "a programmable block: add your own math equation in the block, e.g., sin(x)"
1479#~ msgstr ""
1480#~ "một khối có thể lập trình: hãy thêm vào khối phương trình toán tử của mình, "
1481#~ "v.d. sin(x)"
9111482
912#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:46
913#: /home/walter/Desktop/turtleart-activity/svg/arc.py:40
914msgid "arc"
915msgstr "cung"
1483#~ msgid "pop value off FILO"
1484#~ msgstr "bỏ giá trị ra FILO"
9161485
917#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:47
918#: /home/walter/Desktop/turtleart-activity/svg/arc.py:41
919msgid "angle"
920msgstr "góc"
1486#~ msgid "show FILO in status block"
1487#~ msgstr "hiện FILO trong khối trạng thái"
9211488
922#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:48
923#: /home/walter/Desktop/turtleart-activity/svg/arc.py:42
924msgid "radius"
925msgstr "bán kính"
1489#~ msgid "empty FILO"
1490#~ msgstr "đổ FILO"
9261491
927# Cần dịch hay không?
928#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:49
929msgid "setyx"
930msgstr "setyx"
1492#~ msgid "wait specified number of seconds"
1493#~ msgstr "đợi trong một số giây được ghi rõ"
9311494
932#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:51
933#: /home/walter/Desktop/turtleart-activity/svg/setxy.py:42
934msgid "y"
935msgstr "y"
1495#~ msgid "do not continue current action"
1496#~ msgstr "không tiếp tục hành vi đang làm"
9361497
937#
938#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:52
939#: /home/walter/Desktop/turtleart-activity/svg/seth.py:40
940msgid "set heading"
941msgstr "đặt hướng về"
1498#~ msgid "<Alt>p"
1499#~ msgstr "<Alt>p"
9421500
943#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:53
944#: /home/walter/Desktop/turtleart-activity/svg/xcor.py:40
945msgid "xcor"
946msgstr "xcor"
1501#~ msgid "<Alt>b"
1502#~ msgstr "<Alt>b"
9471503
948# Tên: không nên dịch
949#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:56
950msgid "Turtle"
951msgstr "Rùa"
1504#~ msgid "<Alt>e"
1505#~ msgstr "<Alt>e"
9521506
953#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:57
954#: /home/walter/Desktop/turtleart-activity/svg/show.py:40
955msgid "show"
956msgstr "hiện"
1507#~ msgid "<Alt>r"
1508#~ msgstr "<Alt>r"
9571509
958#: /home/walter/Desktop/turtleart-activity/svg/turtlegroup.py:58
959#: /home/walter/Desktop/turtleart-activity/svg/setscale.py:40
960msgid "set scale"
961msgstr "đặt tỷ lệ"
1510#~ msgid "<Alt>w"
1511#~ msgstr "<Alt>w"
9621512
963#: /home/walter/Desktop/turtleart-activity/svg/sound.py:40
964msgid "sound"
965msgstr "âm thanh"
1513#~ msgid "<Alt>s"
1514#~ msgstr "<Alt>s"
9661515
967#: /home/walter/Desktop/turtleart-activity/svg/textcolor.py:40
968#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:52
969msgid "text color"
970msgstr "màu chữ"
1516#~ msgid "load my block"
1517#~ msgstr "nạp khối của mình"
9711518
972#: /home/walter/Desktop/turtleart-activity/svg/fillscreen.py:40
973#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:46
974msgid "fill screen"
975msgstr "toàn màn hình"
1519#~ msgid "<Alt>o"
1520#~ msgstr "<Alt>o"
9761521
977#: /home/walter/Desktop/turtleart-activity/svg/settextsize.py:40
978#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:50
979msgid "set text size"
980msgstr "đặt kích cỡ chữ"
1522#~ msgid "stack 2"
1523#~ msgstr "đống 2"
9811524
982#: /home/walter/Desktop/turtleart-activity/svg/settextcolor.py:40
983#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:51
984msgid "set text color"
985msgstr "đặt màu chữ"
1525#~ msgid "stack 1"
1526#~ msgstr "đống 1"
9861527
987#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:40
988msgid "Pen"
989msgstr "Bút"
1528#~ msgid "Keyboard"
1529#~ msgstr "Bàn phím"
9901530
991#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:41
992#: /home/walter/Desktop/turtleart-activity/svg/penup.py:40
993msgid "pen up"
994msgstr "bút lên"
1531#~ msgid "Flow"
1532#~ msgstr "Chảy"
9951533
996#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:43
997#: /home/walter/Desktop/turtleart-activity/svg/setpensize.py:40
998msgid "set pen size"
999msgstr "đặt kích cỡ bút"
1534#~ msgid "else"
1535#~ msgstr "không thì"
10001536
1001#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:44
1002#: /home/walter/Desktop/turtleart-activity/svg/setcolor.py:40
1003msgid "set color"
1004msgstr "đặt màu"
1537#~ msgid "My Blocks"
1538#~ msgstr "Khối của mình"
10051539
1006#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:45
1007#: /home/walter/Desktop/turtleart-activity/svg/setshade.py:40
1008msgid "set shade"
1009msgstr "đặt sắc màu"
1540#~ msgid "Numbers"
1541#~ msgstr "Số"
10101542
1011#: /home/walter/Desktop/turtleart-activity/svg/pengroup.py:47
1012#: /home/walter/Desktop/turtleart-activity/svg/pensize.py:40
1013msgid "pen size"
1014msgstr "kích cỡ bút"
1543#~ msgid "Templates"
1544#~ msgstr "Mẫu"
10151545
1016#: /home/walter/Desktop/turtleart-activity/svg/setxy.py:40
1017msgid "set xy"
1018msgstr "đặt xy"
1546#~ msgid "Extras"
1547#~ msgstr "Bổ sung"
10191548
1549#~ msgid "read key"
1550#~ msgstr "đọc phím"
1551
1552#~ msgid "clean"
1553#~ msgstr "gột"
1554
1555# Cần dịch hay không?
1556#~ msgid "setyx"
1557#~ msgstr "setyx"
1558
1559#~ msgid "sound"
1560#~ msgstr "âm thanh"
1561
1562#~ msgid "text color"
1563#~ msgstr "màu chữ"
1564
1565#~ msgid "Pen"
1566#~ msgstr "Bút"
1567
10201568#~ msgid "hide palette"
10211569#~ msgstr "ẩn bảng chọn"
10221570
15881588
15891589#~ msgid "Sensors"
15901590#~ msgstr "Máy nhạy"
1591
1592#~ msgid "volume"
1593#~ msgstr "âm lượng"
1594
1595#~ msgid "pitch"
1596#~ msgstr "âm vực"
1597
1598#~ msgid "voltage"
1599#~ msgstr "điện áp"
1600
1601#~ msgid "resistance"
1602#~ msgstr "điện trở"
16031591
16041592#~ msgid "hres"
16051593#~ msgstr "hres"
taexporthtml.py
(62 / 248)
  
1818#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1919#THE SOFTWARE.
2020
21import pygtk
22pygtk.require('2.0')
23import gtk
2124try:
2225 from sugar.activity import activity
2326 from sugar.datastore import datastore
4040 'doctype': "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 "+\
4141 "Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n",
4242 'html': ("<html>\n", "</html>\n"),
43 'html_svg': ("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n",
44 "</html>\n"),
4345 'head': ("<head>\n<!-- Created by Turtle Art -->\n", "</head>\n"),
4446 'meta': "<meta http-equiv=\"content-type\" content=\"text/html; "+\
45 "charset=UTF-8\">\n",
47 "charset=UTF-8\"/>\n",
4648 'title': ("<title>", "</title>\n"),
4749 'style': ("<style type=\"text/css\">\n<!--\n", "-->\n</style>\n"),
50 'style_svg': ("<style type=\"text/css\">\n<!--\n", "-->\n</style>\n"),
4851 'body': ("<body>\n", "\n</body>\n"),
4952 'div': ("<div>\n", "</div>\n"),
5053 'slide': ("\n<a name=\"slide", "\"></a>\n"),
5959 'img': ("<img width=\"400\" height=\"300\" alt=\"Image\" "+\
6060 "src=\"file://", ".png\" />\n"),
6161 'img2': ("<img alt=\"Image\" src=\"image", ".png\" />\n"),
62 'img3': ("<img alt=\"Image\" src=\"file://", "\" />\n"),
6263 'ul': ("<table>\n", "</table>\n"),
6364 'li': ("<tr><td>", "</td></tr>\n") }
6465
7171 "base64,\n", " \"/>\n")
7272
7373 """
74 Transalate 'show' and 'template' blocks into HTML, ignoring most
75 turtle graphics. Saving as SVG will capture all of the graphical elements
76 of a page.
74 If there are saved_pictures, put them into a .html; otherwise, save a
75 screendump and the turtle project code.
7776 """
78 bs = tw.just_blocks()
7977 code = ""
80 self.imagecount = 0
81 slidecount = 0
82 for b in bs:
83 this_stack = ""
84 data = walk_stack(self, tw, b)
85 show = 0
86 tp1, tp2, tp3, tp8, tp6, tp7 = 0,0,0,0,0,0
87 for d in data:
88 if type(d) == type((1,2)):
89 (d,b) = d
90 if type(d) is float or type(d) is int:
91 d = str(d)
92 if d == "show" or d == "showaligned":
93 show = 1
94 elif show > 0: # Process the argument to show or container,
95 if show == 1: # which could be media or a string
96 if d[0:8] == '#smedia_':
97 this_stack += add_image(self, tw, d)
98 elif d[0:8] == '#sdescr_':
99 this_stack += add_description(self, tw, d)
100 elif d[0:2] == '#s':
101 this_stack += d[2:]
102 show = 0
103 else:
104 this_stack += d
105 show = 0
106
107 """
108 The following mess is in order to process 'template' blocks,
109 a depreciated block type.
110 """
111 elif d == "t1x1":
112 tp1 = 1
113 elif d == "t2x1":
114 tp2 = 1
115 elif d == "list":
116 tp3 = 8
117 elif d == 't1x1a':
118 tp8 = 1
119 elif d == "t1x2":
120 tp6 = 1
121 elif d == "t2x2":
122 tp7 = 1
123 elif tp3 > 0: # Bullets
124 if tp3 == 8: # The title comes first...
125 tmp = self.html_glue['slide'][0] + \
126 str(slidecount) + \
127 self.html_glue['slide'][1] + \
128 self.html_glue['div'][0] + \
129 self.html_glue['h1'][0] + \
130 d[2:] + \
131 self.html_glue['h1'][1] + \
132 self.html_glue['ul'][0]
133 bullets = 6
134 slidecount += 1
135 elif d[2:] != "": # then the bullets
136 tmp = self.html_glue['li'][0] + d[2:] + \
137 self.html_glue['li'][1]
138 this_stack += tmp
139 tmp = ""
140 bullets -= 1
141 if bullets == 0:
142 this_stack += (self.html_glue['ul'][1] + \
143 self.html_glue['div'][1])
144 elif tp1 == 1 or tp2 == 1 or tp8 == 1 or\
145 tp6 == 1 or tp7 == 1:
146 # The first time through, process the title
147 this_stack += (self.html_glue['slide'][0] + \
148 str(slidecount) + \
149 self.html_glue['slide'][1] + \
150 self.html_glue['div'][0] + \
151 self.html_glue['h1'][0] + d[2:] + \
152 self.html_glue['h1'][1] + \
153 self.html_glue['table'][0])
154 if tp1 > 0: tp1 += 1
155 elif tp2 > 0: tp2 += 1
156 elif tp8 > 0: tp8 += 1
157 elif tp6 > 0: tp6 += 1
158 elif tp7 > 0: tp7 += 1
159 slidecount += 1
160 elif tp1 > 1 or tp6 > 1:
161 tmp = self.html_glue['tr'][0] + \
162 self.html_glue['td'][0]
163 if d[0:8] == '#smedia_':
164 tmp += (add_image(self, tw, d) + \
165 self.html_glue['td'][1] + \
166 self.html_glue['td'][0] + \
167 add_description(self, tw, d) + \
168 self.html_glue['td'][1] + \
169 self.html_glue['tr'][1])
170 elif d[0:8] == '#sdescr_':
171 tmp += (add_description(self, tw, d) + \
172 self.html_glue['td'][1] + \
173 self.html_glue['tr'][1])
174 if tp1 > 1 or tp6 > 2:
175 this_stack += (tmp + self.html_glue['table'][1] + \
176 self.html_glue['div'][1])
177 tp1 = 0
178 tp6 = 0
179 else:
180 this_stack += tmp
181 tp6 += 1
182 elif tp8 > 1:
183 tmp = self.html_glue['tr'][0] + \
184 self.html_glue['td'][0]
185 if d[0:8] == '#smedia_':
186 tmp += (add_image(self, tw, d) + \
187 self.html_glue['td'][1] + \
188 self.html_glue['tr'][1])
189 elif d[0:8] == '#sdescr_':
190 tmp += (add_description(self, tw, d) + \
191 self.html_glue['td'][1] + \
192 self.html_glue['tr'][1])
193 this_stack += (tmp + self.html_glue['table'][1] + \
194 self.html_glue['div'][1])
195 tp8 = 0
196 elif tp2 > 1 or tp7 > 1:
197 if tp2 == 2 or tp7 == 2:
198 tmp = self.html_glue['tr'][0] + \
199 self.html_glue['td'][0]
200 else:
201 tmp += self.html_glue['td'][0]
202 if tp2 == 2:
203 saved_description = add_description(self, tw, d)
204 if tp2 == 2 or tp7 == 2:
205 if d[0:8] == '#smedia_':
206 tmp += (add_image(self,d) + \
207 self.html_glue['td'][1])
208 elif d[0:8] == '#sdescr_':
209 tmp += (add_description(self, tw, d) + \
210 self.html_glue['td'][1])
211 if tp2 > 1: tp2 += 1
212 elif tp7 > 1: tp7 += 1
213 elif tp2 == 3:
214 if d[0:8] == '#smedia_':
215 tmp += add_image(self, tw, d)
216 elif d[0:8] == '#sdescr_':
217 tmp += add_description(self, tw, d)
218 tmp += (self.html_glue['td'][1] + \
219 self.html_glue['tr'][1] + \
220 self.html_glue['tr'][0] + \
221 self.html_glue['td'][0])
222 tmp += saved_description
223 saved_desciption = ""
224 tmp += (self.html_glue['td'][1] + \
225 self.html_glue['td'][0])
226 tmp += (add_description(self,d) + \
227 self.html_glue['td'][1] + \
228 self.html_glue['tr'][1])
229 this_stack += (tmp + self.html_glue['table'][1] + \
230 self.html_glue['div'][1])
231 tp2 = 0
232 elif tp7 == 3:
233 if d[0:8] == '#smedia_':
234 tmp += add_image(self, tw, d)
235 elif d[0:8] == '#sdescr_':
236 tmp += add_description(self, tw, d)
237 tmp += (self.html_glue['td'][1] + \
238 self.html_glue['tr'][1] + \
239 self.html_glue['tr'][0])
240 tp7 += 1
241 elif tp7 == 4:
242 if d[0:8] == '#smedia_':
243 tmp += add_image(self, tw, d)
244 elif d[0:8] == '#sdescr_':
245 tmp += add_description(self, tw, d)
246 tmp += (self.html_glue['td'][1])
247 tp7 += 1
248 elif tp7 == 5:
249 if d[0:8] == '#smedia_':
250 tmp += add_image(self, tw, d)
251 elif d[0:8] == '#sdescr_':
252 tmp += add_description(self, tw, d)
253 tmp += (self.html_glue['td'][1] + \
254 self.html_glue['tr'][1])
255 this_stack += (tmp + self.html_glue['table'][1] + \
256 self.html_glue['div'][1])
257 tp7 = 0
258 """
259 End of depreciated-block section
260 """
261
262 if len(data) > 0:
263 code += this_stack
264
265 """
266 If no show or template blocks were present then we've got nothing,
267 so save a screen dump and project code instead.
268 """
269 if slidecount == 0:
78 if len(tw.saved_pictures) > 0:
79 for i, p in enumerate(tw.saved_pictures):
80 code += self.html_glue['slide'][0] + str(i)
81 code += self.html_glue['slide'][1] +\
82 self.html_glue['div'][0] +\
83 self.html_glue['h1'][0]
84 if self.embed_images == True:
85 f = open(p, "r")
86 imgdata = f.read()
87 f.close()
88 if p.endswith(('.svg')):
89 tmp = imgdata
90 else:
91 pixbuf = gtk.gdk.pixbuf_new_from_file(p)
92 imgdata = image_to_base64(pixbuf, tw.activity)
93 tmp = self.html_glue['img2'][0]
94 tmp += imgdata
95 tmp += self.html_glue['img2'][1]
96 else:
97 if p.endswith(('.svg')):
98 f = open(p, "r")
99 imgdata = f.read()
100 f.close()
101 tmp = imgdata
102 else:
103 tmp = self.html_glue['img3'][0]
104 tmp += p
105 tmp += self.html_glue['img3'][1]
106 code += tmp +\
107 self.html_glue['h1'][1] +\
108 self.html_glue['div'][1]
109 else:
270110 if self.embed_images == True:
271111 imgdata = image_to_base64(save_picture(self.tw.canvas), tw.activity)
272112 else:
117117 code += self.html_glue['div'][0]
118118 code += data_to_string(tw.assemble_data_to_save(False, True))
119119 code += self.html_glue['div'][1]
120
120121 if tw.running_sugar:
121122 title = _("Turtle Art") + " " + tw.activity.metadata['title']
122123 else:
123124 title = _("Turtle Art")
124 code = self.html_glue['doctype'] + \
125 self.html_glue['html'][0] + \
126 self.html_glue['head'][0] + \
127 self.html_glue['meta'] + \
128 self.html_glue['title'][0] + \
129 title + \
130 self.html_glue['title'][1] + \
131 self.html_glue['style'][0] + \
132 self.html_glue['style'][1] + \
133 self.html_glue['head'][1] + \
134 self.html_glue['body'][0] + \
135 code + \
136 self.html_glue['body'][1] + \
137 self.html_glue['html'][1]
138 return code
139125
140def walk_stack(self, tw, blk):
141 top = tw.find_top_block(blk)
142 if blk == top:
143 return tw.lc.run_blocks(top, tw.block_list.list, False)
144 else:
145 return []
126 header = self.html_glue['doctype'] +\
127 self.html_glue['html'][0]
146128
147def add_image(self, tw, d):
148 if d[8:] != "None":
149 if self.embed_images == True:
150 try:
151 dsobject = datastore.get(d[8:])
152 pixbuf = get_pixbuf_from_journal(dsobject,400,300)
153 imgdata = image_to_base64(pixbuf, tw.activity)
154 except:
155 imgdata = ""
156 elif tw.running_sugar:
157 try:
158 dsobject = datastore.get(d[8:])
159 imgdata = dsobject.file_path
160 except:
161 imgdata = ""
162 else:
163 imgdata = d[8:]
129 if len(tw.saved_pictures) > 0:
130 if tw.saved_pictures[0].endswith(('.svg')):
131 header = self.html_glue['html_svg'][0]
164132
165 tmp = self.html_glue['img2'][0]
166 tmp += imgdata
167 tmp += self.html_glue['img2'][1]
168 self.imagecount += 1
169 return tmp
170 return ""
171
172def add_description(self, tw, d):
173 if d[8:] != "None":
174 try:
175 dsobject = datastore.get(d[8:])
176 return dsobject.metadata['description']
177 except:
178 return ""
179 return ""
133 code = header +\
134 self.html_glue['head'][0] +\
135 self.html_glue['meta'] +\
136 self.html_glue['title'][0] +\
137 title +\
138 self.html_glue['title'][1] +\
139 self.html_glue['style'][0] +\
140 self.html_glue['style'][1] +\
141 self.html_glue['head'][1] +\
142 self.html_glue['body'][0] +\
143 code +\
144 self.html_glue['body'][1] +\
145 self.html_glue['html'][1]
146 return code
  
592592 #
593593 # SVG helper methods
594594 #
595
596595 def header(self, center=False):
597 return "%s%s%s%s%s%s%s%s%.1f%s%s%.1f%s%s%s" % (
598 "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n",
599 "<!-- Created with Python -->\n",
596 return "%s%s%s%s%s%s%.1f%s%s%.1f%s%s%s" % (
600597 "<svg\n",
601598 " xmlns:svg=\"http://www.w3.org/2000/svg\"\n",
602599 " xmlns=\"http://www.w3.org/2000/svg\"\n",
  
182182 self.topy = (self.canvas.height*(TITLEXY[1]-0.125))/(self.coord_scale*2)
183183 self.bottomy = 0
184184 self.lc = LogoCode(self)
185 self.saved_pictures = []
185186
186187 """
187188 Register the events we listen to.
26502650 self.svg_string = ''
26512651 else:
26522652 save_picture(self.canvas, file_path)
2653
2654 # keep a log of the saved pictures for export to HTML
2655 self.saved_pictures.append(file_path)
26532656
26542657 if self.running_sugar:
26552658 dsobject = datastore.create()
turtleart.py
(14 / 2)
  
212212 menu_bar.append(turtle_menu)
213213
214214 win.show_all()
215 self.tw = TurtleArtWindow(canvas, os.path.abspath('.'), lang)
215
216 if os.path.exists('/usr/share/turtleart'):
217 self.tw = TurtleArtWindow(canvas, '/usr/share/turtleart', lang)
218 elif os.path.exists('/usr/local/share/turtleart'):
219 self.tw = TurtleArtWindow(canvas, '/usr/local/share/turtleart',
220 lang)
221 else:
222 self.tw = TurtleArtWindow(canvas, os.path.abspath('.'), lang)
216223 self.tw.win = win
217224 self.tw.load_start()
218225
236236 html = save_html(self, self.tw, False)
237237 if len(html) == 0:
238238 return
239 filename, self.tw.load_save_folder = get_save_name('.html',
239 save_type = '.html'
240 if len(self.tw.saved_pictures) > 0:
241 if self.tw.saved_pictures[0].endswith(('.svg')):
242 save_type = '.xml'
243 filename, self.tw.load_save_folder = get_save_name(save_type,
240244 self.tw.load_save_folder, 'portfolio')
241245 f = file(filename, "w")
242246 f.write(html)
243247 f.close()
248 self.tw.saved_pictures = []
244249
245250 def _do_resize_cb(self, widget, factor):
246251 if factor == -1: