Changeset 1393
- Timestamp:
- 11/03/11 08:10:33 (19 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
CHDK/LANG/russian.lng (modified) (1 diff)
-
core/gui_lang.c (modified) (1 diff)
-
include/lang.h (modified) (1 diff)
-
lib/lang/lang.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHDK/LANG/russian.lng
r1317 r1393 148 148 149 149 110 "*** Èíôîðìàöèÿ ***" 150 111 "Ïåðåêëþ÷èòå êàìåðó\ â ðåæèì ÏÐÎÑÌÎÒÐÀ\nè ïîïûòàéòåñü ñíîâà. :)"150 111 "Ïåðåêëþ÷èòå êàìåðó\nâ ðåæèì ÏÐÎÑÌÎÒÐÀ\nè ïîïûòàéòåñü ñíîâà. :)" 151 151 152 152 // file browser titles -
trunk/core/gui_lang.c
r1350 r1393 4 4 5 5 //------------------------------------------------------------------- 6 // New format from 'tsvstar' (http://chdk.setepontos.com/index.php?topic=650.msg75171#msg75171) 7 // Notes: 8 // - There must be an entry for every string number from 1 to the current max. Do not delete any rows. 9 // - When adding a new string make sure to terminate the string with '\0'. 10 // - The .lng file format has not changed, if copying an entry from here remove the comments around 11 // the string number and the '\0' terminator. If copy a new entry in here comment out the number and add the terminator. 6 12 static char* gui_lang_default = \ 7 " 1 \"Main Menu\"\n" 8 9 //" 2 \"RAW parameters ->\"\n" 10 //" 3 \"OSD parameters ->\"\n" 11 //" 4 \"Histogram parameters ->\"\n" 12 //" 5 \"Zebra parameters ->\"\n" 13 //" 6 \"Scripting parameters ->\"\n" 14 //" 7 \"Visual settings ->\"\n" 15 //" 8 \"Miscellaneous stuff ->\"\n" 16 //" 9 \"Debug parameters ->\"\n" 17 " 2 \"RAW parameters \"\n" 18 " 3 \"OSD parameters \"\n" 19 " 4 \"Histogram parameters \"\n" 20 " 5 \"Zebra parameters \"\n" 21 " 6 \"Scripting parameters \"\n" 22 " 7 \"Visual settings \"\n" 23 " 8 \"Miscellaneous stuff \"\n" 24 " 9 \"Debug parameters \"\n" 25 " 10 \"Reset options to default...\"\n" 26 " 11 \"Save options now...\"\n" 27 28 //" 12 \"<- Back\"\n" 29 " 12 \"Back\"\n" 30 31 32 " 13 \"RAW\"\n" 33 34 " 14 \"Save RAW\"\n" 35 " 16 \"Only first RAW in series\"\n" 36 " 17 \"RAW file in dir with JPEG\"\n" 37 " 18 \"RAW file prefix\"\n" 38 " 19 \"RAW file extension\"\n" 39 40 41 " 20 \"OSD\"\n" 42 43 " 21 \"Show OSD\"\n" 44 " 22 \"Show State Displays\"\n" 45 " 23 \"Show misc values\"\n" 46 " 24 \" Show Zoom value as\"\n" 47 " 25 \"Show DOF calculator\"\n" 48 " 26 \"Show clock\"\n" 49 " 27 \"OSD layout editor\"\n" 50 //" 28 \"Battery->\"\n" 51 " 28 \"Battery\"\n" 52 53 54 " 29 \"Histogram\"\n" 55 56 " 30 \"Show live histogram\"\n" 57 " 31 \"Histogram layout\"\n" 58 " 32 \"Histogram mode\"\n" 59 " 33 \"Show histogram over/under EXP\"\n" 60 " 34 \"Ignore boundary peaks\"\n" 61 " 35 \"Auto magnify\"\n" 62 63 64 " 36 \"Zebra\"\n" 65 66 " 37 \"Draw Zebra\"\n" 67 " 38 \"Zebra mode\"\n" 68 " 39 \"UnderExposure threshold\"\n" 69 " 40 \"OverExposure threshold\"\n" 70 " 41 \"Restore original screen\"\n" 71 " 42 \"Restore OSD\"\n" 72 " 43 \"Draw over zebra\"\n" 73 74 75 " 44 \"Script\"\n" 76 77 " 45 \"Load script from file...\"\n" 78 " 46 \"Script shoot delay (.1s)\"\n" 79 " 47 \"Current script\"\n" 80 " 48 \"Script parameters\"\n" 81 82 83 " 49 \"Visual settings\"\n" 84 85 " 50 \"Language...\"\n" 86 " 51 \"OSD codepage\"\n" 87 " 52 \"Menu RBF font...\"\n" 88 " 53 \"Colors\"\n" 89 " 54 \"OSD text\"\n" 90 " 55 \"OSD background\"\n" 91 " 56 \"Histogram\"\n" 92 " 57 \"Histogram background\"\n" 93 " 58 \"Histogram border\"\n" 94 " 59 \"Histogram EXP markers\"\n" 95 " 60 \"Zebra Underexposure\"\n" 96 " 61 \"Zebra Overexposure\"\n" 97 " 62 \"Battery icon\"\n" 98 " 63 \"Menu text\"\n" 99 " 64 \"Menu background\"\n" 100 " 65 \"Text reader text\"\n" 101 " 66 \"Text reader background\"\n" 102 103 104 " 67 \"Miscellaneous\"\n" 105 106 " 68 \"File browser\"\n" 107 " 69 \"Calendar\"\n" 108 //" 70 \"Text file reader ->\"\n" 109 " 70 \"Text file reader\"\n" 110 //" 71 \"Games ->\"\n" 111 " 71 \"Games\"\n" 112 " 72 \"Flashlight\"\n" 113 " 73 \"Show splash screen on load\"\n" 114 " 74 \"Use zoom buttons for MF\"\n" 115 " 75 \"<ALT> mode button\"\n" 116 " 76 \"Draw palette\"\n" 117 " 77 \"Show build info\"\n" 118 " 78 \"Show memory info\"\n" 119 120 121 " 79 \"Debug\"\n" 122 123 " 80 \"Debug data display\"\n" 124 " 81 \"PropCase/ParamsData page\"\n" 125 " 82 \"Show misc. values\"\n" 126 " 83 \"Memory browser\"\n" 127 " 84 \"ALT +/- debug action\"\n" 128 " 85 \"Make card bootable...\"\n" 129 130 " 86 \"Battery showing settings\"\n" 131 132 " 87 \"Battery MAX Voltage (mV)\"\n" 133 " 88 \"Battery MIN Voltage (mV)\"\n" 134 " 89 \"Step Size (ON=25,OFF=1 mV)\"\n" 135 " 90 \"Show Battery percent\"\n" 136 " 91 \"Show Battery volts\"\n" 137 " 92 \"Show Battery icon\"\n" 138 139 140 " 93 \"Text file reader\"\n" 141 142 " 94 \"Open new file...\"\n" 143 " 95 \"Open last opened file\"\n" 144 " 96 \"Select RBF font\"\n" 145 " 97 \"Codepage\"\n" 146 " 98 \"Wrap by words\"\n" 147 " 99 \"Enable autoscroll\"\n" 148 "100 \"Autoscroll delay (sec)\"\n" 149 150 151 "101 \"Games\"\n" 152 153 "102 \"Reversi\"\n" 154 "103 \"Sokoban\"\n" 155 156 "104 \"*** Reset options ***\"\n" 157 "105 \"Are you SURE to reset\\noptions to default?\"\n" 158 159 "106 \"*** Build Info ***\"\n" 160 "107 \"CHDK Ver: %s %s\\nDate: %s\\nTime: %s\\nCamera: %s\\nFW Vers: %s\\nCompiler: %s\"\n" 161 162 "108 \"*** Memory Info ***\"\n" 163 "109 \"Free Memory: %d bytes\\nCHDK size: %d bytes\\nloaded at: 0x%X\"\n" 164 165 "110 \"*** Information ***\"\n" 166 "111 \"Please switch your camera\\nto PLAY mode\\nand try again. :)\"\n" 167 168 "112 \"File Browser\"\n" 169 "113 \"Select script file\"\n" 170 "114 \"Select text file\"\n" 171 "115 \"Select RBF-font file\"\n" 172 "116 \"Select language file\"\n" 173 174 "117 \"January\"\n" 175 "118 \"February\"\n" 176 "119 \"March\"\n" 177 "120 \"April\"\n" 178 "121 \"May\"\n" 179 "122 \"June\"\n" 180 "123 \"July\"\n" 181 "124 \"August\"\n" 182 "125 \"September\"\n" 183 "126 \"October\"\n" 184 "127 \"November\"\n" 185 "128 \"December\"\n" 186 187 "129 \"Mon\"\n" 188 "130 \"Tue\"\n" 189 "131 \"Wed\"\n" 190 "132 \"Thu\"\n" 191 "133 \"Fri\"\n" 192 "134 \"Sat\"\n" 193 "135 \"Sun\"\n" 194 195 "136 \"Today:\"\n" 196 197 "137 \"Ok\"\n" 198 "138 \"Yes\"\n" 199 "139 \"No\"\n" 200 "140 \"Cancel\"\n" 201 202 "141 \"Histogram\"\n" 203 "142 \"DOF calc\"\n" 204 "143 \"State Displays\"\n" 205 "144 \"Misc values\"\n" 206 "145 \"Batt icon\"\n" 207 "146 \"Batt text\"\n" 208 "147 \"Clock\"\n" 209 210 "148 \"Press SET to draw particular color\"\n" 211 "149 \" Press MENU to exit \"\n" 212 "150 \"Color\"\n" 213 "151 \"Use %s to select color\"\n" 214 215 "152 \"*** Game Results ***\"\n" 216 "153 \"You won the game! :)\"\n" 217 "154 \"You lost the game! :(\"\n" 218 "155 \"Draw! :/\"\n" 219 220 "156 \"*** Wrong move ***\"\n" 221 "157 \"You can't place here!\"\n" 222 "158 \"This cell is not empty!\"\n" 223 224 "159 \"Move: You \"\n" 225 "160 \"Move: Computer\"\n" 226 "161 \" GAME OVER \"\n" 227 "162 \" White Black \"\n" 228 229 "163 \"*** About ***\"\n" 230 231 "164 \" Level\"\n" 232 "165 \" Moves\"\n" 233 "166 \"*** Finished ***\"\n" 234 "167 \"YES!\\n You did it! \"\n" 235 236 "168 \"*** STARTED ***\"\n" 237 "169 \"*** INTERRUPTED ***\"\n" 238 "170 \"*** FINISHED ***\"\n" 239 240 "171 \"*** Erase directory ***\"\n" 241 "172 \"Are you SURE to delete\\nALL files from\\nselected directory?\"\n" 242 "173 \"*** Delete file ***\"\n" 243 "174 \"Are you SURE to delete\\nselected file?\"\n" 244 245 "175 \"Benchmark\"\n" 246 "176 \"Calculating...\"\n" 247 "177 \"Camera benchmark Press [set] to start\"\n" 248 "178 \"Screen\"\n" 249 "179 \"Write :\"\n" 250 "180 \"Read :\"\n" 251 "181 \"Memory\"\n" 252 "182 \"Flash-card\"\n" 253 "183 \"Write (RAW) :\"\n" 254 "184 \"Write (Mem) :\"\n" 255 "185 \"Write (64k) :\"\n" 256 "186 \"Read (64k) :\"\n" 257 258 "187 \"Disable LCD off\"\n" 259 260 "188 \"Cut\"\n" 261 "189 \"Copy\"\n" 262 "190 \"Paste\"\n" 263 "191 \"Delete\"\n" 264 "192 \"Select inverse\"\n" 265 "193 \"*** Cut files ***\"\n" 266 "194 \"Are you SURE to cut\\n%d selected files\\nfrom %s/?\"\n" 267 "195 \"*** Copy files ***\"\n" 268 "196 \"Are you SURE to copy\\n%d selected files\\nfrom %s/?\"\n" 269 "197 \"*** Delete files ***\"\n" 270 "198 \"Are you SURE to delete\\n%d selected files?\"\n" 271 "199 \"Please wait...\"\n" 272 273 "200 \"Show grid lines\"\n" 274 "201 \"Load grid from file...\"\n" 275 "202 \"Grid lines\"\n" 276 //"203 \"Grid->\"\n" 277 "203 \"Grid\"\n" 278 "204 \"Select grid file\"\n" 279 "205 \"Current grid\"\n" 280 281 //"206 \"Noise reduction\"\n" 282 "206 \"Dark Frame Subtraction\"\n" 283 284 "207 \"Override grid colors\"\n" 285 "208 \"Line color\"\n" 286 "209 \"Fill color\"\n" 287 288 "210 \"DOF Calculator\"\n" 289 //"211 \"DOF Calculator->\"\n" 290 "211 \"DOF Calculator\"\n" 291 "212 \"Canon Subj. Dist. as Near Limit\"\n" 292 "213 \"Use EXIF Subj. Dist. (PC65)\"\n" 293 "214 \"Show Subj. Dist. in Misc.\"\n" 294 "215 \"Show Near Limit in Misc.\"\n" 295 "216 \"Show Far Limit in Misc.\"\n" 296 "217 \"Show Hyperfocal Dist. in Misc.\"\n" 297 "218 \"Show Depth of Field in Misc.\"\n" 298 299 "219 \"Miscellaneous Values\"\n" 300 //"220 \"Miscellaneous Values->\"\n" 301 "220 \"Miscellaneous Values\"\n" 302 "221 \"Show in Review mode\"\n" 303 "222 \"Show Zoom\"\n" 304 "223 \"Show 'real' Aperture\"\n" 305 "224 \"Show 'real' ISO\"\n" 306 "225 \"Show 'market' ISO\"\n" 307 "226 \" Show ISO only in Autoiso mode\"\n" 308 "227 \"Show Set Exposure Ev (Tv+Av)\"\n" 309 "228 \"Show Measured Ev (Bv+Sv)\"\n" 310 "229 \"Show Set Bv (Brightness Value)\"\n" 311 "230 \"Show Measured Bv\"\n" 312 "231 \"Show Overexp. Value (No Flash!)\"\n" 313 "232 \"Show Scene luminance (cd/m2)\"\n" 314 315 "233 \"Video Parameters\"\n" 316 //"234 \"Video Parameters->\"\n" 317 "234 \"Video Parameters\"\n" 318 "235 \"Video Mode\"\n" 319 "236 \"Video Bitrate\"\n" 320 "237 \"Video Quality\"\n" 321 322 "238 \"Extra Photo Operations\"\n" 323 //"239 \"Extra Photo Operations->\"\n" 324 "239 \"Extra Photo Operations\"\n" 325 "240 \"Override shutter speed\"\n" 326 "241 \" Value factor\"\n" 327 "242 \"Override aperture\"\n" 328 "243 \"Override ISO value\"\n" 329 "244 \" Value factor\"\n" 330 "245 \"Override Subj. Dist. Value (MF)\"\n" 331 "246 \" Value factor (mm)\"\n" 332 333 "247 \"Bracketing in continuous mode\"\n" 334 //"248 \"Bracketing in continuous mode->\"\n" 335 "248 \"Bracketing in continuous mode\"\n" 336 "249 \"TV bracketing value\"\n" 337 "250 \"AV bracketing value\"\n" 338 "251 \"ISO bracketing value\"\n" 339 "252 \" Value factor\"\n" 340 "253 \"Subj. Dist. Bracket Value (MF)\"\n" 341 "254 \" Value factor (mm)\"\n" 342 "255 \"Bracketing type\"\n" 343 344 "256 \"Script Autostart\"\n" 345 "257 \"Enable Remote\"\n" 346 347 "258 \"Exposure control (no flash)\"\n" 348 //"259 \"Exposure control (no flash)->\"\n" 349 "259 \"Exposure control (no flash)\"\n" 350 "260 \"Recalc Exposure\"\n" 351 "261 \"TV Exposure recalc order\"\n" 352 "262 \"AV Exposure recalc order\"\n" 353 "263 \"ISO Exposure recalc order\"\n" 354 355 "264 \"Clear override values@start\"\n" 356 357 "265 \"Show Canon overexp. value\"\n" 358 359 "266 \"RAW develop\"\n" 360 "267 \"Please switch camera\\nto record mode and take\\none shot.\"\n" 361 "268 \"Select RAW file\"\n" 362 "269 \"RAW sum\"\n" 363 "270 \"RAW average\"\n" 364 "271 \"Not enough memory card space:\\n%dM required, %dM available.\"\n" 365 366 "272 \"Show OSD in Review Mode\"\n" 367 "273 \"Task list start\"\n" 368 369 "274 \"Subject distance from lens\"\n" 370 371 "275 \"Clear Bracket Values on Start\"\n" 372 373 "276 \"Create card with two partitions\"\n" 374 "277 \"Swap partitions\"\n" 375 "278 \"This DESTROYS ALL INFORMATION\\non card. Continue?\"\n" 376 "279 \"This card has only one partition.\"\n" 377 "280 \"Error\"\n" 378 "281 \"Warning\"\n" 379 "282 \"Information\"\n" 380 "283 \"RGB zebra (overexp. only)\"\n" 381 382 "284 \"ND filter state\"\n" 383 384 "285 \"Show Histo Ev Grid\"\n" 385 386 "286 \"OSD Warning\"\n" 387 "287 \"OSD Warning Background\"\n" 388 "288 \"Remaining Space Icon Color\"\n" 389 "289 \"Show Filespace Icon\"\n" 390 "290 \"Remaining Space\"\n" 391 "291 \"Show Filespace in Percent\"\n" 392 "292 \"Show Filespace in MB\"\n" 393 "293 \"Filespace Text\"\n" 394 "294 \" Show RAW shoot remain\"\n" 395 "295 \"Remaining RAW\"\n" 396 "296 \"Show RAW state \"\n" 397 398 "297 \"Show values in video\"\n" 399 400 "298 \"Shutterspeed enum type\"\n" 401 "299 \"User Menu Enable\"\n" 402 "300 \"User Menu\"\n" 403 "301 \" \"\n" 404 405 "302 \" Adapter Lens Scale, 100=1x\"\n" 406 "303 \"Show Space Bar\"\n" 407 "304 \" Size on Screen\"\n" 408 "305 \" Width/Height\"\n" 409 "306 \" % threshold\"\n" 410 "307 \" MB threshold\"\n" 411 "308 \"Warning Unit\"\n" 412 "309 \" Warning threshold\"\n" 413 "310 \"Enable optical zoom\"\n" 414 //"311 \"Clock->\"\n" 415 "311 \"Clock\"\n" 416 "312 \"Clock Settings\"\n" 417 "313 \"Clock format\"\n" 418 "314 \"Remaining Space Background Color\"\n" 419 "315 \"12h Clock Indicator\"\n" 420 "316 \"@Shutter half-press show\"\n" 421 422 "317 \"Raw showing settings\"\n" 423 //"318 \"Raw->\"\n" 424 "318 \"Raw\"\n" 425 426 "319 \"Filespace showing settings\"\n" 427 //"320 \"Filespace->\"\n" 428 "320 \"Filespace\"\n" 429 430 "321 \"Custom Auto ISO\"\n" 431 //"322 \"Custom Auto ISO->\"\n" 432 "322 \"Custom Auto ISO\"\n" 433 "323 \"Enable Custom Auto ISO\"\n" 434 "324 \"Minimal Shutter speed\"\n" 435 "325 \"User Factor (1/FL/factor)\"\n" 436 "326 \"IS Factor (Tv*factor)\"\n" 437 "327 \"Max ISO HI (x10)\"\n" 438 "328 \"Max ISO AUTO (x10)\"\n" 439 "329 \"Min ISO (x10)\"\n" 440 441 "330 \"Menu Title Text Color\"\n" 442 "331 \"Menu Title Background Color\"\n" 443 "332 \"Cursor Text Color\"\n" 444 "333 \"Cursor Background Color\"\n" 445 "334 \"Center Menu\"\n" 446 "335 \"Mute during zooming\"\n" 447 "336 \"Bad pixel removal\"\n" 448 "337 \"Off\"\n" 449 "338 \"Averag.\"\n" 450 "339 \"RAWconv\"\n" 451 "340 \"Override\"\n" 452 "341 \"Override Background\"\n" 453 "342 \"Disable Overrides\"\n" 454 "343 \" Include AutoIso & Bracketing?\"\n" 455 "344 \" Hide OSD?\"\n" 456 "345 \"Disable @ Video Rec?\"\n" 457 "346 \"Show remaining videotime?\"\n" 458 "347 \" Refreshrate (~sec)\"\n" 459 "348 \"Remaining video time\"\n" 460 "349 \"Clear videoparams on Start?\"\n" 461 "350 \"Enable Fast Ev switch?\"\n" 462 "351 \" Step size (1 EV)?\"\n" 463 "352 \"EV correction\"\n" 464 "353 \"Are you SURE to delete ALL\\nRAW files without corresponding JPG\\nin DCIM folder?\"\n" 465 "354 \"Are you SURE to delete ALL\\nRAW files without corresponding JPG\\nin selected folder?\"\n" 466 "355 \"Are you SURE to delete RAW files\\nwithout corresponding JPG?\\n(Excluding marked)\"\n" 467 "356 \"Purge RAW feature\\ndoes not apply to this item\"\n" 468 "357 \"*** Purge RAW files ***\"\n" 469 "358 \"Purge RAW\"\n" 470 471 "359 \"User Menu as Root\"\n" 472 473 "360 \"Symbol font\"\n" 474 "361 \"Select Symbol file\"\n" 475 "362 \"Enable Symbols\"\n" 476 "363 \"Symbol Text Color\"\n" 477 "364 \"Symbol Background Color\"\n" 478 479 "365 \"Custom curves\"\n" 480 //"366 \"Custom curves ->\"\n" 481 "366 \"Custom curves\"\n" 482 "367 \"Load curve profile...\"\n" 483 "368 \"Enable curve\"\n" 484 "369 \"Select curve file\"\n" 485 486 "370 \"Edge overlay\"\n" 487 "371 \"Edge overlay\"\n" 488 489 "372 \"Enable edge overlay\"\n" 490 "373 \"Edge overlay threshold\"\n" 491 "374 \"Edge overlay color\"\n" 492 493 "375 \"Remote parameters\"\n" 494 "376 \"Remote parameters\"\n" 495 "377 \"Enable Synchable Remote\"\n" 496 "378 \"Enable Synch\"\n" 497 "379 \"Enable Synch Delay\"\n" 498 "380 \"Synch Delay 0.1ms\"\n" 499 "381 \"Synch Delay 0.1s\"\n" 500 501 "382 \"AF key\"\n" 502 "383 \"Load default param values\"\n" 503 "384 \"Parameters set\"\n" 504 "385 \"Disable Raw @ Sports\"\n" 505 "386 \"Disable RAW @ Burst\"\n" 506 "387 \"Disable RAW @ EV Bracketing\"\n" 507 "388 \"Disable RAW @ Timer\"\n" 508 "389 \"Exceptions\"\n" 509 "390 \"RAW Exceptions Menu\"\n" 510 "391 \"Warn when exception?\"\n" 511 "392 \"Auto select 1st entry @ menu\"\n" 512 513 "393 \"Time-out (0.1s)\"\n" 514 "394 \"synchable remote\"\n" 515 "395 \"Fast Video Control?\"\n" 516 "396 \"Temperature\"\n" 517 "397 \"Show Temperature?\"\n" 518 "398 \"Video Quality Control?\"\n" 519 520 "399 \"Enable Remote Zoom\"\n" 521 "400 \"Zoom Time-out 0.1s\"\n" 522 "401 \"Startup sound\"\n" 523 "402 \"Raw subtract prefix\"\n" 524 "403 \"Raw subtract extension\"\n" 525 "404 \"Subtract input dark value\"\n" 526 "405 \"Subtract output dark value\"\n" 527 "406 \"from\"\n" 528 "407 \"...%d more files\"\n" 529 "408 \"Subtract\"\n" 530 "409 \"Sub from marked\"\n" 531 "410 \"Save params\"\n" 532 "411 \"Video Ev display\"\n" 533 "412 \" Zoom Value\"\n" 534 "413 \"Zoom Override\"\n" 535 "414 \" Clear on start\"\n" 536 "415 \"Add raw-suffix\"\n" 537 "416 \" in Fahrenheit\"\n" 538 "417 \"Load Edge Overlay\"\n" 539 "418 \"Save Edge Overlay\"\n" 540 "419 \"Enable in Play\"\n" 541 // "420 \"Free internal Memory\"\n" // option no longer exists 542 "421 \"Load+Set Zoom\"\n" 543 "422 \"Panorama Mode\"\n" 544 "423 \"Rear curtain flash sync\"\n" 545 "424 \"DNG format\"\n" 546 "425 \"RAW buffer cached\"\n" 547 "426 \"Cannot load CHDK/badpixel.bin\\nUse 'Create badpixel.bin' first\"\n" 548 "427 \"Show saving time\"\n" 549 550 "428 \"Connect 4\"\n" 551 "429 \"Opponent:\"\n" 552 "430 \"Human\"\n" 553 "431 \"Player 1 won the game\"\n" 554 "432 \"Player 2 won the game\"\n" 555 "433 \"I beat you\"\n" 556 "434 \"The game ended a draw\"\n" 557 "435 \"Disable Raw @ Edgeoverlay\"\n" 558 "436 \"Disable RAW @ Auto\"\n" 559 "437 \" only in video\"\n" 560 "438 \" Power of flash\"\n" 561 "439 \"'DNG' file extension\"\n" 562 "440 \"DNG visible via USB\"\n" 563 564 "441 \"Mastermind\"\n" 565 "442 \"available colors\"\n" 566 "443 \"on the right place\"\n" 567 "444 \"color in answer\"\n" 568 "445 \"CORRECT :-)\"\n" 569 "446 \"GAME OVER\"\n" 570 "447 \"[<-][->] select column\"\n" 571 "448 \"[UP][DOWN] select color\"\n" 572 "449 \"[SET] next row\"\n" 573 "450 \"NO DOUBLE COLOR\"\n" 574 "451 \"Reset files\"\n" 575 "452 \"Restart Camera...\"\n" 576 "453 \"Force manual flash\"\n" 577 "454 \"Quality override\"\n" 578 "455 \"Restart Lua on error\"\n" 579 "456 \"Filter edges\"\n" 580 "457 \"Always show\"\n" 581 "458 \" Pano overlap (%)\"\n" 582 "459 \"Create badpixel.bin\"\n" 583 "460 \"You need to be in REC-mode\\nfor this operation.\"\n" 584 "461 \"%s disabled in build\"\n" 585 586 // Touch screen 587 "462 \"Touchscreen overrides\"\n" 588 "463 \"Video AE Controls\"\n" 589 "464 \"<Alt> Shortcut Buttons\"\n" 590 591 // USB Remote icon 592 "465 \"USB Remote\"\n" 593 "466 \"Show USB Remote Status\"\n" 13 /* 1*/ "Main Menu\0" 14 /* 2*/ "RAW parameters \0" 15 /* 3*/ "OSD parameters \0" 16 /* 4*/ "Histogram parameters \0" 17 /* 5*/ "Zebra parameters \0" 18 /* 6*/ "Scripting parameters \0" 19 /* 7*/ "Visual settings \0" 20 /* 8*/ "Miscellaneous stuff \0" 21 /* 9*/ "Debug parameters \0" 22 /* 10*/ "Reset options to default...\0" 23 /* 11*/ "Save options now...\0" 24 /* 12*/ "Back\0" 25 /* 13*/ "RAW\0" 26 /* 14*/ "Save RAW\0" 27 /* 15*/ "\0" 28 /* 16*/ "Only first RAW in series\0" 29 /* 17*/ "RAW file in dir with JPEG\0" 30 /* 18*/ "RAW file prefix\0" 31 /* 19*/ "RAW file extension\0" 32 /* 20*/ "OSD\0" 33 /* 21*/ "Show OSD\0" 34 /* 22*/ "Show State Displays\0" 35 /* 23*/ "Show misc values\0" 36 /* 24*/ " Show Zoom value as\0" 37 /* 25*/ "Show DOF calculator\0" 38 /* 26*/ "Show clock\0" 39 /* 27*/ "OSD layout editor\0" 40 /* 28*/ "Battery\0" 41 /* 29*/ "Histogram\0" 42 /* 30*/ "Show live histogram\0" 43 /* 31*/ "Histogram layout\0" 44 /* 32*/ "Histogram mode\0" 45 /* 33*/ "Show histogram over/under EXP\0" 46 /* 34*/ "Ignore boundary peaks\0" 47 /* 35*/ "Auto magnify\0" 48 /* 36*/ "Zebra\0" 49 /* 37*/ "Draw Zebra\0" 50 /* 38*/ "Zebra mode\0" 51 /* 39*/ "UnderExposure threshold\0" 52 /* 40*/ "OverExposure threshold\0" 53 /* 41*/ "Restore original screen\0" 54 /* 42*/ "Restore OSD\0" 55 /* 43*/ "Draw over zebra\0" 56 /* 44*/ "Script\0" 57 /* 45*/ "Load script from file...\0" 58 /* 46*/ "Script shoot delay (.1s)\0" 59 /* 47*/ "Current script\0" 60 /* 48*/ "Script parameters\0" 61 /* 49*/ "Visual settings\0" 62 /* 50*/ "Language...\0" 63 /* 51*/ "OSD codepage\0" 64 /* 52*/ "Menu RBF font...\0" 65 /* 53*/ "Colors\0" 66 /* 54*/ "OSD text\0" 67 /* 55*/ "OSD background\0" 68 /* 56*/ "Histogram\0" 69 /* 57*/ "Histogram background\0" 70 /* 58*/ "Histogram border\0" 71 /* 59*/ "Histogram EXP markers\0" 72 /* 60*/ "Zebra Underexposure\0" 73 /* 61*/ "Zebra Overexposure\0" 74 /* 62*/ "Battery icon\0" 75 /* 63*/ "Menu text\0" 76 /* 64*/ "Menu background\0" 77 /* 65*/ "Text reader text\0" 78 /* 66*/ "Text reader background\0" 79 /* 67*/ "Miscellaneous\0" 80 /* 68*/ "File browser\0" 81 /* 69*/ "Calendar\0" 82 /* 70*/ "Text file reader\0" 83 /* 71*/ "Games\0" 84 /* 72*/ "Flashlight\0" 85 /* 73*/ "Show splash screen on load\0" 86 /* 74*/ "Use zoom buttons for MF\0" 87 /* 75*/ "<ALT> mode button\0" 88 /* 76*/ "Draw palette\0" 89 /* 77*/ "Show build info\0" 90 /* 78*/ "Show memory info\0" 91 /* 79*/ "Debug\0" 92 /* 80*/ "Debug data display\0" 93 /* 81*/ "PropCase/ParamsData page\0" 94 /* 82*/ "Show misc. values\0" 95 /* 83*/ "Memory browser\0" 96 /* 84*/ "ALT +/- debug action\0" 97 /* 85*/ "Make card bootable...\0" 98 /* 86*/ "Battery showing settings\0" 99 /* 87*/ "Battery MAX Voltage (mV)\0" 100 /* 88*/ "Battery MIN Voltage (mV)\0" 101 /* 89*/ "Step Size (ON=25,OFF=1 mV)\0" 102 /* 90*/ "Show Battery percent\0" 103 /* 91*/ "Show Battery volts\0" 104 /* 92*/ "Show Battery icon\0" 105 /* 93*/ "Text file reader\0" 106 /* 94*/ "Open new file...\0" 107 /* 95*/ "Open last opened file\0" 108 /* 96*/ "Select RBF font\0" 109 /* 97*/ "Codepage\0" 110 /* 98*/ "Wrap by words\0" 111 /* 99*/ "Enable autoscroll\0" 112 /*100*/ "Autoscroll delay (sec)\0" 113 /*101*/ "Games\0" 114 /*102*/ "Reversi\0" 115 /*103*/ "Sokoban\0" 116 /*104*/ "*** Reset options ***\0" 117 /*105*/ "Are you SURE to reset\noptions to default?\0" 118 /*106*/ "*** Build Info ***\0" 119 /*107*/ "CHDK Ver: %s %s\nDate: %s\nTime: %s\nCamera: %s\nFW Vers: %s\nCompiler: %s\0" 120 /*108*/ "*** Memory Info ***\0" 121 /*109*/ "Free Memory: %d bytes\nCHDK size: %d bytes\nloaded at: 0x%X\0" 122 /*110*/ "*** Information ***\0" 123 /*111*/ "Please switch your camera\nto PLAY mode\nand try again. :)\0" 124 /*112*/ "File Browser\0" 125 /*113*/ "Select script file\0" 126 /*114*/ "Select text file\0" 127 /*115*/ "Select RBF-font file\0" 128 /*116*/ "Select language file\0" 129 /*117*/ "January\0" 130 /*118*/ "February\0" 131 /*119*/ "March\0" 132 /*120*/ "April\0" 133 /*121*/ "May\0" 134 /*122*/ "June\0" 135 /*123*/ "July\0" 136 /*124*/ "August\0" 137 /*125*/ "September\0" 138 /*126*/ "October\0" 139 /*127*/ "November\0" 140 /*128*/ "December\0" 141 /*129*/ "Mon\0" 142 /*130*/ "Tue\0" 143 /*131*/ "Wed\0" 144 /*132*/ "Thu\0" 145 /*133*/ "Fri\0" 146 /*134*/ "Sat\0" 147 /*135*/ "Sun\0" 148 /*136*/ "Today:\0" 149 /*137*/ "Ok\0" 150 /*138*/ "Yes\0" 151 /*139*/ "No\0" 152 /*140*/ "Cancel\0" 153 /*141*/ "Histogram\0" 154 /*142*/ "DOF calc\0" 155 /*143*/ "State Displays\0" 156 /*144*/ "Misc values\0" 157 /*145*/ "Batt icon\0" 158 /*146*/ "Batt text\0" 159 /*147*/ "Clock\0" 160 /*148*/ "Press SET to draw particular color\0" 161 /*149*/ " Press MENU to exit \0" 162 /*150*/ "Color\0" 163 /*151*/ "Use %s to select color\0" 164 /*152*/ "*** Game Results ***\0" 165 /*153*/ "You won the game! :)\0" 166 /*154*/ "You lost the game! :(\0" 167 /*155*/ "Draw! :/\0" 168 /*156*/ "*** Wrong move ***\0" 169 /*157*/ "You can't place here!\0" 170 /*158*/ "This cell is not empty!\0" 171 /*159*/ "Move: You \0" 172 /*160*/ "Move: Computer\0" 173 /*161*/ " GAME OVER \0" 174 /*162*/ " White Black \0" 175 /*163*/ "*** About ***\0" 176 /*164*/ " Level\0" 177 /*165*/ " Moves\0" 178 /*166*/ "*** Finished ***\0" 179 /*167*/ "YES!\n You did it! \0" 180 /*168*/ "*** STARTED ***\0" 181 /*169*/ "*** INTERRUPTED ***\0" 182 /*170*/ "*** FINISHED ***\0" 183 /*171*/ "*** Erase directory ***\0" 184 /*172*/ "Are you SURE to delete\nALL files from\nselected directory?\0" 185 /*173*/ "*** Delete file ***\0" 186 /*174*/ "Are you SURE to delete\nselected file?\0" 187 /*175*/ "Benchmark\0" 188 /*176*/ "Calculating...\0" 189 /*177*/ "Camera benchmark Press [set] to start\0" 190 /*178*/ "Screen\0" 191 /*179*/ "Write :\0" 192 /*180*/ "Read :\0" 193 /*181*/ "Memory\0" 194 /*182*/ "Flash-card\0" 195 /*183*/ "Write (RAW) :\0" 196 /*184*/ "Write (Mem) :\0" 197 /*185*/ "Write (64k) :\0" 198 /*186*/ "Read (64k) :\0" 199 /*187*/ "Disable LCD off\0" 200 /*188*/ "Cut\0" 201 /*189*/ "Copy\0" 202 /*190*/ "Paste\0" 203 /*191*/ "Delete\0" 204 /*192*/ "Select inverse\0" 205 /*193*/ "*** Cut files ***\0" 206 /*194*/ "Are you SURE to cut\n%d selected files\nfrom %s/?\0" 207 /*195*/ "*** Copy files ***\0" 208 /*196*/ "Are you SURE to copy\n%d selected files\nfrom %s/?\0" 209 /*197*/ "*** Delete files ***\0" 210 /*198*/ "Are you SURE to delete\n%d selected files?\0" 211 /*199*/ "Please wait...\0" 212 /*200*/ "Show grid lines\0" 213 /*201*/ "Load grid from file...\0" 214 /*202*/ "Grid lines\0" 215 /*203*/ "Grid\0" 216 /*204*/ "Select grid file\0" 217 /*205*/ "Current grid\0" 218 /*206*/ "Dark Frame Subtraction\0" 219 /*207*/ "Override grid colors\0" 220 /*208*/ "Line color\0" 221 /*209*/ "Fill color\0" 222 /*210*/ "DOF Calculator\0" 223 /*211*/ "DOF Calculator\0" 224 /*212*/ "Canon Subj. Dist. as Near Limit\0" 225 /*213*/ "Use EXIF Subj. Dist. (PC65)\0" 226 /*214*/ "Show Subj. Dist. in Misc.\0" 227 /*215*/ "Show Near Limit in Misc.\0" 228 /*216*/ "Show Far Limit in Misc.\0" 229 /*217*/ "Show Hyperfocal Dist. in Misc.\0" 230 /*218*/ "Show Depth of Field in Misc.\0" 231 /*219*/ "Miscellaneous Values\0" 232 /*220*/ "Miscellaneous Values\0" 233 /*221*/ "Show in Review mode\0" 234 /*222*/ "Show Zoom\0" 235 /*223*/ "Show 'real' Aperture\0" 236 /*224*/ "Show 'real' ISO\0" 237 /*225*/ "Show 'market' ISO\0" 238 /*226*/ " Show ISO only in Autoiso mode\0" 239 /*227*/ "Show Set Exposure Ev (Tv+Av)\0" 240 /*228*/ "Show Measured Ev (Bv+Sv)\0" 241 /*229*/ "Show Set Bv (Brightness Value)\0" 242 /*230*/ "Show Measured Bv\0" 243 /*231*/ "Show Overexp. Value (No Flash!)\0" 244 /*232*/ "Show Scene luminance (cd/m2)\0" 245 /*233*/ "Video Parameters\0" 246 /*234*/ "Video Parameters\0" 247 /*235*/ "Video Mode\0" 248 /*236*/ "Video Bitrate\0" 249 /*237*/ "Video Quality\0" 250 /*238*/ "Extra Photo Operations\0" 251 /*239*/ "Extra Photo Operations\0" 252 /*240*/ "Override shutter speed\0" 253 /*241*/ " Value factor\0" 254 /*242*/ "Override aperture\0" 255 /*243*/ "Override ISO value\0" 256 /*244*/ " Value factor\0" 257 /*245*/ "Override Subj. Dist. Value (MF)\0" 258 /*246*/ " Value factor (mm)\0" 259 /*247*/ "Bracketing in continuous mode\0" 260 /*248*/ "Bracketing in continuous mode\0" 261 /*249*/ "TV bracketing value\0" 262 /*250*/ "AV bracketing value\0" 263 /*251*/ "ISO bracketing value\0" 264 /*252*/ " Value factor\0" 265 /*253*/ "Subj. Dist. Bracket Value (MF)\0" 266 /*254*/ " Value factor (mm)\0" 267 /*255*/ "Bracketing type\0" 268 /*256*/ "Script Autostart\0" 269 /*257*/ "Enable Remote\0" 270 /*258*/ "Exposure control (no flash)\0" 271 /*259*/ "Exposure control (no flash)\0" 272 /*260*/ "Recalc Exposure\0" 273 /*261*/ "TV Exposure recalc order\0" 274 /*262*/ "AV Exposure recalc order\0" 275 /*263*/ "ISO Exposure recalc order\0" 276 /*264*/ "Clear override values@start\0" 277 /*265*/ "Show Canon overexp. value\0" 278 /*266*/ "RAW develop\0" 279 /*267*/ "Please switch camera\nto record mode and take\none shot.\0" 280 /*268*/ "Select RAW file\0" 281 /*269*/ "RAW sum\0" 282 /*270*/ "RAW average\0" 283 /*271*/ "Not enough memory card space:\n%dM required, %dM available.\0" 284 /*272*/ "Show OSD in Review Mode\0" 285 /*273*/ "Task list start\0" 286 /*274*/ "Subject distance from lens\0" 287 /*275*/ "Clear Bracket Values on Start\0" 288 /*276*/ "Create card with two partitions\0" 289 /*277*/ "Swap partitions\0" 290 /*278*/ "This DESTROYS ALL INFORMATION\non card. Continue?\0" 291 /*279*/ "This card has only one partition.\0" 292 /*280*/ "Error\0" 293 /*281*/ "Warning\0" 294 /*282*/ "Information\0" 295 /*283*/ "RGB zebra (overexp. only)\0" 296 /*284*/ "ND filter state\0" 297 /*285*/ "Show Histo Ev Grid\0" 298 /*286*/ "OSD Warning\0" 299 /*287*/ "OSD Warning Background\0" 300 /*288*/ "Remaining Space Icon Color\0" 301 /*289*/ "Show Filespace Icon\0" 302 /*290*/ "Remaining Space\0" 303 /*291*/ "Show Filespace in Percent\0" 304 /*292*/ "Show Filespace in MB\0" 305 /*293*/ "Filespace Text\0" 306 /*294*/ " Show RAW shoot remain\0" 307 /*295*/ "Remaining RAW\0" 308 /*296*/ "Show RAW state \0" 309 /*297*/ "Show values in video\0" 310 /*298*/ "Shutterspeed enum type\0" 311 /*299*/ "User Menu Enable\0" 312 /*300*/ "User Menu\0" 313 /*301*/ " \0" 314 /*302*/ " Adapter Lens Scale, 100=1x\0" 315 /*303*/ "Show Space Bar\0" 316 /*304*/ " Size on Screen\0" 317 /*305*/ " Width/Height\0" 318 /*306*/ " % threshold\0" 319 /*307*/ " MB threshold\0" 320 /*308*/ "Warning Unit\0" 321 /*309*/ " Warning threshold\0" 322 /*310*/ "Enable optical zoom\0" 323 /*311*/ "Clock\0" 324 /*312*/ "Clock Settings\0" 325 /*313*/ "Clock format\0" 326 /*314*/ "Remaining Space Background Color\0" 327 /*315*/ "12h Clock Indicator\0" 328 /*316*/ "@Shutter half-press show\0" 329 /*317*/ "Raw showing settings\0" 330 /*318*/ "Raw\0" 331 /*319*/ "Filespace showing settings\0" 332 /*320*/ "Filespace\0" 333 /*321*/ "Custom Auto ISO\0" 334 /*322*/ "Custom Auto ISO\0" 335 /*323*/ "Enable Custom Auto ISO\0" 336 /*324*/ "Minimal Shutter speed\0" 337 /*325*/ "User Factor (1/FL/factor)\0" 338 /*326*/ "IS Factor (Tv*factor)\0" 339 /*327*/ "Max ISO HI (x10)\0" 340 /*328*/ "Max ISO AUTO (x10)\0" 341 /*329*/ "Min ISO (x10)\0" 342 /*330*/ "Menu Title Text Color\0" 343 /*331*/ "Menu Title Background Color\0" 344 /*332*/ "Cursor Text Color\0" 345 /*333*/ "Cursor Background Color\0" 346 /*334*/ "Center Menu\0" 347 /*335*/ "Mute during zooming\0" 348 /*336*/ "Bad pixel removal\0" 349 /*337*/ "Off\0" 350 /*338*/ "Averag.\0" 351 /*339*/ "RAWconv\0" 352 /*340*/ "Override\0" 353 /*341*/ "Override Background\0" 354 /*342*/ "Disable Overrides\0" 355 /*343*/ " Include AutoIso & Bracketing?\0" 356 /*344*/ " Hide OSD?\0" 357 /*345*/ "Disable @ Video Rec?\0" 358 /*346*/ "Show remaining videotime?\0" 359 /*347*/ " Refreshrate (~sec)\0" 360 /*348*/ "Remaining video time\0" 361 /*349*/ "Clear videoparams on Start?\0" 362 /*350*/ "Enable Fast Ev switch?\0" 363 /*351*/ " Step size (1 EV)?\0" 364 /*352*/ "EV correction\0" 365 /*353*/ "Are you SURE to delete ALL\nRAW files without corresponding JPG\nin DCIM folder?\0" 366 /*354*/ "Are you SURE to delete ALL\nRAW files without corresponding JPG\nin selected folder?\0" 367 /*355*/ "Are you SURE to delete RAW files\nwithout corresponding JPG?\n(Excluding marked)\0" 368 /*356*/ "Purge RAW feature\ndoes not apply to this item\0" 369 /*357*/ "*** Purge RAW files ***\0" 370 /*358*/ "Purge RAW\0" 371 /*359*/ "User Menu as Root\0" 372 /*360*/ "Symbol font\0" 373 /*361*/ "Select Symbol file\0" 374 /*362*/ "Enable Symbols\0" 375 /*363*/ "Symbol Text Color\0" 376 /*364*/ "Symbol Background Color\0" 377 /*365*/ "Custom curves\0" 378 /*366*/ "Custom curves\0" 379 /*367*/ "Load curve profile...\0" 380 /*368*/ "Enable curve\0" 381 /*369*/ "Select curve file\0" 382 /*370*/ "Edge overlay\0" 383 /*371*/ "Edge overlay\0" 384 /*372*/ "Enable edge overlay\0" 385 /*373*/ "Edge overlay threshold\0" 386 /*374*/ "Edge overlay color\0" 387 /*375*/ "Remote parameters\0" 388 /*376*/ "Remote parameters\0" 389 /*377*/ "Enable Synchable Remote\0" 390 /*378*/ "Enable Synch\0" 391 /*379*/ "Enable Synch Delay\0" 392 /*380*/ "Synch Delay 0.1ms\0" 393 /*381*/ "Synch Delay 0.1s\0" 394 /*382*/ "AF key\0" 395 /*383*/ "Load default param values\0" 396 /*384*/ "Parameters set\0" 397 /*385*/ "Disable Raw @ Sports\0" 398 /*386*/ "Disable RAW @ Burst\0" 399 /*387*/ "Disable RAW @ EV Bracketing\0" 400 /*388*/ "Disable RAW @ Timer\0" 401 /*389*/ "Exceptions\0" 402 /*390*/ "RAW Exceptions Menu\0" 403 /*391*/ "Warn when exception?\0" 404 /*392*/ "Auto select 1st entry @ menu\0" 405 /*393*/ "Time-out (0.1s)\0" 406 /*394*/ "synchable remote\0" 407 /*395*/ "Fast Video Control?\0" 408 /*396*/ "Temperature\0" 409 /*397*/ "Show Temperature?\0" 410 /*398*/ "Video Quality Control?\0" 411 /*399*/ "Enable Remote Zoom\0" 412 /*400*/ "Zoom Time-out 0.1s\0" 413 /*401*/ "Startup sound\0" 414 /*402*/ "Raw subtract prefix\0" 415 /*403*/ "Raw subtract extension\0" 416 /*404*/ "Subtract input dark value\0" 417 /*405*/ "Subtract output dark value\0" 418 /*406*/ "from\0" 419 /*407*/ "...%d more files\0" 420 /*408*/ "Subtract\0" 421 /*409*/ "Sub from marked\0" 422 /*410*/ "Save params\0" 423 /*411*/ "Video Ev display\0" 424 /*412*/ " Zoom Value\0" 425 /*413*/ "Zoom Override\0" 426 /*414*/ " Clear on start\0" 427 /*415*/ "Add raw-suffix\0" 428 /*416*/ " in Fahrenheit\0" 429 /*417*/ "Load Edge Overlay\0" 430 /*418*/ "Save Edge Overlay\0" 431 /*419*/ "Enable in Play\0" 432 /*420*/ "\0" 433 /*421*/ "Load+Set Zoom\0" 434 /*422*/ "Panorama Mode\0" 435 /*423*/ "Rear curtain flash sync\0" 436 /*424*/ "DNG format\0" 437 /*425*/ "RAW buffer cached\0" 438 /*426*/ "Cannot load CHDK/badpixel.bin\nUse 'Create badpixel.bin' first\0" 439 /*427*/ "Show saving time\0" 440 /*428*/ "Connect 4\0" 441 /*429*/ "Opponent:\0" 442 /*430*/ "Human\0" 443 /*431*/ "Player 1 won the game\0" 444 /*432*/ "Player 2 won the game\0" 445 /*433*/ "I beat you\0" 446 /*434*/ "The game ended a draw\0" 447 /*435*/ "Disable Raw @ Edgeoverlay\0" 448 /*436*/ "Disable RAW @ Auto\0" 449 /*437*/ " only in video\0" 450 /*438*/ " Power of flash\0" 451 /*439*/ "'DNG' file extension\0" 452 /*440*/ "DNG visible via USB\0" 453 /*441*/ "Mastermind\0" 454 /*442*/ "available colors\0" 455 /*443*/ "on the right place\0" 456 /*444*/ "color in answer\0" 457 /*445*/ "CORRECT :-)\0" 458 /*446*/ "GAME OVER\0" 459 /*447*/ "[<-][->] select column\0" 460 /*448*/ "[UP][DOWN] select color\0" 461 /*449*/ "[SET] next row\0" 462 /*450*/ "NO DOUBLE COLOR\0" 463 /*451*/ "Reset files\0" 464 /*452*/ "Restart Camera...\0" 465 /*453*/ "Force manual flash\0" 466 /*454*/ "Quality override\0" 467 /*455*/ "Restart Lua on error\0" 468 /*456*/ "Filter edges\0" 469 /*457*/ "Always show\0" 470 /*458*/ " Pano overlap (%)\0" 471 /*459*/ "Create badpixel.bin\0" 472 /*460*/ "You need to be in REC-mode\nfor this operation.\0" 473 /*461*/ "%s disabled in build\0" 474 /*462*/ "Touchscreen overrides\0" 475 /*463*/ "Video AE Controls\0" 476 /*464*/ "<Alt> Shortcut Buttons\0" 477 /*465*/ "USB Remote\0" 478 /*466*/ "Show USB Remote Status\0" 594 479 ; 595 480 596 481 //------------------------------------------------------------------- 597 482 void gui_lang_init() { 598 lang_init(GUI_LANG_ITEMS); 599 lang_load_from_mem(gui_lang_default); 483 // this function do init and then map preparsed 484 lang_map_preparsed_from_mem( gui_lang_default, GUI_LANG_ITEMS ); 485 600 486 if (conf.lang_file && *conf.lang_file) { 601 487 lang_load_from_file(conf.lang_file); -
trunk/include/lang.h
r515 r1393 5 5 extern void lang_init(int num); 6 6 7 extern void lang_ load_from_mem(char *buf);7 extern void lang_parse_from_mem(char *buf); 8 8 extern void lang_load_from_file(const char *filename); 9 extern void lang_map_preparsed_from_mem( char* gui_lang_default, int num ); 10 11 typedef void (*callback_process_file)(char* buf); 12 extern void load_from_file(const char *filename, callback_process_file callback) ; 9 13 10 14 extern char* lang_str(int str); -
trunk/lib/lang/lang.c
r1242 r1393 2 2 #include "lang.h" 3 3 4 static char* preparsed_lang_default_start=0; 5 static char* preparsed_lang_default_end=0; // @this is for correct detection which is in heap 6 4 7 //------------------------------------------------------------------- 5 8 6 static char **strings = NULL;7 static int count = 0; 9 static char** strings = NULL; // string list (allocated at heap or mapped from gui_lang.c); 10 static int count = 0; // current maximal string id (init at lang_init with GUI_LANG_ITEMS) 8 11 9 12 //------------------------------------------------------------------- 10 13 void lang_init(int num) { 11 14 int i; 15 char* str; 12 16 13 17 if (strings) { 14 for (i=0; i<count; ++i) 15 if (strings[i]) free(strings[i]); 18 for (i=0; i<count; ++i) { 19 str=strings[i]; 20 if ( str && ( str<preparsed_lang_default_start || str>preparsed_lang_default_end ) ) 21 free(str); 22 } 23 16 24 free(strings); 17 25 count = 0; … … 27 35 } 28 36 37 // add to string list string "str" with id "num" 29 38 //------------------------------------------------------------------- 30 39 static void lang_add_string(int num, const char *str) { … … 33 42 34 43 if (strings && num<count) { 35 if (strings[num]) free(strings[num]); 44 p = strings[num]; 45 if ( p && ( p<preparsed_lang_default_start || p>preparsed_lang_default_end ) ) 46 free( p ); 47 36 48 p = strings[num] = malloc(strlen(str)+1); 37 49 if (p) { … … 54 66 } 55 67 68 // Parsing of loaded .lng file 69 // buf - source array (content of file.lng ) 56 70 //------------------------------------------------------------------- 57 void lang_ load_from_mem(char *buf) {71 void lang_parse_from_mem(char *buf) { 58 72 char *p, *s, *e; 59 73 int i; 60 74 61 75 e = buf-1; 62 76 while(e) { 63 77 p = e+1; 64 while (*p && (*p=='\r' || *p=='\n')) ++p; 65 i = strtol(p, &e, 0 );78 while (*p && (*p=='\r' || *p=='\n')) ++p; //skip empty lines 79 i = strtol(p, &e, 0/*autodetect base oct-dec-hex*/); // convert "*p" to long "i" and return pointer beyond to e 66 80 if (e!=p) { 67 81 p = e; 68 e = strpbrk(p, "\r\n"); 82 e = strpbrk(p, "\r\n"); //break string with zero on \r|\n 69 83 if (e) *e=0; 70 while (*p && *p!='\"') ++p; 84 85 while (*p && *p!='\"') ++p; // cut string from "" if it exists 71 86 if (*p) ++p; 72 87 s = p; 73 88 while (*p && (*p!='\"' || *(p-1)=='\\')) ++p; 74 89 *p=0; 75 lang_add_string(i, s); 90 91 lang_add_string(i, s); // add string 76 92 } else { //skip invalid line 77 93 e = strpbrk(p, "\r\n"); … … 81 97 } 82 98 99 // This function have to be called before any other string load 83 100 //------------------------------------------------------------------- 84 void lang_load_from_file(const char *filename) { 101 void lang_map_preparsed_from_mem( char* gui_lang_default, int num ) 102 { 103 int i; 104 char *p = gui_lang_default; 105 106 preparsed_lang_default_start = p; 107 lang_init( num ); 108 for ( i = 1; i<=num; i++ ) 109 { 110 strings[i]=p; 111 while (*p) p++; 112 p++; 113 } 114 115 preparsed_lang_default_end = p; 116 } 117 118 119 // Universal file processor 120 // Load file, process by callback, unalloc/close file 121 //------------------------------------------------------------------- 122 void load_from_file(const char *filename, callback_process_file callback) 123 { 85 124 int f, size; 86 125 static struct stat st; … … 95 134 size = read(f, buf, size); 96 135 buf[size]=0; 97 lang_load_from_mem(buf);136 callback(buf); 98 137 ufree(buf); 99 138 } … … 102 141 } 103 142 } 143 144 void lang_load_from_file(const char *filename) { 145 load_from_file( filename, lang_parse_from_mem ); 146 } 147 104 148 105 149 //-------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.