forked from gphilippot/purebasic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Language.pb
2239 lines (1944 loc) · 94.4 KB
/
Language.pb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;--------------------------------------------------------------------------------------------
; Copyright (c) Fantaisie Software. All rights reserved.
; Dual licensed under the GPL and Fantaisie Software licenses.
; See LICENSE and LICENSE-FANTAISIE in the project root for license information.
;--------------------------------------------------------------------------------------------
Global NbLanguageGroups, NbLanguageStrings
Structure LanguageInfo
Name$
FileName$
Date$
Creator$
CreatorEmail$
EndStructure
Global NewList AvailableLanguages.LanguageInfo()
Structure LanguageGroup
Name$
GroupStart.l
GroupEnd.l
IndexTable.l[256]
EndStructure
Procedure GetLanguageInfo(FileName$)
If OpenPreferences(FileName$)
If PreferenceGroup("LanguageInfo")
If ReadPreferenceString("Application", "") = #CatalogFileIDE ; to sort out similar language files for different applications
Name$ = ReadPreferenceString("Language", "")
If Name$ <> "" And UCase(Name$) <> "ENGLISH" ; use internal strings instead of the english file
AddElement(AvailableLanguages())
AvailableLanguages()\Name$ = Name$
AvailableLanguages()\FileName$ = FileName$
AvailableLanguages()\Date$ = ReadPreferenceString("LastUpdated", "-")
AvailableLanguages()\Creator$ = ReadPreferenceString("Creator", "-")
AvailableLanguages()\CreatorEmail$ = ReadPreferenceString("Email", "-")
EndIf
EndIf
EndIf
ClosePreferences()
EndIf
EndProcedure
Procedure CollectLanguageInfo()
ClearList(AvailableLanguages())
; add the base language
;
AddElement(AvailableLanguages())
AvailableLanguages()\Name$ = "English"
AvailableLanguages()\FileName$ = "-------"
AvailableLanguages()\Date$ = FormatDate("%mm/%dd/%yyyy", #PB_Compiler_Date)
AvailableLanguages()\Creator$ = #ProductName$ + " Team"
AvailableLanguages()\CreatorEmail$ = "support@" + LCase(#ProductName$) + ".com"
; find more language files
;
If ExamineDirectory(0, PureBasicPath$ + #DEFAULT_CatalogPath, "*.catalog")
While NextDirectoryEntry(0)
If DirectoryEntryType(0) = 1
GetLanguageInfo(PureBasicPath$ + #DEFAULT_CatalogPath+DirectoryEntryName(0))
EndIf
Wend
FinishDirectory(0)
EndIf
; look in subfolders of the catalogs path as well..
;
If ExamineDirectory(0, PureBasicPath$ + #DEFAULT_CatalogPath, "*.*")
While NextDirectoryEntry(0)
If DirectoryEntryType(0) = 2
If DirectoryEntryName(0) <> ".." And DirectoryEntryName(0) <> "."
Directory$ = PureBasicPath$ + #DEFAULT_CatalogPath + DirectoryEntryName(0) + #Separator
If ExamineDirectory(1, Directory$, "*.catalog")
While NextDirectoryEntry(1)
If DirectoryEntryType(1) = 1
GetLanguageInfo(Directory$ + DirectoryEntryName(1))
EndIf
Wend
FinishDirectory(1)
EndIf
EndIf
EndIf
Wend
FinishDirectory(0)
EndIf
EndProcedure
; Read the entry from the language file and apply any needed codepage
; translation to oem page.
; (note that the codepage stuff is windows+unicode only For now.)
;
Procedure.s ReadLanguageEntry(Key$, DefaultValue$)
Result$ = ReadPreferenceString(Key$, DefaultValue$)
CompilerIf #CompileWindows
CompilerIf #PB_Compiler_Unicode ; only in unicode mode (standalone debugger)
; It was loaded using the ANSI codepage, so we transform it to ascii with that
;
*AsciiBuffer = AllocateMemory(StringByteLength(Result$, #PB_Ascii) + 1)
If *AsciiBuffer
PokeS(*AsciiBuffer, Result$, -1, #PB_Ascii)
; now transform back to unicode with the oem codepage
;
Length = MultiByteToWideChar_(#CP_OEMCP, 0, *AsciiBuffer, -1, 0, 0)
Result$ = Space(Length)
MultiByteToWideChar_(CodePage, 0, *AsciiBuffer, -1, @Result$, Length)
FreeMemory(*AsciiBuffer)
EndIf
CompilerEndIf
CompilerEndIf
ProcedureReturn Trim(Result$)
EndProcedure
Procedure LoadLanguage()
; do a quick count in the datasection:
;
NbLanguageGroups = 0
NbLanguageStrings = 0
Restore Language
Repeat
Read.s Name$
Read.s String$
Name$ = UCase(Name$)
If Name$ = "_GROUP_"
NbLanguageGroups + 1
ElseIf Name$ = "_END_"
Break
Else
NbLanguageStrings + 1
EndIf
ForEver
Global Dim LanguageGroups.LanguageGroup(NbLanguageGroups) ; all one based here
Global Dim LanguageStrings.s(NbLanguageStrings)
Global Dim LanguageNames.s(NbLanguageStrings)
; Now load the standard language:
;
Group = 0
StringIndex = 0
Restore Language
Repeat
Read.s Name$
Read.s String$
Name$ = UCase(Name$)
If Name$ = "_GROUP_"
LanguageGroups(Group)\GroupEnd = StringIndex
Group + 1
LanguageGroups(Group)\Name$ = UCase(String$)
LanguageGroups(Group)\GroupStart = StringIndex + 1
For i = 0 To 255
LanguageGroups(Group)\IndexTable[i] = 0
Next i
ElseIf Name$ = "_END_"
Break
Else
StringIndex + 1
LanguageNames(StringIndex) = Name$ + Chr(1) + String$ ; keep name and string together for easier sorting
EndIf
ForEver
LanguageGroups(Group)\GroupEnd = StringIndex ; set end for the last group!
; Now do the sorting and the indexing for each group
;
For Group = 1 To NbLanguageGroups
If LanguageGroups(Group)\GroupStart <= LanguageGroups(Group)\GroupEnd ; sanity check.. check for empty groups
SortArray(LanguageNames(), 0, LanguageGroups(Group)\GroupStart, LanguageGroups(Group)\GroupEnd)
char = 0
For StringIndex = LanguageGroups(Group)\GroupStart To LanguageGroups(Group)\GroupEnd
LanguageStrings(StringIndex) = StringField(LanguageNames(StringIndex), 2, Chr(1)) ; splitt the value from the name
LanguageNames(StringIndex) = StringField(LanguageNames(StringIndex), 1, Chr(1))
If Asc(Left(LanguageNames(StringIndex), 1)) <> char
char = Asc(Left(LanguageNames(StringIndex), 1))
LanguageGroups(Group)\IndexTable[char] = StringIndex
EndIf
Next StringIndex
EndIf
Next Group
; Now try to load an external language file
;
If CurrentLanguage$ <> "English"
; get info from the saved languagefilename only
If LanguageFile$ <> ""
GetLanguageInfo(LanguageFile$)
EndIf
Found = 0
; do a quick search if the language is found.
; if the LanguageFile$ was valid, there should be only this one language in the list.
;
ForEach AvailableLanguages()
If UCase(AvailableLanguages()\Name$) = UCase(CurrentLanguage$)
Found = 1
Break
EndIf
Next AvailableLanguages()
; if the language is not found yet, the LanguageFile$ was probably invalid
; (maybe the purebasic dir was moved or something..)
; Do a complete scan for languages then
If Found = 0
CollectLanguageInfo()
; search again
ForEach AvailableLanguages()
If UCase(AvailableLanguages()\Name$) = UCase(CurrentLanguage$)
Found = 1
Break
EndIf
Next AvailableLanguages()
EndIf
If Found
; save for the next IDE start:
LanguageFile$ = AvailableLanguages()\FileName$
; Try to detect if the file is utf8 (because if it is, do not translate stuff to oem codepage!
;
IsUTF8 = 0
FileID = ReadFile(#PB_Any, LanguageFile$)
If FileID
If ReadStringFormat(FileID) = #PB_UTF8
IsUTF8 = 1
EndIf
CloseFile(FileID)
EndIf
If OpenPreferences(AvailableLanguages()\FileName$)
For Group = 1 To NbLanguageGroups
If LanguageGroups(Group)\GroupStart <= LanguageGroups(Group)\GroupEnd ; sanity check.. check for empty groups
PreferenceGroup(LanguageGroups(Group)\Name$)
If IsUTF8
For StringIndex = LanguageGroups(Group)\GroupStart To LanguageGroups(Group)\GroupEnd
LanguageStrings(StringIndex) = ReadPreferenceString(LanguageNames(StringIndex), LanguageStrings(StringIndex))
Next StringIndex
Else ; apply the oem codepage change here in the unicode debugger
For StringIndex = LanguageGroups(Group)\GroupStart To LanguageGroups(Group)\GroupEnd
LanguageStrings(StringIndex) = ReadLanguageEntry(LanguageNames(StringIndex), LanguageStrings(StringIndex))
Next StringIndex
EndIf
EndIf
Next Group
ClosePreferences()
EndIf
Else
If CommandlineBuild = 0
MessageRequester(#ProductName$, "The language '"+CurrentLanguage$+"' cannot be found!"+#NewLine+"The default language will be used.", #FLAG_Error)
ElseIf QuietBuild = 0
PrintN("-- The language '"+CurrentLanguage$+"' cannot be found!")
PrintN("-- The Default language will be used.")
EndIf
CurrentLanguage$ = "English"
EndIf
EndIf
BuildShortcutNamesTable() ; update the array of names for the Shortcuts
EndProcedure
Procedure.s Language(Group$, Name$)
Static Group.l ; for quicker access when using the same group more than once
Protected String$, StringIndex, Result
Group$ = UCase(Group$)
Name$ = UCase(Name$)
String$ = "##### String not found! #####" ; to help find bugs
If LanguageGroups(Group)\Name$ <> Group$ ; check if it is the same group as last time
For Group = 1 To NbLanguageGroups
If Group$ = LanguageGroups(Group)\Name$
Break
EndIf
Next Group
If Group > NbLanguageGroups ; check if group was found
Group = 0
EndIf
EndIf
If Group <> 0
StringIndex = LanguageGroups(Group)\IndexTable[ Asc(Left(Name$, 1)) ]
If StringIndex <> 0
Repeat
Result = CompareMemoryString(@Name$, @LanguageNames(StringIndex))
If Result = 0
String$ = LanguageStrings(StringIndex)
Break
ElseIf Result = -1 ; string not found!
Break
EndIf
StringIndex + 1
Until StringIndex > LanguageGroups(Group)\GroupEnd
EndIf
EndIf
ProcedureReturn ReplaceString(String$, "%newline%", #NewLine, #PB_String_NoCase)
EndProcedure
; Useful for some API functions
;
Procedure.i LanguageStringAddress(Group$, Name$)
Static String$
String$ = Language(Group$, Name$)
ProcedureReturn @String$
EndProcedure
Procedure.s LanguagePattern(Group$, Name$, Pattern$, ReplacementString$)
ProcedureReturn ReplaceString(Language(Group$, Name$), Pattern$, ReplacementString$, #PB_String_NoCase)
EndProcedure
;- BaseLanguage
DataSection
Language:
; Special Keywords:
; "_GROUP_" will indicate a new group in the datasection
; "_END_" will indicate the end of the language list (as there is no fixed number anymore)
; "LanguageInfo" group is reserved to store information about the language in a language file
;
; Note: The identifyer strings are case insensitive to make live easier :)
; ===================================================
;- Group - MenuTitle
Data$ "_GROUP_", "MenuTitle"
; ===================================================
Data$ "File", "&File"
Data$ "Edit", "&Edit"
Data$ "Project", "&Project"
Data$ "Form", "F&orm"
Data$ "Compiler", "&Compiler"
Data$ "Debugger", "&Debugger"
Data$ "Tools", "&Tools"
Data$ "Help", "&Help"
; ===================================================
;- Group - MenuItem
Data$ "_GROUP_", "MenuItem"
; ===================================================
Data$ "New", "&New"
Data$ "Open", "&Open..."
Data$ "Save", "&Save"
Data$ "SaveAs", "Save &As..."
Data$ "SaveAll", "Sa&ve All"
Data$ "Reload", "R&eload"
Data$ "Close", "&Close"
Data$ "CloseAll", "C&lose All"
Data$ "DiffCurrent", "View chan&ges"
Data$ "FileFormat", "F&ile format"
Data$ "EncodingPlain", "Encoding: &Plain Text"
Data$ "EncodingUtf8", "Encoding: &Utf8"
Data$ "NewlineWindows", "Newline: &Windows (CRLF)"
Data$ "NewlineLinux", "Newline: &Linux (LF)"
Data$ "NewlineMacOS", "Newline: &MacOS (CR)"
Data$ "SortSources", "Sor&t Sources..."
Data$ "Preferences", "&Preferences..."
Data$ "RecentFiles", "&Recent Files"
Data$ "EditHistory", "Session &History"
Data$ "Quit", "&Quit"
Data$ "Undo", "&Undo"
Data$ "Redo", "&Redo"
Data$ "Cut", "Cu&t"
Data$ "Copy", "&Copy"
Data$ "Paste", "&Paste"
Data$ "PasteComment", "Paste as comment"
Data$ "InsertComment", "I&nsert comments"
Data$ "RemoveComment", "Re&move comments"
Data$ "AutoIndent", "Format indentation"
Data$ "SelectAll", "Select &All"
Data$ "Goto", "&Goto..."
Data$ "JumpToKeyword", "Goto matching &Keyword"
Data$ "LastViewedLine", "Goto recent &Line"
Data$ "ToggleThisFold", "Toggle current fol&d"
Data$ "ToggleFolds", "T&oggle all folds"
Data$ "AddMarker", "Add/Remove &Marker"
Data$ "JumpToMarker", "&Jump to Marker"
Data$ "ClearMarkers", "Cl&ear Markers"
Data$ "Find", "&Find/Replace..."
Data$ "FindNext", "Find &Next"
Data$ "FindPrevious", "Find &Previous"
Data$ "FindInFiles", "Find &in Files..."
Data$ "NewProject", "&New Project..."
Data$ "OpenProject", "&Open Project..."
Data$ "RecentProjects", "Recent &Projects"
Data$ "CloseProject", "&Close Project"
Data$ "ProjectOptions", "Project &Options..."
Data$ "AddProjectFile", "&Add File to Project"
Data$ "RemoveProjectFile","&Remove File from Project"
Data$ "BackupManager", "&Manage Backups..."
Data$ "MakeBackup", "Make &Backup..."
Data$ "TodoList", "&Tasks..."
Data$ "OpenProjectFolder","Open Project &Folder"
Data$ "NewForm", "&New Form"
Data$ "FormSwitch", "&Switch Code/Design View"
Data$ "FormDuplicate", "&Duplicate Object"
Data$ "FormImageManager", "&Image Manager..."
Data$ "Compile", "&Compile/Run"
Data$ "RunExe", "&Run"
Data$ "SyntaxCheck", "&Syntax check"
Data$ "DebuggerCompile", "Compile with Debugger"
Data$ "NoDebuggerCompile","Compile without Debugger"
Data$ "RestartCompiler", "Re&start Compiler"
Data$ "CompilerOptions", "Compiler &Options..."
CompilerIf #SpiderBasic
Data$ "CreateEXE", "&Create App..."
CompilerElse
Data$ "CreateEXE", "Create &Executable..."
CompilerEndIf
Data$ "SetDefaultTarget", "Set &default Target"
Data$ "BuildTarget", "Build &Target"
Data$ "BuildAllTargets", "&Build all Targets"
Data$ "Debugger", "Use &Debugger"
Data$ "Stop", "&Stop"
Data$ "Run", "&Continue"
Data$ "Kill", "&Kill Program"
Data$ "Step", "S&tep"
Data$ "StepX", "Step <&n>"
Data$ "StepOver", "Ste&p Over"
Data$ "StepOut", "Step O&ut"
Data$ "BreakPoint", "&Breakpoint"
Data$ "BreakClear", "Clear B&reakpoints"
Data$ "DataBreakPoints", "Data Breakpo&ints"
Data$ "ErrorLog", "&Error Log"
Data$ "ShowLog", "&Show Error Log"
Data$ "ClearLog", "&Clear Log"
Data$ "CopyLog", "C&opy Log"
Data$ "ClearErrorMarks", "Clear &Error Marks"
Data$ "DebugOutput", "Debug &Output"
Data$ "WatchList", "&Watchlist"
Data$ "VariableList", "&Variable Viewer"
Data$ "Profiler", "Pro&filer"
Data$ "History", "Ca&llstack"
Data$ "Memory", "&Memory Viewer"
Data$ "LibraryViewer", "&Library Viewer"
Data$ "Purifier", "Purifier"
Data$ "DebugAsm", "&Assembly"
Data$ "VisualDesigner", "&Form Designer"
Data$ "StructureViewer", "&Structure Viewer"
Data$ "FileViewer", "&File Viewer"
Data$ "VariableViewer", "&Variable Viewer"
Data$ "ColorPicker", "&Color Picker"
Data$ "AsciiTable", "&Character Table"
Data$ "Explorer", "&Explorer"
Data$ "ProcedureBrowser", "&Procedure Browser"
Data$ "Issues", "&Issue Browser"
Data$ "Templates", "&Templates"
Data$ "ProjectPanel", "P&roject Panel"
Data$ "Diff", "C&ompare Files/Folders"
Data$ "AddTools", "Configure &Tools..."
Data$ "Help", "&Help..."
Data$ "UpdateCheck", "&Check for updates"
Data$ "ExternalHelp", "&External Help"
Data$ "About", "&About"
; ===================================================
;- Group - ToolsPanel
Data$ "_GROUP_", "ToolsPanel"
; ===================================================
Data$ "ProcedureBrowserShort", "Procedures"
Data$ "ProcedureBrowserLong", "Procedure Browser"
Data$ "Explorer", "Explorer"
Data$ "AsciiTable", "Character Table"
Data$ "VariableViewerShort", "Variables"
Data$ "VariableViewerLong", "Variable Viewer"
Data$ "ProjectPanelShort","Project"
Data$ "ProjectPanelLong", "Project Panel"
Data$ "FormShort", "Form"
Data$ "FormLong", "Form Panel"
Data$ "HelpToolShort", "Help"
Data$ "HelpToolLong", "Help Tool"
Data$ "ColorPicker", "Color Picker"
Data$ "Mode_RGB", "RGB"
Data$ "Mode_HSL", "HSL"
Data$ "Mode_HSV", "HSV"
Data$ "Mode_Wheel", "Wheel"
Data$ "Mode_Palette", "Palette"
Data$ "Mode_Name", "Name"
Data$ "NoMatch", "No matches found."
Data$ "UseAlpha", "Include alpha channel"
Data$ "Color_Insert", "Insert Color"
Data$ "Color_RGB", "Insert RGB"
Data$ "Color_Save", "Save Color"
Data$ "Color_Filter", "Filter"
Data$ "Variables", "Variables"
Data$ "Arrays", "Arrays"
Data$ "LinkedLists", "LinkedLists"
Data$ "Structures", "Structures"
Data$ "Interfaces", "Interfaces"
Data$ "Constants", "Constants"
Data$ "AllSources", "Display Elements from all open sources"
Data$ "ScanFor", "Scan for"
Data$ "TemplatesLong", "Code Templates"
Data$ "TemplatesShort", "Templates"
Data$ "Favorites", "Favorites"
Data$ "AddFavorite", "Add to Favorites"
Data$ "RemoveFavorite", "Remove from Favorites"
Data$ "IssuesShort", "Issues"
Data$ "IssuesLong", "Issue Browser"
Data$ "Priority", "Priority"
Data$ "IssueName", "Issue"
Data$ "IssueText", "Text"
Data$ "Prio0", "Blocker"
Data$ "Prio1", "High"
Data$ "Prio2", "Normal"
Data$ "Prio3", "Low"
Data$ "Prio4", "Info"
Data$ "AllIssues", "All issues"
Data$ "SingleFile", "Show issues of current source only"
Data$ "MultiFile", "Show issues of all open files/project files"
Data$ "Export", "Export issue list"
; ===================================================
;- Group - FileStuff
Data$ "_GROUP_", "FileStuff"
; ===================================================
Data$ "NewSource", "<New>"
Data$ "NewForm", "<New Form>"
Data$ "OpenFileTitle", "Choose a file to open..."
Data$ "SaveFileTitle", "Save source code as..."
CompilerIf #SpiderBasic
Data$ "Pattern", "SpiderBasic Files (*.sb, *.sbi, *.sbp, *.sbf)|*.sb;*.sbi;*.sbp;*.sbf|SpiderBasic Sourcecodes (*.sb)|*.sb|SpiderBasic Includefiles (*.sbi)|*.sbi|SpiderBasic Projects (*.sbp)|*.sbp|Spiderbasic Forms (*.sbf)|*.sbf|All Files (*.*)|*.*"
CompilerElse
Data$ "Pattern", "PureBasic Files (*.pb, *.pbi, *.pbp, *.pbf)|*.pb;*.pbi;*.pbp;*.pbf|PureBasic Sourcecodes (*.pb)|*.pb|PureBasic Includefiles (*.pbi)|*.pbi|PureBasic Projects (*.pbp)|*.pbp|Purebasic Forms (*.pbf)|*.pbf|All Files (*.*)|*.*"
CompilerEndIf
Data$ "StatusLoading", "Loading source code..."
Data$ "StatusLoaded", "Source code loaded."
Data$ "LoadError", "Cannot load Source code!"
Data$ "MiscLoadError", "Cannot load file!"
Data$ "StatusSaving", "Saving source code..."
Data$ "StatusSaved", "Source code saved."
Data$ "SaveError", "Cannot save Source code!"
Data$ "FileExists", "The file you specified already exists!"
Data$ "OverWrite", "Do you want to overwrite it?"
Data$ "CreateError", "The file cannot be created!"
Data$ "SaveConfigError", "Cannot save Compiler options to file"
Data$ "Modified", "The file '%filename%'has been modified.%newline%Do you want to save the changes?"
Data$ "ModifiedNew", "This new file has not been saved yet. Do you want to save it now?"
Data$ "ReloadModified", "This file has been modified.%newline%Should the changes be discarded by reloading it?"
Data$ "DeletedOnDisk", "The file '%filename%' has been deleted from the disk.%newline%Do you want to save it now?"
Data$ "ModifiedOnDisk1", "The file '%filename%' has been modified on disk.%newline%Do you want to reload it to reflect these changes?"
Data$ "ModifiedOnDisk2", "The file '%filename%' has been modified on disk.%newline%Do you want to discard your current changes and reload it from disk?"
Data$ "ViewDiff", "View Differences"
Data$ "Reload", "Reload"
Data$ "AddNewFileTitle" , "Adding a new project file..."
Data$ "AddNewFileQuestion", "The file '%filename%' doesn't exists on disk.%newline%Do you want to create it ?"
Data$ "AddNewFileError" , "The file '%filename%' can't be created on disk."
Data$ "ExportIssueTitle", "Export issues to..."
Data$ "ExportIssuePattern","Comma separated values (*.csv)|*.csv|All files (*.*)|*.*"
; ===================================================
;- Group - Project
Data$ "_GROUP_", "Project"
; ===================================================
Data$ "Title", "Project Options"
Data$ "TitleNew", "Create new Project"
Data$ "TitleSave", "Save project as..."
Data$ "TitleOpen", "Open project..."
Data$ "TitleShort", "Project"
Data$ "CompilerOptions", "Compiler Options"
Data$ "ProjectOptions", "Project Options"
Data$ "CreateProject", "Create"
Data$ "DefaultName", "New Project"
Data$ "TabTitle", "Project"
Data$ "OptionTab", "Project Options"
Data$ "ProjectInfo", "Project Info"
Data$ "ProjectFile", "Project File"
Data$ "ProjectName", "Project Name"
Data$ "ProjectTargets", "Project Targets"
Data$ "Comments", "Comments"
Data$ "LoadOptions", "Loading Options"
Data$ "SetDefault", "Set as default project (always open when the IDE starts)"
Data$ "CloseAllFiles", "Close all sources when closing the project"
Data$ "WhenOpening", "When opening the project..."
Data$ "OpenLoadLast", "load all sources that were open last time"
Data$ "OpenLoadAll", "load all sources of the project"
Data$ "OpenLoadDefault", "load only sources marked in 'Project Files'"
Data$ "OpenLoadMain", "load only the main file of the default target"
Data$ "OpenLoadNone", "load no files"
Data$ "FilesChanged", "The following files were modified while the project was closed"
Data$ "FileMissing", "The file '%filename%' cannot be found.%newline%Do you want to search for it?"
Data$ "RemoveMany", "Do you really want to remove these %count% files from the project?"
Data$ "FileTab", "Project Files"
Data$ "View", "View"
Data$ "FileScan", "Scan file for Autocomplete"
Data$ "FileLoad", "Load file when opening the project"
Data$ "FilePanel", "Show file in the Project panel"
Data$ "FileWarn", "Display a warning if file changed"
Data$ "Filename", "Filename"
Data$ "FileScanShort", "Scan"
Data$ "FileLoadShort", "Load"
Data$ "FilePanelShort", "Panel"
Data$ "FileWarnShort", "Warn"
Data$ "FileSize", "Size"
Data$ "FileModified", "Last Modified"
Data$ "FileDateFormat", "%mm/%dd/%yyyy - %hh:%ii"
Data$ "LastOpen", "Last open"
Data$ "LastOpenText", "%date% by %user% on %host%"
Data$ "LastOpenEditor", "Editor"
Data$ "TargetShort", "Target"
Data$ "DebugShort", "Debug"
Data$ "ThreadShort", "Thread"
Data$ "AsmShort", "Asm"
Data$ "OnErrorShort", "OnError"
Data$ "CompileCountShort","Compile"
Data$ "BuildCountShort", "Build"
Data$ "FormatShort", "Format"
Data$ "InputFile", "Input File"
Data$ "AddDirectory", "Should the content of the following directory be added to the project ?"
Data$ "AddManyFiles", "Do you really want to add %filecount% files to the project?"
CompilerIf #SpiderBasic
Data$ "Pattern", "SpiderBasic Projects (*.sbp)|*.sbp|All files (*.*)|*.*"
CompilerElse
Data$ "Pattern", "PureBasic Projects (*.pbp)|*.pbp|All files (*.*)|*.*"
CompilerEndIf
Data$ "NeedName", "A name must be specified for the project."
Data$ "NeedFile", "A filename must be specified for the project."
Data$ "SaveError", "The project file cannot be saved to disk."
Data$ "LoadError", "The project file cannot be loaded."
Data$ "VersionLow", "The version number of the project file is lower than the current version.%newline%If loaded, it will be converted to the current version."
Data$ "VersionHigh", "The version number of the project file is higher than the current one. %newline%If loaded, some data of the project may be lost."
Data$ "VersionTooHigh", "Project files with this version cannot be loaded."
Data$ "LoadAnyway", "Do you want to load it anyway?"
Data$ "ProjectFile", "Project file"
Data$ "ProjectVersion", "Project version"
Data$ "CurrentVersion", "Current version"
Data$ "LastWrittenBy", "Last written by"
Data$ "InternalFiles", "Project Folder"
Data$ "ExternalFiles", "External Files"
Data$ "PanelOpen", "Open"
Data$ "PanelOpenViewer", "Open in FileViewer"
Data$ "PanelOpenIn", "Open in %name%"
Data$ "PanelAdd", "Add file to Project..."
Data$ "PanelRemove", "Remove from Project"
Data$ "PanelRescan", "Refresh AutoComplete data"
Data$ "OpenExplorerWindows", "Open in Explorer"
Data$ "OpenExplorerLinux", "Open in Filemanager"
Data$ "OpenExplorerMac", "Open in Finder"
Data$ "ReallyClose", "Really close the project?"
; ===================================================
;- Group - Preferences
Data$ "_GROUP_", "Preferences"
; ===================================================
Data$ "Title", "Preferences"
Data$ "Apply", "Apply"
Data$ "General", "General"
Data$ "MemorizeWindow", "Memorize Window positions"
Data$ "RunOnce", "Run only one Instance"
Data$ "ShowMainToolbar", "Show main Toolbar"
Data$ "VisualDesigner", "VisualDesigner"
Data$ "AutoReload", "Auto-reload last open sources"
Data$ "FileHistorySize", "RecentFiles list size"
Data$ "FindHistorySize", "Search History size"
Data$ "Language", "Language"
Data$ "LanguageInfo", "Language Information"
Data$ "FileName", "Filename"
Data$ "LastUpdated", "Last Updated"
Data$ "Creator", "Creator"
Data$ "Email", "Email"
Data$ "EnableMenuIcons", "Display Icons in the Menu"
Data$ "DisplayFullPath", "Display full Source Path in TitleBar"
Data$ "NoSplashScreen", "Disable Splash Screen"
Data$ "Updates", "Updates"
Data$ "CheckInterval", "Check for updates"
Data$ "CheckVersions", "Check for releases"
Data$ "IntervalAlways", "At every start"
Data$ "IntervalWeekly", "Once a week"
Data$ "IntervalMonthly", "Once a month"
Data$ "IntervalNever", "Never"
Data$ "VersionsAll", "All releases (including beta releases)"
Data$ "VersionsFinal", "Final releases"
Data$ "VersionsLTS", "Long term support releases"
Data$ "Editor", "Editor"
Data$ "AutoSave", "Auto-save before compiling"
Data$ "AutoSaveAll", "Save all sources with Auto-save"
Data$ "TabLength", "Tab Length"
Data$ "RealTab", "Use real Tab (ASCII 9)"
Data$ "SourcePath", "Source Directory"
Data$ "MemorizeCursor", "Memorize Cursor position"
Data$ "MemorizeMarkers", "Memorize Marker positions"
Data$ "Defaults", "Default Settings for new Files"
Data$ "DefaultsShort", "Defaults"
Data$ "CPU", "CPU Optimisation"
Data$ "SubSystem", "Library Subsystem"
Data$ "SaveSettings", "Save Settings to"
Data$ "SaveSettings0", "The end of the Source file"
CompilerIf #SpiderBasic
Data$ "SaveSettings1", "The file <filename>.sb.cfg"
CompilerElse
Data$ "SaveSettings1", "The file <filename>.pb.cfg"
CompilerEndIf
Data$ "SaveSettings2", "A common file project.cfg for every directory"
Data$ "SaveSettings3", "Don't save anything"
Data$ "AlwaysHideLog", "Always hide the error log (ignore the per-source setting)"
Data$ "MonitorFileChanges","Monitor open files for changes on disk"
Data$ "FilesPanel", "File selection"
Data$ "FilesPanelMultiline", "Display multiple rows"
Data$ "FilesPanelCloseButtons", "Display close buttons in each tab"
Data$ "FilesPanelNewButton", "Add a tab to create a new source"
Data$ "CodeFileExtensions","Code file extensions"
Data$ "Editing", "Editing"
Data$ "Colors", "Coloring"
Data$ "Settings", "Settings"
;Data$ "EnableColoring", "Enable Syntax coloring"
Data$ "EnableBolding", "Enable bolding of Keywords"
Data$ "EnableCase", "Enable Case correction"
Data$ "EnableBraceMatch", "Enable marking of matching Braces"
Data$ "EnableKeywordMatch","Enable marking of matching Keywords"
Data$ "EnableLineNumbers","Display Line numbers"
Data$ "EnableMarkers", "Enable Line Markers"
Data$ "ExtraWordChars", "Extra characters included in word selection"
Data$ "SelectFont", "Select Font"
Data$ "DefaultColors", "Default Color Schemes"
Data$ "ShowWhiteSpace", "Show whitespace characters"
Data$ "ShowIndentGuides", "Show indentation guides"
Data$ "Color0", "ASM Keywords"
Data$ "Color1", "Background"
Data$ "Color2", "Basic Keywords"
Data$ "Color3", "Comments"
Data$ "Color4", "Constants"
Data$ "Color5", "Labels"
Data$ "Color6", "Normal Text"
Data$ "Color7", "Numbers"
Data$ "Color8", "Operators (* /+ -)"
Data$ "Color9", "Pointers"
Data$ "Color10", "Functions"
Data$ "Color11", "Separators (; , [ ])"
Data$ "Color12", "Strings"
Data$ "Color13", "Structures"
Data$ "Color14", "LineNumbers"
Data$ "Color15", "LineNumbers Background"
Data$ "Color16", "Line Markers"
Data$ "Color17", "Currentline Background"
Data$ "Color18", "Selection Background"
Data$ "Color19", "Selection Text"
Data$ "Color20", "Cursor"
Data$ "Color21", "Current Line Background (Debugger)"
Data$ "Color22", "Current Line Symbol (Debugger)"
Data$ "Color23", "Error Background (Debugger)"
Data$ "Color24", "Error Symbol (Debugger)"
Data$ "Color25", "Breakpoint Background (Debugger)"
Data$ "Color26", "Breakpoint Symbol (Debugger)"
Data$ "Color27", "Background for non-editable files (Debugger)"
Data$ "Color28", "Mark matching Braces and Keywords"
Data$ "Color29", "Mark mismatched Braces and Keywords"
Data$ "Color30", "Background for Procedures"
Data$ "Color31", "Custom Keywords"
Data$ "Color32", "Warning Background (Debugger)"
Data$ "Color33", "Warning Symbol (Debugger)"
Data$ "Color34", "Whitespace and indentation guides"
Data$ "Color35", "Module Names"
Data$ "Color36", "Repeated Selections Background"
Data$ "Color37", "Background for plain text files"
Data$ "Keywords", "Custom keywords"
Data$ "KeywordsFile", "Load keywords from file"
Data$ "OpenKeywordFile", "Choose keyword list file..."
Data$ "Folding", "Folding"
Data$ "EnableFolding", "Enable Source Line folding"
Data$ "FoldStartWords", "Folding start Keywords"
Data$ "FoldEndWords", "Folding end Keywords"
Data$ "Themes", "Themes"
Data$ "Toolbar", "Toolbar"
Data$ "ToolbarLayout", "Toolbar Layout"
Data$ "Icon", "Icon"
Data$ "Action", "Action"
Data$ "ItemSettings", "Item Settings"
Data$ "ItemPosition", "Position"
Data$ "Set", "Set"
Data$ "ToolbarSets", "Default Sets"
Data$ "ToolbarDefault", "Default Toolbar"
Data$ "ToolbarClassic", "Classic Toolbar"
Data$ "Separator", "Separator"
Data$ "Space", "Space"
Data$ "StandardButton", "Standard Icon"
Data$ "ThemeIcon", "Theme Icon"
Data$ "ExternalIcon", "Icon File"
Data$ "ActionMenu", "Menu Item"
Data$ "ActionTool", "Run Tool"
Data$ "OpenIcon", "Choose Icon File"
Data$ "IconPattern", "Icon Files (*.ico, *.png)|*.ico;*.png|All Files (*.*)|*.*"
Data$ "MaxItems", "Maximum number of toolbar items reached"
Data$ "Tools", "ToolsPanel"
Data$ "Options", "Options"
Data$ "ToolsPanelOptions","ToolsPanel Options"
Data$ "ToolsPanelLeft", "Panel on the left side"
Data$ "ToolsPanelRight", "Panel on the right side"
Data$ "ToolsFrontColor", "Front Color"
Data$ "ToolsBackColor", "Background Color"
Data$ "NoIndependandColors", "Do not use colors/fonts for tools in external windows."
Data$ "AutoHidePanel", "Automatically hide the Panel"
Data$ "AutoHideDelay", "Milliseconds delay before hiding the Panel"
Data$ "ToolsPanelItems", "Tools in the ToolsPanel"
Data$ "AvailableTools", "Available Tools"
Data$ "UsedTools", "Displayed Tools"
Data$ "Add", "Add"
Data$ "Remove", "Remove"
Data$ "Up", "Up"
Data$ "Down", "Down"
Data$ "Configuration", "Configuration"
Data$ "ExplorerMode", "Displaymode of the Explorer"
Data$ "ExplorerTree", "Explorer Tree"
Data$ "ExplorerList", "Explorer List"
Data$ "ExplorerSavePath", "Remember last displayed Directory"
Data$ "ProcedureSort", "Sort Procedures by name"
Data$ "ProcedureGroup", "Group Markers"
Data$ "ProcedurePrototype", "Display Procedure Arguments"
Data$ "Indent", "Indentation"
Data$ "IndentTitle", "Code Indentation"
Data$ "IndentNo", "No indentation"
Data$ "IndentBlock", "Block mode"
Data$ "IndentSensitive", "Keyword sensitive"
Data$ "BackspaceUnindent","Backspace unindents"
Data$ "AddSet", "Add/Set"
Data$ "Keyword", "Keyword"
Data$ "Before", "Before"
Data$ "After", "After"
Data$ "AutoComplete", "AutoComplete"
Data$ "AutoCompleteList", "Displayed Items"
Data$ "DisplayFullList", "Display the full AutoComplete list"
Data$ "FirstCharMatch", "Display all words that match the first character"
Data$ "AllWordMatch", "Display only words that begin with the typed word"
Data$ "BoxWidth", "Box width"
Data$ "BoxHeight", "Box height"
Data$ "AddBrackets", "Add opening Brackets to Functions/Arrays/Lists"
Data$ "AddSpaces", "Add a Space after PB Keywords followed by an expression"
Data$ "AddEndKeywords", "Add matching 'End' keyword if insert is pressed twice"
Data$ "ListOptions", "Items to display in the AutoComplete List"
Data$ "NoComments", "Disable automatic popup inside Comments"
Data$ "NoStrings", "Disable automatic popup inside Strings"
Data$ "PopupLength", "Characters needed before opening the list"
Data$ "AutoPopupNormal", "Automatically popup AutoComplete otherwise"
Data$ "AutoPopupStructures","Automatically popup AutoComplete for Structure items"
Data$ "AutoPopupModules", "Automatically popup AutoComplete after a Module prefix"
Data$ "PBItems", "Predefined Items"
Data$ "SourceItems", "Sourcecode Items"
Data$ "SourceOnly", "the current source only"
Data$ "ProjectOnly", "the current project (if any)"
Data$ "ProjectAllFiles", "the current project or all files (if none)"
Data$ "AllFiles", "all open files"
Data$ "AddFrom", "Add Items from"
Data$ "Option_Variable", "Variables"
Data$ "Option_Array", "Arrays"
Data$ "Option_List", "LinkedLists"
Data$ "Option_Map", "Maps"
Data$ "Option_Procedure", "Procedures"
Data$ "Option_Macro", "Macros"
Data$ "Option_Import", "Imported Functions"
Data$ "Option_Prototype", "Prototypes"
Data$ "Option_Constant", "Constants"
Data$ "Option_Structure", "Structures"
Data$ "Option_Interface", "Interfaces"
Data$ "Option_Label", "Labels"
Data$ "Option_Module", "Modules"
Data$ "Option_PBKeywords", "Keywords"
Data$ "Option_ASMKeywords", "ASM Keywords"
Data$ "Option_PBFunctions", "Library Functions"
Data$ "Option_APIFunctions","API Functions"
Data$ "Option_PBConstants", "Constants"
Data$ "Option_PBStructures","Structures"
Data$ "Option_PBInterfaces","Interfaces"
Data$ "Debugger", "Debugger"
Data$ "IndividualSettings", "Individual Settings"
Data$ "DefaultWindows", "Default Windows"
Data$ "Compiler", "Compiler"
Data$ "DefaultCompiler", "Default Compiler"
Data$ "MoreCompilers", "Additional Compilers"
Data$ "CompilerVersion", "Version"
Data$ "CompilerPath", "Path"
Data$ "SelectCompiler", "Select PureBasic compiler..."
Data$ "EditHistory", "Session History"
Data$ "EnableHistory", "Enable recording of history (change requires a restart)"
Data$ "HistoryTimer1", "Record unsaved changes every"
Data$ "HistoryTimer2", "minutes"
Data$ "HistoryMaxSize1", "Record only changes to files smaller than"
Data$ "HistoryMaxSize2", "kilobytes"
Data$ "PurgeSessions", "Purge old sessions from history"
Data$ "PurgeNever", "Keep all history"
Data$ "PurgeByDays1", "Keep sessions for"
Data$ "PurgeByDays2", "days"
Data$ "PurgeByCount1", "Keep maximum"
Data$ "PurgeByCount2", "sessions"
Data$ "HistoryFile", "Database location"
Data$ "HistoryFileSize", "Database size"
Data$ "AutoClearLog", "Clear Errorlog on each run"
Data$ "DisplayErrorWindow", "Display compilation errors in a window"
Data$ "DebuggerMode", "Choose Debugger Type"
Data$ "IDEDebugger", "Integrated IDE Debugger"
Data$ "GUIDebugger", "Standalone GUI Debugger"
Data$ "ConsoleDebugger", "Console only Debugger"
Data$ "WarningMode", "Choose Warning level"
Data$ "WarningsIgnore", "Ignore Warnings"
Data$ "WarningsDisplay", "Display Warnings"