notepad: Add message contexts for accelerators that can be translated.
[wine/multimedia.git] / programs / notepad / notepad.rc
blobc7ac308b2c583b80ebc5a23e0c82157f4ce2c51b
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  */
20 #include "notepad_res.h"
22 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
24 MAIN_MENU MENU
26  POPUP "&File" {
27   MENUITEM "&New\tCtrl+N",      CMD_NEW
28   MENUITEM "&Open...\tCtrl+O",  CMD_OPEN
29   MENUITEM "&Save\tCtrl+S",     CMD_SAVE
30   MENUITEM "Save &as...",       CMD_SAVE_AS
31   MENUITEM SEPARATOR
32   MENUITEM "&Print...\tCtrl+P",            CMD_PRINT
33   MENUITEM "Page Se&tup...",    CMD_PAGE_SETUP
34   MENUITEM "P&rinter Setup...", CMD_PRINTER_SETUP
35   MENUITEM SEPARATOR
36   MENUITEM "E&xit",             CMD_EXIT
37  }
38 POPUP "&Edit" {
39   MENUITEM "&Undo\tCtrl+Z",     CMD_UNDO
40   MENUITEM SEPARATOR
41   MENUITEM "Cu&t\tCtrl+X",      CMD_CUT
42   MENUITEM "&Copy\tCtrl+C",     CMD_COPY
43   MENUITEM "&Paste\tCtrl+V",    CMD_PASTE
44   MENUITEM "&Delete\tDel",      CMD_DELETE
45   MENUITEM SEPARATOR
46   MENUITEM "Select &all\tCtrl+A",       CMD_SELECT_ALL
47   MENUITEM "&Time/Date\tF5",    CMD_TIME_DATE
48   MENUITEM SEPARATOR
49   MENUITEM "&Wrap long lines",  CMD_WRAP
50   MENUITEM "&Font...",          CMD_FONT
51  }
52 POPUP "&Search" {
53   MENUITEM "&Search...\tCtrl+F",   CMD_SEARCH
54   MENUITEM "&Search next\tF3",  CMD_SEARCH_NEXT
55   MENUITEM "&Replace...\tCtrl+H", CMD_REPLACE
56  }
57 POPUP "&Help" {
58   MENUITEM "&Contents\tF1",     CMD_HELP_CONTENTS
59   MENUITEM "&About Notepad",    CMD_HELP_ABOUT_NOTEPAD
60  }
63 STRINGTABLE
65 STRING_PAGESETUP_HEADERVALUE,   "#msgctxt#do not translate#&f"
66 STRING_PAGESETUP_FOOTERVALUE,   "Page &p"
68 STRING_NOTEPAD,                                 "Notepad"
69 STRING_ERROR,                                   "ERROR"
71 STRING_UNTITLED,                                "Untitled"
73 STRING_ALL_FILES,                               "All files (*.*)"
74 STRING_TEXT_FILES_TXT,                  "Text files (*.txt)"
76 STRING_DOESNOTEXIST,                            "File '%s' does not exist.\n\n\
77 Do you want to create a new file?"
78 STRING_NOTSAVED,                                "File '%s' has been modified.\n\n\
79 Would you like to save the changes?"
80 STRING_NOTFOUND,                                        "'%s' could not be found."
82 STRING_UNICODE_LE,     "Unicode (UTF-16)"
83 STRING_UNICODE_BE,     "Unicode (UTF-16 big-endian)"
84 STRING_UTF8,           "Unicode (UTF-8)"
86 STRING_LOSS_OF_UNICODE_CHARACTERS,         "%1\n\
87 This file contains Unicode characters which will be lost if\n\
88 you save this file in the %2 encoding.\n\
89 To keep these characters, click Cancel, and then select\n\
90 one of the Unicode options in the Encoding drop down list.\n\
91 Continue?"
94 DIALOG_PAGESETUP DIALOG 0, 0, 240, 95
95 STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
96 FONT 8, "MS Shell Dlg"
97 CAPTION "Page Setup"
99 LTEXT    "&Header:",  0x140,  10, 07, 68, 15
100 EDITTEXT IDC_PAGESETUP_HEADERVALUE,   78,  5,110, 12, WS_BORDER | WS_TABSTOP
101 LTEXT    "&Footer:",  0x142,   10, 24, 68, 15
102 EDITTEXT IDC_PAGESETUP_FOOTERVALUE,   78, 22,110, 12, WS_BORDER | WS_TABSTOP
104 GROUPBOX "Margins (millimeters)",      0x144,     10, 43,178, 45
105 LTEXT    "&Left:",        0x145,   20, 55, 39, 10, WS_CHILD
106 EDITTEXT IDC_PAGESETUP_LEFTVALUE,     59, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
107 LTEXT    "&Top:",         0x148,    20, 73, 39, 10, WS_CHILD
108 EDITTEXT IDC_PAGESETUP_TOPVALUE,      59, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
109 LTEXT    "&Right:",       0x14B, 107, 55, 39, 10, WS_CHILD
110 EDITTEXT IDC_PAGESETUP_RIGHTVALUE,   148, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
111 LTEXT    "&Bottom:",      0x14E, 107, 73, 39, 10, WS_CHILD
112 EDITTEXT IDC_PAGESETUP_BOTTOMVALUE,  148, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
114 DEFPUSHBUTTON "OK",         IDOK,                   195,  3, 40, 15, WS_TABSTOP
115 PUSHBUTTON    "Cancel",     IDCANCEL,               195, 21, 40, 15, WS_TABSTOP
116 PUSHBUTTON    "&Help",       IDHELP,                195, 39, 40, 15, WS_TABSTOP
119 IDD_OFN_TEMPLATE  DIALOG 50,50,300,15
120 STYLE DS_3DLOOK | DS_CONTROL | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_BORDER
121 FONT 8, "MS Shell Dlg"
122 BEGIN
123   LTEXT "Encoding:", -1, 5,0, 50,12
124   COMBOBOX IDC_OFN_ENCCOMBO, 53,0, 156,48, WS_CHILD | WS_VSCROLL | CBS_DROPDOWNLIST
127 ID_ACCEL ACCELERATORS
129     "#msgctxt#accelerator Select All#^A", CMD_SELECT_ALL
130     "#msgctxt#accelerator Copy#^C", CMD_COPY
131     "#msgctxt#accelerator Find#^F", CMD_SEARCH
132     "#msgctxt#accelerator Replace#^H", CMD_REPLACE
133     "#msgctxt#accelerator New#^N", CMD_NEW
134     "#msgctxt#accelerator Open#^O", CMD_OPEN
135     "#msgctxt#accelerator Print#^P", CMD_PRINT
136     "#msgctxt#accelerator Save#^S", CMD_SAVE
137     "#msgctxt#accelerator Paste#^V", CMD_PASTE
138     "#msgctxt#accelerator Cut#^X", CMD_CUT
139     "#msgctxt#accelerator Undo#^Z", CMD_UNDO
140     VK_BACK, CMD_UNDO, VIRTKEY, ALT
141     VK_F1, CMD_HELP_CONTENTS, VIRTKEY
142     VK_F3, CMD_SEARCH_NEXT, VIRTKEY
143     VK_F5, CMD_TIME_DATE, VIRTKEY
144     VK_INSERT, CMD_COPY, VIRTKEY, CONTROL
145     VK_INSERT, CMD_PASTE, VIRTKEY, SHIFT
148 LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
150 /* @makedep: notepad.ico */
151 IDI_NOTEPAD ICON "notepad.ico"