notepad.rc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. * Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
  3. * Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  18. */
  19. #include "notepad_res.h"
  20. #pragma makedep po
  21. LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
  22. MAIN_MENU MENU
  23. {
  24. POPUP "&File" {
  25. MENUITEM "&New\tCtrl+N", CMD_NEW
  26. MENUITEM "&Open...\tCtrl+O", CMD_OPEN
  27. MENUITEM "&Save\tCtrl+S", CMD_SAVE
  28. MENUITEM "Save &as...", CMD_SAVE_AS
  29. MENUITEM SEPARATOR
  30. MENUITEM "&Print...\tCtrl+P", CMD_PRINT
  31. MENUITEM "Page Se&tup...", CMD_PAGE_SETUP
  32. MENUITEM "P&rinter Setup...", CMD_PRINTER_SETUP
  33. MENUITEM SEPARATOR
  34. MENUITEM "E&xit", CMD_EXIT
  35. }
  36. POPUP "&Edit" {
  37. MENUITEM "&Undo\tCtrl+Z", CMD_UNDO
  38. MENUITEM SEPARATOR
  39. MENUITEM "Cu&t\tCtrl+X", CMD_CUT
  40. MENUITEM "&Copy\tCtrl+C", CMD_COPY
  41. MENUITEM "&Paste\tCtrl+V", CMD_PASTE
  42. MENUITEM "&Delete\tDel", CMD_DELETE
  43. MENUITEM SEPARATOR
  44. MENUITEM "Select &all\tCtrl+A", CMD_SELECT_ALL
  45. MENUITEM "&Time/Date\tF5", CMD_TIME_DATE
  46. MENUITEM SEPARATOR
  47. MENUITEM "&Wrap long lines", CMD_WRAP
  48. MENUITEM "&Font...", CMD_FONT
  49. }
  50. POPUP "&Search" {
  51. MENUITEM "&Search...\tCtrl+F", CMD_SEARCH
  52. MENUITEM "&Search next\tF3", CMD_SEARCH_NEXT
  53. MENUITEM "&Replace...\tCtrl+H", CMD_REPLACE
  54. }
  55. POPUP "&Help" {
  56. MENUITEM "&Contents\tF1", CMD_HELP_CONTENTS
  57. MENUITEM "&About Notepad", CMD_HELP_ABOUT_NOTEPAD
  58. }
  59. }
  60. STRINGTABLE
  61. {
  62. STRING_PAGESETUP_HEADERVALUE, "#msgctxt#do not translate#&f"
  63. STRING_PAGESETUP_FOOTERVALUE, "Page &p"
  64. STRING_NOTEPAD, "Notepad"
  65. STRING_ERROR, "ERROR"
  66. STRING_UNTITLED, "Untitled"
  67. STRING_ALL_FILES, "All files (*.*)"
  68. STRING_TEXT_FILES_TXT, "Text files (*.txt)"
  69. STRING_DOESNOTEXIST, "File '%s' does not exist.\n\n\
  70. Do you want to create a new file?"
  71. STRING_NOTSAVED, "File '%s' has been modified.\n\n\
  72. Would you like to save the changes?"
  73. STRING_NOTFOUND, "'%s' could not be found."
  74. STRING_UNICODE_LE, "Unicode (UTF-16)"
  75. STRING_UNICODE_BE, "Unicode (UTF-16 big-endian)"
  76. STRING_UTF8, "Unicode (UTF-8)"
  77. STRING_LOSS_OF_UNICODE_CHARACTERS, "%1\n\
  78. This file contains Unicode characters which will be lost if\n\
  79. you save this file in the %2 encoding.\n\
  80. To keep these characters, click Cancel, and then select\n\
  81. one of the Unicode options in the Encoding drop down list.\n\
  82. Continue?"
  83. }
  84. DIALOG_PAGESETUP DIALOG 0, 0, 240, 95
  85. STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  86. FONT 8, "MS Shell Dlg"
  87. CAPTION "Page Setup"
  88. {
  89. LTEXT "&Header:", 0x140, 10, 07, 68, 15
  90. EDITTEXT IDC_PAGESETUP_HEADERVALUE, 78, 5,110, 12, WS_BORDER | WS_TABSTOP
  91. LTEXT "&Footer:", 0x142, 10, 24, 68, 15
  92. EDITTEXT IDC_PAGESETUP_FOOTERVALUE, 78, 22,110, 12, WS_BORDER | WS_TABSTOP
  93. GROUPBOX "Margins (millimeters)", 0x144, 10, 43,178, 45
  94. LTEXT "&Left:", 0x145, 20, 55, 39, 10, WS_CHILD
  95. EDITTEXT IDC_PAGESETUP_LEFTVALUE, 59, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
  96. LTEXT "&Top:", 0x148, 20, 73, 39, 10, WS_CHILD
  97. EDITTEXT IDC_PAGESETUP_TOPVALUE, 59, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
  98. LTEXT "&Right:", 0x14B, 107, 55, 39, 10, WS_CHILD
  99. EDITTEXT IDC_PAGESETUP_RIGHTVALUE, 148, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
  100. LTEXT "&Bottom:", 0x14E, 107, 73, 39, 10, WS_CHILD
  101. EDITTEXT IDC_PAGESETUP_BOTTOMVALUE, 148, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
  102. DEFPUSHBUTTON "OK", IDOK, 195, 3, 40, 15, WS_TABSTOP
  103. PUSHBUTTON "Cancel", IDCANCEL, 195, 21, 40, 15, WS_TABSTOP
  104. PUSHBUTTON "&Help", IDHELP, 195, 39, 40, 15, WS_TABSTOP
  105. }
  106. IDD_OFN_TEMPLATE DIALOG 50,50,300,15
  107. STYLE DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_BORDER
  108. FONT 8, "MS Shell Dlg"
  109. BEGIN
  110. LTEXT "Encoding:", -1, 5,0, 60,12
  111. COMBOBOX IDC_OFN_ENCCOMBO, 63,0, 150,48, WS_CHILD | WS_VSCROLL | CBS_DROPDOWNLIST
  112. END
  113. ID_ACCEL ACCELERATORS
  114. {
  115. "#msgctxt#accelerator Select All#A", CMD_SELECT_ALL, VIRTKEY, CONTROL
  116. "#msgctxt#accelerator Copy#C", CMD_COPY, VIRTKEY, CONTROL
  117. "#msgctxt#accelerator Find#F", CMD_SEARCH, VIRTKEY, CONTROL
  118. "#msgctxt#accelerator Replace#H", CMD_REPLACE, VIRTKEY, CONTROL
  119. "#msgctxt#accelerator New#N", CMD_NEW, VIRTKEY, CONTROL
  120. "#msgctxt#accelerator Open#O", CMD_OPEN, VIRTKEY, CONTROL
  121. "#msgctxt#accelerator Print#P", CMD_PRINT, VIRTKEY, CONTROL
  122. "#msgctxt#accelerator Save#S", CMD_SAVE, VIRTKEY, CONTROL
  123. "#msgctxt#accelerator Paste#V", CMD_PASTE, VIRTKEY, CONTROL
  124. "#msgctxt#accelerator Cut#X", CMD_CUT, VIRTKEY, CONTROL
  125. "#msgctxt#accelerator Undo#Z", CMD_UNDO, VIRTKEY, CONTROL
  126. VK_BACK, CMD_UNDO, VIRTKEY, ALT
  127. VK_F1, CMD_HELP_CONTENTS, VIRTKEY
  128. VK_F3, CMD_SEARCH_NEXT, VIRTKEY
  129. VK_F5, CMD_TIME_DATE, VIRTKEY
  130. VK_INSERT, CMD_COPY, VIRTKEY, CONTROL
  131. VK_INSERT, CMD_PASTE, VIRTKEY, SHIFT
  132. }
  133. LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
  134. /* @makedep: notepad.manifest */
  135. 1 RT_MANIFEST notepad.manifest
  136. /* @makedep: notepad.ico */
  137. IDI_NOTEPAD ICON "notepad.ico"