Changeset 60 in tspsg-svn
- Timestamp:
- Sep 2, 2009, 2:37:39 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/i18n/en.ts
r58 r60 31 31 </message> 32 32 <message> 33 <location filename="../src/tspmodel.cpp" line="15 2"/>34 <location filename="../src/tspmodel.cpp" line="16 0"/>35 <location filename="../src/tspmodel.cpp" line="18 1"/>36 <location filename="../src/tspmodel.cpp" line="20 1"/>37 <location filename="../src/tspmodel.cpp" line="2 14"/>38 <location filename="../src/tspmodel.cpp" line="2 47"/>39 <location filename="../src/tspmodel.cpp" line="2 56"/>33 <location filename="../src/tspmodel.cpp" line="153"/> 34 <location filename="../src/tspmodel.cpp" line="163"/> 35 <location filename="../src/tspmodel.cpp" line="187"/> 36 <location filename="../src/tspmodel.cpp" line="208"/> 37 <location filename="../src/tspmodel.cpp" line="222"/> 38 <location filename="../src/tspmodel.cpp" line="257"/> 39 <location filename="../src/tspmodel.cpp" line="267"/> 40 40 <source>Task Load</source> 41 41 <translation type="unfinished"></translation> 42 42 </message> 43 43 <message> 44 <location filename="../src/tspmodel.cpp" line="15 2"/>45 <location filename="../src/tspmodel.cpp" line="18 1"/>46 <location filename="../src/tspmodel.cpp" line="20 1"/>47 <location filename="../src/tspmodel.cpp" line="2 14"/>48 <location filename="../src/tspmodel.cpp" line="2 47"/>49 <location filename="../src/tspmodel.cpp" line="2 56"/>44 <location filename="../src/tspmodel.cpp" line="153"/> 45 <location filename="../src/tspmodel.cpp" line="187"/> 46 <location filename="../src/tspmodel.cpp" line="208"/> 47 <location filename="../src/tspmodel.cpp" line="222"/> 48 <location filename="../src/tspmodel.cpp" line="257"/> 49 <location filename="../src/tspmodel.cpp" line="267"/> 50 50 <source>Unable to load task:</source> 51 51 <translation type="unfinished"></translation> 52 52 </message> 53 53 <message> 54 <location filename="../src/tspmodel.cpp" line="16 0"/>54 <location filename="../src/tspmodel.cpp" line="163"/> 55 55 <source>Unable to open task file. 56 56 Error: %1</source> … … 58 58 </message> 59 59 <message> 60 <location filename="../src/tspmodel.cpp" line="18 1"/>60 <location filename="../src/tspmodel.cpp" line="187"/> 61 61 <source>Unknown file format or file is corrupted.</source> 62 62 <translation type="unfinished"></translation> 63 63 </message> 64 64 <message> 65 <location filename="../src/tspmodel.cpp" line="20 1"/>66 <location filename="../src/tspmodel.cpp" line="2 47"/>65 <location filename="../src/tspmodel.cpp" line="208"/> 66 <location filename="../src/tspmodel.cpp" line="257"/> 67 67 <source>File version is newer than application supports. 68 68 Please, try to update application.</source> … … 70 70 </message> 71 71 <message> 72 <location filename="../src/tspmodel.cpp" line="2 14"/>73 <location filename="../src/tspmodel.cpp" line="2 56"/>72 <location filename="../src/tspmodel.cpp" line="222"/> 73 <location filename="../src/tspmodel.cpp" line="267"/> 74 74 <source>Unexpected data read. 75 75 File is possibly corrupted.</source> … … 77 77 </message> 78 78 <message> 79 <location filename="../src/tspmodel.cpp" line=" 289"/>80 <location filename="../src/tspmodel.cpp" line=" 295"/>81 <location filename="../src/tspmodel.cpp" line="3 02"/>82 <location filename="../src/tspmodel.cpp" line="3 09"/>83 <location filename="../src/tspmodel.cpp" line="3 16"/>84 <location filename="../src/tspmodel.cpp" line="3 23"/>85 <location filename="../src/tspmodel.cpp" line="3 30"/>86 <location filename="../src/tspmodel.cpp" line="3 40"/>79 <location filename="../src/tspmodel.cpp" line="303"/> 80 <location filename="../src/tspmodel.cpp" line="311"/> 81 <location filename="../src/tspmodel.cpp" line="319"/> 82 <location filename="../src/tspmodel.cpp" line="327"/> 83 <location filename="../src/tspmodel.cpp" line="335"/> 84 <location filename="../src/tspmodel.cpp" line="343"/> 85 <location filename="../src/tspmodel.cpp" line="351"/> 86 <location filename="../src/tspmodel.cpp" line="362"/> 87 87 <source>Task Save</source> 88 88 <translation type="unfinished"></translation> 89 89 </message> 90 90 <message> 91 <location filename="../src/tspmodel.cpp" line=" 289"/>91 <location filename="../src/tspmodel.cpp" line="303"/> 92 92 <source>Unable to create task file. 93 93 Error: %1 … … 96 96 </message> 97 97 <message> 98 <location filename="../src/tspmodel.cpp" line=" 295"/>99 <location filename="../src/tspmodel.cpp" line="3 02"/>100 <location filename="../src/tspmodel.cpp" line="3 09"/>101 <location filename="../src/tspmodel.cpp" line="3 16"/>102 <location filename="../src/tspmodel.cpp" line="3 23"/>103 <location filename="../src/tspmodel.cpp" line="3 30"/>104 <location filename="../src/tspmodel.cpp" line="3 40"/>98 <location filename="../src/tspmodel.cpp" line="311"/> 99 <location filename="../src/tspmodel.cpp" line="319"/> 100 <location filename="../src/tspmodel.cpp" line="327"/> 101 <location filename="../src/tspmodel.cpp" line="335"/> 102 <location filename="../src/tspmodel.cpp" line="343"/> 103 <location filename="../src/tspmodel.cpp" line="351"/> 104 <location filename="../src/tspmodel.cpp" line="362"/> 105 105 <source>Unable to save task. 106 106 Error: %1</source> … … 126 126 </message> 127 127 <message> 128 <location filename="../src/tspsolver.cpp" line="2 09"/>128 <location filename="../src/tspsolver.cpp" line="217"/> 129 129 <source>Solution Result</source> 130 130 <translation type="unfinished"></translation> 131 131 </message> 132 132 <message> 133 <location filename="../src/tspsolver.cpp" line="2 09"/>133 <location filename="../src/tspsolver.cpp" line="217"/> 134 134 <source>Unable to find solution. 135 135 Maybe, this task has no solutions.</source> 136 <translation type="unfinished"></translation> 137 </message> 138 <message> 139 <location filename="../src/tspsolver.cpp" line="235"/> 140 <location filename="../src/tspsolver.cpp" line="237"/> 141 <location filename="../src/tspsolver.cpp" line="240"/> 142 <source>City %1</source> 136 143 <translation type="unfinished"></translation> 137 144 </message> … … 140 147 <name>MainWindow</name> 141 148 <message> 142 <location filename="../src/mainwindow.cpp" line="5 51"/>143 <location filename="../src/mainwindow.cpp" line="5 60"/>149 <location filename="../src/mainwindow.cpp" line="546"/> 150 <location filename="../src/mainwindow.cpp" line="555"/> 144 151 <source>Language change</source> 145 152 <translation type="unfinished"></translation> … … 184 191 <message> 185 192 <location filename="../src/mainwindow.cpp" line="237"/> 186 <location filename="../src/mainwindow.cpp" line="2 93"/>187 <location filename="../src/mainwindow.cpp" line="33 7"/>193 <location filename="../src/mainwindow.cpp" line="286"/> 194 <location filename="../src/mainwindow.cpp" line="330"/> 188 195 <source>All Files</source> 189 196 <translation type="unfinished"></translation> 190 197 </message> 191 198 <message> 192 <location filename="../src/mainwindow.cpp" line="28 7"/>199 <location filename="../src/mainwindow.cpp" line="280"/> 193 200 <source>PDF Files</source> 194 201 <translation type="unfinished"></translation> 195 202 </message> 196 203 <message> 197 <location filename="../src/mainwindow.cpp" line="28 9"/>204 <location filename="../src/mainwindow.cpp" line="282"/> 198 205 <source>HTML Files</source> 199 206 <translation type="unfinished"></translation> 200 207 </message> 201 208 <message> 202 <location filename="../src/mainwindow.cpp" line="2 91"/>209 <location filename="../src/mainwindow.cpp" line="284"/> 203 210 <source>OpenDocument Files</source> 204 211 <translation type="unfinished"></translation> 205 212 </message> 206 213 <message> 207 <location filename="../src/mainwindow.cpp" line="3 36"/>214 <location filename="../src/mainwindow.cpp" line="329"/> 208 215 <source>%1 Task File</source> 209 216 <translation type="unfinished"></translation> 210 217 </message> 211 218 <message> 212 <location filename="../src/mainwindow.cpp" line="3 67"/>219 <location filename="../src/mainwindow.cpp" line="357"/> 213 220 <source>Settings Changed</source> 214 221 <translation type="unfinished"></translation> 215 222 </message> 216 223 <message> 217 <location filename="../src/mainwindow.cpp" line="3 67"/>224 <location filename="../src/mainwindow.cpp" line="357"/> 218 225 <source>You have changed color settings. 219 226 Do you wish to apply them to current solution text?</source> … … 221 228 </message> 222 229 <message> 223 <location filename="../src/mainwindow.cpp" line="4 49"/>230 <location filename="../src/mainwindow.cpp" line="439"/> 224 231 <source>Data error</source> 225 232 <translation type="unfinished"></translation> 226 233 </message> 227 234 <message> 228 <location filename="../src/mainwindow.cpp" line="4 49"/>235 <location filename="../src/mainwindow.cpp" line="439"/> 229 236 <source>Error in cell [Row %1; Column %2]: Invalid data format.</source> 230 237 <translation type="unfinished"></translation> 231 238 </message> 232 239 <message> 240 <location filename="../src/mainwindow.cpp" line="452"/> 241 <source>Variant #%1</source> 242 <translation type="unfinished"></translation> 243 </message> 244 <message> 245 <location filename="../src/mainwindow.cpp" line="453"/> 246 <source>Task:</source> 247 <translation type="unfinished"></translation> 248 </message> 249 <message> 250 <location filename="../src/mainwindow.cpp" line="456"/> 251 <location filename="../src/mainwindow.cpp" line="487"/> 252 <source>Solution of Variant #%1 task</source> 253 <translation type="unfinished"></translation> 254 </message> 255 <message> 233 256 <location filename="../src/mainwindow.cpp" line="462"/> 234 <source>Variant #%1</source>235 <translation type="unfinished"></translation>236 </message>237 <message>238 <location filename="../src/mainwindow.cpp" line="463"/>239 <source>Task:</source>240 <translation type="unfinished"></translation>241 </message>242 <message>243 <location filename="../src/mainwindow.cpp" line="466"/>244 <location filename="../src/mainwindow.cpp" line="492"/>245 <source>Solution of Variant #%1 task</source>246 <translation type="unfinished"></translation>247 </message>248 <message>249 <location filename="../src/mainwindow.cpp" line="473"/>250 257 <source>Step #%1</source> 251 258 <translation type="unfinished"></translation> 252 259 </message> 253 260 <message> 254 <location filename="../src/mainwindow.cpp" line="4 76"/>261 <location filename="../src/mainwindow.cpp" line="465"/> 255 262 <source>This step has alternate candidates for branching.</source> 256 263 <translation type="unfinished"></translation> 257 264 </message> 258 265 <message> 259 <location filename="../src/mainwindow.cpp" line="4 88"/>266 <location filename="../src/mainwindow.cpp" line="477"/> 260 267 <source>Optimal path:</source> 261 268 <translation type="unfinished"></translation> 262 269 </message> 263 270 <message> 264 <location filename="../src/mainwindow.cpp" line="490"/> 271 <location filename="../src/mainwindow.cpp" line="479"/> 272 <source>Resulting path:</source> 273 <translation type="unfinished"></translation> 274 </message> 275 <message> 276 <location filename="../src/mainwindow.cpp" line="481"/> 265 277 <source>The price is <b>%1</b> units.</source> 266 278 <translation type="unfinished"></translation> 267 279 </message> 268 280 <message> 269 <location filename="../src/mainwindow.cpp" line="551"/> 281 <location filename="../src/mainwindow.cpp" line="484"/> 282 <source><b>WARNING!!!</b><br>This result is a record, but it may not be optimal.<br>Iterations need to be continued to check whether this result is optimal or get an optimal one.</source> 283 <translation type="unfinished"></translation> 284 </message> 285 <message> 286 <location filename="../src/mainwindow.cpp" line="546"/> 270 287 <source>Language will be autodetected on next application start.</source> 271 288 <translation type="unfinished"></translation> 272 289 </message> 273 290 <message> 274 <location filename="../src/mainwindow.cpp" line="5 60"/>291 <location filename="../src/mainwindow.cpp" line="555"/> 275 292 <source>You have language autodetection turned on. 276 293 It needs to be off. … … 279 296 </message> 280 297 <message> 298 <location filename="../src/mainwindow.cpp" line="255"/> 299 <location filename="../src/mainwindow.cpp" line="560"/> 281 300 <location filename="../src/mainwindow.h" line="79"/> 282 <location filename="../src/mainwindow.cpp" line="259"/>283 <location filename="../src/mainwindow.cpp" line="565"/>284 301 <source>Untitled</source> 285 302 <translation type="unfinished"></translation> … … 662 679 <name>SettingsDialog</name> 663 680 <message> 664 <location filename="../ui/settingsdialog.ui" line=" 14"/>681 <location filename="../ui/settingsdialog.ui" line="6"/> 665 682 <source>Preferences</source> 666 683 <translation type="unfinished"></translation> 667 684 </message> 668 685 <message> 669 <location filename="../ui/settingsdialog.ui" line=" 268"/>686 <location filename="../ui/settingsdialog.ui" line="177"/> 670 687 <source>Random values:</source> 671 688 <translation type="unfinished"></translation> 672 689 </message> 673 690 <message> 674 <location filename="../ui/settingsdialog.ui" line=" 276"/>691 <location filename="../ui/settingsdialog.ui" line="185"/> 675 692 <source>&Minimal:</source> 676 693 <translation type="unfinished"></translation> 677 694 </message> 678 695 <message> 679 <location filename="../ui/settingsdialog.ui" line="2 95"/>696 <location filename="../ui/settingsdialog.ui" line="204"/> 680 697 <source>Minimum for random number generation</source> 681 698 <translation type="unfinished"></translation> 682 699 </message> 683 700 <message> 684 <location filename="../ui/settingsdialog.ui" line=" 306"/>701 <location filename="../ui/settingsdialog.ui" line="215"/> 685 702 <source>Ma&ximal:</source> 686 703 <translation type="unfinished"></translation> 687 704 </message> 688 705 <message> 689 <location filename="../ui/settingsdialog.ui" line=" 325"/>706 <location filename="../ui/settingsdialog.ui" line="234"/> 690 707 <source>Maximum for random number generation</source> 691 708 <translation type="unfinished"></translation> 692 709 </message> 693 710 <message> 694 <location filename="../ui/settingsdialog.ui" line=" 343"/>711 <location filename="../ui/settingsdialog.ui" line="244"/> 695 712 <source>Output settings:</source> 696 713 <translation type="unfinished"></translation> 697 714 </message> 698 715 <message> 699 <location filename="../ui/settingsdialog.ui" line=" 381"/>716 <location filename="../ui/settingsdialog.ui" line="266"/> 700 717 <source>Font color for printing</source> 701 718 <translation type="unfinished"></translation> 702 719 </message> 703 720 <message> 704 <location filename="../ui/settingsdialog.ui" line=" 384"/>721 <location filename="../ui/settingsdialog.ui" line="269"/> 705 722 <source>&Color...</source> 706 723 <translation type="unfinished"></translation> 707 724 </message> 708 725 <message> 709 <location filename="../ui/settingsdialog.ui" line=" 394"/>726 <location filename="../ui/settingsdialog.ui" line="282"/> 710 727 <source>Automatically resize rows and columns to their contents</source> 711 728 <translation type="unfinished"></translation> 712 729 </message> 713 730 <message> 714 <location filename="../ui/settingsdialog.ui" line=" 397"/>731 <location filename="../ui/settingsdialog.ui" line="285"/> 715 732 <source>Autosize of rows and columns</source> 716 733 <translation type="unfinished"></translation> 717 734 </message> 718 735 <message> 719 <location filename="../ui/settingsdialog.ui" line=" 358"/>736 <location filename="../ui/settingsdialog.ui" line="251"/> 720 737 <source>Font face for printing</source> 721 738 <translation type="unfinished"></translation> 722 739 </message> 723 740 <message> 724 <location filename="../ui/settingsdialog.ui" line=" 361"/>741 <location filename="../ui/settingsdialog.ui" line="254"/> 725 742 <source>&Font...</source> 726 743 <translation type="unfinished"></translation> 727 744 </message> 728 745 <message> 729 <location filename="../ui/settingsdialog.ui" line="1 65"/>730 <location filename="../ui/settingsdialog.ui" line="1 71"/>746 <location filename="../ui/settingsdialog.ui" line="117"/> 747 <location filename="../ui/settingsdialog.ui" line="123"/> 731 748 <source>Help</source> 732 749 <translation type="unfinished"></translation> 733 750 </message> 734 751 <message> 735 <location filename="../ui/settingsdialog.ui" line="1 68"/>752 <location filename="../ui/settingsdialog.ui" line="120"/> 736 753 <source>Get preferences help</source> 737 754 <translation type="unfinished"></translation> 738 755 </message> 739 756 <message> 740 <location filename="../ui/settingsdialog.ui" line=" 136"/>757 <location filename="../ui/settingsdialog.ui" line="96"/> 741 758 <source>Save new preferences</source> 742 759 <translation type="unfinished"></translation> 743 760 </message> 744 761 <message> 745 <location filename="../ui/settingsdialog.ui" line=" 139"/>762 <location filename="../ui/settingsdialog.ui" line="99"/> 746 763 <source>&OK</source> 747 764 <translation type="unfinished"></translation> 748 765 </message> 749 766 <message> 750 <location filename="../ui/settingsdialog.ui" line=" 113"/>767 <location filename="../ui/settingsdialog.ui" line="81"/> 751 768 <source>Close without saving preferences</source> 752 769 <translation type="unfinished"></translation> 753 770 </message> 754 771 <message> 755 <location filename="../ui/settingsdialog.ui" line=" 116"/>772 <location filename="../ui/settingsdialog.ui" line="84"/> 756 773 <source>&Cancel</source> 757 774 <translation type="unfinished"></translation> … … 768 785 </message> 769 786 <message> 770 <location filename="../src/settingsdialog.cpp" line="10 1"/>787 <location filename="../src/settingsdialog.cpp" line="103"/> 771 788 <source>Hover mouse pointer over dialog elements to get additional help</source> 772 789 <translation type="unfinished"></translation> -
trunk/i18n/ru.ts
r58 r60 32 32 </message> 33 33 <message> 34 <location filename="../src/tspmodel.cpp" line="15 2"/>35 <location filename="../src/tspmodel.cpp" line="16 0"/>36 <location filename="../src/tspmodel.cpp" line="18 1"/>37 <location filename="../src/tspmodel.cpp" line="20 1"/>38 <location filename="../src/tspmodel.cpp" line="2 14"/>39 <location filename="../src/tspmodel.cpp" line="2 47"/>40 <location filename="../src/tspmodel.cpp" line="2 56"/>34 <location filename="../src/tspmodel.cpp" line="153"/> 35 <location filename="../src/tspmodel.cpp" line="163"/> 36 <location filename="../src/tspmodel.cpp" line="187"/> 37 <location filename="../src/tspmodel.cpp" line="208"/> 38 <location filename="../src/tspmodel.cpp" line="222"/> 39 <location filename="../src/tspmodel.cpp" line="257"/> 40 <location filename="../src/tspmodel.cpp" line="267"/> 41 41 <source>Task Load</source> 42 42 <translation>Загрузка условия</translation> 43 43 </message> 44 44 <message> 45 <location filename="../src/tspmodel.cpp" line="15 2"/>46 <location filename="../src/tspmodel.cpp" line="18 1"/>47 <location filename="../src/tspmodel.cpp" line="20 1"/>48 <location filename="../src/tspmodel.cpp" line="2 14"/>49 <location filename="../src/tspmodel.cpp" line="2 47"/>50 <location filename="../src/tspmodel.cpp" line="2 56"/>45 <location filename="../src/tspmodel.cpp" line="153"/> 46 <location filename="../src/tspmodel.cpp" line="187"/> 47 <location filename="../src/tspmodel.cpp" line="208"/> 48 <location filename="../src/tspmodel.cpp" line="222"/> 49 <location filename="../src/tspmodel.cpp" line="257"/> 50 <location filename="../src/tspmodel.cpp" line="267"/> 51 51 <source>Unable to load task:</source> 52 52 <translation>Невозможно загрузить условие:</translation> 53 53 </message> 54 54 <message> 55 <location filename="../src/tspmodel.cpp" line="16 0"/>55 <location filename="../src/tspmodel.cpp" line="163"/> 56 56 <source>Unable to open task file. 57 57 Error: %1</source> … … 60 60 </message> 61 61 <message> 62 <location filename="../src/tspmodel.cpp" line="18 1"/>62 <location filename="../src/tspmodel.cpp" line="187"/> 63 63 <source>Unknown file format or file is corrupted.</source> 64 64 <translation>Неизвестный формат файла или файл поврежден.</translation> 65 65 </message> 66 66 <message> 67 <location filename="../src/tspmodel.cpp" line="20 1"/>68 <location filename="../src/tspmodel.cpp" line="2 47"/>67 <location filename="../src/tspmodel.cpp" line="208"/> 68 <location filename="../src/tspmodel.cpp" line="257"/> 69 69 <source>File version is newer than application supports. 70 70 Please, try to update application.</source> … … 73 73 </message> 74 74 <message> 75 <location filename="../src/tspmodel.cpp" line="2 14"/>76 <location filename="../src/tspmodel.cpp" line="2 56"/>75 <location filename="../src/tspmodel.cpp" line="222"/> 76 <location filename="../src/tspmodel.cpp" line="267"/> 77 77 <source>Unexpected data read. 78 78 File is possibly corrupted.</source> … … 81 81 </message> 82 82 <message> 83 <location filename="../src/tspmodel.cpp" line=" 289"/>84 <location filename="../src/tspmodel.cpp" line=" 295"/>85 <location filename="../src/tspmodel.cpp" line="3 02"/>86 <location filename="../src/tspmodel.cpp" line="3 09"/>87 <location filename="../src/tspmodel.cpp" line="3 16"/>88 <location filename="../src/tspmodel.cpp" line="3 23"/>89 <location filename="../src/tspmodel.cpp" line="3 30"/>90 <location filename="../src/tspmodel.cpp" line="3 40"/>83 <location filename="../src/tspmodel.cpp" line="303"/> 84 <location filename="../src/tspmodel.cpp" line="311"/> 85 <location filename="../src/tspmodel.cpp" line="319"/> 86 <location filename="../src/tspmodel.cpp" line="327"/> 87 <location filename="../src/tspmodel.cpp" line="335"/> 88 <location filename="../src/tspmodel.cpp" line="343"/> 89 <location filename="../src/tspmodel.cpp" line="351"/> 90 <location filename="../src/tspmodel.cpp" line="362"/> 91 91 <source>Task Save</source> 92 92 <translation>Сохранение условия</translation> 93 93 </message> 94 94 <message> 95 <location filename="../src/tspmodel.cpp" line=" 289"/>95 <location filename="../src/tspmodel.cpp" line="303"/> 96 96 <source>Unable to create task file. 97 97 Error: %1 … … 102 102 </message> 103 103 <message> 104 <location filename="../src/tspmodel.cpp" line=" 295"/>105 <location filename="../src/tspmodel.cpp" line="3 02"/>106 <location filename="../src/tspmodel.cpp" line="3 09"/>107 <location filename="../src/tspmodel.cpp" line="3 16"/>108 <location filename="../src/tspmodel.cpp" line="3 23"/>109 <location filename="../src/tspmodel.cpp" line="3 30"/>110 <location filename="../src/tspmodel.cpp" line="3 40"/>104 <location filename="../src/tspmodel.cpp" line="311"/> 105 <location filename="../src/tspmodel.cpp" line="319"/> 106 <location filename="../src/tspmodel.cpp" line="327"/> 107 <location filename="../src/tspmodel.cpp" line="335"/> 108 <location filename="../src/tspmodel.cpp" line="343"/> 109 <location filename="../src/tspmodel.cpp" line="351"/> 110 <location filename="../src/tspmodel.cpp" line="362"/> 111 111 <source>Unable to save task. 112 112 Error: %1</source> … … 133 133 </message> 134 134 <message> 135 <location filename="../src/tspsolver.cpp" line="2 09"/>135 <location filename="../src/tspsolver.cpp" line="217"/> 136 136 <source>Solution Result</source> 137 137 <translation>Результат решения</translation> 138 138 </message> 139 139 <message> 140 <location filename="../src/tspsolver.cpp" line="2 09"/>140 <location filename="../src/tspsolver.cpp" line="217"/> 141 141 <source>Unable to find solution. 142 142 Maybe, this task has no solutions.</source> … … 144 144 Возможно, у задачи нет решения.</translation> 145 145 </message> 146 <message> 147 <location filename="../src/tspsolver.cpp" line="235"/> 148 <location filename="../src/tspsolver.cpp" line="237"/> 149 <location filename="../src/tspsolver.cpp" line="240"/> 150 <source>City %1</source> 151 <translation>Город %1</translation> 152 </message> 146 153 </context> 147 154 <context> 148 155 <name>MainWindow</name> 149 156 <message> 150 <location filename="../src/mainwindow.cpp" line="5 51"/>151 <location filename="../src/mainwindow.cpp" line="5 60"/>157 <location filename="../src/mainwindow.cpp" line="546"/> 158 <location filename="../src/mainwindow.cpp" line="555"/> 152 159 <source>Language change</source> 153 160 <translation>Смена языка</translation> … … 176 183 <message> 177 184 <location filename="../src/mainwindow.cpp" line="237"/> 178 <location filename="../src/mainwindow.cpp" line="2 93"/>179 <location filename="../src/mainwindow.cpp" line="33 7"/>185 <location filename="../src/mainwindow.cpp" line="286"/> 186 <location filename="../src/mainwindow.cpp" line="330"/> 180 187 <source>All Files</source> 181 188 <translation>Все файлы</translation> … … 198 205 </message> 199 206 <message> 200 <location filename="../src/mainwindow.cpp" line="28 7"/>207 <location filename="../src/mainwindow.cpp" line="280"/> 201 208 <source>PDF Files</source> 202 209 <translation>Файли PDF</translation> 203 210 </message> 204 211 <message> 205 <location filename="../src/mainwindow.cpp" line="28 9"/>212 <location filename="../src/mainwindow.cpp" line="282"/> 206 213 <source>HTML Files</source> 207 214 <translation>Файлы HTML</translation> 208 215 </message> 209 216 <message> 210 <location filename="../src/mainwindow.cpp" line="2 91"/>217 <location filename="../src/mainwindow.cpp" line="284"/> 211 218 <source>OpenDocument Files</source> 212 219 <translation>Файлы OpenDocument</translation> 213 220 </message> 214 221 <message> 215 <location filename="../src/mainwindow.cpp" line="3 36"/>222 <location filename="../src/mainwindow.cpp" line="329"/> 216 223 <source>%1 Task File</source> 217 224 <translation>Файл условия %1</translation> 218 225 </message> 219 226 <message> 220 <location filename="../src/mainwindow.cpp" line="3 67"/>227 <location filename="../src/mainwindow.cpp" line="357"/> 221 228 <source>Settings Changed</source> 222 229 <translation>Параметры изменены</translation> 223 230 </message> 224 231 <message> 225 <location filename="../src/mainwindow.cpp" line="3 67"/>232 <location filename="../src/mainwindow.cpp" line="357"/> 226 233 <source>You have changed color settings. 227 234 Do you wish to apply them to current solution text?</source> … … 230 237 </message> 231 238 <message> 232 <location filename="../src/mainwindow.cpp" line="4 49"/>239 <location filename="../src/mainwindow.cpp" line="439"/> 233 240 <source>Data error</source> 234 241 <translation>Ошибка в данных</translation> 235 242 </message> 236 243 <message> 237 <location filename="../src/mainwindow.cpp" line="4 49"/>244 <location filename="../src/mainwindow.cpp" line="439"/> 238 245 <source>Error in cell [Row %1; Column %2]: Invalid data format.</source> 239 246 <translation>Ошибка в ячейке [Строка %1; Колонка %2]: Неверный формат данных.</translation> 240 247 </message> 241 248 <message> 242 <location filename="../src/mainwindow.cpp" line="4 62"/>249 <location filename="../src/mainwindow.cpp" line="452"/> 243 250 <source>Variant #%1</source> 244 251 <translation>Вариант №%1</translation> 245 252 </message> 246 253 <message> 247 <location filename="../src/mainwindow.cpp" line="4 63"/>254 <location filename="../src/mainwindow.cpp" line="453"/> 248 255 <source>Task:</source> 249 256 <translation>Условие:</translation> 250 257 </message> 251 258 <message> 252 <location filename="../src/mainwindow.cpp" line="4 66"/>253 <location filename="../src/mainwindow.cpp" line="4 92"/>259 <location filename="../src/mainwindow.cpp" line="456"/> 260 <location filename="../src/mainwindow.cpp" line="487"/> 254 261 <source>Solution of Variant #%1 task</source> 255 262 <translation>Решение варианта №%1</translation> 256 263 </message> 257 264 <message> 258 <location filename="../src/mainwindow.cpp" line="4 73"/>265 <location filename="../src/mainwindow.cpp" line="462"/> 259 266 <source>Step #%1</source> 260 267 <translation>Шаг №%1</translation> 261 268 </message> 262 269 <message> 263 <location filename="../src/mainwindow.cpp" line="4 76"/>270 <location filename="../src/mainwindow.cpp" line="465"/> 264 271 <source>This step has alternate candidates for branching.</source> 265 272 <translation>У этого шага есть альтернативные кандидаты на ветвление.</translation> 266 273 </message> 267 274 <message> 268 <location filename="../src/mainwindow.cpp" line="4 88"/>275 <location filename="../src/mainwindow.cpp" line="477"/> 269 276 <source>Optimal path:</source> 270 277 <translation>Оптимальный путь:</translation> 271 278 </message> 272 279 <message> 273 <location filename="../src/mainwindow.cpp" line="490"/> 280 <location filename="../src/mainwindow.cpp" line="479"/> 281 <source>Resulting path:</source> 282 <translation>Найденный путь:</translation> 283 </message> 284 <message> 285 <location filename="../src/mainwindow.cpp" line="481"/> 274 286 <source>The price is <b>%1</b> units.</source> 275 287 <translation>Стоимость - <b>%1</b> единиц.</translation> 276 288 </message> 277 289 <message> 278 <location filename="../src/mainwindow.cpp" line="551"/> 290 <location filename="../src/mainwindow.cpp" line="484"/> 291 <source><b>WARNING!!!</b><br>This result is a record, but it may not be optimal.<br>Iterations need to be continued to check whether this result is optimal or get an optimal one.</source> 292 <translation>ВНИМАНИЕ!!!<br>Найденное решение является рекордом, но может оказаться не оптимальным.<br>Для получения оптимального решения, или проверки текущего на оптимальность, требуется продолжить итерации.</translation> 293 </message> 294 <message> 295 <location filename="../src/mainwindow.cpp" line="546"/> 279 296 <source>Language will be autodetected on next application start.</source> 280 297 <translation>Язык будет автоматически определен при следующем запуске приложения.</translation> 281 298 </message> 282 299 <message> 283 <location filename="../src/mainwindow.cpp" line="5 60"/>300 <location filename="../src/mainwindow.cpp" line="555"/> 284 301 <source>You have language autodetection turned on. 285 302 It needs to be off. … … 290 307 </message> 291 308 <message> 309 <location filename="../src/mainwindow.cpp" line="255"/> 310 <location filename="../src/mainwindow.cpp" line="560"/> 292 311 <location filename="../src/mainwindow.h" line="79"/> 293 <location filename="../src/mainwindow.cpp" line="259"/>294 <location filename="../src/mainwindow.cpp" line="565"/>295 312 <source>Untitled</source> 296 313 <translation>Без имени</translation> … … 673 690 <name>SettingsDialog</name> 674 691 <message> 675 <location filename="../ui/settingsdialog.ui" line=" 14"/>692 <location filename="../ui/settingsdialog.ui" line="6"/> 676 693 <source>Preferences</source> 677 694 <translation>Параметры</translation> 678 695 </message> 679 696 <message> 680 <location filename="../ui/settingsdialog.ui" line=" 268"/>697 <location filename="../ui/settingsdialog.ui" line="177"/> 681 698 <source>Random values:</source> 682 699 <translation>Случайные значения:</translation> 683 700 </message> 684 701 <message> 685 <location filename="../ui/settingsdialog.ui" line=" 276"/>702 <location filename="../ui/settingsdialog.ui" line="185"/> 686 703 <source>&Minimal:</source> 687 704 <translation>&Минимум:</translation> 688 705 </message> 689 706 <message> 690 <location filename="../ui/settingsdialog.ui" line="2 95"/>707 <location filename="../ui/settingsdialog.ui" line="204"/> 691 708 <source>Minimum for random number generation</source> 692 709 <translation>Нижняя граница для генерации случайных значений</translation> 693 710 </message> 694 711 <message> 695 <location filename="../ui/settingsdialog.ui" line=" 306"/>712 <location filename="../ui/settingsdialog.ui" line="215"/> 696 713 <source>Ma&ximal:</source> 697 714 <translation>М&аксимум:</translation> 698 715 </message> 699 716 <message> 700 <location filename="../ui/settingsdialog.ui" line=" 325"/>717 <location filename="../ui/settingsdialog.ui" line="234"/> 701 718 <source>Maximum for random number generation</source> 702 719 <translation>Верхняя граница для генерации случайных значений</translation> 703 720 </message> 704 721 <message> 705 <location filename="../ui/settingsdialog.ui" line=" 343"/>722 <location filename="../ui/settingsdialog.ui" line="244"/> 706 723 <source>Output settings:</source> 707 724 <translation>Параметры вывода:</translation> 708 725 </message> 709 726 <message> 710 <location filename="../ui/settingsdialog.ui" line=" 381"/>727 <location filename="../ui/settingsdialog.ui" line="266"/> 711 728 <source>Font color for printing</source> 712 729 <translation>Цвет шрифта, используемого при печати</translation> 713 730 </message> 714 731 <message> 715 <location filename="../ui/settingsdialog.ui" line=" 384"/>732 <location filename="../ui/settingsdialog.ui" line="269"/> 716 733 <source>&Color...</source> 717 734 <translation>&Цвет...</translation> 718 735 </message> 719 736 <message> 720 <location filename="../ui/settingsdialog.ui" line=" 394"/>737 <location filename="../ui/settingsdialog.ui" line="282"/> 721 738 <source>Automatically resize rows and columns to their contents</source> 722 739 <translation>Автоматически подганять размер строк и колонок под их содержание</translation> 723 740 </message> 724 741 <message> 725 <location filename="../ui/settingsdialog.ui" line=" 397"/>742 <location filename="../ui/settingsdialog.ui" line="285"/> 726 743 <source>Autosize of rows and columns</source> 727 744 <translation>Авторазмер строк и колонок</translation> 728 745 </message> 729 746 <message> 730 <location filename="../ui/settingsdialog.ui" line=" 358"/>747 <location filename="../ui/settingsdialog.ui" line="251"/> 731 748 <source>Font face for printing</source> 732 749 <translation>Вид шрифта, используемого при печати</translation> 733 750 </message> 734 751 <message> 735 <location filename="../ui/settingsdialog.ui" line=" 361"/>752 <location filename="../ui/settingsdialog.ui" line="254"/> 736 753 <source>&Font...</source> 737 754 <translation>&Шрифт...</translation> 738 755 </message> 739 756 <message> 740 <location filename="../ui/settingsdialog.ui" line="1 65"/>741 <location filename="../ui/settingsdialog.ui" line="1 71"/>757 <location filename="../ui/settingsdialog.ui" line="117"/> 758 <location filename="../ui/settingsdialog.ui" line="123"/> 742 759 <source>Help</source> 743 760 <translation>Помощь</translation> 744 761 </message> 745 762 <message> 746 <location filename="../ui/settingsdialog.ui" line="1 68"/>763 <location filename="../ui/settingsdialog.ui" line="120"/> 747 764 <source>Get preferences help</source> 748 765 <translation>Получить помощь по настройкам</translation> 749 766 </message> 750 767 <message> 751 <location filename="../ui/settingsdialog.ui" line=" 136"/>768 <location filename="../ui/settingsdialog.ui" line="96"/> 752 769 <source>Save new preferences</source> 753 770 <translation>Сохранить новые параметры</translation> 754 771 </message> 755 772 <message> 756 <location filename="../ui/settingsdialog.ui" line=" 139"/>773 <location filename="../ui/settingsdialog.ui" line="99"/> 757 774 <source>&OK</source> 758 775 <translation></translation> 759 776 </message> 760 777 <message> 761 <location filename="../ui/settingsdialog.ui" line=" 113"/>778 <location filename="../ui/settingsdialog.ui" line="81"/> 762 779 <source>Close without saving preferences</source> 763 780 <translation>Закрыть окно без сохранения параметров</translation> 764 781 </message> 765 782 <message> 766 <location filename="../ui/settingsdialog.ui" line=" 116"/>783 <location filename="../ui/settingsdialog.ui" line="84"/> 767 784 <source>&Cancel</source> 768 785 <translation>&Отмена</translation> … … 779 796 </message> 780 797 <message> 781 <location filename="../src/settingsdialog.cpp" line="10 1"/>798 <location filename="../src/settingsdialog.cpp" line="103"/> 782 799 <source>Hover mouse pointer over dialog elements to get additional help</source> 783 800 <translation>Наведите указатель мыши на элемент диалога, чтоб получить подсказку</translation> -
trunk/i18n/uk.ts
r58 r60 32 32 </message> 33 33 <message> 34 <location filename="../src/tspmodel.cpp" line="15 2"/>35 <location filename="../src/tspmodel.cpp" line="16 0"/>36 <location filename="../src/tspmodel.cpp" line="18 1"/>37 <location filename="../src/tspmodel.cpp" line="20 1"/>38 <location filename="../src/tspmodel.cpp" line="2 14"/>39 <location filename="../src/tspmodel.cpp" line="2 47"/>40 <location filename="../src/tspmodel.cpp" line="2 56"/>34 <location filename="../src/tspmodel.cpp" line="153"/> 35 <location filename="../src/tspmodel.cpp" line="163"/> 36 <location filename="../src/tspmodel.cpp" line="187"/> 37 <location filename="../src/tspmodel.cpp" line="208"/> 38 <location filename="../src/tspmodel.cpp" line="222"/> 39 <location filename="../src/tspmodel.cpp" line="257"/> 40 <location filename="../src/tspmodel.cpp" line="267"/> 41 41 <source>Task Load</source> 42 42 <translation>Завантаження умови</translation> 43 43 </message> 44 44 <message> 45 <location filename="../src/tspmodel.cpp" line="15 2"/>46 <location filename="../src/tspmodel.cpp" line="18 1"/>47 <location filename="../src/tspmodel.cpp" line="20 1"/>48 <location filename="../src/tspmodel.cpp" line="2 14"/>49 <location filename="../src/tspmodel.cpp" line="2 47"/>50 <location filename="../src/tspmodel.cpp" line="2 56"/>45 <location filename="../src/tspmodel.cpp" line="153"/> 46 <location filename="../src/tspmodel.cpp" line="187"/> 47 <location filename="../src/tspmodel.cpp" line="208"/> 48 <location filename="../src/tspmodel.cpp" line="222"/> 49 <location filename="../src/tspmodel.cpp" line="257"/> 50 <location filename="../src/tspmodel.cpp" line="267"/> 51 51 <source>Unable to load task:</source> 52 52 <translation>Неможливо завантажити умову:</translation> 53 53 </message> 54 54 <message> 55 <location filename="../src/tspmodel.cpp" line="16 0"/>55 <location filename="../src/tspmodel.cpp" line="163"/> 56 56 <source>Unable to open task file. 57 57 Error: %1</source> … … 60 60 </message> 61 61 <message> 62 <location filename="../src/tspmodel.cpp" line="18 1"/>62 <location filename="../src/tspmodel.cpp" line="187"/> 63 63 <source>Unknown file format or file is corrupted.</source> 64 64 <translation>Невідомий формат файлу або файл пошкоджено.</translation> 65 65 </message> 66 66 <message> 67 <location filename="../src/tspmodel.cpp" line="20 1"/>68 <location filename="../src/tspmodel.cpp" line="2 47"/>67 <location filename="../src/tspmodel.cpp" line="208"/> 68 <location filename="../src/tspmodel.cpp" line="257"/> 69 69 <source>File version is newer than application supports. 70 70 Please, try to update application.</source> … … 73 73 </message> 74 74 <message> 75 <location filename="../src/tspmodel.cpp" line="2 14"/>76 <location filename="../src/tspmodel.cpp" line="2 56"/>75 <location filename="../src/tspmodel.cpp" line="222"/> 76 <location filename="../src/tspmodel.cpp" line="267"/> 77 77 <source>Unexpected data read. 78 78 File is possibly corrupted.</source> … … 81 81 </message> 82 82 <message> 83 <location filename="../src/tspmodel.cpp" line=" 289"/>84 <location filename="../src/tspmodel.cpp" line=" 295"/>85 <location filename="../src/tspmodel.cpp" line="3 02"/>86 <location filename="../src/tspmodel.cpp" line="3 09"/>87 <location filename="../src/tspmodel.cpp" line="3 16"/>88 <location filename="../src/tspmodel.cpp" line="3 23"/>89 <location filename="../src/tspmodel.cpp" line="3 30"/>90 <location filename="../src/tspmodel.cpp" line="3 40"/>83 <location filename="../src/tspmodel.cpp" line="303"/> 84 <location filename="../src/tspmodel.cpp" line="311"/> 85 <location filename="../src/tspmodel.cpp" line="319"/> 86 <location filename="../src/tspmodel.cpp" line="327"/> 87 <location filename="../src/tspmodel.cpp" line="335"/> 88 <location filename="../src/tspmodel.cpp" line="343"/> 89 <location filename="../src/tspmodel.cpp" line="351"/> 90 <location filename="../src/tspmodel.cpp" line="362"/> 91 91 <source>Task Save</source> 92 92 <translation>Збереження умови</translation> 93 93 </message> 94 94 <message> 95 <location filename="../src/tspmodel.cpp" line=" 289"/>95 <location filename="../src/tspmodel.cpp" line="303"/> 96 96 <source>Unable to create task file. 97 97 Error: %1 … … 102 102 </message> 103 103 <message> 104 <location filename="../src/tspmodel.cpp" line=" 295"/>105 <location filename="../src/tspmodel.cpp" line="3 02"/>106 <location filename="../src/tspmodel.cpp" line="3 09"/>107 <location filename="../src/tspmodel.cpp" line="3 16"/>108 <location filename="../src/tspmodel.cpp" line="3 23"/>109 <location filename="../src/tspmodel.cpp" line="3 30"/>110 <location filename="../src/tspmodel.cpp" line="3 40"/>104 <location filename="../src/tspmodel.cpp" line="311"/> 105 <location filename="../src/tspmodel.cpp" line="319"/> 106 <location filename="../src/tspmodel.cpp" line="327"/> 107 <location filename="../src/tspmodel.cpp" line="335"/> 108 <location filename="../src/tspmodel.cpp" line="343"/> 109 <location filename="../src/tspmodel.cpp" line="351"/> 110 <location filename="../src/tspmodel.cpp" line="362"/> 111 111 <source>Unable to save task. 112 112 Error: %1</source> … … 133 133 </message> 134 134 <message> 135 <location filename="../src/tspsolver.cpp" line="2 09"/>135 <location filename="../src/tspsolver.cpp" line="217"/> 136 136 <source>Solution Result</source> 137 137 <translation>Результат розв'язку</translation> 138 138 </message> 139 139 <message> 140 <location filename="../src/tspsolver.cpp" line="2 09"/>140 <location filename="../src/tspsolver.cpp" line="217"/> 141 141 <source>Unable to find solution. 142 142 Maybe, this task has no solutions.</source> … … 144 144 Можливо, у задачі немає розв'зку.</translation> 145 145 </message> 146 <message> 147 <location filename="../src/tspsolver.cpp" line="235"/> 148 <location filename="../src/tspsolver.cpp" line="237"/> 149 <location filename="../src/tspsolver.cpp" line="240"/> 150 <source>City %1</source> 151 <translation>Місто %1</translation> 152 </message> 146 153 </context> 147 154 <context> … … 521 528 </message> 522 529 <message> 523 <location filename="../src/mainwindow.cpp" line="5 51"/>524 <location filename="../src/mainwindow.cpp" line="5 60"/>530 <location filename="../src/mainwindow.cpp" line="546"/> 531 <location filename="../src/mainwindow.cpp" line="555"/> 525 532 <source>Language change</source> 526 533 <translation>Зміна мови</translation> … … 549 556 <message> 550 557 <location filename="../src/mainwindow.cpp" line="237"/> 551 <location filename="../src/mainwindow.cpp" line="2 93"/>552 <location filename="../src/mainwindow.cpp" line="33 7"/>558 <location filename="../src/mainwindow.cpp" line="286"/> 559 <location filename="../src/mainwindow.cpp" line="330"/> 553 560 <source>All Files</source> 554 561 <translation>Усі файли</translation> … … 571 578 </message> 572 579 <message> 573 <location filename="../src/mainwindow.cpp" line="28 7"/>580 <location filename="../src/mainwindow.cpp" line="280"/> 574 581 <source>PDF Files</source> 575 582 <translation>Файлы PDF</translation> 576 583 </message> 577 584 <message> 578 <location filename="../src/mainwindow.cpp" line="28 9"/>585 <location filename="../src/mainwindow.cpp" line="282"/> 579 586 <source>HTML Files</source> 580 587 <translation>Файли HTML</translation> 581 588 </message> 582 589 <message> 583 <location filename="../src/mainwindow.cpp" line="2 91"/>590 <location filename="../src/mainwindow.cpp" line="284"/> 584 591 <source>OpenDocument Files</source> 585 592 <translation>Файли OpenDocument</translation> 586 593 </message> 587 594 <message> 588 <location filename="../src/mainwindow.cpp" line="3 36"/>595 <location filename="../src/mainwindow.cpp" line="329"/> 589 596 <source>%1 Task File</source> 590 597 <translation>Файл умови %1</translation> 591 598 </message> 592 599 <message> 593 <location filename="../src/mainwindow.cpp" line="3 67"/>600 <location filename="../src/mainwindow.cpp" line="357"/> 594 601 <source>Settings Changed</source> 595 602 <translation>Параметри змінено</translation> 596 603 </message> 597 604 <message> 598 <location filename="../src/mainwindow.cpp" line="3 67"/>605 <location filename="../src/mainwindow.cpp" line="357"/> 599 606 <source>You have changed color settings. 600 607 Do you wish to apply them to current solution text?</source> … … 603 610 </message> 604 611 <message> 605 <location filename="../src/mainwindow.cpp" line="4 49"/>612 <location filename="../src/mainwindow.cpp" line="439"/> 606 613 <source>Data error</source> 607 614 <translation>Помилка у даних</translation> 608 615 </message> 609 616 <message> 610 <location filename="../src/mainwindow.cpp" line="4 49"/>617 <location filename="../src/mainwindow.cpp" line="439"/> 611 618 <source>Error in cell [Row %1; Column %2]: Invalid data format.</source> 612 619 <translation>Помилка у комірці [Рядок %1; Колонка %2]: Невірний формат даних.</translation> 613 620 </message> 614 621 <message> 615 <location filename="../src/mainwindow.cpp" line="4 62"/>622 <location filename="../src/mainwindow.cpp" line="452"/> 616 623 <source>Variant #%1</source> 617 624 <translation>Варіант №%1</translation> 618 625 </message> 619 626 <message> 620 <location filename="../src/mainwindow.cpp" line="4 63"/>627 <location filename="../src/mainwindow.cpp" line="453"/> 621 628 <source>Task:</source> 622 629 <translation>Умова:</translation> 623 630 </message> 624 631 <message> 625 <location filename="../src/mainwindow.cpp" line="4 66"/>626 <location filename="../src/mainwindow.cpp" line="4 92"/>632 <location filename="../src/mainwindow.cpp" line="456"/> 633 <location filename="../src/mainwindow.cpp" line="487"/> 627 634 <source>Solution of Variant #%1 task</source> 628 635 <translation>Розв'язок варіанту №%1</translation> 629 636 </message> 630 637 <message> 631 <location filename="../src/mainwindow.cpp" line="4 73"/>638 <location filename="../src/mainwindow.cpp" line="462"/> 632 639 <source>Step #%1</source> 633 640 <translation>Крок №%1</translation> 634 641 </message> 635 642 <message> 636 <location filename="../src/mainwindow.cpp" line="4 76"/>643 <location filename="../src/mainwindow.cpp" line="465"/> 637 644 <source>This step has alternate candidates for branching.</source> 638 645 <translation>У цьому кроці є альтернативні кандидати на розгалудження.</translation> 639 646 </message> 640 647 <message> 641 <location filename="../src/mainwindow.cpp" line="4 88"/>648 <location filename="../src/mainwindow.cpp" line="477"/> 642 649 <source>Optimal path:</source> 643 650 <translation>Оптимальний шлях:</translation> 644 651 </message> 645 652 <message> 646 <location filename="../src/mainwindow.cpp" line="490"/> 653 <location filename="../src/mainwindow.cpp" line="479"/> 654 <source>Resulting path:</source> 655 <translation>Знайдений шлях:</translation> 656 </message> 657 <message> 658 <location filename="../src/mainwindow.cpp" line="481"/> 647 659 <source>The price is <b>%1</b> units.</source> 648 660 <translation>Вартість - <b>%1</b> одиниць.</translation> 649 661 </message> 650 662 <message> 651 <location filename="../src/mainwindow.cpp" line="551"/> 663 <location filename="../src/mainwindow.cpp" line="484"/> 664 <source><b>WARNING!!!</b><br>This result is a record, but it may not be optimal.<br>Iterations need to be continued to check whether this result is optimal or get an optimal one.</source> 665 <translation>Увага!!!<br>Знайдений розв'язок є рекордом, але може бути неоптимальним.<br>Для отримання оптимального розв'зку, або перевірки поточного на оптимальність, потрібно продовжити ітерації.</translation> 666 </message> 667 <message> 668 <location filename="../src/mainwindow.cpp" line="546"/> 652 669 <source>Language will be autodetected on next application start.</source> 653 670 <translation>Мову буде автоматично визначено при наступному запуску додатку.</translation> 654 671 </message> 655 672 <message> 656 <location filename="../src/mainwindow.cpp" line="5 60"/>673 <location filename="../src/mainwindow.cpp" line="555"/> 657 674 <source>You have language autodetection turned on. 658 675 It needs to be off. … … 663 680 </message> 664 681 <message> 682 <location filename="../src/mainwindow.cpp" line="255"/> 683 <location filename="../src/mainwindow.cpp" line="560"/> 665 684 <location filename="../src/mainwindow.h" line="79"/> 666 <location filename="../src/mainwindow.cpp" line="259"/>667 <location filename="../src/mainwindow.cpp" line="565"/>668 685 <source>Untitled</source> 669 686 <translation>Без імені</translation> … … 683 700 </message> 684 701 <message> 685 <location filename="../src/settingsdialog.cpp" line="10 1"/>702 <location filename="../src/settingsdialog.cpp" line="103"/> 686 703 <source>Hover mouse pointer over dialog elements to get additional help</source> 687 704 <translation>Наведіть покажчик миші на елемент ділогу, щоб отримати підказку</translation> 688 705 </message> 689 706 <message> 690 <location filename="../ui/settingsdialog.ui" line=" 14"/>707 <location filename="../ui/settingsdialog.ui" line="6"/> 691 708 <source>Preferences</source> 692 709 <translation>Параметри</translation> 693 710 </message> 694 711 <message> 695 <location filename="../ui/settingsdialog.ui" line=" 268"/>712 <location filename="../ui/settingsdialog.ui" line="177"/> 696 713 <source>Random values:</source> 697 714 <translation>Випадкові значення:</translation> 698 715 </message> 699 716 <message> 700 <location filename="../ui/settingsdialog.ui" line=" 276"/>717 <location filename="../ui/settingsdialog.ui" line="185"/> 701 718 <source>&Minimal:</source> 702 719 <translation>&Мінімум:</translation> 703 720 </message> 704 721 <message> 705 <location filename="../ui/settingsdialog.ui" line="2 95"/>722 <location filename="../ui/settingsdialog.ui" line="204"/> 706 723 <source>Minimum for random number generation</source> 707 724 <translation>Нажня межа для генерації випадкових значень</translation> 708 725 </message> 709 726 <message> 710 <location filename="../ui/settingsdialog.ui" line=" 306"/>727 <location filename="../ui/settingsdialog.ui" line="215"/> 711 728 <source>Ma&ximal:</source> 712 729 <translation>М&аксимум:</translation> 713 730 </message> 714 731 <message> 715 <location filename="../ui/settingsdialog.ui" line=" 325"/>732 <location filename="../ui/settingsdialog.ui" line="234"/> 716 733 <source>Maximum for random number generation</source> 717 734 <translation>Верхня межа для генерації випадкових значень</translation> 718 735 </message> 719 736 <message> 720 <location filename="../ui/settingsdialog.ui" line=" 343"/>737 <location filename="../ui/settingsdialog.ui" line="244"/> 721 738 <source>Output settings:</source> 722 739 <translation>Параметри виводу:</translation> 723 740 </message> 724 741 <message> 725 <location filename="../ui/settingsdialog.ui" line=" 381"/>742 <location filename="../ui/settingsdialog.ui" line="266"/> 726 743 <source>Font color for printing</source> 727 744 <translation>Колір шрифта для друку</translation> 728 745 </message> 729 746 <message> 730 <location filename="../ui/settingsdialog.ui" line=" 384"/>747 <location filename="../ui/settingsdialog.ui" line="269"/> 731 748 <source>&Color...</source> 732 749 <translation>&Колір...</translation> 733 750 </message> 734 751 <message> 735 <location filename="../ui/settingsdialog.ui" line=" 394"/>752 <location filename="../ui/settingsdialog.ui" line="282"/> 736 753 <source>Automatically resize rows and columns to their contents</source> 737 754 <translation>Автоматично підганяти розмір рядків під їх зміст</translation> 738 755 </message> 739 756 <message> 740 <location filename="../ui/settingsdialog.ui" line=" 397"/>757 <location filename="../ui/settingsdialog.ui" line="285"/> 741 758 <source>Autosize of rows and columns</source> 742 759 <translation>Авторозмір рядків та колонок</translation> 743 760 </message> 744 761 <message> 745 <location filename="../ui/settingsdialog.ui" line=" 358"/>762 <location filename="../ui/settingsdialog.ui" line="251"/> 746 763 <source>Font face for printing</source> 747 764 <translation>Вигляд шрифта для друку</translation> 748 765 </message> 749 766 <message> 750 <location filename="../ui/settingsdialog.ui" line=" 361"/>767 <location filename="../ui/settingsdialog.ui" line="254"/> 751 768 <source>&Font...</source> 752 769 <translation>&Шрифт...</translation> 753 770 </message> 754 771 <message> 755 <location filename="../ui/settingsdialog.ui" line="1 65"/>756 <location filename="../ui/settingsdialog.ui" line="1 71"/>772 <location filename="../ui/settingsdialog.ui" line="117"/> 773 <location filename="../ui/settingsdialog.ui" line="123"/> 757 774 <source>Help</source> 758 775 <translation>Допомога</translation> 759 776 </message> 760 777 <message> 761 <location filename="../ui/settingsdialog.ui" line="1 68"/>778 <location filename="../ui/settingsdialog.ui" line="120"/> 762 779 <source>Get preferences help</source> 763 780 <translation>Отримати допомогу по налагодженням</translation> 764 781 </message> 765 782 <message> 766 <location filename="../ui/settingsdialog.ui" line=" 136"/>783 <location filename="../ui/settingsdialog.ui" line="96"/> 767 784 <source>Save new preferences</source> 768 785 <translation>Зберегти нові параметри</translation> 769 786 </message> 770 787 <message> 771 <location filename="../ui/settingsdialog.ui" line=" 139"/>788 <location filename="../ui/settingsdialog.ui" line="99"/> 772 789 <source>&OK</source> 773 790 <translation></translation> 774 791 </message> 775 792 <message> 776 <location filename="../ui/settingsdialog.ui" line=" 113"/>793 <location filename="../ui/settingsdialog.ui" line="81"/> 777 794 <source>Close without saving preferences</source> 778 795 <translation>Закрити вікно без збереження параметрів</translation> 779 796 </message> 780 797 <message> 781 <location filename="../ui/settingsdialog.ui" line=" 116"/>798 <location filename="../ui/settingsdialog.ui" line="84"/> 782 799 <source>&Cancel</source> 783 800 <translation>&Скасувати</translation> -
trunk/src/mainwindow.cpp
r59 r60 457 457 sStep *step = root; 458 458 n = 1; 459 QString path = "";460 459 while (n <= spinCities->value()) { 461 460 if (step->prNode->prNode != NULL || (step->prNode->prNode == NULL && step->plNode->prNode == NULL)) { … … 467 466 output.append("<p> </p>"); 468 467 } 469 path += QString(" (%1,%2)").arg(step->candidate.nRow + 1).arg(step->candidate.nCol + 1);470 468 } 471 469 if (step->prNode->prNode != NULL) … … 476 474 break; 477 475 } 478 output.append("<p>" + trUtf8("Optimal path:") + "</p>"); 479 output.append("<p> " + path + "</p>"); 476 if (solver.isOptimal()) 477 output.append("<p>" + trUtf8("Optimal path:") + "</p>"); 478 else 479 output.append("<p>" + trUtf8("Resulting path:") + "</p>"); 480 output.append("<p> " + solver.getSortedPath() + "</p>"); 480 481 output.append("<p>" + trUtf8("The price is <b>%1</b> units.").arg(step->price) + "</p>"); 482 if (!solver.isOptimal()) { 483 output.append("<p> </p>"); 484 output.append("<p>" + trUtf8("<b>WARNING!!!</b><br>This result is a record, but it may not be optimal.<br>Iterations need to be continued to check whether this result is optimal or get an optimal one.") + "</p>"); 485 } 481 486 solutionText->setHtml(output.join("")); 482 487 solutionText->setDocumentTitle(trUtf8("Solution of Variant #%1 task").arg(spinVariant->value())); -
trunk/src/tspsolver.cpp
r55 r60 33 33 { 34 34 route.clear(); 35 mayNotBeOptimal = false; 35 36 } 36 37 … … 88 89 } 89 90 90 bool CTSPSolver::findCandidate(tMatrix matrix, int &nRow, int &nCol, double &h) 91 { 92 h = -1; 91 bool CTSPSolver::findCandidate(tMatrix matrix, int &nRow, int &nCol) 92 { 93 93 nRow = -1; 94 94 nCol = -1; 95 95 bool alts = false; 96 double h = -1; 96 97 double sum; 97 98 for (int r = 0; r < nCities; r++) … … 132 133 cleanup(); 133 134 nCities = numCities; 134 double s;135 135 QProgressDialog pd(parent); 136 136 QProgressBar *pb = new QProgressBar(&pd); … … 147 147 sStep *step = new sStep(); 148 148 step->matrix = task; 149 150 s = align(step->matrix); 151 step->price = s; 149 step->price = align(step->matrix); 152 150 root = step; 153 151 154 152 sStep *left, *right; 155 153 int nRow, nCol; 156 while (route.size() < nCities) { 154 bool firstStep = true; 155 double check; 156 while (this->route.size() < nCities) { 157 157 // forbidden.clear(); 158 step->alts = findCandidate(step->matrix,nRow,nCol ,s);158 step->alts = findCandidate(step->matrix,nRow,nCol); 159 159 while (hasSubCycles(nRow,nCol)) { 160 160 // forbidden[nRow] = nCol; 161 161 step->matrix[nRow][nCol] = INFINITY; 162 162 step->price += align(step->matrix); 163 step->alts = findCandidate(step->matrix,nRow,nCol ,s);163 step->alts = findCandidate(step->matrix,nRow,nCol); 164 164 } 165 165 if ((nRow == -1) || (nCol == -1) || pd.wasCanceled()) { … … 196 196 // Route with (nRow,nCol) path is cheaper 197 197 step = right; 198 route[nRow] = nCol; 199 pd.setValue(route.size()); 198 this->route[nRow] = nCol; 199 pd.setValue(this->route.size()); 200 if (firstStep) { 201 check = left->price; 202 firstStep = false; 203 } 200 204 } else { 201 205 // Route without (nRow,nCol) path is cheaper 202 206 step = left; 203 207 qApp->processEvents(); 208 if (firstStep) { 209 check = right->price; 210 firstStep = false; 211 } 204 212 } 205 213 } … … 212 220 qApp->processEvents(); 213 221 222 if (root) { 223 route = this->route; 224 mayNotBeOptimal = (check < step->price); 225 } 214 226 return root; 215 227 } 228 229 QString CTSPSolver::getSortedPath() const 230 { 231 if (!root || route.isEmpty() || (route.size() != nCities)) 232 return QString(); 233 234 int i = 0; // We start from City 1 235 QString path = trUtf8("City %1").arg(1) + " -> "; 236 while ((i = route[i]) != 0) { 237 path += trUtf8("City %1").arg(i + 1) + " -> "; 238 } 239 // And finish in City 1, too 240 path += trUtf8("City %1").arg(1); 241 242 return path; 243 } 244 245 bool CTSPSolver::isOptimal() const 246 { 247 return !mayNotBeOptimal; 248 } -
trunk/src/tspsolver.h
r59 r60 47 47 public: 48 48 CTSPSolver(); 49 QString getSortedPath() const; 50 bool isOptimal() const; 49 51 sStep *solve(int, tMatrix, QWidget *parent = 0); 50 52 51 53 private: 54 bool mayNotBeOptimal; 52 55 int nCities; 53 56 sStep *root; … … 56 59 double align(tMatrix &); 57 60 void cleanup(); 58 bool findCandidate(tMatrix, int &, int & , double &);61 bool findCandidate(tMatrix, int &, int &); 59 62 double findMinInRow(int, tMatrix, int exc = -1); 60 63 double findMinInCol(int, tMatrix, int exr = -1);
Note: See TracChangeset
for help on using the changeset viewer.