/usr/share/quickly/templates/ubuntu-application/help/po/tutorial.pot is in quickly-ubuntu-template 12.08.1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 | msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2012-09-25 20:14+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: data/templates/ubuntu-application/help/tutorial.xml:13(firstname)
msgid "Shane"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:14(surname)
msgid "Fagan"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:17(firstname)
msgid "Rick"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:18(surname)
msgid "Spencer"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:21(firstname)
msgid "Michael"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:22(surname)
msgid "Terry"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:24(corpauthor)
msgid "Canonical ltd"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:28(date) data/templates/ubuntu-application/help/tutorial.xml:33(invpartnumber)
msgid "2011"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:0(application) data/templates/ubuntu-application/help/tutorial.xml:1113(application)
msgid "Quickly"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:32(productnumber)
msgid "12.08.1"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:34(title)
msgid "<application>Quickly</application> 12.08.1 User Guide"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:39(title)
msgid "About This Guide"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:40(para)
msgid "<application>Quickly</application> is a set of choices about writing apps for Ubuntu. Out of all the wonderful richness and variety of programming for Ubuntu, <application>Quickly</application> make some very opinionated choices about what tools to use, and how to combine them. The criteria for these choices was to make it easy and fun to write and release Ubuntu applications, even if it's your first time trying, but also in a way that delivers the full power and flexibility of the platform. One benefit of these choices, is that it's also easier to write tools that make it even easier and more fun. So <application>Quickly</application> is also a set of commands."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:43(link) data/templates/ubuntu-application/help/tutorial.xml:49(title)
msgid "Getting Started"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:50(para)
msgid "This is part 1 of the <application>Quickly</application> tutorial. This part will introduce some key <application>Quickly</application> commands, editing a user interface in <application>Glade</application>, and editing code in <application>gedit</application>. This part of the tutorial will familiarize you with these three tools, and how they work together with Python and GTK+ so that you can quickly build applications."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:52(title)
msgid "Creating a <application>Quickly</application> Project"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:52(para)
msgid "<placeholder-1/>Creating an empty but working program couldn't be simpler. First, open a terminal window to type commands into. When it's open, type the command:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:53(programlisting)
#, no-wrap
msgid "quickly create ubuntu-application jotty"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:57(para)
msgid "This will create a jotty subdirectory containing a complete directory tree and files for an empty Python application. The command finishes by running the newly created empty application."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:61(title)
msgid "Testing the Empty Application"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:61(para)
msgid "<placeholder-1/> In the window that pops up you have a menubar, text and a statusbar. Notice that <application>Quickly</application> inferred that the application title is \"Jotty\". Only a few of menu items do anything in the empty application, Help->About, Edit->Preferences, and File->Close."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:65(title)
msgid "Running the Application"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:65(para)
msgid "<placeholder-1/> Close the application by closing the window or using the File->Close menu item. Since the empty application isn't actually installed, you can't start the application from the application menu yet. To start the applicaton, use the terminal to first cd into the new subdirectory, and then use \"quickly run\"."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:67(programlisting)
#, no-wrap
msgid "\ncd jotty\nquickly run\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:74(title)
msgid "Editing an Application"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:75(title)
msgid "Edit the User Interface in <application>Glade</application>"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:75(para)
msgid "<placeholder-1/><application>Quickly</application> programs use <application>Glade</application> to edit the user interface. Start <application>Glade</application> with \"quickly design\" in order to set up <application>Glade</application> for editing the empty applicaton. Don't start <application>Glade</application> directly, or it won't load the necessary catalog files for editing the classes that were automatically generated by <application>Quickly</application>."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:77(programlisting) data/templates/ubuntu-application/help/tutorial.xml:132(programlisting) data/templates/ubuntu-application/help/tutorial.xml:882(programlisting)
#, no-wrap
msgid "quickly design"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:81(para)
msgid "<application>Glade</application> will open with the project loaded up and ready to edit."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:85(para)
msgid "Click on \"jotty_window\" in the right pane to open the window for editing."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:89(para)
msgid "The first thing we want to do is create a text area for typing into. There are some default widgets added to the window already, but we won't need these so we'll start by deleting them. Click on the label and press Delete to make it disappear from the window."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:96(para)
msgid "Do the same with the image widget. This leave us two free slots."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:100(para)
msgid "We'll use the bottom slot to add a TextView widget for the user to type into. In the toolbox on the left, click on the \"Text View\" button in the \"Controls and Display\" section. Then click in the bottom empty slot."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:104(para)
msgid "Make sure you save the file in <application>Glade</application>, or your changes won't be kept! Then run the application from the terminal again. The window now has a place where the user can type."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:108(para)
msgid "Now we'll add the entry field for the title and also a label for it. We'll use the top empty slot for that. First, click on \"Box\" from the \"Containers\" section of the toolbox, and then click on the top slot. A dialog box will open; tell it that you want two items."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:112(para)
msgid "A Box is a container that arranges its contents either vertically or horizontally. We want a horizontal one, so on the right bottom pane, change the \"Orientation\" setting to \"Horizontal\". Then add a Label to the empty left hand slot, and a Text Entry to the right hand one."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:116(para)
msgid "Before going on, let's clean up the UI just a tad here. Select the horizontal box from the list on the right. Then go to the Packing tab in the bottom right, and set Expand and Fill to \"No\"."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:120(para)
msgid "Go to the General tab, and set spacing to 6."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:124(para)
msgid "Select the label. On the General tab, set the Label field to \"Name:\". Set Expand and Fill to \"No\" for the label, and set them to \"Yes\" for the entry. Set the Padding for both to 6 (also on the Packing tab)."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:128(title)
msgid "Add the Save, Open, and New Features"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:128(para)
msgid "<placeholder-1/> After the user types something, they may want to save it. A File->Save menu item was automatically created when the empty applicaton was created, but it's not hooked up to any code. To make Save work, we need tell the menu item what function to call and then create a function to actually do the saving."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:130(title)
msgid "Set the Signal Handler in <application>Glade</application>"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:130(para)
msgid "<placeholder-1/> First, we need to tell the menu item what function to call. If <application>Glade</application> is not still open, open up the application in <application>Glade</application>:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:133(para)
msgid "Click on the file menu, and the menu opens as if the application were running."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:137(para)
msgid "Choose the Save menu item, and it will be selected in <application>Glade</application>."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:141(para)
msgid "In GTK+, menu items are \"activated\" when a user chooses the item from the menu. Since we want a function to run when the user chooses Save, we want to specify a function to respond to the activate signal from the menu item. Note the name of the menu item is \"mnu_save\" in the right panel. You will use this in a second."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:142(title)
msgid "Edit the Code in Gedit"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:143(title)
msgid "Create the Save File Signal Handler"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:143(para)
msgid "<placeholder-1/> Now you're ready to write some code. The code for the window is stored in the file \"JottyWindow.py\"."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:145(para)
msgid "Use the \"quickly edit\" command to start editing your code files:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:146(programlisting) data/templates/ubuntu-application/help/tutorial.xml:885(programlisting) data/templates/ubuntu-application/help/tutorial.xml:914(programlisting)
#, no-wrap
msgid "quickly edit"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:147(para)
msgid "This will open the default Ubuntu text editor <application>gedit</application> with all the customizable Python files in the \"jotty\" directory."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:151(para)
msgid "When signals are emitted, if the window's class has a method called \"on_WIDGET_SIGNAL\", it will be called. In this case, we are interested in the \"activate\" signal on the \"mnu_save\" widget. So we want to create an \"on_mnu_save_activate\" method in the JottyWindow class. So simply switch to the JottyWindow.py file and add the following right under the finish_initializing method:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:153(programlisting)
#, no-wrap
msgid "\n def on_mnu_save_activate(self, widget, data=None):\n print \"save\"\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:158(para)
msgid "This will print the word \"save\" to the terminal when run. The method signature is the standard signature expected in a signal handler. If you are new to python, be sure to copy the indentations exactly, as the indentation level is very important in python."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:159(para)
msgid "Save the file, and run it again:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:160(programlisting) data/templates/ubuntu-application/help/tutorial.xml:1061(programlisting)
#, no-wrap
msgid "\nquickly run\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:163(para)
msgid "Choose File->Save from the menu, and you'll see the word \"save\" printed out in the terminal. That's all there is to hooking up the signals!"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:167(title)
msgid "Implementing Save"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:167(para)
msgid "<placeholder-1/> Now we'll write a little code in the signal handler to actually save the text. This code will do the following:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:171(para)
msgid "Import any new modules you'll need."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:174(para)
msgid "Get the title of the document and the text from the user interface."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:177(para)
msgid "Write the file to disk."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:181(title)
msgid "Import new modules:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:181(para)
msgid "<placeholder-1/> Add these import statements near the other imports at the top of the JottyWindow.py file. The comment on the right is there for the benefit of the Python static code analysis tool <application>pylint</application>, if you happen to use it."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:185(programlisting)
#, no-wrap
msgid "\nimport os\nfrom gi.repository import GLib # pylint: disable=E0611\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:191(title)
msgid "Here's the code to pull the title out of the title entry:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:191(para)
msgid "<placeholder-1/> Add this to the on_mnu_save_activate method."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:195(programlisting)
#, no-wrap
msgid "\n #get the title for the note\n title = self.ui.entry1.get_text()\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:200(title)
msgid "Here's the code to get pull the text out of the TextView:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:200(para)
msgid "<placeholder-1/> In GTK+, TextView widgets have a text buffer that stores the text. So you ask the TextView for it's TextBuffer, and then you ask the TextBuffer for the text. You use iterators (iters) to determine from which part of the text buffer you want text. Since we want all the text, it's easy to just get the start and end iters."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:203(programlisting)
#, no-wrap
msgid "\n #get the string\n buff = self.ui.textview1.get_buffer()\n start_iter = buff.get_start_iter()\n end_iter = buff.get_end_iter()\n text = buff.get_text(start_iter, end_iter, True)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:211(title)
msgid "Deciding where to save the note:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:211(para)
msgid "<placeholder-1/> We'll store the document in the system hidden folder designated for user-specific data. It's simple enough to ask GLib where that folder is and then add a jotty subfolder."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:214(programlisting)
#, no-wrap
msgid "\n #create the filename\n data_dir = GLib.get_user_data_dir()\n jotty_dir = os.path.join(data_dir, \"jotty\")\n filename = os.path.join(jotty_dir, title)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:221(title)
msgid "Saving a document to user's disk:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:221(para)
msgid "<placeholder-1/> GLib provides a convenience function for directly writing a string to a file."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:224(programlisting)
#, no-wrap
msgid "\n #write the data\n GLib.mkdir_with_parents(jotty_dir, 0o700)\n GLib.file_set_contents(filename, text)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:230(para)
msgid "So the whole function should look like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:232(programlisting)
#, no-wrap
msgid "\n def on_mnu_save_activate(self, widget, data=None):\n #get the title for the note\n title = self.ui.entry1.get_text()\n\n #get the string\n buff = self.ui.textview1.get_buffer()\n start_iter = buff.get_start_iter()\n end_iter = buff.get_end_iter()\n text = buff.get_text(start_iter, end_iter, True)\n\n #create the filename\n data_dir = GLib.get_user_data_dir()\n jotty_dir = os.path.join(data_dir, \"jotty\")\n filename = os.path.join(jotty_dir, title)\n\n #write the data\n GLib.mkdir_with_parents(jotty_dir, 0o700)\n GLib.file_set_contents(filename, text)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:254(para)
msgid "It's easy to see if your save function is working. You can just explore the jotty data folder:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:255(programlisting)
#, no-wrap
msgid "gvfs-open ~/.local/share/jotty"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:257(title)
msgid "Implementing Open and New"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:257(para)
msgid "<placeholder-1/> To open a saved document, the user will type the title of the document that they want to open in the text entry, and choose \"Open\" from the main menu. If there is no matching document there, it will just clear out the text view, ready for input. This is probably not too intuitive, so we'll add a dialog box for prompting the user for the title, but that's for later in the tutorial. For now, we'll just use the same text entry field."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:259(title)
msgid "Implementing Open is essentially the reverse of Save:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:259(para)
msgid "<placeholder-1/> Follow these steps:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:263(para)
msgid "Add the on_mnu_open_activate method to the JottyWindow class."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:266(para)
msgid "Find all of the existing document names."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:269(para)
msgid "Check if any have a matching title."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:272(para)
msgid "If there is a match, pull out the text and display it in the text view."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:275(para)
msgid "So the on_mnu_open_activate method looks like so:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:277(programlisting)
#, no-wrap
msgid "\n def on_mnu_open_activate(self, widget, data=None):\n #get the name of the document to open\n title = self.ui.entry1.get_text()\n text = \"\"\n\n #create the filename\n data_dir = GLib.get_user_data_dir()\n jotty_dir = os.path.join(data_dir, \"jotty\")\n filename = os.path.join(jotty_dir, title)\n\n #try to get the data from the file if it exists\n try:\n success, text = GLib.file_get_contents(filename)\n except Exception:\n text = \"\"\n\n #set the UI to display the string\n buff = self.ui.textview1.get_buffer()\n buff.set_text(text)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:299(title)
msgid "Implement New"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:299(para)
msgid "<placeholder-1/> Add the on_mnu_new_activate method to the JottyWindow class:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:302(programlisting)
#, no-wrap
msgid "\n def on_mnu_new_activate(self, widget, data=None):\n self.ui.entry1.set_text(\"Note Title\")\n buff = self.ui.textview1.get_buffer()\n buff.set_text(\"\")\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:309(para)
msgid "Remember to save your JottyWindow.py file."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:310(ulink)
msgid "Complete JottyWindow.py file"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:312(title)
msgid "Saving Your Work"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:312(para)
msgid "<placeholder-1/> When <application>Quickly</application> created your application, it automatically added it to Bazaar, a source code versioning system. You can use Bazaar to roll back mistakes, see code history, compare versions, etc... <application>Quickly</application> has a convenience function for backing up your work:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:314(programlisting)
#, no-wrap
msgid "\nquickly save \"First working version of Jotty\"\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:317(programlisting)
#, no-wrap
msgid "bzr add"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:317(programlisting)
#, no-wrap
msgid "bzr commit -m [your message]"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:317(para)
msgid "This will call <placeholder-1/> and then <placeholder-2/> for you."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:322(title)
msgid "Using Dialogs"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:323(para)
msgid "In part 1, we created an application that can read and write text files, and persist them on the disk. However, the application has a hideous usability flaw: the text box for specifying titles when saving and opening files is very confusing. In part 2, we'll fix that by adding a save and an open dialog."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:325(title)
msgid "Creating an Empty Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:325(para)
msgid "<placeholder-1/> It's simple to add an empty, but working dialog to your project. Simply specify the name of the new dialog, and it will be added automatically. Assuming that you are in the jotty project directory:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:327(programlisting)
#, no-wrap
msgid "\nquickly add dialog save\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:330(para)
msgid "This will add the dialog to your project."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:331(title) data/templates/ubuntu-application/help/tutorial.xml:449(title)
msgid "Editing the New Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:331(para)
msgid "<placeholder-1/> To edit the UI for the dialog, you'll need to load it into <application>Glade</application> again. If you already have an instance of <application>Glade</application> running, you might want to go ahead and close it first, as it may get confusing if you have more than one open at a time. After closing <application>Glade</application>, simply open it again:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:333(programlisting) data/templates/ubuntu-application/help/tutorial.xml:451(programlisting) data/templates/ubuntu-application/help/tutorial.xml:948(programlisting)
#, no-wrap
msgid "\nquickly design\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:336(para)
msgid "Then use the Projects menu to switch to the newly created SaveDialog.ui file."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:340(para)
msgid "Then add some widgets for the UI. Start with a vertical Box with two items. Put a label in the top, and a horizontal Box in the bottom slot. In the horizontal box, add a label and a text entry, just like you did for JottyWindow in part 1. Set the expand property of the text entry to true."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:344(title)
msgid "Code the Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:344(para)
msgid "<placeholder-1/> You can use the \"quickly edit\" command to open the SaveDialog.py file. This dialog needs very little additional code to work. Essentially, you just need a way to retrieve the string specified by the user. We'll add a quick accessor method for this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:347(programlisting)
#, no-wrap
msgid "\n @property\n def title_text(self):\n return self.ui.entry1.get_text()\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:352(para)
msgid "We don't need to write any code for the OK and Cancel buttons, as they were automatically hooked up by <application>Quickly</application> when it created the dialog."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:353(para)
msgid "Before we go on to invoking the dialog, delete the Box from the original JottyWindow that holds the text entry and label, as we won't be needing those."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:357(title)
msgid "Calling the Save Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:357(para)
msgid "<placeholder-1/> To use the dialog in JottyWindow, we need to follow these steps:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:361(para)
msgid "Import SaveDialog in JottyWindow"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:364(para)
msgid "In the on_mnu_save_activate method, create an instance of SaveDialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:367(para) data/templates/ubuntu-application/help/tutorial.xml:554(para)
msgid "Run the Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:370(para)
msgid "Get the String"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:373(para) data/templates/ubuntu-application/help/tutorial.xml:560(para)
msgid "Destroy the dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:377(title)
msgid "Importing the SaveDialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:377(para)
msgid "<placeholder-1/> Add the SaveDialog to the list of the imported modules at the top of the JottyWindow.py file, like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:379(programlisting)
#, no-wrap
msgid "\nfrom jotty.SaveDialog import SaveDialog\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:383(title) data/templates/ubuntu-application/help/tutorial.xml:579(title)
msgid "Create an instance of the dialog and run it"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:383(para)
msgid "<placeholder-1/> When the user chooses Save, we want to open the SaveDialog and collect the title of the note from the user. So we need to modify our on_mnu_save_activate method."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:386(para)
msgid "First, create an instance of the SaveDialog like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:387(programlisting)
#, no-wrap
msgid "\n saver = SaveDialog()\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:390(para)
msgid "To make the dialog appear, simply use the run() method. However, we want to check the result, so we'll need to store that in a variable. After it runs, we want to collect the string from the user, like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:391(programlisting)
#, no-wrap
msgid "\n result = saver.run()\n title = saver.title_text\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:395(title)
msgid "Clean up the dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:395(para)
msgid "<placeholder-1/> We need to tell the dialog to not show itself anymore. We could call saver.hide() to make it hide, but since we don't need it hanging around, we'll just destroy it. Before we go on, though, we need to ensure that the user actually wants to save, so if we didn't get the OK result, we should just return out of the method:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:398(programlisting)
#, no-wrap
msgid "\n saver.destroy()\n if result != Gtk.ResponseType.OK:\n return\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:404(para)
msgid "Since we're now getting the title from the dialog instead of the text entry, we should delete the line of the code that gets it from the text entry. So except for the addition of the dialog code, the on_mnu_save_activate method looks pretty much the same as it did in part 1:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:407(programlisting)
#, no-wrap
msgid "\n def save_file(self, widget, data=None):\n #get the title from the user\n saver = SaveDialog()\n result = saver.run()\n title = saver.title_text\n\n saver.destroy()\n if result != Gtk.ResponseType.OK:\n return\n\n #get the string\n buff = self.ui.textview1.get_buffer()\n start_iter = buff.get_start_iter()\n end_iter = buff.get_end_iter()\n text = buff.get_text(start_iter, end_iter, True)\n\n #create the filename\n data_dir = GLib.get_user_data_dir()\n jotty_dir = os.path.join(data_dir, \"jotty\")\n filename = os.path.join(jotty_dir, title)\n\n #write the data\n GLib.mkdir_with_parents(jotty_dir, 0o700)\n GLib.file_set_contents(filename, text)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:433(para)
msgid "Now when we choose save, we get the SaveDialog instead:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:438(title)
msgid "Creating a Dialog with a DictionaryGrid"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:438(para)
msgid "<placeholder-1/> We'll use a similar approach in the Open dialog that we did with Save. However, there is one big difference, we want to provide the user with a list of documents that you could choose to open. We'll use a widget called DictionaryGrid, which is included in the Quickly Widgets library."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:441(title)
msgid "Installing the Quickly Widgets library"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:442(programlisting)
#, no-wrap
msgid "\nsudo apt-get install python-quickly.widgets\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:445(title)
msgid "Create the Open Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:446(programlisting)
#, no-wrap
msgid "\nquickly add dialog open\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:449(para)
msgid "<placeholder-1/> Start out by closing, and then reopening <application>Glade</application> again:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:454(para)
msgid "Start by adding a vertical Box and a label in the same manner as in the Save Dialog above. Leave an empty space in the Box, we will use code to put the DictionaryGrid there."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:458(title)
msgid "Coding the Open Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:459(title)
msgid "Creating and Adding a DictionaryGrid"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:459(para)
msgid "<placeholder-1/> It just takes a little bit of code to add a DictionaryGrid to the dialog. We need to:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:463(para)
msgid "Import the DictionaryGrid class."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:466(para)
msgid "Get the list of jotty files."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:469(para)
msgid "Throw that list into a DictionaryGrid."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:472(para)
msgid "Add the DictionaryGrid to the Dialog."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:475(para)
msgid "Create the get_selection function."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:479(title)
msgid "Import the DictionaryGrid class"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:479(para)
msgid "<placeholder-1/> Open the \"OpenDialog.py\" file with \"quickly edit\". DictionaryGrid is part of the quickly.widgets library, so we import it as below. Note we also want to import GLib and os, since we'll use some of their functions."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:481(programlisting)
#, no-wrap
msgid "\nimport os\nfrom quickly.widgets.dictionary_grid import DictionaryGrid\nfrom gi.repository import GLib # pylint: disable=E0611\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:486(title)
msgid "Get the list of jotty files"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:486(para)
msgid "<placeholder-1/> First things first, we need to know the names of the existing documents. If you recall, we stored the files in the user's data directory. So we just need to list the files in that directory. This set up should be done in the OpenDialog's finish_initializing function."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:490(programlisting)
#, no-wrap
msgid "\n #get the jotty document names\n data_dir = GLib.get_user_data_dir()\n jotty_dir = os.path.join(data_dir, \"jotty\")\n filenames = os.listdir(jotty_dir)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:497(title)
msgid "Throw that list into a DictionaryGrid"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:497(para)
msgid "<placeholder-1/> Now that we have a list of files, we need to massage it into the format DictionaryGrid expects. Namely, a list of dictionaries that hold header/value pairs. So we'll add a header to each filename and keep track of the full filename."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:501(programlisting)
#, no-wrap
msgid "\n #put them into a grid\n dicts = [{'Name': x, 'File': os.path.join(jotty_dir, x)} for x in filenames]\n self.grid = DictionaryGrid(dictionaries=dicts, keys=['Name'])\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:507(title)
msgid "Add the DictionaryGrid to the Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:507(para)
msgid "<placeholder-1/> When we added the vertical Box to the dialog, we left an open space at the bottom. We'll use this by \"packing\" the DictionaryGrid into the Box. We need to show it as well. So add the following lines to the finish_initializing function as well:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:511(programlisting)
#, no-wrap
msgid "\n #add grid to dialog\n self.grid.show()\n self.ui.box1.pack_end(self.grid, True, True, 0)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:517(title)
msgid "Create the get_selection function"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:517(para)
msgid "<placeholder-1/> The dialog still needs a bit more code to work. It needs to return the user's selection, if there is one. To do this, we need to ask the DictionaryGrid what is selected. This is easy using the widget's selected_rows member. But DictionaryGrid supports multiple selection, so we'll do the following:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:521(para)
msgid "Use a decorator to define the function as a property accessor."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:524(para)
msgid "Get all the selected rows."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:527(para)
msgid "If none are selected, return None."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:530(para)
msgid "Pick the first one and return it."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:533(para)
msgid "So the function to add to OpenDialog looks like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:535(programlisting)
#, no-wrap
msgid "\n @property\n def selected_file(self):\n rows = self.grid.selected_rows\n if len(rows) < 1:\n return None\n else:\n return rows[0]['Name']\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:544(title)
msgid "Using the Open Dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:544(para)
msgid "<placeholder-1/> Now we want to use the Open Dialog in JottyWindow's on_mnu_open_activate method. To use it, we'll follow these steps:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:548(para)
msgid "Import OpenDialog in JottyWindow"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:551(para)
msgid "In the on_mnu_open_activate method, create an instance of OpenDialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:557(para) data/templates/ubuntu-application/help/tutorial.xml:587(title)
msgid "Get the filename for the selected title"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:563(para)
msgid "Check the response before proceeding"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:566(para) data/templates/ubuntu-application/help/tutorial.xml:599(title)
msgid "Get the file contents"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:569(para)
msgid "Update the UI"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:573(title)
msgid "Import OpenDialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:573(para)
msgid "<placeholder-1/> Just like the SaveDialog, add the import line to the list of imports:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:575(programlisting)
#, no-wrap
msgid "\nfrom jotty.OpenDialog import OpenDialog\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:579(para)
msgid "<placeholder-1/> So now we're ready to call the dialog from the JottyWindow's on_mnu_open_activate method. Creating the OpenDialog is exactly the same as creating the SaveDialog, except we also want to tell it to load the titles before we run it:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:582(programlisting)
#, no-wrap
msgid "\n opener = OpenDialog()\n result = opener.run()\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:587(para)
msgid "<placeholder-1/> Now use the property that we created to retrieve the title and text from the dialog. Don't forget to check the response type before going on."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:590(programlisting)
#, no-wrap
msgid "\n filename = opener.selected_file\n\n #close the dialog, and check whether to proceed\n opener.destroy()\n if result != Gtk.ResponseType.OK:\n return\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:599(para)
msgid "<placeholder-1/> If nothing was selected, we'll just return. Otherwise, we'll retrieve the file contents just like we did before and update the UI. That is, this code does not need to change, but is presented again here for completeness."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:602(programlisting)
#, no-wrap
msgid "\n #try to get the data from the file if it exists\n try:\n success, text = GLib.file_get_contents(filename)\n except Exception:\n text = \"\"\n\n #set the UI to display the string\n buff = self.ui.textview1.get_buffer()\n buff.set_text(text)"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:612(para)
msgid "That's all there is to it. So the whole open_file function looks like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:614(programlisting)
#, no-wrap
msgid "\n def open_file(self, widget, data=None):\n #get the name of the document to open\n opener = OpenDialog()\n result = opener.run()\n filename = opener.selected_file\n\n #close the dialog, and check whether to proceed\n opener.destroy()\n if result != Gtk.ResponseType.OK:\n return\n\n #try to get the data from the file if it exists\n try:\n success, text = GLib.file_get_contents(filename)\n except Exception:\n text = \"\"\n\n #set the UI to display the string\n buff = self.ui.textview1.get_buffer()\n buff.set_text(text)\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:636(para)
msgid "Now users get a nice open dialog:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:641(para)
msgid "However, the application is not complete. There are a few things left for you to do:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:644(para)
msgid "Set the title of the JottyWindow to display the note title. Try self.set_text(title)."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:647(para)
msgid "The Save command works more like \"Save As\". The application probably shouldn't pop up a SaveDialog every time you want to save. If it's already been saved, you probably just want to save it, but use a SaveDialog when the user choose Save As, or is saving a document for the first time."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:650(para)
msgid "The OpenDialog should probably return when the user double clicks on an item in the list. Try connecting to the \"select-cursor-row\" signal on the TreeView, and calling self.response(Gtk.ResponseType.OK) in the handler."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:653(para)
msgid "Perhaps the OK button in the OpenDialog should be disabled if nothing is selected. Try setting the \"sensitivity\" in <application>Glade</application> to \"False\" to start, and using the set_sensitive method on the OK button to adjust it as the selection changes."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:656(para)
msgid "It would be more consistent for the Open and Close dialogs to have \"Open\" and \"Close\" for buttons instead of \"OK\". You can set a different type in the properties window in <application>Glade</application>."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:662(title)
msgid "Packaging"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:663(para)
msgid "In parts 1 and 2, we showed how to create a simple Ubuntu application using <application>Quickly</application>. This section will cover how to package an application so that it is easy for you to share, and easy for other people to install."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:664(title)
msgid "License your Application"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:664(para)
msgid "<placeholder-1/> It's important to license your code so users and other programmers know their rights in terms of redistributing or modifying it. To quickly grant a GPL license to your code, simply:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:668(para)
msgid "Specify your name and email address in the AUTHORS file."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:671(para)
msgid "Run the \"license\" command."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:675(title)
msgid "Specify your name and email"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:675(para)
msgid "<placeholder-1/> When <application>Quickly</application> created your Ubuntu application, it added a file named AUTHORS in the top level of the directory. Open this file in your text editor, and modify the top line so it has your name and email included. For example, I would change the entire file to look like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:678(programlisting)
#, no-wrap
msgid "Copyright (C) 2011 Rick Spencer rick.spencer@canonical.com"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:679(title)
msgid "Run the \"License\" Command"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:679(para)
msgid "<placeholder-1/> By default, <application>Quickly</application> will use a GPL 3 license for your project. To use this license, use this command:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:681(programlisting) data/templates/ubuntu-application/help/tutorial.xml:698(programlisting)
#, no-wrap
msgid "\nquickly license\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:684(para)
msgid "This will add the GPL 3 license to all of your code files that you've added to your project using <application>Quickly</application>."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:685(para)
msgid "Keep in mind a couple of things:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:688(para)
msgid "This is a one way trip. Once you license the project, changes to the license must be done manually."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:691(para)
msgid "If you prefer a GPL 2 license, you can specify that when you issue the license command:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:692(programlisting)
#, no-wrap
msgid "\nquickly license GPL-2\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:697(para)
msgid "<application>Quickly</application> doesn't care what license you use, but only knows natively what files and headers to include for BSD, GPL-2, GPL-3, LGPL-2 and LGPL-3. If you prefer another license, you can simply add whatever you license you like by creating a COPYING file and putting it there. Then run:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:701(para)
msgid "to license every file."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:704(para)
msgid "If you've added code files or other files to your project manually, you will need to add the license to those files manually or add those tags at the beginning of the file:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:706(programlisting)
#, no-wrap
msgid "### BEGIN LICENSE\n### END LICENSE"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:711(title)
msgid "Translate Your Application"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:711(para)
msgid "<placeholder-1/> To allow for users from other countries to use your application you may want to translate it. <application>Glade</application> automatically creates a pot file for you but to translate strings in your code you have to:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:713(programlisting)
#, no-wrap
msgid "import gettext"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:714(programlisting)
#, no-wrap
msgid "gettext.gettext(\"What you want translated\")"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:716(title)
msgid "Specify Application Settings"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:716(para)
msgid "<placeholder-1/> You should personalize your application a little before creating the archive. This is very easy to do, as all of the files that you need have already been created, and only need a few lines changed to make them your own. To do this you should:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:720(para)
msgid "Personalize the Application Icon"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:721(para) data/templates/ubuntu-application/help/tutorial.xml:735(title)
msgid "Edit the Desktop File"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:722(para)
msgid "Edit the setup.py File"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:725(title)
msgid "Personalize your Application Icon"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:725(para)
msgid "<placeholder-1/> When users install your application, Ubuntu will display an icon next to it in the menus. You can create your own icon or edit the file called \"jotty.svg\" in the media directory (jotty/data/media). Ubuntu comes with a great image editing program called \"Inkscape.\" So you can go:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:727(programlisting)
#, no-wrap
msgid "\ninkscape data/media/jotty.svg\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:733(para)
msgid "If you don't personalize the icon, it's ok, your app will just have the default icon, such as in the image above."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:735(para)
msgid "<placeholder-1/> By default, <application>Quickly</application> Ubuntu applications are classified as \"utilities\", so they show up under the Accessories category in Ubuntu. If we wanted to make <application>Jotty</application> show up in another category, we can do this by editing the desktop file. A desktop file is a file that describes your application to Ubuntu. The file \"jotty.desktop.in\" was automatically created in your project directory. To change <application>Jotty</application> from a Utility to an Office application, edit jotty.desktop.in and change this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:739(programlisting)
#, no-wrap
msgid "[Desktop Entry]\nName=Jotty\nComment=Jotty application\nCategories=GNOME;Utility;\nExec=jotty\nIcon=jotty\nTerminal=false\nType=Application\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:749(para)
msgid "to this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:753(programlisting)
#, no-wrap
msgid "[Desktop Entry]\nName=Jotty\nComment=Jotty application\nCategories=GNOME;Office;\nExec=jotty\nIcon=jotty\nTerminal=false\nType=Application"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:761(para)
msgid "There are lots more categories that you can use, all defined by the FreeDesktop spec. You can see the complete list in the <ulink url=\"http://standards.freedesktop.org/menu-spec/latest/apa.html\">menu spec</ulink>."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:765(title)
msgid "Edit Setup.py"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:764(para)
msgid "<placeholder-1/> Finally, you should include some information in the setup.py file to tell your users a little about yourself. The setup.py file was created for you, just like the desktop file. Most of of the setup.py file shouldn't be modified, as it is just boiler plate that makes your application work properly after it has been installed. However, there is a section at the bottom of the setup.py file that you should edit to describe yourself and the application."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:768(para)
msgid "So I would change this section:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:772(programlisting)
#, no-wrap
msgid "DistUtilsExtra.auto.setup(\n name='jotty',\n version='0.1',\n license='GPL-3',\n #author='Your Name',\n #author_email='email@ubuntu.com',\n #description='UI for managing …',\n #long_description='Here a longer description',\n #url='https://launchpad.net/jotty',\n cmdclass={'install': InstallAndUpdateDataDirectory}\n )\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:784(para)
msgid "To look like this:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:788(programlisting)
#, no-wrap
msgid "DistUtilsExtra.auto.setup(\n name='jotty',\n version='0.1',\n license='GPL-3',\n author='Rick Spencer',\n author_email='rick.spencer@canonical.com',\n description='Note taking application',\n long_description='Note taking application that uses CouchDB as the backend.',\n #url='https://launchpad.net/jotty',\n cmdclass={'install': InstallAndUpdateDataDirectory}\n )"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:799(para)
msgid "Note that the license has already been set up for you, author and author_email are updated each time you connect to Launchpad (with quickly release or quickly share) with your Launchpad real name and preferred email adress."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:800(para)
msgid "Notice that <application>Jotty</application> doesn't have a web page yet, so I just left that line commented out. Also, you don't have to increment the version number as quickly share and quickly release commands will do that for you."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:804(title)
msgid "Create and Test the Debian Archive"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:804(para)
msgid "<placeholder-1/> After personalizing the project, we are now ready to create the package. This is easily done by issuing the package command:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:807(programlisting) data/templates/ubuntu-application/help/tutorial.xml:1009(programlisting)
#, no-wrap
msgid "\nquickly package\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:810(para)
msgid "This command will take a little while to discover dependencies and create all the required archives, etc... It will also report some errors as we haven't created a PGP key, for instance. Nonetheless, when it is done, the package will be created. Using the file browser, you can see the created package next to the project directory:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:814(para)
msgid "Right now, the specific file we are interested in is \"jotty_0.1_all.deb\". To test it out, double click on it to open it in the Ubuntu Software Center:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:818(para)
msgid "Click \"Install\" to see how it installs onto your desktop. After chugging for a bit, you'll see that it is installed in the Applications Office category. If you customized your icon, you'll see that the it uses your custom icon as well."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:822(title)
msgid "Now that you have a package"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:822(para)
msgid "<placeholder-1/> Now that you've packaged your application, you can share the .deb file. However, if your users install your application this way, and you update the application, your users will have to find this out and reinstall the newer version themselves. This hassle can be avoided in Ubuntu by using Personal Package Archives (or PPAs). Distrubuting your applications in this manner is covered in section 4 (not yet available)."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:826(title)
msgid "<application>Quickly</application>: <application>Quickly</application> Command Reference"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:827(para)
msgid "The ubuntu-application template template contains the following commands."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:830(xref) data/templates/ubuntu-application/help/tutorial.xml:863(title) data/templates/ubuntu-application/help/tutorial.xml:864(title)
msgid "create"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:833(xref) data/templates/ubuntu-application/help/tutorial.xml:890(title)
msgid "add dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:836(xref) data/templates/ubuntu-application/help/tutorial.xml:935(title) data/templates/ubuntu-application/help/tutorial.xml:936(title)
msgid "edit"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:839(xref) data/templates/ubuntu-application/help/tutorial.xml:946(title) data/templates/ubuntu-application/help/tutorial.xml:947(title)
msgid "design"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:842(xref) data/templates/ubuntu-application/help/tutorial.xml:959(title) data/templates/ubuntu-application/help/tutorial.xml:960(title)
msgid "help"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:845(xref) data/templates/ubuntu-application/help/tutorial.xml:968(title) data/templates/ubuntu-application/help/tutorial.xml:969(title)
msgid "license"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:848(xref) data/templates/ubuntu-application/help/tutorial.xml:1007(title) data/templates/ubuntu-application/help/tutorial.xml:1008(title)
msgid "package"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:851(xref) data/templates/ubuntu-application/help/tutorial.xml:1024(title) data/templates/ubuntu-application/help/tutorial.xml:1025(title)
msgid "release"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:854(xref) data/templates/ubuntu-application/help/tutorial.xml:1059(title) data/templates/ubuntu-application/help/tutorial.xml:1060(title)
msgid "run"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:857(xref) data/templates/ubuntu-application/help/tutorial.xml:1069(title) data/templates/ubuntu-application/help/tutorial.xml:1070(title)
msgid "save"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:860(xref) data/templates/ubuntu-application/help/tutorial.xml:1085(title) data/templates/ubuntu-application/help/tutorial.xml:1087(title)
msgid "share"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:864(para) data/templates/ubuntu-application/help/tutorial.xml:891(para) data/templates/ubuntu-application/help/tutorial.xml:936(para) data/templates/ubuntu-application/help/tutorial.xml:947(para) data/templates/ubuntu-application/help/tutorial.xml:960(para) data/templates/ubuntu-application/help/tutorial.xml:969(para) data/templates/ubuntu-application/help/tutorial.xml:1008(para) data/templates/ubuntu-application/help/tutorial.xml:1025(para) data/templates/ubuntu-application/help/tutorial.xml:1060(para) data/templates/ubuntu-application/help/tutorial.xml:1070(para) data/templates/ubuntu-application/help/tutorial.xml:1086(para)
msgid "<placeholder-1/> Usage:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:866(programlisting)
#, no-wrap
msgid "\nquickly create ubuntu-application path/to/project_name"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:868(para)
msgid "where \"project_name\" is one or more words separated by an underscore and path/to can be any existing path."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:871(para)
msgid "This will create and run a new project, including Python code, <application>Glade</application> files, and packaging files to make the project work. After creating the project, get started by:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:877(para)
msgid "Changing your working directory to the new project:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:879(programlisting)
#, no-wrap
msgid "cd path/to/project_name"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:881(para)
msgid "Edit the UI with <application>Glade</application>:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:884(para)
msgid "Edit the Python code:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:891(title)
msgid "dialog"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:893(programlisting)
#, no-wrap
msgid "quickly add dialog dialog-name"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:894(para)
msgid "where dialog-name is one or more words seperated with a dash"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:895(para)
msgid "This will create:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:899(para)
msgid "A subclass of gtk.Dialog called DialogNameDialog in the module DialogNameDialog.py"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:902(para)
msgid "A <application>Glade</application> file called DialogNameDialog.ui in the ui directory"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:905(para)
msgid "A catalog file called dialog_name_dialog.xml also in the ui directory"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:908(para)
msgid "To edit the UI for the dialog, run:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:910(programlisting)
#, no-wrap
msgid "quickly design\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:912(para)
msgid "To edit the behavior, run:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:915(para)
msgid "To use the dialog you have to invoke it from another python file:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:919(programlisting)
#, no-wrap
msgid "\nImport the dialog\nimport DialogNameDialog\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:923(programlisting)
#, no-wrap
msgid "\nCreate an instance of the dialog\ndialog = DialogNameDialog.NewDialogNameDialog()\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:927(programlisting)
#, no-wrap
msgid "\nRun the dialog and hide the dialog\nresult = dialog.run()\ndialog.hide()\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:938(programlisting)
#, no-wrap
msgid "\nquickly edit\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:940(para)
msgid "A convenience command to open all of your python files in your project directory in your default editor, ready for editing."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:950(para)
msgid "Opens <application>Glade</application> UI editor so that you can edit the UI for dialogs and windows in your project. Note that you *must* open <application>Glade</application> in this manner for <application>Quickly</application> to work. If you try to open <application>Glade</application> directly, and the open the UI files, <application>Glade</application> will throw errors and won't open the files."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:961(programlisting)
#, no-wrap
msgid "\nquickly help\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:963(para)
msgid "Opens a web browser with the help index."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:970(programlisting)
#, no-wrap
msgid "\nquickly license <Your_Licence=\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:972(para)
msgid "Adds license to project files. Before using this command, you should:"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:976(para)
msgid "run \"quickly save\" in case something goes wrong"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:979(para)
msgid "Edit the file Copyright to include your authorship."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:981(para)
msgid "If you want to put your own <application>Quickly</application> unsupported Licence, remove and replace the tags ### BEGIN AUTOMATIC LICENCE GENERATION and ### END AUTOMATIC LICENCE GENERATION in it by your own licence."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:986(programlisting)
#, no-wrap
msgid "quickly license"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:986(programlisting)
#, no-wrap
msgid "quickly licence <License="
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:985(para)
msgid "Executes either <placeholder-1/> or <placeholder-2/> where <License= can be either: - GPL-3 (default) - GPL-2"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:992(para)
msgid "This will modify the Copyright file with the chosen licence (with GPL-3 by default). Updating previous chosen Licence if needed. If you previously removed the tags to add your own licence, it will leave it pristine. If no name is attributed to the Copyright, it will try to retrieve it from Launchpad (in <application>Quickly</application> release or <application>Quickly</application> share command only)"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:998(para)
msgid "Finally, this will copy the Copyright at the head of every files."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1000(para)
msgid "Note that if you don't run <application>Quickly</application> licence before calling <application>Quickly</application> release or <application>Quickly</application> share, this one will execute it for you and guess the copyright holder from your launchpad account if you didn't update it."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1011(para)
msgid "Creates a debian file (deb) from your project. Before running the package command you can edit the Icon and Category entry of *.desktop.in file, where * is the name of your project."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1015(para)
msgid "Note that if you didn't run <application>Quickly</application> release, <application>Quickly</application> share or <application>Quickly</application> change-lp-project you may miss the name, email in setup.py. You can edit them if you don't want to use any of these commands afterwards. Those changes are not a mandatory at all for testing purpose."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1026(programlisting)
#, no-wrap
msgid "\nquickly release\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1028(para)
msgid "Posts a release of your project to a PPA on launchpad so that users can install the application on their system."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1033(programlisting) data/templates/ubuntu-application/help/tutorial.xml:1036(programlisting)
#, no-wrap
msgid "quickly release <release_number="
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1031(para)
msgid "You can also execute: <placeholder-1/> of you don't want to use current release_number. The release_number must be a number."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1035(para)
msgid "<placeholder-1/> notes about changes where \"notes about changes\" is optional text describing what changes were made since the last save"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1039(para)
msgid "Before running <application>Quickly</application> release, you should: create your account and a project page on http://launchpad.net. You also have to add a PPA to your launchpad account."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1043(para)
msgid "Name, email and version setup.py will be automatically changed. (version will be <current_release= and bzr will commit and tagged. Once the release is done, <current_release= will be incremented by 0.1 to be ready for next release."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1048(para)
msgid "If you previously used <application>Quickly</application> shared <current_release=~publicX will be dropped to release <current_release= version (<current_release=~publicX <current_release=) You can modify the description and long description if you wish."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1054(programlisting)
#, no-wrap
msgid "quickly package"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1053(para)
msgid "You can run <placeholder-1/> and test your package to make sure it installs as expected. (This is not mandatory)"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1063(para)
msgid "Runs your application. This is the best way to try test it out while you are developing it. It starts up the main project window."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1071(programlisting)
#, no-wrap
msgid "\nquickly save notes about changes\n"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1073(para)
msgid "where \"notes about changes\" is optional text describing what changes were made since the last save."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1080(programlisting)
#, no-wrap
msgid "bzr help"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1076(para)
msgid "This command commits all changes since the last save to bzr. Note that it does not push changes to any back up location. If you need revert or otherwise use the revision control, use bzr directly: <placeholder-1/>"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1082(programlisting)
#, no-wrap
msgid "bzr whoami \"My Name <my@email.com>\""
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1082(para)
msgid "Before running \"save\" for the first time, you should tell bzr who you are: <placeholder-1/>"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1088(programlisting)
#, no-wrap
msgid "\nquickly share"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1090(para)
msgid "Updates your PPA with the the latest saved project changes."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1092(para)
msgid "Before running <application>Quickly</application> release, you should: create your account on http://launchpad.net. You also have to add a PPA to your launchpad account."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1096(para)
msgid "Name, email and version setup.py will be automatically changed. (version will be <current_release~publicX= where X will be incremented at each <application>Quickly</application> share execution) You can modify the description and long description if you wish."
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1106(title)
msgid "Links"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1110(ulink)
msgid "Ubuntu App Developer portal"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1113(ulink)
msgid "Blog series on <placeholder-1/>"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1116(ulink)
msgid "Language: Python Language Reference"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1119(ulink)
msgid "Core Library: Python 2.7 Library Reference"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1122(ulink)
msgid "UI Library: Python GTK+ 3 Tutorial"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1125(application)
msgid "Glade"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1125(ulink)
msgid "UI Editing: <placeholder-1/> User Documentation"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1128(ulink)
msgid "Editor: Gedit Help"
msgstr ""
#: data/templates/ubuntu-application/help/tutorial.xml:1131(ulink)
msgid "Version Control: Bazaar"
msgstr ""
#. Put one translator per line, in the form of NAME <EMAIL>, YEAR1, YEAR2
#: data/templates/ubuntu-application/help/tutorial.xml:0(None)
msgid "translator-credits"
msgstr ""
|