source: trunk/core/gui_lang.c @ 1045

Revision 1045, 15.2 KB checked in by reyalP, 3 years ago (diff)
  • Property svn:eol-style set to native
Line 
1#include "conf.h"
2#include "lang.h"
3#include "gui_lang.h"
4
5//-------------------------------------------------------------------
6static 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
587//-------------------------------------------------------------------
588void gui_lang_init() {
589    lang_init(GUI_LANG_ITEMS);
590    lang_load_from_mem(gui_lang_default);
591    if (conf.lang_file && *conf.lang_file) {
592        lang_load_from_file(conf.lang_file);
593    }
594}
595
596//-------------------------------------------------------------------
Note: See TracBrowser for help on using the repository browser.