Changeset 228 for trunk/NewView/MainForm.pas
- Timestamp:
- Sep 9, 2007, 2:02:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/MainForm.pas
r165 r228 462 462 // language stuff 463 463 // called by callback 464 Procedure OnLanguageEvent( Language: TLanguageFile; 465 const Apply: boolean ); 464 Procedure OnLanguageEvent(Language: TLanguageFile; const Apply: boolean ); 466 465 467 466 function ShowCodes: boolean; … … 1365 1364 end; 1366 1365 1367 Procedure TMainForm.OnLanguageEvent( Language: TLanguageFile; 1368 const Apply: boolean ); 1366 Procedure TMainForm.OnLanguageEvent(Language: TLanguageFile; const Apply: boolean); 1367 var 1368 tmpPrefix : String; 1369 1369 Begin 1370 1370 // get rid of mru menu items … … 1391 1391 // Load strings referred to by code... 1392 1392 // ---------------------------------------------------------- 1393 1394 Language.LL( Apply, FileOpenTitle, 'FileOpenTitle', 'Open Help Files' ); 1395 Language.LL( Apply, LoadingFileMsg, 'LoadingFileMsg', 'Loading file ' ); 1396 Language.LL( Apply, HelpFileError, 'HelpFileError', 'Could not open ' ); 1397 Language.LL( Apply, LoadingStatusDisplaying, 'LoadingStatusDisplaying', 'Displaying...' ); 1398 Language.LL( Apply, LoadingStatusNotesAndBookmarks, 'LoadingStatusNotesAndBookmarks', 'Loading notes/bookmarks...' ); 1399 Language.LL( Apply, LoadingStatusContents, 'LoadingStatusContents', 'Display contents... ' ); 1400 Language.LL( Apply, LoadingStatusIndex, 'LoadingStatusIndex', 'Display index... ' ); 1401 Language.LL( Apply, LoadingStatusDone, 'LoadingStatusDone', 'Done' ); 1402 1403 Language.LL( Apply, HelpFilesDesc, 'HelpFilesDesc', 'Help Files (*.inf,*.hlp)' ); 1404 Language.LL( Apply, AllFilesDesc, 'AllFilesDesc', 'All Files (*)' ); 1405 Language.LL( Apply, LanguageFilesDesc, 'LanguageFilesDesc', 'NewView Language Files (*.lng)' ); 1406 1407 Language.LL( Apply, SaveLanguageTitle, 'SaveLanguageTitle', 'Save/Update Language File' ); 1408 Language.LL( Apply, OpenLanguageTitle, 'OpenLanguageTitle', 'Open Language File' ); 1409 Language.LL( Apply, SaveLanguageError, 'SaveLanguageError', 'Error saving language file: ' ); 1410 1411 Language.LL( Apply, HelpManagerVersionTitle, 'HelpManagerVersionTitle', 'Help Manager Version' ); 1412 1413 Language.LL( Apply, FindResourceIDTitle, 'FindResourceIDTitle', 'Find Resource ID' ); 1414 Language.LL( Apply, FindResourceIDPrompt, 'FindResourceIDPrompt', 'Enter the resource ID to find' ); 1415 Language.LL( Apply, InvalidResourceIDError, 'InvalidResourceIDError', 'Invalid resource ID entered' ); 1416 Language.LL( Apply, ResourceIDNotFoundError, 'ResourceIDNotFoundError', 'Resource ID not found' ); 1417 1418 Language.LL( Apply, OpenSpecialTitle, 'OpenSpecialTitle', 'Open Special' ); 1419 Language.LL( Apply, OpenSpecialPrompt, 'OpenSpecialPrompt', 'Enter help filename/environment variable name' ); 1420 1421 Language.LL( Apply, PrintTopicTitle, 'PrintTopicTitle', 'Print Topic' ); 1422 Language.LL( Apply, NoPrinterError, 'NoPrinterError', 'You don''t have a printer configured.' ); 1423 Language.LL( Apply, SelectWindowToPrintError, 'SelectWindowToPrintError', 'You must select the window you want to print.' ); 1424 Language.LL( Apply, PrintingError, 'PrintingError', 'Error while printing: ' ); 1425 Language.LL( Apply, StoppingPrintMsg, 'StoppingPrintMsg', 'Stopping print...' ); 1426 Language.LL( Apply, PrintStoppedMsg, 'PrintStoppedMsg', 'Printing stopped' ); 1427 Language.LL( Apply, CheckStopPrintTitle, 'CheckStopPrintTitle', 'Stop Print?' ); 1428 Language.LL( Apply, CheckStopPrintMsg, 'CheckStopPrintMsg', 'Printing is still in progress. It will be stopped if you close.' ); 1429 1430 Language.LL( Apply, TopicInfoTitle, 'TopicInfo.Title', 'Topic Information' ); 1431 Language.LL( Apply, TopicInfoTopicTitle, 'TopicInfo.TopicTitle', 'Title: ' ); 1432 Language.LL( Apply, TopicInfoIndex, 'TopicInfo.Index', 'Index: ' ); 1433 Language.LL( Apply, TopicInfoFile, 'TopicInfo.File', 'File: ' ); 1434 Language.LL( Apply, TopicInfoResourceIDs, 'TopicInfo.ResourceIDs', 'Resource IDs:' ); 1435 Language.LL( Apply, TopicInfoNoResourceIDs, 'TopicInfo.NoResourceIDs', ' (None)' ); 1436 1437 Language.LL( Apply, ParameterCountLabel, 'ParameterCountLabel', 'Parameter Count: ' ); 1438 1439 Language.LL( Apply, NewViewHelpTitle, 'NewViewHelpTitle', 'NewView Help' ); 1440 Language.LL( Apply, AlreadyNewviewHelp, 'AlreadyNewviewHelp', 'You are already viewing the NewView help file' ); 1441 Language.LL( Apply, NewViewHelpNotFound, 'NewViewHelpNotFound', 'Couldn''t find the NewView helpfile: ' ); 1442 1443 Language.LL( Apply, InvalidLinkErrorTitle, 'InvalidLinkErrorTitle', 'Invalid Link' ); 1444 Language.LL( Apply, InvalidLinkError, 'InvalidLinkError', 'Cannot follow link to nonexistent topic' ); 1445 Language.LL( Apply, InvalidResourceIDLinkErrorA, 'InvalidResourceIDLinkErrorA', 'Could not find linked topic (Resource #' ); 1446 Language.LL( Apply, InvalidResourceIDLinkErrorB, 'InvalidResourceIDLinkErrorB', '). This may be from another file.' ); 1447 1448 Language.LL( Apply, OpenedTopicMsg, 'OpenedTopicMsg', 'Opened topic #' ); 1449 1450 Language.LL( Apply, AddNoteTitle, 'AddNoteTitle', 'Add Note' ); 1451 Language.LL( Apply, AddNoteCursorError, 'AddNoteCursorError', 'Before adding a note, position the cursor where you want the note to be placed.' ); 1452 Language.LL( Apply, NoteWithinNoteError, 'NoteWithinNoteError', 'You can''t add a note within a link or another note' ); 1453 Language.LL( Apply, LoadNotesTitle, 'LoadNotesTitle', 'Load Notes' ); 1454 Language.LL( Apply, LoadNotesError, 'LoadNotesError', 'Error loading notes from ' ); 1455 Language.LL( Apply, SaveNotesTitle, 'SaveNotesTitle', 'Save Notes' ); 1456 Language.LL( Apply, SaveNotesError, 'SaveNotesError', 'Error saving notes to ' ); 1457 1458 Language.LL( Apply, UntitledBookmarkName, 'UntitledBookmarkName', '(Untitled)' ); 1459 Language.LL( Apply, LoadBookmarksTitle, 'LoadBookmarksTitle', 'Load Bookmarks' ); 1460 Language.LL( Apply, LoadBookmarksError, 'LoadBookmarksError', 'Could not load bookmarks: ' ); 1461 Language.LL( Apply, SaveBookmarksTitle, 'SaveBookmarksTitle', 'Save Bookmarks' ); 1462 Language.LL( Apply, SaveBookmarksError, 'SaveBookmarksError', 'Could not save bookmarks: ' ); 1463 1464 Language.LL( Apply, ApplicationErrorTitle, 'ApplicationErrorTitle', 'Application Error - Close?' ); 1465 Language.LL( Apply, ApplicationErrorA, 'ApplicationErrorA', 'This application has crashed. ' ); 1466 Language.LL( Apply, ApplicationErrorB, 'ApplicationErrorB', '(Details logged to ' ); 1467 Language.LL( Apply, ApplicationErrorC, 'ApplicationErrorC', 'Close application? ' ); 1468 1469 Language.LL( Apply, EnvironmentVarErrorTitle, 'EnvironmentVarErrorTitle', 'Environment Variable Warning' ); 1393 tmpPrefix := 'MainForm' + LANGUAGE_LABEL_DELIMITER; 1394 1395 Language.LL( Apply, FileOpenTitle, tmpPrefix + 'FileOpenTitle', 'Open Help Files' ); 1396 Language.LL( Apply, LoadingFileMsg, tmpPrefix + 'LoadingFileMsg', 'Loading file ' ); 1397 Language.LL( Apply, HelpFileError, tmpPrefix + 'HelpFileError', 'Could not open ' ); 1398 Language.LL( Apply, LoadingStatusDisplaying, tmpPrefix + 'LoadingStatusDisplaying', 'Displaying...' ); 1399 Language.LL( Apply, LoadingStatusNotesAndBookmarks, tmpPrefix + 'LoadingStatusNotesAndBookmarks', 'Loading notes/bookmarks...' ); 1400 Language.LL( Apply, LoadingStatusContents, tmpPrefix + 'LoadingStatusContents', 'Display contents... ' ); 1401 Language.LL( Apply, LoadingStatusIndex, tmpPrefix + 'LoadingStatusIndex', 'Display index... ' ); 1402 Language.LL( Apply, LoadingStatusDone, tmpPrefix + 'LoadingStatusDone', 'Done' ); 1403 1404 Language.LL( Apply, HelpFilesDesc, tmpPrefix + 'HelpFilesDesc', 'Help Files (*.inf,*.hlp)' ); 1405 Language.LL( Apply, AllFilesDesc, tmpPrefix + 'AllFilesDesc', 'All Files (*)' ); 1406 Language.LL( Apply, LanguageFilesDesc, tmpPrefix + 'LanguageFilesDesc', 'NewView Language Files (*.lng)' ); 1407 1408 Language.LL( Apply, SaveLanguageTitle, tmpPrefix + 'SaveLanguageTitle', 'Save/Update Language File' ); 1409 Language.LL( Apply, OpenLanguageTitle, tmpPrefix + 'OpenLanguageTitle', 'Open Language File' ); 1410 Language.LL( Apply, SaveLanguageError, tmpPrefix + 'SaveLanguageError', 'Error saving language file: ' ); 1411 1412 Language.LL( Apply, HelpManagerVersionTitle, tmpPrefix + 'HelpManagerVersionTitle', 'Help Manager Version' ); 1413 1414 Language.LL( Apply, FindResourceIDTitle, tmpPrefix + 'FindResourceIDTitle', 'Find Resource ID' ); 1415 Language.LL( Apply, FindResourceIDPrompt, tmpPrefix + 'FindResourceIDPrompt', 'Enter the resource ID to find' ); 1416 Language.LL( Apply, InvalidResourceIDError, tmpPrefix + 'InvalidResourceIDError', 'Invalid resource ID entered' ); 1417 Language.LL( Apply, ResourceIDNotFoundError, tmpPrefix + 'ResourceIDNotFoundError', 'Resource ID not found' ); 1418 1419 Language.LL( Apply, OpenSpecialTitle, tmpPrefix + 'OpenSpecialTitle', 'Open Special' ); 1420 Language.LL( Apply, OpenSpecialPrompt, tmpPrefix + 'OpenSpecialPrompt', 'Enter help filename/environment variable name' ); 1421 1422 Language.LL( Apply, PrintTopicTitle, tmpPrefix + 'PrintTopicTitle', 'Print Topic' ); 1423 Language.LL( Apply, NoPrinterError, tmpPrefix + 'NoPrinterError', 'You don''t have a printer configured.' ); 1424 Language.LL( Apply, SelectWindowToPrintError, tmpPrefix + 'SelectWindowToPrintError', 'You must select the window you want to print.' ); 1425 Language.LL( Apply, PrintingError, tmpPrefix + 'PrintingError', 'Error while printing: ' ); 1426 Language.LL( Apply, StoppingPrintMsg, tmpPrefix + 'StoppingPrintMsg', 'Stopping print...' ); 1427 Language.LL( Apply, PrintStoppedMsg, tmpPrefix + 'PrintStoppedMsg', 'Printing stopped' ); 1428 Language.LL( Apply, CheckStopPrintTitle, tmpPrefix + 'CheckStopPrintTitle', 'Stop Print?' ); 1429 Language.LL( Apply, CheckStopPrintMsg, tmpPrefix + 'CheckStopPrintMsg', 'Printing is still in progress. It will be stopped if you close.' ); 1430 1431 Language.LL( Apply, TopicInfoTitle, tmpPrefix + 'TopicInfo.Title', 'Topic Information' ); 1432 Language.LL( Apply, TopicInfoTopicTitle, tmpPrefix + 'TopicInfo.TopicTitle', 'Title: ' ); 1433 Language.LL( Apply, TopicInfoIndex, tmpPrefix + 'TopicInfo.Index', 'Index: ' ); 1434 Language.LL( Apply, TopicInfoFile, tmpPrefix + 'TopicInfo.File', 'File: ' ); 1435 Language.LL( Apply, TopicInfoResourceIDs, tmpPrefix + 'TopicInfo.ResourceIDs', 'Resource IDs:' ); 1436 Language.LL( Apply, TopicInfoNoResourceIDs, tmpPrefix + 'TopicInfo.NoResourceIDs', ' (None)' ); 1437 1438 Language.LL( Apply, ParameterCountLabel, tmpPrefix + 'ParameterCountLabel', 'Parameter Count: ' ); 1439 1440 Language.LL( Apply, NewViewHelpTitle, tmpPrefix + 'NewViewHelpTitle', 'NewView Help' ); 1441 Language.LL( Apply, AlreadyNewviewHelp, tmpPrefix + 'AlreadyNewviewHelp', 'You are already viewing the NewView help file' ); 1442 Language.LL( Apply, NewViewHelpNotFound, tmpPrefix + 'NewViewHelpNotFound', 'Couldn''t find the NewView helpfile: ' ); 1443 1444 Language.LL( Apply, InvalidLinkErrorTitle, tmpPrefix + 'InvalidLinkErrorTitle', 'Invalid Link' ); 1445 Language.LL( Apply, InvalidLinkError, tmpPrefix + 'InvalidLinkError', 'Cannot follow link to nonexistent topic' ); 1446 Language.LL( Apply, InvalidResourceIDLinkErrorA, tmpPrefix + 'InvalidResourceIDLinkErrorA', 'Could not find linked topic (Resource #' ); 1447 Language.LL( Apply, InvalidResourceIDLinkErrorB, tmpPrefix + 'InvalidResourceIDLinkErrorB', '). This may be from another file.' ); 1448 1449 Language.LL( Apply, OpenedTopicMsg, tmpPrefix + 'OpenedTopicMsg', 'Opened topic #' ); 1450 1451 Language.LL( Apply, AddNoteTitle, tmpPrefix + 'AddNoteTitle', 'Add Note' ); 1452 Language.LL( Apply, AddNoteCursorError, tmpPrefix + 'AddNoteCursorError', 'Before adding a note, position the cursor where you want the note to be placed.' ); 1453 Language.LL( Apply, NoteWithinNoteError, tmpPrefix + 'NoteWithinNoteError', 'You can''t add a note within a link or another note' ); 1454 Language.LL( Apply, LoadNotesTitle, tmpPrefix + 'LoadNotesTitle', 'Load Notes' ); 1455 Language.LL( Apply, LoadNotesError, tmpPrefix + 'LoadNotesError', 'Error loading notes from ' ); 1456 Language.LL( Apply, SaveNotesTitle, tmpPrefix + 'SaveNotesTitle', 'Save Notes' ); 1457 Language.LL( Apply, SaveNotesError, tmpPrefix + 'SaveNotesError', 'Error saving notes to ' ); 1458 1459 Language.LL( Apply, UntitledBookmarkName, tmpPrefix + 'UntitledBookmarkName', '(Untitled)' ); 1460 Language.LL( Apply, LoadBookmarksTitle, tmpPrefix + 'LoadBookmarksTitle', 'Load Bookmarks' ); 1461 Language.LL( Apply, LoadBookmarksError, tmpPrefix + 'LoadBookmarksError', 'Could not load bookmarks: ' ); 1462 Language.LL( Apply, SaveBookmarksTitle, tmpPrefix + 'SaveBookmarksTitle', 'Save Bookmarks' ); 1463 Language.LL( Apply, SaveBookmarksError, tmpPrefix + 'SaveBookmarksError', 'Could not save bookmarks: ' ); 1464 1465 Language.LL( Apply, ApplicationErrorTitle, tmpPrefix + 'ApplicationErrorTitle', 'Application Error - Close?' ); 1466 Language.LL( Apply, ApplicationErrorA, tmpPrefix + 'ApplicationErrorA', 'This application has crashed. ' ); 1467 Language.LL( Apply, ApplicationErrorB, tmpPrefix + 'ApplicationErrorB', '(Details logged to ' ); 1468 Language.LL( Apply, ApplicationErrorC, tmpPrefix + 'ApplicationErrorC', 'Close application? ' ); 1469 1470 Language.LL( Apply, EnvironmentVarErrorTitle, tmpPrefix + 'EnvironmentVarErrorTitle', 'Environment Variable Warning' ); 1470 1471 Language.LL( Apply, EnvironmentVarError, 1471 'EnvironmentVarError',1472 tmpPrefix + 'EnvironmentVarError', 1472 1473 'NewView found a problem with environment variables. ' 1473 1474 + 'These are used when finding help files. ' 1474 1475 + 'You may have problems launching help.' ); 1475 Language.LL( Apply, EnvironmentVarUndefined, 'EnvironmentVarUndefined', 'Undefined: ' ); 1476 1477 Language.LL( Apply, FindTitle, 'FindTitle', 'Find' ); 1478 Language.LL( Apply, FindSelectWindowError, 'FindSelectWindowError', 'Click in a window first' ); 1479 Language.LL( Apply, FindPrompt, 'FindPrompt', 'Enter the text to find' ); 1480 Language.LL( Apply, TextNotFoundMsg, 'TextNotFoundMsg', 'Text not found' ); 1481 1482 Language.LL( Apply, FilesInfoTitle, 'FilesInfoTitle', 'Open Files Information' ); 1483 Language.LL( Apply, FilesInfoOverallTitle, 'FilesInfoOverallTitle', 'Title: ' ); 1484 Language.LL( Apply, FilesInfoFilename, 'FilesInfoFilename', 'Filename: ' ); 1485 Language.LL( Apply, FilesInfoFileTitle, 'FilesInfoFileTitle', ' Title: ' ); 1486 Language.LL( Apply, FilesInfoTopicCount, 'FilesInfoTopicCount', ' Topic Count: ' ); 1487 Language.LL( Apply, FilesInfoIndexCount, 'FilesInfoIndexCount', ' Index Count: ' ); 1488 Language.LL( Apply, FilesInfoDictionaryCount, 'FilesInfoDictionaryCount', ' Dictionary Count: ' ); 1489 Language.LL( Apply, FilesInfoFileSize, 'FilesInfoFileSize', ' Size: ' ); 1490 Language.LL( Apply, FilesInfoTotalTopicCount, 'FilesInfoTotalTopicCount', 'Total Topic Count: ' ); 1491 Language.LL( Apply, FilesInfoTotalIndexCount, 'FilesInfoTotalIndexCount', 'Total Index Count: ' ); 1492 Language.LL( Apply, FilesInfoTotalFileSize, 'FilesInfoTotalFileSize', 'Total File Size: ' ); 1493 1494 Language.LL( Apply, SearchTitle, 'SearchTitle', 'Search' ); 1495 Language.LL( Apply, SearchSyntaxError, 'SearchSyntaxError', 'Error in search syntax: ' ); 1496 Language.LL( Apply, SearchingMsg, 'SearchingMsg', 'Searching...' ); 1497 Language.LL( Apply, NoSearchMatchesMsg, 'NoSearchMatchesMsg', 'No matches found for ' ); 1498 Language.LL( Apply, SearchFoundMsgA, 'SearchFoundMsgA', 'Found ' ); 1499 Language.LL( Apply, SearchFoundMsgB, 'SearchFoundMsgB', ' matches for ' ); 1500 1501 Language.LL( Apply, FileSaveTitle, 'FileSaveTitle', 'Save Topic' ); 1502 Language.LL( Apply, FileSaveSelectWindowError, 'FileSaveSelectWindowError', 'Before saving, click in the window you want to save.' ); 1503 Language.LL( Apply, DefaultSaveTopicFilename, 'DefaultSaveTopicFilename', 'topic.txt' ); 1504 1505 Language.LL( Apply, ReplaceFilePromptA, 'ReplaceFilePromptA', 'Replace existing file ' ); 1506 Language.LL( Apply, ReplaceFilePromptB, 'ReplaceFilePromptB', '?' ); 1507 Language.LL( Apply, UnableToSaveError, 'UnableToSaveError', 'Unable to save file: ' ); 1508 1509 Language.LL( Apply, UsageTitle, 'UsageTitle', 'NewView Command Line' ); 1510 Language.LL( Apply, UsageText1, 'UsageText1', 'Usage: ' ); 1511 Language.LL( Apply, UsageText2, 'UsageText2', 'NewView <filename> [<topic>]' ); 1512 Language.LL( Apply, UsageText3, 'UsageText3', ' /s Do search for <topic>' ); 1513 Language.LL( Apply, UsageText4, 'UsageText4', ' /g Do global search for <topic>' ); 1514 Language.LL( Apply, UsageText5, 'UsageText5', ' /pos:l,b,w,h Set window position' ); 1515 Language.LL( Apply, UsageText6, 'UsageText6', ' /lang:<lang> Load UI language' ); 1516 Language.LL( Apply, UsageText7, 'UsageText7', ' /title:<title> Set window title' ); 1517 Language.LL( Apply, UsageText8, 'UsageText8', 'See help for details' ); 1518 1519 Language.LL( Apply, GoBackHint, 'GoBackHint', 'Go back to ' ); 1520 1521 Language.LL( Apply, SelectAllTitle, 'SelectAllTitle', 'Select All' ); 1522 Language.LL( Apply, SelectAllWindowError, 'SelectAllWindowError', 'Click in a text window first' ); 1523 1524 Language.LL( Apply, EditNoteMsg, 'EditNoteMsg', 'Click to edit note' ); 1525 Language.LL( Apply, ExternalLinkMsg, 'ExternalLinkMsg', 'Link to another file' ); 1526 Language.LL( Apply, LinkMsg, 'LinkMsg', 'Link to' ); 1527 Language.LL( Apply, UnknownLinkMsg, 'UnknownLinkMsg', 'Unknown link' ); 1528 Language.LL( Apply, FootnoteMsg, 'FootnoteMsg', 'Footnote' ); 1529 1530 Language.LL( Apply, ExternalLinkTitle, 'ExternalLinkTitle', 'File Link' ); 1531 Language.LL( Apply, ExternalLinkError, 'ExternalLinkError', 'Sorry, this is a link to another file, which is not currently implemented in NewView' ); 1532 1533 Language.LL( Apply, MRUMultipleFilesHint, 'MRUMultipleFilesHint', 'files' ); 1534 Language.LL( Apply, HelpProgramTitle, 'HelpProgramTitle', 'Help' ); 1535 1536 Language.LL( Apply, WindowsHelpTitle, 'WindowsHelpTitle', 'Windows Help' ); 1476 Language.LL( Apply, EnvironmentVarUndefined, tmpPrefix + 'EnvironmentVarUndefined', 'Undefined: ' ); 1477 1478 Language.LL( Apply, FindTitle, tmpPrefix + 'FindTitle', 'Find' ); 1479 Language.LL( Apply, FindSelectWindowError, tmpPrefix + 'FindSelectWindowError', 'Click in a window first' ); 1480 Language.LL( Apply, FindPrompt, tmpPrefix + 'FindPrompt', 'Enter the text to find' ); 1481 Language.LL( Apply, TextNotFoundMsg, tmpPrefix + 'TextNotFoundMsg', 'Text not found' ); 1482 1483 Language.LL( Apply, FilesInfoTitle, tmpPrefix + 'FilesInfoTitle', 'Open Files Information' ); 1484 Language.LL( Apply, FilesInfoOverallTitle, tmpPrefix + 'FilesInfoOverallTitle', 'Title: ' ); 1485 Language.LL( Apply, FilesInfoFilename, tmpPrefix + 'FilesInfoFilename', 'Filename: ' ); 1486 Language.LL( Apply, FilesInfoFileTitle, tmpPrefix + 'FilesInfoFileTitle', ' Title: ' ); 1487 Language.LL( Apply, FilesInfoTopicCount, tmpPrefix + 'FilesInfoTopicCount', ' Topic Count: ' ); 1488 Language.LL( Apply, FilesInfoIndexCount, tmpPrefix + 'FilesInfoIndexCount', ' Index Count: ' ); 1489 Language.LL( Apply, FilesInfoDictionaryCount, tmpPrefix + 'FilesInfoDictionaryCount', ' Dictionary Count: ' ); 1490 Language.LL( Apply, FilesInfoFileSize, tmpPrefix + 'FilesInfoFileSize', ' Size: ' ); 1491 Language.LL( Apply, FilesInfoTotalTopicCount, tmpPrefix + 'FilesInfoTotalTopicCount', 'Total Topic Count: ' ); 1492 Language.LL( Apply, FilesInfoTotalIndexCount, tmpPrefix + 'FilesInfoTotalIndexCount', 'Total Index Count: ' ); 1493 Language.LL( Apply, FilesInfoTotalFileSize, tmpPrefix + 'FilesInfoTotalFileSize', 'Total File Size: ' ); 1494 1495 Language.LL( Apply, SearchTitle, tmpPrefix + 'SearchTitle', 'Search' ); 1496 Language.LL( Apply, SearchSyntaxError, tmpPrefix + 'SearchSyntaxError', 'Error in search syntax: ' ); 1497 Language.LL( Apply, SearchingMsg, tmpPrefix + 'SearchingMsg', 'Searching...' ); 1498 Language.LL( Apply, NoSearchMatchesMsg, tmpPrefix + 'NoSearchMatchesMsg', 'No matches found for ' ); 1499 Language.LL( Apply, SearchFoundMsgA, tmpPrefix + 'SearchFoundMsgA', 'Found ' ); 1500 Language.LL( Apply, SearchFoundMsgB, tmpPrefix + 'SearchFoundMsgB', ' matches for ' ); 1501 1502 Language.LL( Apply, FileSaveTitle, tmpPrefix + 'FileSaveTitle', 'Save Topic' ); 1503 Language.LL( Apply, FileSaveSelectWindowError, tmpPrefix + 'FileSaveSelectWindowError', 'Before saving, click in the window you want to save.' ); 1504 Language.LL( Apply, DefaultSaveTopicFilename, tmpPrefix + 'DefaultSaveTopicFilename', 'topic.txt' ); 1505 1506 Language.LL( Apply, ReplaceFilePromptA, tmpPrefix + 'ReplaceFilePromptA', 'Replace existing file ' ); 1507 Language.LL( Apply, ReplaceFilePromptB, tmpPrefix + 'ReplaceFilePromptB', '?' ); 1508 Language.LL( Apply, UnableToSaveError, tmpPrefix + 'UnableToSaveError', 'Unable to save file: ' ); 1509 1510 Language.LL( Apply, UsageTitle, tmpPrefix + 'UsageTitle', 'NewView Command Line' ); 1511 Language.LL( Apply, UsageText1, tmpPrefix + 'UsageText1', 'Usage: ' ); 1512 Language.LL( Apply, UsageText2, tmpPrefix + 'UsageText2', 'NewView <filename> [<topic>]' ); 1513 Language.LL( Apply, UsageText3, tmpPrefix + 'UsageText3', ' /s Do search for <topic>' ); 1514 Language.LL( Apply, UsageText4, tmpPrefix + 'UsageText4', ' /g Do global search for <topic>' ); 1515 Language.LL( Apply, UsageText5, tmpPrefix + 'UsageText5', ' /pos:l,b,w,h Set window position' ); 1516 Language.LL( Apply, UsageText6, tmpPrefix + 'UsageText6', ' /lang:<lang> Load UI language' ); 1517 Language.LL( Apply, UsageText7, tmpPrefix + 'UsageText7', ' /title:<title> Set window title' ); 1518 Language.LL( Apply, UsageText8, tmpPrefix + 'UsageText8', 'See help for details' ); 1519 1520 Language.LL( Apply, GoBackHint, tmpPrefix + 'GoBackHint', 'Go back to ' ); 1521 1522 Language.LL( Apply, SelectAllTitle, tmpPrefix + 'SelectAllTitle', 'Select All' ); 1523 Language.LL( Apply, SelectAllWindowError, tmpPrefix + 'SelectAllWindowError', 'Click in a text window first' ); 1524 1525 Language.LL( Apply, EditNoteMsg, tmpPrefix + 'EditNoteMsg', 'Click to edit note' ); 1526 Language.LL( Apply, ExternalLinkMsg, tmpPrefix + 'ExternalLinkMsg', 'Link to another file' ); 1527 Language.LL( Apply, LinkMsg, tmpPrefix + 'LinkMsg', 'Link to' ); 1528 Language.LL( Apply, UnknownLinkMsg, tmpPrefix + 'UnknownLinkMsg', 'Unknown link' ); 1529 Language.LL( Apply, FootnoteMsg, tmpPrefix + 'FootnoteMsg', 'Footnote' ); 1530 1531 Language.LL( Apply, ExternalLinkTitle, tmpPrefix + 'ExternalLinkTitle', 'File Link' ); 1532 Language.LL( Apply, ExternalLinkError, tmpPrefix + 'ExternalLinkError', 'Sorry, this is a link to another file, which is not currently implemented in NewView' ); 1533 1534 Language.LL( Apply, MRUMultipleFilesHint, tmpPrefix + 'MRUMultipleFilesHint', 'files' ); 1535 Language.LL( Apply, HelpProgramTitle, tmpPrefix + 'HelpProgramTitle', 'Help' ); 1536 1537 Language.LL( Apply, WindowsHelpTitle, tmpPrefix + 'WindowsHelpTitle', 'Windows Help' ); 1538 // TODO 1537 1539 Language.LL( Apply, 1538 1540 WindowsHelpPrompt, 1539 'WindowsHelpPrompt',1541 tmpPrefix + 'WindowsHelpPrompt', 1540 1542 'This file is a Windows help file. ' 1541 1543 + 'Would you like to start Windows Help viewer?' ); 1542 1544 1543 Language.LL( Apply, ErrorTitle, 'ErrorTitle', 'Error' );1544 1545 Language.LL( Apply, FindTopicNameTitle, 'FindTopicNameTitle', 'Find Topic By Name' );1546 Language.LL( Apply, FindTopicNamePrompt, 'FindTopicNamePrompt', 'Enter the topic name to search for' );1547 Language.LL( Apply, TopicNameNotFoundError, 'TopicNameNotFoundError', 'Topic name not found' );1548 Language.LL( Apply, SplitBarDblClickToShow, 'SplitBarDblClickToShow', 'Double-click to show left panel' );1549 Language.LL( Apply, SplitBarDblClickToHide, 'SplitBarDblClickToHide', 'Double-click to hide left panel' );1545 Language.LL( Apply, ErrorTitle, tmpPrefix + 'ErrorTitle', 'Error' ); 1546 1547 Language.LL( Apply, FindTopicNameTitle, tmpPrefix + 'FindTopicNameTitle', 'Find Topic By Name' ); 1548 Language.LL( Apply, FindTopicNamePrompt, tmpPrefix + 'FindTopicNamePrompt', 'Enter the topic name to search for' ); 1549 Language.LL( Apply, TopicNameNotFoundError, tmpPrefix + 'TopicNameNotFoundError', 'Topic name not found' ); 1550 Language.LL( Apply, SplitBarDblClickToShow, tmpPrefix + 'SplitBarDblClickToShow', 'Double-click to show left panel' ); 1551 Language.LL( Apply, SplitBarDblClickToHide, tmpPrefix + 'SplitBarDblClickToHide', 'Double-click to hide left panel' ); 1550 1552 1551 1553 SetMainCaption; … … 1576 1578 Procedure TMainForm.DebugSaveLanguageFileMIOnClick (Sender: TObject); 1577 1579 Var 1578 LanguageFile: TLanguageFile;1580 // LanguageFile: TLanguageFile; 1579 1581 Dir: string; 1580 1582 Filename: string; … … 1596 1598 1597 1599 try 1598 LanguageFile := TLanguageFile.Create( Filename ); 1599 1600 UpdateLanguage( LanguageFile ); 1600 // first touch all 1601 UpdateLanguage(g_CurrentLanguageFile); 1602 // then save 1603 g_CurrentLanguageFile.writeToFile(Filename); 1601 1604 except 1602 1605 on E: Exception do … … 1607 1610 end; 1608 1611 end; 1609 1610 LanguageFile.Destroy; 1611 1612 1612 1613 CreateMRUMenuItems; 1613 1614 End; … … 3829 3830 Application.OnHelp := OnHelp; 3830 3831 3831 Register ForLanguages( OnLanguageEvent );3832 RegisterEventForLanguages( OnLanguageEvent ); 3832 3833 3833 3834 // if debug is not enabled, get rid of the debug menu and separator. … … 3914 3915 if CmdLineParameters.getLanguage <> '' then 3915 3916 begin 3916 if not Load AutoLanguage('newview', CmdLineParameters.getLanguage) then3917 if not LoadLanguageForSpec('newview', CmdLineParameters.getLanguage) then 3917 3918 begin 3918 3919 LoadDefaultLanguage('newview');
Note:
See TracChangeset
for help on using the changeset viewer.