Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
eaa8df60
Commit
eaa8df60
authored
Mar 20, 2002
by
Sylvain Petreolle
Committed by
Alexandre Julliard
Mar 20, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made notepad uses NLS properly.
parent
716ffc5b
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1204 additions
and
1240 deletions
+1204
-1240
ChangeLog
programs/notepad/ChangeLog
+69
-66
Da.rc
programs/notepad/Da.rc
+99
-93
De.rc
programs/notepad/De.rc
+101
-94
En.rc
programs/notepad/En.rc
+99
-92
Es.rc
programs/notepad/Es.rc
+101
-95
Fi.rc
programs/notepad/Fi.rc
+100
-95
Fr.rc
programs/notepad/Fr.rc
+102
-100
Pt.rc
programs/notepad/Pt.rc
+100
-95
README
programs/notepad/README
+2
-4
Sk.rc
programs/notepad/Sk.rc
+102
-97
Sw.rc
programs/notepad/Sw.rc
+101
-96
Wa.rc
programs/notepad/Wa.rc
+102
-101
dialog.c
programs/notepad/dialog.c
+24
-23
language.c
programs/notepad/language.c
+14
-57
language.h
programs/notepad/language.h
+4
-5
main.c
programs/notepad/main.c
+33
-33
main.h
programs/notepad/main.h
+3
-83
notepad_res.h
programs/notepad/notepad_res.h
+42
-0
rsrc.rc
programs/notepad/rsrc.rc
+6
-11
No files found.
programs/notepad/ChangeLog
View file @
eaa8df60
Mon Mar 11 00:20:00 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
* Major rewrite for use of NLS
Tue Oct 12 20:31:00 1999 Gustavo Junior Alves <alves@correionet.com.br>
* [Pt.rc] [Makefile.in]
Added Portuguese language support.
...
...
@@ -7,78 +10,78 @@ Fri Mar 5 22:14:13 1999 Marcel Baur <mbaur@g26.ethz.ch>
- Added Boyer-Moore text search
Sat Feb 6 20:25:25 1999 Marcel Baur <mbaur@g26.ethz.ch>
- Added new IDS_NOTSAVED ressource (needs translation in *.rc)
- Added new IDS_NOTSAVED ressource (needs translation in *.rc)
- Improved printing support (not yet complete)
- Improved file drag and drop (should now work)
- General code cleanup
- General code cleanup
Thu Jan 28 18:17:08 1999 Jukka Iivonen <iivonen@iki.fi>
* [Fi.rc] [main.c] [Makefile.in]
- Added Finnish language support.
Sun Oct 18 14:11:42 1998 Marcel Baur <mbaur@g26.ethz.ch>
* [??.rc], [TODO], [dialog.c], [dialog.h], [language.c],
[language.h], [license.c], [license.h], [main.c], [main.h],
[notepad.rc]:
- Fixed GetOpenFileName and GetSaveFileName dialogs.
- Fixed Print dialog and introduced PrinterSetup dialog.
- Fixed PageSetup dialog: values are now correctly initialized
(had to change all *.rc files)
- Preliminary file drag and drop support.
Fri Jun 12 23:29:44 1998 Marcel Baur <mbaur@g26.ethz.ch>
- Fixed GetDateFormat()->GetTimeFormat() for locale time.
Mon May 25 14:30:00 1998 Henrik Olsen <henrik@iaeste.dk>
* [Da.rc]
- Added Danish language support.
Fri May 15 23:59:22 1998 Marcel Baur <mbaur@g26.ethz.ch>
- Date/Time now uses locale-specific formats
- Language-specific window caption, displays file being edited.
- Started with parsing of command line settings
- Started with DoOpenFile, DoCloseFile, DoSaveFile logics
- Prompt user to save settings when closing a file
-> Introduced a new message box (not yet finished)
- Fixed minor features (missing IDS in main.h, ...)
Sun Mar 29 20:29:41 1998 Laurent Buffler <laurent@bluewin.ch>
* [Fr.rc]
- Added French language support.
Fri Feb 27 21:03:37 1998 Karl Backstrm <karl_b@geocities.com>
- Fixed some minor features.
Sat Feb 14 17:42:29 1998 Karl Backstrm <karl_b@geocities.com>
* NEW [language.c] [language.h]
- Takes care of all language related stuff.
- A new [programs] in .winerc is in use.
Tue Feb 10 23:34:08 1998 Marcel Baur <mbaur@g26.ethz.ch>
- Fixed broken language menus
Fri Feb 06 23.54.35 1998 Karl Backstrm <karl_b@geocities.com>
* [main.c] [main.h] [notepad.rc]
- Fixed language support for menus.
* NEW [dialog.c] [dialog.h]
- Moved all menu and dialog related stuff here.
Sun Jan 18 23:05:04 1998 Karl Backstrm <karl_b@geocities.com>
* [Sw.rc]
- Added/updated Swedish language support.
Tue Dec 23 23:35:04 1997 Marcel Baur <mbaur@g26.ethz.ch>
- Fixed lots of bugs w/ resources in *.rc
- moved [notepad.c] into [main.c]
- moved [notepad.h] into [main.h]
Fri Dec 05 20:51:55 1997 Marcel Baur <mbaur@g26.ethz.ch>
* [notepad.c] [notepad.h] [notepad.rc] [En.rc] [De.rc]
[license.c] [license.h] [License_En.c]
[README] [TODO] [ChangeLog]
- Originals by Marcel Baur
Sun Oct 18 14:11:42 1998 Marcel Baur <mbaur@g26.ethz.ch>
* [??.rc], [TODO], [dialog.c], [dialog.h], [language.c],
[language.h], [license.c], [license.h], [main.c], [main.h],
[notepad.rc]:
- Fixed GetOpenFileName and GetSaveFileName dialogs.
- Fixed Print dialog and introduced PrinterSetup dialog.
- Fixed PageSetup dialog: values are now correctly initialized
(had to change all *.rc files)
- Preliminary file drag and drop support.
Fri Jun 12 23:29:44 1998 Marcel Baur <mbaur@g26.ethz.ch>
- Fixed GetDateFormat()->GetTimeFormat() for locale time.
Mon May 25 14:30:00 1998 Henrik Olsen <henrik@iaeste.dk>
* [Da.rc]
- Added Danish language support.
Fri May 15 23:59:22 1998 Marcel Baur <mbaur@g26.ethz.ch>
- Date/Time now uses locale-specific formats
- Language-specific window caption, displays file being edited.
- Started with parsing of command line settings
- Started with DoOpenFile, DoCloseFile, DoSaveFile logics
- Prompt user to save settings when closing a file
-> Introduced a new message box (not yet finished)
- Fixed minor features (missing IDS in main.h, ...)
Sun Mar 29 20:29:41 1998 Laurent Buffler <laurent@bluewin.ch>
* [Fr.rc]
- Added French language support.
Fri Feb 27 21:03:37 1998 Karl Backstrm <karl_b@geocities.com>
- Fixed some minor features.
Sat Feb 14 17:42:29 1998 Karl Backstrm <karl_b@geocities.com>
* NEW [language.c] [language.h]
- Takes care of all language related stuff.
- A new [programs] in .winerc is in use.
Tue Feb 10 23:34:08 1998 Marcel Baur <mbaur@g26.ethz.ch>
- Fixed broken language menus
Fri Feb 06 23.54.35 1998 Karl Backstrm <karl_b@geocities.com>
* [main.c] [main.h] [notepad.rc]
- Fixed language support for menus.
* NEW [dialog.c] [dialog.h]
- Moved all menu and dialog related stuff here.
Sun Jan 18 23:05:04 1998 Karl Backstrm <karl_b@geocities.com>
* [Sw.rc]
- Added/updated Swedish language support.
Tue Dec 23 23:35:04 1997 Marcel Baur <mbaur@g26.ethz.ch>
- Fixed lots of bugs w/ resources in *.rc
- moved [notepad.c] into [main.c]
- moved [notepad.h] into [main.h]
Fri Dec 05 20:51:55 1997 Marcel Baur <mbaur@g26.ethz.ch>
* [notepad.c] [notepad.h] [notepad.rc] [En.rc] [De.rc]
[license.c] [license.h] [License_En.c]
[README] [TODO] [ChangeLog]
- Originals by Marcel Baur
programs/notepad/Da.rc
View file @
eaa8df60
...
...
@@ -2,6 +2,7 @@
* Notepad (Danish resources)
*
* Copyright 1998 Henrik Olsen <henrik@iaeste.dk>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,103 +19,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Da
#define LANGUAGE_NUMBER 6
#define LANGUAGE_MENU_ITEM "&Dansk"
/* Menu */
#define MENU_FILE "&Filef"
#define MENU_FILE_NEW "&Ny..."
#define MENU_FILE_OPEN "&bn\tEnter"
#define MENU_FILE_SAVE "&Gem"
#define MENU_FILE_SAVEAS "Gem so&m..."
#define MENU_FILE_PRINT "&Udskriv"
#define MENU_FILE_PAGESETUP "Side&opstning..."
#define MENU_FILE_PRINTSETUP "&Indstil printer..."
#define MENU_FILE_EXIT "&Afslut"
#define MENU_EDIT "&Rediger"
#define MENU_EDIT_UNDO "&Fortryd\tCtrl+Z"
#define MENU_EDIT_CUT "&Klip\tCtrl+X"
#define MENU_EDIT_COPY "K&opier\tCtrl+C"
#define MENU_EDIT_PASTE "St &ind\tCtrl+V"
#define MENU_EDIT_DELETE "&Slet\tDel"
#define MENU_EDIT_SELECTALL "Marker &alt"
#define MENU_EDIT_TIMEDATE "&Dato/tid\tF5"
#define MENU_EDIT_WRAP "Automatisk &linjeskift"
#define MENU_SEARCH "&Sg"
#define MENU_SEARCH_SEARCH "&Sg..."
#define MENU_SEARCH_NEXT "&Find nste\tF3"
#define MENU_LANGUAGE "S&prog"
#define MENU_HELP "&Hjlp"
#define MENU_HELP_CONTENTS "&Indhold"
#define MENU_HELP_SEARCH "&Sg efter hjlp om..."
#define MENU_HELP_HELP_ON_HELP "&Brug af Hjlp"
#define MENU_INFO "&Om Notesblok..."
#define MENU_INFO_LICENSE "&Licens"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&Om WINE"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Annuller"
#define DIALOG_BROWSE "&Gennemse..."
#define DIALOG_HELP "&Hjlp"
#define DIALOG_PAGESETUP_CAPTION "Sideopstning"
#define DIALOG_PAGESETUP_HEAD "&Sidehoved:"
#define DIALOG_PAGESETUP_TAIL "Side&fod:"
#define DIALOG_PAGESETUP_MARGIN "Margener:"
#define DIALOG_PAGESETUP_LEFT "&Venstre:"
#define DIALOG_PAGESETUP_RIGHT "&Hjre:"
#define DIALOG_PAGESETUP_TOP "&Top:"
#define DIALOG_PAGESETUP_BOTTOM "&Bund:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Page &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notesblok"
#define STRING_ERROR "FEJL"
#define STRING_WARNING "ADVARSEL"
#define STRING_INFO "Information"
#define STRING_UNTITLED "(ikke-navngivet)"
#define STRING_ALL_FILES "Alle filer (*.*)"
#define STRING_TEXT_FILES_TXT "Tekst filer (*.txt)"
#define STRING_TOOLARGE "Filen '%s' er for stor til Notesblok. \
MAIN_MENU MENU LANGUAGE LANG_DANISH, SUBLANG_NEUTRAL
{
POPUP "&Filef" {
MENUITEM "&Ny...", 0x100
MENUITEM "&bn\tEnter", 0x101
MENUITEM "&Gem", 0x102
MENUITEM "Gem so&m...", 0x103
MENUITEM "&Udskriv", 0x104
MENUITEM "Side&opstning...", 0x105
MENUITEM "&Indstil printer...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Afslut", 0x108
}
POPUP "&Rediger" {
MENUITEM "&Fortryd\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "&Klip\tCtrl+X", 0x111
MENUITEM "K&opier\tCtrl+C", 0x112
MENUITEM "St &ind\tCtrl+V", 0x113
MENUITEM "&Slet\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Marker &alt", 0x116
MENUITEM "&Dato/tid\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "Automatisk &linjeskift", 0x119
}
POPUP "&Sg" {
MENUITEM "&Sg...", 0x120
MENUITEM "&Find nste\tF3", 0x121
}
POPUP "&Hjlp" {
MENUITEM "&Indhold", 0x130
MENUITEM "&Sg efter hjlp om...", 0x131
MENUITEM "&Brug af Hjlp", 0x132
MENUITEM SEPARATOR
POPUP "&Om Notesblok..." {
MENUITEM "&Licens", 0x135
MENUITEM "&NO WARRANTY", 0x136
MENUITEM "&Om WINE", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_DANISH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Sideopstning"
{
LTEXT "&Sidehoved:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "Side&fod:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "Margener:", 0x144, 10, 43,160, 45
LTEXT "&Venstre:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Hjre:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Bund:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Annuller", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Hjlp", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_DANISH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notesblok"
STRING_ERROR, "FEJL"
STRING_WARNING, "ADVARSEL"
STRING_INFO, "Information"
STRING_UNTITLED, "(ikke-navngivet)"
STRING_ALL_FILES, "Alle filer (*.*)"
STRING_TEXT_FILES_TXT, "Tekst filer (*.txt)"
STRING_TOOLARGE, "Filen '%s' er for stor til Notesblok. \
\nBrug en anden editor til at redigere filen."
#define STRING_NOTEXT "Du har ikke skrevet noget tekst. \
STRING_NOTEXT, "Du har ikke skrevet noget tekst. \
\nSkriv noget tekst, og prv s igen"
/* FIXME: */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Filen '%s'\n has been modified.\n\n \
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
Would you like to save the changes ?"
#define STRING_NOTFOUND "Kan ikke finde '%s'."
#define STRING_OUT_OF_MEMORY "Der er ikke nok hukommelse til at udfre \
STRING_NOTFOUND, "Kan ikke finde '%s'."
STRING_OUT_OF_MEMORY, "Der er ikke nok hukommelse til at udfre \
denne operation. \nAfslut et eller flere aktive programmer for at frigre \
hukommelse, og prv s igen."
#include "notepad.rc"
}
programs/notepad/De.rc
View file @
eaa8df60
...
...
@@ -2,6 +2,8 @@
* Notepad (German resources)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,105 +20,110 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID De
#define LANGUAGE_NUMBER 2
#define LANGUAGE_MENU_ITEM "&Deutsch"
/* Menu */
#define MENU_FILE "&Datei"
#define MENU_FILE_NEW "&Neu..."
#define MENU_FILE_OPEN "Ö&ffnen..."
#define MENU_FILE_SAVE "&Speichern"
#define MENU_FILE_SAVEAS "Speichern &unter..."
#define MENU_FILE_PRINT "&Drucken"
#define MENU_FILE_PAGESETUP "Seite ein&richten..."
#define MENU_FILE_PRINTSETUP "Drucker&einrichtung..."
#define MENU_FILE_EXIT "&Beenden"
#define MENU_EDIT "&Bearbeiten"
#define MENU_EDIT_UNDO "&Rückgängig\tStrg+Z"
#define MENU_EDIT_CUT "&Ausschneiden\tStrg+X"
#define MENU_EDIT_COPY "&Kopieren\tStrg+C"
#define MENU_EDIT_PASTE "&Einfügen\tStrg+V"
#define MENU_EDIT_DELETE "&Löschen\tEntf"
#define MENU_EDIT_SELECTALL "Alles &markieren"
#define MENU_EDIT_TIMEDATE "&Uhrzeit/Datum\tF5"
#define MENU_EDIT_WRAP "&Zeilenumbruch"
#define MENU_SEARCH "&Suchen"
#define MENU_SEARCH_SEARCH "Suchen..."
#define MENU_SEARCH_NEXT "&Weitersuchen\tF3"
#define MENU_LANGUAGE "&Sprache"
#define MENU_HELP "&Hilfe"
#define MENU_HELP_CONTENTS "&Inhalt"
#define MENU_HELP_SEARCH "&Suchen..."
#define MENU_HELP_HELP_ON_HELP "&Hilfe benutzen"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Lizenz"
#define MENU_INFO_NO_WARRANTY "&KEINE GARANTIE"
#define MENU_INFO_ABOUT_WINE "&Über WINE"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Abbrechen"
#define DIALOG_BROWSE "&Durchsuchen..."
#define DIALOG_HELP "&Hilfe"
#define DIALOG_PAGESETUP_CAPTION "Seite einrichten"
#define DIALOG_PAGESETUP_HEAD "&Kopfzeile:"
#define DIALOG_PAGESETUP_TAIL "&Fußzeile:"
#define DIALOG_PAGESETUP_MARGIN "Ränder"
#define DIALOG_PAGESETUP_LEFT "&Links:"
#define DIALOG_PAGESETUP_RIGHT "&Rechts:"
#define DIALOG_PAGESETUP_TOP "&Oben:"
#define DIALOG_PAGESETUP_BOTTOM "&Unten:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n"
#define STRING_PAGESETUP_FOOTERVALUE "Page &s"
#define STRING_PAGESETUP_LEFTVALUE "20 mm"
#define STRING_PAGESETUP_RIGHTVALUE "20 mm"
#define STRING_PAGESETUP_TOPVALUE "25 mm"
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm"
#define STRING_NOTEPAD "Editor"
#define STRING_ERROR "FEHLER"
#define STRING_WARNING "ACHTUNG"
#define STRING_INFO "Information"
#define STRING_UNTITLED "(unbenannt)"
#define STRING_ALL_FILES "Alle Dateien (*.*)"
#define STRING_TEXT_FILES_TXT "Textdateien (*.txt)"
#define STRING_TOOLARGE "'%s' ist zu gross für den Editor\n \
MAIN_MENU MENU LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
{
POPUP "&Datei" {
MENUITEM "&Neu...", 0x100
MENUITEM "&ffnen...", 0x101
MENUITEM "&Speichern", 0x102
MENUITEM "Speichern &unter...", 0x103
MENUITEM "&Drucken", 0x104
MENUITEM "Seite ein&richten...", 0x105
MENUITEM "Drucker&einrichtung...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Beenden", 0x108
}
POPUP "&Bearbeiten" {
MENUITEM "&Rckgngig\tStrg+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "&Ausschneiden\tStrg+X", 0x111
MENUITEM "&Kopieren\tStrg+C", 0x112
MENUITEM "&Einfgen\tStrg+V", 0x113
MENUITEM "&Lschen\tEntf", 0x114
MENUITEM SEPARATOR
MENUITEM "Alles &markieren", 0x116
MENUITEM "&Uhrzeit/Datum\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Zeilenumbruch", 0x119
}
POPUP "&Suchen" {
MENUITEM "Suchen...", 0x120
MENUITEM "&Weitersuchen\tF3", 0x121
}
POPUP "&Hilfe" {
MENUITEM "&Inhalt", 0x130
MENUITEM "&Suchen...", 0x131
MENUITEM "&Hilfe benutzen", 0x132
MENUITEM SEPARATOR
POPUP "Inf&o..." {
MENUITEM "&Lizenz", 0x135
MENUITEM "&KEINE GARANTIE", 0x136
MENUITEM "&ber Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Seite einrichten"
{
LTEXT "&Kopfzeile:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Fuzeile:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "Rnder", 0x144, 10, 43,160, 45
LTEXT "&Links:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Oben:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Rechts:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Unten:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Abbrechen", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Hilfe", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Editor"
STRING_ERROR, "FEHLER"
STRING_WARNING, "ACHTUNG"
STRING_INFO, "Information"
STRING_UNTITLED, "(unbenannt)"
STRING_ALL_FILES, "Alle Dateien (*.*)"
STRING_TEXT_FILES_TXT, "Textdateien (*.txt)"
STRING_TOOLARGE, "'%s' ist zu gross fr den Editor\n \
Benutzen Sie bitte einen anderen Editor, um diese Datei zu bearbeiten."
#define STRING_NOTEXT "Sie haben keinen Text eingegeben, der \
STRING_NOTEXT, "Sie haben keinen Text eingegeben, der \
gespeichert\n werden knnte. Geben Sie Text ein, und versuchen Sie es \
\nerneut."
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Datei %s\n wurde geaendert.\n\n \
STRING_NOTSAVED, "Datei %s\n wurde geaendert.\n\n \
Moechten Sie die Aenderungen speichern ?"
#define STRING_NOTFOUND "'%s' kann nicht gefunden werden."
#define STRING_OUT_OF_MEMORY "Nicht genügend Arbeitsspeicher, \
STRING_NOTFOUND, "'%s' kann nicht gefunden werden."
STRING_OUT_OF_MEMORY, "Nicht gengend Arbeitsspeicher, \
um diese Funktion \nabzuschlieen. Beenden Sie eine oder mehrere \
\nAnwendungen, um den verfgbaren Arbeitsspeicher zu \nerhhen."
#include "notepad.rc"
}
programs/notepad/En.rc
View file @
eaa8df60
...
...
@@ -3,6 +3,7 @@
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,102 +20,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID En
#define LANGUAGE_NUMBER 0
#define LANGUAGE_MENU_ITEM "&English"
/* Menu */
#define MENU_FILE "&File"
#define MENU_FILE_NEW "&New..."
#define MENU_FILE_OPEN "&Open"
#define MENU_FILE_SAVE "&Save"
#define MENU_FILE_SAVEAS "Save &as..."
#define MENU_FILE_PRINT "&Print"
#define MENU_FILE_PAGESETUP "Page Se&tup..."
#define MENU_FILE_PRINTSETUP "P&rinter Setup..."
#define MENU_FILE_EXIT "&Exit"
#define MENU_EDIT "&Edit"
#define MENU_EDIT_UNDO "&Undo\tCtrl+Z"
#define MENU_EDIT_CUT "Cu&t\tCtrl+X"
#define MENU_EDIT_COPY "&Copy\tCtrl+C"
#define MENU_EDIT_PASTE "&Paste\tCtrl+V"
#define MENU_EDIT_DELETE "&Delete\tDel"
#define MENU_EDIT_SELECTALL "Select &all"
#define MENU_EDIT_TIMEDATE "&Time/Date\tF5"
#define MENU_EDIT_WRAP "&Wrap long lines"
#define MENU_SEARCH "&Search"
#define MENU_SEARCH_SEARCH "Search..."
#define MENU_SEARCH_NEXT "&Search next\tF3"
#define MENU_LANGUAGE "&Language"
#define MENU_HELP "&Help"
#define MENU_HELP_CONTENTS "&Contents"
#define MENU_HELP_SEARCH "&Search..."
#define MENU_HELP_HELP_ON_HELP "&Help on help"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&License"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&About Wine"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Cancel"
#define DIALOG_BROWSE "&Browse..."
#define DIALOG_HELP "&Help"
#define DIALOG_PAGESETUP_CAPTION "Page Setup"
#define DIALOG_PAGESETUP_HEAD "&Header:"
#define DIALOG_PAGESETUP_TAIL "&Footer:"
#define DIALOG_PAGESETUP_MARGIN "&Margins:"
#define DIALOG_PAGESETUP_LEFT "&Left:"
#define DIALOG_PAGESETUP_RIGHT "&Right:"
#define DIALOG_PAGESETUP_TOP "&Top:"
#define DIALOG_PAGESETUP_BOTTOM "&Bottom:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Page &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notepad"
#define STRING_ERROR "ERROR"
#define STRING_WARNING "WARNING"
#define STRING_INFO "Information"
#define STRING_UNTITLED "(untitled)"
#define STRING_ALL_FILES "All files (*.*)"
#define STRING_TEXT_FILES_TXT "Text files (*.txt)"
#define STRING_TOOLARGE "File '%s' is too large for notepad.\n \
MAIN_MENU MENU LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
{
POPUP "&File" {
MENUITEM "&New...", 0x100
MENUITEM "&Open", 0x101
MENUITEM "&Save", 0x102
MENUITEM "Save &as...", 0x103
MENUITEM "&Print", 0x104
MENUITEM "Page Se&tup...", 0x105
MENUITEM "P&rinter Setup...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Exit", 0x108
}
POPUP "&Edit" {
MENUITEM "&Undo\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", 0x111
MENUITEM "&Copy\tCtrl+C", 0x112
MENUITEM "&Paste\tCtrl+V", 0x113
MENUITEM "&Delete\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Select &all", 0x116
MENUITEM "&Time/Date\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Wrap long lines", 0x119
}
POPUP "&Search" {
MENUITEM "&Search", 0x120
MENUITEM "&Search next\tF3", 0x121
}
POPUP "&Help" {
MENUITEM "&Contents", 0x130
MENUITEM "&Search...", 0x131
MENUITEM "&Help on help", 0x132
MENUITEM SEPARATOR
POPUP "Inf&o..." {
MENUITEM "&License", 0x135
MENUITEM "&NO WARRANTY", 0x136
MENUITEM "&About Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Page Setup"
{
LTEXT "&Header:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Footer:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Margins:", 0x144, 10, 43,160, 45
LTEXT "&Left:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Right:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Bottom:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Cancel", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERROR"
STRING_WARNING, "WARNING"
STRING_INFO, "Information"
STRING_UNTITLED, "(untitled)"
STRING_ALL_FILES, "All files (*.*)"
STRING_TEXT_FILES_TXT, "Text files (*.txt)"
STRING_TOOLARGE, "File '%s' is too large for notepad.\n \
Please use a different editor."
#define STRING_NOTEXT "You didn't enter any text. \
STRING_NOTEXT, "You didn't enter any text. \
\nPlease type something and try again"
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "File '%s'\nhas been modified\n\n \
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
Would you like to save the changes ?"
#define STRING_NOTFOUND "'%s' can not be found."
#define STRING_OUT_OF_MEMORY "Not enough memory to complete this \
STRING_NOTFOUND, "'%s' can not be found."
STRING_OUT_OF_MEMORY, "Not enough memory to complete this \
task. \nClose one or more applications to increase the amount of \nfree \
memory."
#include "notepad.rc"
}
programs/notepad/Es.rc
View file @
eaa8df60
/*
* Notepad (
Engl
ish resources)
* Notepad (
Span
ish resources)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
* Proofread 1999 by Jose Marcos Lopez <jose.lopez@upcnet.upc.es>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -20,104 +21,109 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Es
#define LANGUAGE_NUMBER d
#define LANGUAGE_MENU_ITEM "Castellano"
/* Menu */
#define MENU_FILE "&Archivo"
#define MENU_FILE_NEW "&Nuevo"
#define MENU_FILE_OPEN "&Abrir"
#define MENU_FILE_SAVE "&Guardar"
#define MENU_FILE_SAVEAS "Guardar co&mo..."
#define MENU_FILE_PAGESETUP "&Configurar pgina..."
#define MENU_FILE_PRINT "&Imprimir"
#define MENU_FILE_PRINTSETUP "&Configuracin impresora..."
#define MENU_FILE_EXIT "&Salir"
#define MENU_EDIT "&Editar"
#define MENU_EDIT_UNDO "&Deshacer\tCtrl+Z"
#define MENU_EDIT_CUT "Cor&tar\tCtrl+X"
#define MENU_EDIT_COPY "&Copiar\tCtrl+C"
#define MENU_EDIT_PASTE "&Pegar\tCtrl+V"
#define MENU_EDIT_DELETE "&Borrar\tDel"
#define MENU_EDIT_SELECTALL "Seleccionar t&odo"
#define MENU_EDIT_TIMEDATE "&Hora y Fecha\tF5"
#define MENU_EDIT_WRAP "&Ajuste de lnea automtico"
#define MENU_SEARCH "&Buscar"
#define MENU_SEARCH_SEARCH "&Buscar..."
#define MENU_SEARCH_NEXT "Buscar &siguiente\tF3"
#define MENU_LANGUAGE "&Idioma"
#define MENU_HELP "&Ayuda"
#define MENU_HELP_CONTENTS "&Indice"
#define MENU_HELP_SEARCH "&Buscar..."
#define MENU_HELP_HELP_ON_HELP "&Ayuda sobre la ayuda"
#define MENU_INFO "Inf&ormacin..."
#define MENU_INFO_LICENSE "&Licencia"
#define MENU_INFO_NO_WARRANTY "SIN &GARANTA"
#define MENU_INFO_ABOUT_WINE "&Acerca de Wine"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Cancelar"
#define DIALOG_BROWSE "&Buscar..."
#define DIALOG_HELP "&Ayuda"
#define DIALOG_PAGESETUP_CAPTION "&Ajuste de pgina"
#define DIALOG_PAGESETUP_HEAD "&Cabecera:"
#define DIALOG_PAGESETUP_TAIL "&Pi:"
#define DIALOG_PAGESETUP_MARGIN "&Margenes:"
#define DIALOG_PAGESETUP_LEFT "&Izquierda:"
#define DIALOG_PAGESETUP_RIGHT "&Derecha:"
#define DIALOG_PAGESETUP_TOP "A&rriba:"
#define DIALOG_PAGESETUP_BOTTOM "Aba&jo:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Pgina &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Bloc de Notas"
#define STRING_ERROR "ERROR"
#define STRING_WARNING "CUIDADO"
#define STRING_INFO "Informacin"
#define STRING_UNTITLED "(sin ttulo)"
#define STRING_ALL_FILES "Todos los archivos (*.*)"
#define STRING_TEXT_FILES_TXT "Documentos de texto (*.txt)"
#define STRING_TOOLARGE "El archivo '%s' es demasiado grande para el bloc de notas.\n \
MAIN_MENU MENU LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
{
POPUP "&Archivo" {
MENUITEM "&Nuevo", 0x100
MENUITEM "&Abrir", 0x101
MENUITEM "&Guardar", 0x102
MENUITEM "Guardar co&mo...", 0x103
MENUITEM "&Imprimir", 0x104
MENUITEM "&Configurar pgina...", 0x105
MENUITEM "&Configuracin impresora...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Salir", 0x108
}
POPUP "&Editar" {
MENUITEM "&Deshacer\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "Cor&tar\tCtrl+X", 0x111
MENUITEM "&Copiar\tCtrl+C", 0x112
MENUITEM "&Pegar\tCtrl+V", 0x113
MENUITEM "&Borrar\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Seleccionar t&odo", 0x116
MENUITEM "&Hora y Fecha\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Ajuste de lnea automtico", 0x119
}
POPUP "&Buscar" {
MENUITEM "&Buscar...", 0x120
MENUITEM "Buscar &siguiente\tF3", 0x121
}
POPUP "&Ayuda" {
MENUITEM "&Indice", 0x130
MENUITEM "&Buscar...", 0x131
MENUITEM "Ayuda sobre la ayuda", 0x132
MENUITEM SEPARATOR
POPUP "Inf&ormacin..." {
MENUITEM "&Licencia", 0x135
MENUITEM "SIN &GARANTA", 0x136
MENUITEM "&Acerca de Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "&Ajuste de pgina"
{
LTEXT "&Cabecera:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Pi:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Margenes:", 0x144, 10, 43,160, 45
LTEXT "&Izquierda:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "A&rriba:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Derecha:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "Aba&jo:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Cancelar", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Ayuda", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Pgina &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Bloc de Notas"
STRING_ERROR, "ERROR"
STRING_WARNING, "CUIDADO"
STRING_INFO, "Informacin"
STRING_UNTITLED, "(sin ttulo)"
STRING_ALL_FILES, "Todos los archivos (*.*)"
STRING_TEXT_FILES_TXT, "Documentos de texto (*.txt)"
STRING_TOOLARGE, "El archivo '%s' es demasiado grande para el bloc de notas.\n \
Use otro editor."
#define STRING_NOTEXT "Ud. no escribi nada. \
STRING_NOTEXT, "Ud. no escribi nada. \
\nPor favor escriba algo y pruebe de nuevo"
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "El texto en el archivo '%s' ha cambiado\n\n \
STRING_NOTSAVED, "El texto en el archivo '%s' ha cambiado\n\n \
Desea guardar los cambios?"
#define STRING_NOTFOUND "no se encontr '%s'."
#define STRING_OUT_OF_MEMORY "No hay suficiente memoria para terminar \
STRING_NOTFOUND, "no se encontr '%s'."
STRING_OUT_OF_MEMORY, "No hay suficiente memoria para terminar \
esta tarea. \nCierre una o ms aplicaciones para aumentar la cantidad \nde \
memoria libre."
#include "notepad.rc"
}
programs/notepad/Fi.rc
View file @
eaa8df60
...
...
@@ -2,6 +2,7 @@
* Notepad (Finnish resources)
*
* Copyright 1999 by Jukka Iivonen <iivonen@iki.fi>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,104 +19,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Fi
#define LANGUAGE_NUMBER b
#define LANGUAGE_MENU_ITEM "&Finnish"
/* Menu */
#define MENU_FILE "&Tiedosto"
#define MENU_FILE_NEW "&Uusi..."
#define MENU_FILE_OPEN "&Avaa"
#define MENU_FILE_SAVE "Ta&lleta"
#define MENU_FILE_SAVEAS "Talleta &nimell..."
#define MENU_FILE_PRINT "T&ulosta"
#define MENU_FILE_PAGESETUP "&Sivun asetukset..."
#define MENU_FILE_PRINTSETUP "&Kirjoittimen asetukset..."
#define MENU_FILE_EXIT "&Poistu"
#define MENU_EDIT "&Muokkaa"
#define MENU_EDIT_UNDO "&Palauta\tCtrl+Z"
#define MENU_EDIT_CUT "&Leikkaa\tCtrl+X"
#define MENU_EDIT_COPY "&Kopioi\tCtrl+C"
#define MENU_EDIT_PASTE "L&iit\tCtrl+V"
#define MENU_EDIT_DELETE "P&oista\tDel"
#define MENU_EDIT_SELECTALL "&Valitse kaikki"
#define MENU_EDIT_TIMEDATE "&Aika/Pivmr\tF5"
#define MENU_EDIT_WRAP "Ka&tkaise pitk rivi"
#define MENU_SEARCH "&Etsi"
#define MENU_SEARCH_SEARCH "Etsi..."
#define MENU_SEARCH_NEXT "Etsi &seuraava\tF3"
#define MENU_LANGUAGE "&Kieli"
#define MENU_HELP "&Apua"
#define MENU_HELP_CONTENTS "&Sislt"
#define MENU_HELP_SEARCH "&Etsi..."
#define MENU_HELP_HELP_ON_HELP "Apua &Opastuksesta"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Lisenssi"
#define MENU_INFO_NO_WARRANTY "&EI TAKUUTA"
#define MENU_INFO_ABOUT_WINE "&Tietoja Wine:ista"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Peruuta"
#define DIALOG_BROWSE "&Selaa..."
#define DIALOG_HELP "&Apua"
#define DIALOG_PAGESETUP_CAPTION "Sivun asetukset"
#define DIALOG_PAGESETUP_HEAD "&Ylotsikko:"
#define DIALOG_PAGESETUP_TAIL "Alao&tsikko:"
#define DIALOG_PAGESETUP_MARGIN "&Marginaali:"
#define DIALOG_PAGESETUP_LEFT "&Vasen:"
#define DIALOG_PAGESETUP_RIGHT "&Oikea:"
#define DIALOG_PAGESETUP_TOP "Y&l:"
#define DIALOG_PAGESETUP_BOTTOM "&Ala:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Sivu &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notepad"
#define STRING_ERROR "VIRHE"
#define STRING_WARNING "VAROITUS"
#define STRING_INFO "Tiedoitus"
#define STRING_UNTITLED "(otsikoimaton)"
#define STRING_ALL_FILES "Kaikki tiedostot (*.*)"
#define STRING_TEXT_FILES_TXT "Teksti tiedostot (*.txt)"
#define STRING_TOOLARGE "Tiedosto '%s' on liian suuri.\n \
MAIN_MENU MENU LANGUAGE LANG_FINNISH, SUBLANG_NEUTRAL
{
POPUP "&Tiedosto" {
MENUITEM "&Uusi...", 0x100
MENUITEM "&Avaa", 0x101
MENUITEM "Ta&lleta", 0x102
MENUITEM "Talleta &nimell...", 0x103
MENUITEM "T&ulosta", 0x104
MENUITEM "&Sivun asetukset...", 0x105
MENUITEM "&Kirjoittimen asetukset...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Poistu", 0x108
}
POPUP "&Muokkaa" {
MENUITEM "&Palauta\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "&Leikkaa\tCtrl+X", 0x111
MENUITEM "&Kopioi\tCtrl+C", 0x112
MENUITEM "L&iit\tCtrl+V", 0x113
MENUITEM "P&oista\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "&Valitse kaikki", 0x116
MENUITEM "&Aika/Pivmr\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "Ka&tkaise pitk rivi", 0x119
}
POPUP "&Etsi" {
MENUITEM "Etsi...", 0x120
MENUITEM "Etsi &seuraava\tF3", 0x121
}
POPUP "&Apua" {
MENUITEM "&Sislt", 0x130
MENUITEM "&Etsi...", 0x131
MENUITEM "Apua &Opastuksesta", 0x132
MENUITEM SEPARATOR
POPUP "Inf&o..." {
MENUITEM "&Lisenssi", 0x135
MENUITEM "&EI TAKUUTA", 0x136
MENUITEM "&Tietoja Wine:ista", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_FINNISH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Sivun asetukset"
{
LTEXT "&Ylotsikko:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "Alao&tsikko:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Marginaali:", 0x144, 10, 43,160, 45
LTEXT "&Vasen:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "Y&l:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Oikea:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Ala:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Peruuta", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Apua", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_FINNISH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Sivu &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "VIRHE"
STRING_WARNING, "VAROITUS"
STRING_INFO, "Tiedoitus"
STRING_UNTITLED, "(otsikoimaton)"
STRING_ALL_FILES, "Kaikki tiedostot (*.*)"
STRING_TEXT_FILES_TXT, "Teksti tiedostot (*.txt)"
STRING_TOOLARGE, "Tiedosto '%s' on liian suuri.\n \
Please use a different editor."
#define STRING_NOTEXT "Et syttnyt lainkaan teksti. \
STRING_NOTEXT, "Et syttnyt lainkaan teksti. \
\nKirjoita jotain ja yrit uudelleen"
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "File '%s'\nhas been modified\n\n \
Would you like to save your changes ?"
#define STRING_NOTFOUND "'%s' ei lydy."
#define STRING_OUT_OF_MEMORY "Muistia ei ole riittvsti tmn \
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
Would you like to save the changes ?"
STRING_NOTFOUND, "'%s' ei lydy."
STRING_OUT_OF_MEMORY, "Muistia ei ole riittvsti tmn \
\ntehtvn tekemiseksi. Sulje jokin sovellus vapauttaaksesi\n \
muistia."
#include "notepad.rc"
}
programs/notepad/Fr.rc
View file @
eaa8df60
...
...
@@ -3,6 +3,7 @@
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Translation by Laurent Buffler <laurent@bluewin.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,107 +20,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Fr
#define LANGUAGE_NUMBER 3
#define LANGUAGE_MENU_ITEM "&Français"
/* Menu */
#define MENU_FILE "&Fichier"
#define MENU_FILE_NEW "&Nouveau..."
#define MENU_FILE_OPEN "&Ouvrir"
#define MENU_FILE_SAVE "&Sauver"
#define MENU_FILE_SAVEAS "S&auver sous..."
#define MENU_FILE_PRINT "Im&primer"
#define MENU_FILE_PAGESETUP "&Mise en page..."
#define MENU_FILE_PRINTSETUP "Imp&rimante..."
#define MENU_FILE_EXIT "&Quitter"
#define MENU_EDIT "&Edition"
#define MENU_EDIT_UNDO "&Annuler\tCtrl+Z"
#define MENU_EDIT_CUT "Coupe&r\tCtrl+X"
#define MENU_EDIT_COPY "&Copier\tCtrl+C"
#define MENU_EDIT_PASTE "C&oller\tCtrl+V"
#define MENU_EDIT_DELETE "E&ffacer\tDel"
#define MENU_EDIT_SELECTALL "Tout &selectionner"
#define MENU_EDIT_TIMEDATE "&Heure/Date\tF5"
#define MENU_EDIT_WRAP "&Retour à la ligne"
#define MENU_SEARCH "&Recherche"
#define MENU_SEARCH_SEARCH "&Chercher..."
#define MENU_SEARCH_NEXT "&Suivant\tF3"
#define MENU_LANGUAGE "&Langue"
#define MENU_HELP "&Aide"
#define MENU_HELP_CONTENTS "&Sommaire"
#define MENU_HELP_SEARCH "&Chercher..."
#define MENU_HELP_HELP_ON_HELP "&Aide sur l'aide"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&License"
#define MENU_INFO_NO_WARRANTY "&SANS GARANTIE"
#define MENU_INFO_ABOUT_WINE "&A propos de Wine"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Annuler"
#define DIALOG_BROWSE "&Parcourir..."
#define DIALOG_HELP "&Aide"
#define DIALOG_PAGESETUP_CAPTION "Mise en page"
#define DIALOG_PAGESETUP_HEAD "&En-tête:"
#define DIALOG_PAGESETUP_TAIL "&Pied de page:"
#define DIALOG_PAGESETUP_MARGIN "&Marges:"
#define DIALOG_PAGESETUP_LEFT "&Gauche:"
#define DIALOG_PAGESETUP_RIGHT "&Droite:"
#define DIALOG_PAGESETUP_TOP "&Haut:"
#define DIALOG_PAGESETUP_BOTTOM "&Bas:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Page &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notepad"
#define STRING_ERROR "ERREUR"
#define STRING_WARNING "AVERTISSEMENT"
#define STRING_INFO "Information"
#define STRING_UNTITLED "(sans titre)"
#define STRING_ALL_FILES "Tous (*.*)"
#define STRING_TEXT_FILES_TXT "Fichiers texte (*.txt)"
#define STRING_TOOLARGE "Le fichier '%s' est trop grand pour le bloc note.\n \
MAIN_MENU MENU LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
{
POPUP "&Fichier" {
MENUITEM "&Nouveau...", 0x100
MENUITEM "&Ouvrir", 0x101
MENUITEM "&Enregistrer", 0x102
MENUITEM "Enregistrer &sous...", 0x103
MENUITEM "Im&primer", 0x104
MENUITEM "&Mise en page...", 0x105
MENUITEM "&Configuration de l'imprimante...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Quitter", 0x108
}
POPUP "&Edition" {
MENUITEM "&Annuler\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "Co&uper\tCtrl+X", 0x111
MENUITEM "&Copier\tCtrl+C", 0x112
MENUITEM "&Coller\tCtrl+V", 0x113
MENUITEM "&Effacer\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Tout &slectionner", 0x116
MENUITEM "&Heure/Date\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Retour la ligne", 0x119
}
POPUP "&Rechercher" {
MENUITEM "&Rechercher", 0x120
MENUITEM "&Suivant\tF3", 0x121
}
POPUP "&Aide" {
MENUITEM "&Sommaire", 0x130
MENUITEM "&Rechercher...", 0x131
MENUITEM "&Aide sur l'aide", 0x132
MENUITEM SEPARATOR
POPUP "Inf&o..." {
MENUITEM "&Licence", 0x135
MENUITEM "&AUCUNE GARANTIE", 0x136
MENUITEM "&A propos de Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Page Setup"
{
LTEXT "&En-tte:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Pied de page:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Marges:", 0x144, 10, 43,160, 45
LTEXT "&Gauche:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Haut:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Droite:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Bas:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Annuler", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Aide", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERREUR"
STRING_WARNING, "ATTENTION"
STRING_INFO, "Information"
STRING_UNTITLED, "(sans-titre)"
STRING_ALL_FILES, "Tous fichiers (*.*)"
STRING_TEXT_FILES_TXT, "Fichiers texte (*.txt)"
STRING_TOOLARGE, "Le fichier '%s' est trop grand pour le bloc-notes.\n \
Veuillez utiliser un autre diteur."
#define STRING_NOTEXT "Vous n'avez pas entré de texte. \
\nVeuillez taper quelque chose et recommencer"
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Le fichier '%s'\n\n a change\n \
Would you like to save your changes ?"
#define STRING_NOTFOUND "'%s' introuvable."
#define STRING_OUT_OF_MEMORY "Pas assez de mémoire pour finir cette tâche. \
\nFermez une ou plusier applications pour libérer \n \
STRING_NOTEXT, "Vous n'avez pas entr de texte. Veuillez taper quelque chose et recommencer\
\n"
STRING_DOESNOTEXIST, "Le fichier '%s'\n\'existe pas.\n\n \
Voulez vous crer un nouveau fichier ?"
STRING_NOTSAVED, "Le fichier '%s'\na t modifi\n\n \
Voulez vous enregistrer vos modifications ?"
STRING_NOTFOUND, "'%s' non trouv."
STRING_OUT_OF_MEMORY, "Pas assez de mmoire pour finir cette tche. \
task. \n Fermez une ou plusier applications pour librer\n\
de la mmoire."
#include "notepad.rc"
/* Strings */
}
programs/notepad/Pt.rc
View file @
eaa8df60
/*
* Notepad (
English
resources)
* Notepad (
Portuguese
resources)
*
* Copyright 1999 Marcel Baur <alves@correionet.com.br>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,104 +19,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Pt
#define LANGUAGE_NUMBER 16
#define LANGUAGE_MENU_ITEM "&Portugus"
/* Menu */
#define MENU_FILE "&Arquivo"
#define MENU_FILE_NEW "&Novo..."
#define MENU_FILE_OPEN "A&brir"
#define MENU_FILE_SAVE "&Salvar"
#define MENU_FILE_SAVEAS "Salvar &como..."
#define MENU_FILE_PRINT "&Imprimir"
#define MENU_FILE_PAGESETUP "C&onfigurar Pgina..."
#define MENU_FILE_PRINTSETUP "Configurar I&mpressora..."
#define MENU_FILE_EXIT "&Sair"
#define MENU_EDIT "&Editar"
#define MENU_EDIT_UNDO "&Desfazer\tCtrl+Z"
#define MENU_EDIT_CUT "C&ortar\tCtrl+X"
#define MENU_EDIT_COPY "&Copiar\tCtrl+C"
#define MENU_EDIT_PASTE "Co&lar\tCtrl+V"
#define MENU_EDIT_DELETE "&Delete\tDel"
#define MENU_EDIT_SELECTALL "Selecionar &Tudo"
#define MENU_EDIT_TIMEDATE "&Data/Hora\tF5"
#define MENU_EDIT_WRAP "&Quebrar linhas longas"
#define MENU_SEARCH "&Pesquisa"
#define MENU_SEARCH_SEARCH "Pesquisar..."
#define MENU_SEARCH_NEXT "&Procurar Prxima\tF3"
#define MENU_LANGUAGE "&Linguagem"
#define MENU_HELP "&Ajuda"
#define MENU_HELP_CONTENTS "&Contedo"
#define MENU_HELP_SEARCH "&Procurar..."
#define MENU_HELP_HELP_ON_HELP "&Ajuda na ajuda"
#define MENU_INFO "Inf&ormaes..."
#define MENU_INFO_LICENSE "&Licena"
#define MENU_INFO_NO_WARRANTY "&SEM GARANTIA"
#define MENU_INFO_ABOUT_WINE "&Sobre Wine"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Cancelar"
#define DIALOG_BROWSE "&Procurar..."
#define DIALOG_HELP "&Ajuda"
#define DIALOG_PAGESETUP_CAPTION "Configurar Pgina"
#define DIALOG_PAGESETUP_HEAD "&Cabealho:"
#define DIALOG_PAGESETUP_TAIL "&Rodap:"
#define DIALOG_PAGESETUP_MARGIN "&Margens:"
#define DIALOG_PAGESETUP_LEFT "&Esquerda:"
#define DIALOG_PAGESETUP_RIGHT "&Direita:"
#define DIALOG_PAGESETUP_TOP "&Superior:"
#define DIALOG_PAGESETUP_BOTTOM "&Inferior:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Pgina &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notepad"
#define STRING_ERROR "ERRO"
#define STRING_WARNING "AVISO"
#define STRING_INFO "Informao"
#define STRING_UNTITLED "(sem nome)"
#define STRING_ALL_FILES "Todos os arquivos (*.*)"
#define STRING_TEXT_FILES_TXT "Arquivos texto (*.txt)"
#define STRING_TOOLARGE "Arquivo '%s' muito longo para o notepad.\n \
MAIN_MENU MENU LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
{
POPUP "&Arquivo" {
MENUITEM "&Novo...", 0x100
MENUITEM "A&brir", 0x101
MENUITEM "&Salvar", 0x102
MENUITEM "Salvar &como...", 0x103
MENUITEM "&Imprimir", 0x104
MENUITEM "C&onfigurar Pgina...", 0x105
MENUITEM "Configurar I&mpressora...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Sair", 0x108
}
POPUP "&Editar" {
MENUITEM "&Desfazer\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "C&ortar\tCtrl+X", 0x111
MENUITEM "&Copiar\tCtrl+C", 0x112
MENUITEM "Co&lar\tCtrl+V", 0x113
MENUITEM "&Delete\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Selecionar &Tudo", 0x116
MENUITEM "&Data/Hora\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Quebrar linhas longas", 0x119
}
POPUP "&Pesquisa" {
MENUITEM "Pesquisar...", 0x120
MENUITEM "&Procurar Prxima\tF3", 0x121
}
POPUP "&Ajuda" {
MENUITEM "&Contedo", 0x130
MENUITEM "&Procurar...", 0x131
MENUITEM "&Ajuda na ajuda", 0x132
MENUITEM SEPARATOR
POPUP "Inf&ormaes..." {
MENUITEM "&Licena", 0x135
MENUITEM "&SEM GARANTIA", 0x136
MENUITEM "&Sobre Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Configurar Pgina"
{
LTEXT "&Cabealho:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Rodap:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Margens:", 0x144, 10, 43,160, 45
LTEXT "&Esquerda:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Superior:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Direita:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Inferior:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Cancelar", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Ajuda", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Pgina &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERRO"
STRING_WARNING, "AVISO"
STRING_INFO, "Informao"
STRING_UNTITLED, "(sem nome)"
STRING_ALL_FILES, "Todos os arquivos (*.*)"
STRING_TEXT_FILES_TXT, "Arquivos texto (*.txt)"
STRING_TOOLARGE, "Arquivo '%s' muito longo para o notepad.\n \
Por favor use um editor diferente."
#define STRING_NOTEXT "Voc no digitou nenhum texto. \
STRING_NOTEXT, "Voc no digitou nenhum texto. \
\nPor favor digite alguma coisa e tente novamente"
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Arquivo '%s'\nfoi modificado\n\n \
STRING_NOTSAVED, "Arquivo '%s'\nfoi modificado\n\n \
Gostaria de salvar as alteraes ?"
#define STRING_NOTFOUND "'%s' no pode ser encontrado."
#define STRING_OUT_OF_MEMORY "No h memria suficiente para completar essa \
STRING_NOTFOUND, "'%s' no pode ser encontrado."
STRING_OUT_OF_MEMORY, "No h memria suficiente para completar essa \
tarefa. \nFeche uma ou mais aplicaes para aumentar a quantidade de memria \
livre."
#include "notepad.rc"
}
programs/notepad/README
View file @
eaa8df60
...
...
@@ -2,8 +2,8 @@
NOTEPAD for WINE
================
There is now a web page dedicated to Notepad for Wine
I am maintaing.
Please see http://www.vis.inf.ethz.ch/students/mbaur/notepad
for
There is now a web page dedicated to Notepad for Wine I am maintaing.
Please see http://www.vis.inf.ethz.ch/students/mbaur/notepad for
latest info about Notepad. This page also includes screenshots.
This is an early release of notepad and most of the code is still
...
...
@@ -14,4 +14,3 @@ Please see file TODO for things to do and keep the file ChangeLog
up to date.
I also try to read wine-devel@winehq.com frequently.
\ No newline at end of file
programs/notepad/Sk.rc
View file @
eaa8df60
/*
* Notepad (
English
resources)
* Notepad (
Slovak
resources)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,104 +20,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Sk
#define LANGUAGE_NUMBER 10
#define LANGUAGE_MENU_ITEM "&Slovensky"
/* Menu */
#define MENU_FILE "&Sbor"
#define MENU_FILE_NEW "&Nov..."
#define MENU_FILE_OPEN "&Otvori"
#define MENU_FILE_SAVE "U&loi"
#define MENU_FILE_SAVEAS "Ulo&i ako..."
#define MENU_FILE_PRINT "&Tlai"
#define MENU_FILE_PAGESETUP "&Nastavenie tlae..."
#define MENU_FILE_PRINTSETUP "Nastavenie tlaiar&ne..."
#define MENU_FILE_EXIT "U&koni"
#define MENU_EDIT "&Upravi"
#define MENU_EDIT_UNDO "&Krok sp\tCtrl+Z"
#define MENU_EDIT_CUT "V&ystrihn\tCtrl+X"
#define MENU_EDIT_COPY "&Koprova\tCtrl+C"
#define MENU_EDIT_PASTE "V&lepi\tCtrl+V"
#define MENU_EDIT_DELETE "&Zmaza\tDel"
#define MENU_EDIT_SELECTALL "Vybr&a vetko"
#define MENU_EDIT_TIMEDATE "as&/Dtum\tF5"
#define MENU_EDIT_WRAP "&Zalomi dlh riadky"
#define MENU_SEARCH "&Hada"
#define MENU_SEARCH_SEARCH "Hada..."
#define MENU_SEARCH_NEXT "&Hada a\tF3"
#define MENU_LANGUAGE "&Jazyk"
#define MENU_HELP "&Pomoc"
#define MENU_HELP_CONTENTS "&Obsah"
#define MENU_HELP_SEARCH "&Hada..."
#define MENU_HELP_HELP_ON_HELP "&Pomoc na pomoci"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licencia"
#define MENU_INFO_NO_WARRANTY "&BEZ ZRUKY"
#define MENU_INFO_ABOUT_WINE "O &Wine"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Zrui"
#define DIALOG_BROWSE "&Listova..."
#define DIALOG_HELP "&Pomoc"
#define DIALOG_PAGESETUP_CAPTION "Nastavenie strnky"
#define DIALOG_PAGESETUP_HEAD "&Hlavika:"
#define DIALOG_PAGESETUP_TAIL "&Pta:"
#define DIALOG_PAGESETUP_MARGIN "&Okraje:"
#define DIALOG_PAGESETUP_LEFT "a&v:"
#define DIALOG_PAGESETUP_RIGHT "P&rav:"
#define DIALOG_PAGESETUP_TOP "H&ore:"
#define DIALOG_PAGESETUP_BOTTOM "Do&lu:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Strana &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notepad"
#define STRING_ERROR "CHYBA"
#define STRING_WARNING "VAROVANIE"
#define STRING_INFO "Informcie"
#define STRING_UNTITLED "(nepomenovan)"
#define STRING_ALL_FILES "Vetky sbory (*.*)"
#define STRING_TEXT_FILES_TXT "Textov sbory (*.txt)"
#define STRING_TOOLARGE "File '%s' is too large for notepad.\n \
MAIN_MENU MENU LANGUAGE LANG_SLOVAK, SUBLANG_NEUTRAL
{
POPUP "&File" {
MENUITEM "&New...", 0x100
MENUITEM "&Open", 0x101
MENUITEM "&Save", 0x102
MENUITEM "Save &as...", 0x103
MENUITEM "&Print", 0x104
MENUITEM "Page Se&tup...", 0x105
MENUITEM "P&rinter Setup...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Exit", 0x108
}
POPUP "&Edit" {
MENUITEM "&Undo\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "Cu&t\tCtrl+X", 0x111
MENUITEM "&Copy\tCtrl+C", 0x112
MENUITEM "&Paste\tCtrl+V", 0x113
MENUITEM "&Delete\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Select &all", 0x116
MENUITEM "&Time/Date\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Wrap long lines", 0x119
}
POPUP "&Search" {
MENUITEM "&Search", 0x120
MENUITEM "&Search next\tF3", 0x121
}
POPUP "&Help" {
MENUITEM "&Contents", 0x130
MENUITEM "&Search...", 0x131
MENUITEM "&Help on help", 0x132
MENUITEM SEPARATOR
POPUP "Inf&o..." {
MENUITEM "&License", 0x135
MENUITEM "&NO WARRANTY", 0x136
MENUITEM "&About Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_SLOVAK, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Page Setup"
{
LTEXT "&Header:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Footer:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Margins:", 0x144, 10, 43,160, 45
LTEXT "&Left:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Top:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Right:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Bottom:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Cancel", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Help", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_SLOVAK, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERROR"
STRING_WARNING, "WARNING"
STRING_INFO, "Information"
STRING_UNTITLED, "(untitled)"
STRING_ALL_FILES, "All files (*.*)"
STRING_TEXT_FILES_TXT, "Text files (*.txt)"
STRING_TOOLARGE, "File '%s' is too large for notepad.\n \
Please use a different editor."
#define STRING_NOTEXT "Ni ste nenapsali. \
\nProsm, napte nejak text a pokste sa znovu."
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_NOTEXT, "You didn't enter any text. \
\nPlease type something and try again"
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Sbor '%s'\nbol zmenenn\n \
Prajete si uloi zmeny ?"
#define STRING_NOTFOUND "'%s' neme by njden."
#define STRING_OUT_OF_MEMORY "Not enough memory to complete this \
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
Would you like to save the changes ?"
STRING_NOTFOUND, "'%s' can not be found."
STRING_OUT_OF_MEMORY, "Not enough memory to complete this \
task. \nClose one or more applications to increase the amount of \nfree \
memory."
#include "notepad.rc"
}
programs/notepad/Sw.rc
View file @
eaa8df60
...
...
@@ -2,7 +2,8 @@
* Notepad (Swedish resources)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Swedish language by Karl Backstrm <karl_b@geocities.com>
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -19,104 +20,108 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define LANGUAGE_ID Sw
#define LANGUAGE_NUMBER 1d
#define LANGUAGE_MENU_ITEM "&Svenska"
/* Menu */
#define MENU_FILE "&Arkiv"
#define MENU_FILE_NEW "&Ny..."
#define MENU_FILE_OPEN "&ppna"
#define MENU_FILE_SAVE "&Spara"
#define MENU_FILE_SAVEAS "Spara &som..."
#define MENU_FILE_PRINT "&Skriv ut"
#define MENU_FILE_PAGESETUP "Sid La&yout..."
#define MENU_FILE_PRINTSETUP "Skrivar &instllningar..."
#define MENU_FILE_EXIT "&Avsluta"
#define MENU_EDIT "&Redigera"
#define MENU_EDIT_UNDO "&Undo\tCtrl+Z"
#define MENU_EDIT_CUT "Klippa\tCtrl+X"
#define MENU_EDIT_COPY "&Kopiera\tCtrl+C"
#define MENU_EDIT_PASTE "&Klistra in\tCtrl+V"
#define MENU_EDIT_DELETE "&Ta bort\tDel"
#define MENU_EDIT_SELECTALL "Markera &allt"
#define MENU_EDIT_TIMEDATE "&Tid/Datum\tF5"
#define MENU_EDIT_WRAP "&Dela lnga meningar"
#define MENU_SEARCH "&Sk"
#define MENU_SEARCH_SEARCH "Sk..."
#define MENU_SEARCH_NEXT "&Sk nsta\tF3"
#define MENU_LANGUAGE "&Sprk"
#define MENU_HELP "&Hjlp"
#define MENU_HELP_CONTENTS "&Innehll"
#define MENU_HELP_SEARCH "&Sk..."
#define MENU_HELP_HELP_ON_HELP "Anvndningen &av hjlp"
#define MENU_INFO "Inf&ormation..."
#define MENU_INFO_LICENSE "&Licens"
#define MENU_INFO_NO_WARRANTY "&INGEN GARANTI"
#define MENU_INFO_ABOUT_WINE "&Om Wine"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Avbryt"
#define DIALOG_BROWSE "&Blddra..."
#define DIALOG_HELP "&Hjlp"
#define DIALOG_PAGESETUP_CAPTION "Sid Layout"
#define DIALOG_PAGESETUP_HEAD "&Huvudnot:"
#define DIALOG_PAGESETUP_TAIL "&Fotnot:"
#define DIALOG_PAGESETUP_MARGIN "Kanter:"
#define DIALOG_PAGESETUP_LEFT "&Vnster:"
#define DIALOG_PAGESETUP_RIGHT "&Hger:"
#define DIALOG_PAGESETUP_TOP "&ver:"
#define DIALOG_PAGESETUP_BOTTOM "&Under:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Page &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Anteckningar"
#define STRING_ERROR "FEL"
#define STRING_WARNING "VARNING"
#define STRING_INFO "Information"
#define STRING_UNTITLED "(untitled)"
#define STRING_ALL_FILES "Alla filer (*.*)"
#define STRING_TEXT_FILES_TXT "Text filer (*.txt)"
#define STRING_TOOLARGE "Filen '%s' r fr stor fr notepad.\n \
MAIN_MENU MENU LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
{
POPUP "&Arkiv" {
MENUITEM "&Ny...", 0x100
MENUITEM "&ppna", 0x101
MENUITEM "&Spara", 0x102
MENUITEM "Spara &som...", 0x103
MENUITEM "&Skriv ut", 0x104
MENUITEM "Sid La&yout...", 0x105
MENUITEM "Skrivar &instllningar...", 0x106
MENUITEM SEPARATOR
MENUITEM "&Avsluta", 0x108
}
POPUP "&Redigera" {
MENUITEM "&Undo\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "Klippa\tCtrl+X", 0x111
MENUITEM "&Kopiera\tCtrl+C", 0x112
MENUITEM "&Klistra in\tCtrl+V", 0x113
MENUITEM "&Ta bort\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "Markera &allt", 0x116
MENUITEM "&Tid/Datum\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "&Dela lnga meningar", 0x119
}
POPUP "&Sk" {
MENUITEM "Sk...", 0x120
MENUITEM "&Sk nsta\tF3", 0x121
}
POPUP "&Hjlp" {
MENUITEM "&Innehll", 0x130
MENUITEM "&Sk...", 0x131
MENUITEM "Anvndningen &av hjlp", 0x132
MENUITEM SEPARATOR
POPUP "Inf&ormation..." {
MENUITEM "&Licens", 0x135
MENUITEM "&INGEN GARANTI", 0x136
MENUITEM "&Om Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Sid Layout"
{
LTEXT "&Huvudnot:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Fotnot:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "Kanter:", 0x144, 10, 43,160, 45
LTEXT "&Vnster:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&ver:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Hger:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Under:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Avbryt", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Hjlp", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Page &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Anteckningar"
STRING_ERROR, "FEL"
STRING_WARNING, "WARNING"
STRING_INFO, "Information"
STRING_UNTITLED, "(untitled)"
STRING_ALL_FILES, "Alla filer (*.*)"
STRING_TEXT_FILES_TXT, "Text filer (*.txt)"
STRING_TOOLARGE, "Filen '%s' r fr stor fr notepad.\n \
Anvnd en annan editor."
#define STRING_NOTEXT "Du skrev inte in ngon text. \
STRING_NOTEXT, "Du skrev inte in ngon text. \
\nSkriv ngot och frsk sedan igen"
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Filen '%s'\nhas been modified\n\n \
Would you like to save your changes ?"
#define STRING_NOTFOUND "'%s' hittades inte."
#define STRING_OUT_OF_MEMORY "Inte tillrkligt med minne fr att slutfra \
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
Would you like to save the changes ?"
STRING_NOTFOUND, "'%s' hittades inte."
STRING_OUT_OF_MEMORY, "Inte tillrkligt med minne fr att slutfra \
den hr uppgiften. \nAvsluta ett eller flera program fr att ka mngden \nfritt \
minne."
#include "notepad.rc"
}
programs/notepad/Wa.rc
View file @
eaa8df60
/*
* Notepad (Wal
lo
on resources)
* Notepad (Walon resources)
*
* Copyright 1999 Pablo Saratxaga
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Proofread 1998 by David Lee Lambert <lamber45@egr.msu.edu>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -16,110 +18,109 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Si vos voloz aider avou li ratornaedje des libes programes walon,
* vos poloz scrre a l' adresse emile <linux-wa@chanae.alphanet.ch>
*/
#define LANGUAGE_ID Wa
#define LANGUAGE_NUMBER 90
#define LANGUAGE_MENU_ITEM "&Walon"
/* Menu */
#define MENU_FILE "&Fitch"
#define MENU_FILE_NEW "&Novea..."
#define MENU_FILE_OPEN "&Drov"
#define MENU_FILE_SAVE "&Schaper"
#define MENU_FILE_SAVEAS "Schaper t r&lomer..."
#define MENU_FILE_PRINT "&Rexhe"
#define MENU_FILE_PAGESETUP "Arrandjmint del &Pdje..."
#define MENU_FILE_PRINTSETUP "&Apontiaedje del scrirece..."
#define MENU_FILE_EXIT "Mouss &Fo"
#define MENU_EDIT "&Candj"
#define MENU_EDIT_UNDO "&Disf\tCtrl+Z"
#define MENU_EDIT_CUT "C&per\tCtrl+X"
#define MENU_EDIT_COPY "&Copy\tCtrl+C"
#define MENU_EDIT_PASTE "C&laper\tCtrl+V"
#define MENU_EDIT_DELETE "&Rafacer\tDel"
#define MENU_EDIT_SELECTALL "&Tchwezi totafwait"
#define MENU_EDIT_TIMEDATE "&Eure/Date\tF5"
#define MENU_EDIT_WRAP "Cper les ro&yes"
#define MENU_SEARCH "C&wer"
#define MENU_SEARCH_SEARCH "Cwer..."
#define MENU_SEARCH_NEXT "&Shvant\tF3"
#define MENU_LANGUAGE "&Lingaedje"
#define MENU_HELP "&Aide"
#define MENU_HELP_CONTENTS "&dvins"
#define MENU_HELP_SEARCH "C&wer..."
#define MENU_HELP_HELP_ON_HELP "&Aide so l' Aide"
#define MENU_INFO "&Informcion..."
#define MENU_INFO_LICENSE "&Licinse"
#define MENU_INFO_NO_WARRANTY "&NOLE WARANTEYE"
#define MENU_INFO_ABOUT_WINE " &dfait di Wine"
/* Dialogs */
#define DIALOG_OK "I Va"
#define DIALOG_CANCEL "Rinonc"
#define DIALOG_BROWSE "&Foyer..."
#define DIALOG_HELP "&Aide"
#define DIALOG_PAGESETUP_CAPTION "Arindjmint del Pdje"
/* "Tite" ni va nn vraiymint, i ft ene sacwe d' meyeu [header] */
#define DIALOG_PAGESETUP_HEAD "&Tite:"
#define DIALOG_PAGESETUP_TAIL "&Pnote:"
/* "mardjes" ? [marges] */
#define DIALOG_PAGESETUP_MARGIN "&Mardjes:"
#define DIALOG_PAGESETUP_LEFT "&Hintche:"
#define DIALOG_PAGESETUP_RIGHT "&Droete:"
#define DIALOG_PAGESETUP_TOP "&Copete:"
#define DIALOG_PAGESETUP_BOTTOM "&Bas:"
/* Strings */
#define STRING_PAGESETUP_HEADERVALUE "&n" /* FIXME */
#define STRING_PAGESETUP_FOOTERVALUE "Pdje &s" /* FIXME */
#define STRING_PAGESETUP_LEFTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_RIGHTVALUE "20 mm" /* FIXME */
#define STRING_PAGESETUP_TOPVALUE "25 mm" /* FIXME */
#define STRING_PAGESETUP_BOTTOMVALUE "25 mm" /* FIXME */
#define STRING_NOTEPAD "Notepad"
#define STRING_ERROR "AROKE"
#define STRING_WARNING "ADVERTIXHMINT"
#define STRING_INFO "Informcion"
#define STRING_UNTITLED "(sin tite)"
#define STRING_ALL_FILES "Tos les fitchs (*.*)"
#define STRING_TEXT_FILES_TXT "Fitchs tekse (*.txt)"
#define STRING_TOOLARGE "Li fitch '%s' est trop gros pol notepad.\n \
MAIN_MENU MENU LANGUAGE LANG_WALON, SUBLANG_NEUTRAL
{
POPUP "&Fitch" {
MENUITEM "&Novea...", 0x100
MENUITEM "&Drov", 0x101
MENUITEM "&Schaper", 0x102
MENUITEM "Schaper t r&lomer...", 0x103
MENUITEM "&Rexhe", 0x104
MENUITEM "Arrandjmint del &Pdje...", 0x105
MENUITEM "&Apontiaedje del scrirece...", 0x106
MENUITEM SEPARATOR
MENUITEM "Mouss &Fo", 0x108
}
POPUP "&Candj" {
MENUITEM "&Disf\tCtrl+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "C&per\tCtrl+X", 0x111
MENUITEM "&Copy\tCtrl+C", 0x112
MENUITEM "C&laper\tCtrl+V", 0x113
MENUITEM "&Rafacer\tDel", 0x114
MENUITEM SEPARATOR
MENUITEM "&Tchwezi totafwait", 0x116
MENUITEM "&Eure/Date\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "Cper les ro&yes", 0x119
}
POPUP "C&wer" {
MENUITEM "Cwer...", 0x120
MENUITEM "&Shvant\tF3", 0x121
}
POPUP "&Aide" {
MENUITEM "&dvins", 0x130
MENUITEM "C&wer...", 0x131
MENUITEM "&Aide so l' Aide", 0x132
MENUITEM SEPARATOR
POPUP "&Informcion..." {
MENUITEM "&Licinse", 0x135
MENUITEM "&NOLE WARANTEYE", 0x136
MENUITEM " &dfait di Wine", 0x137
}
}
}
/* Dialog `Page setup' */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_WALON, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Arindjmint del Pdje"
{
LTEXT "&Tite:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Pnote:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
GROUPBOX "&Mardjes:", 0x144, 10, 43,160, 45
LTEXT "&Hintche:", 0x145, 20, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_LEFTVALUE,*/ 0x147, 50, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Copete:", 0x148, 20, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_TOPVALUE,*/ 0x14A, 50, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Droete:", 0x14B, 100, 55, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_RIGHTVALUE,*/ 0x14D, 130, 55, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
LTEXT "&Bas:", 0x14E,100, 73, 30, 10, WS_CHILD
EDITTEXT /*STRING_PAGESETUP_BOTTOMVALUE,*/ 0x150, 130, 73, 35, 11, WS_CHILD | WS_BORDER | WS_TABSTOP
DEFPUSHBUTTON "I Va", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Rinonc", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Aide", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
STRINGTABLE DISCARDABLE LANGUAGE LANG_WALON, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Pdje &s" /* FIXME */
STRING_PAGESETUP_LEFTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_RIGHTVALUE, "20 mm" /* FIXME */
STRING_PAGESETUP_TOPVALUE, "25 mm" /* FIXME */
STRING_PAGESETUP_BOTTOMVALUE, "25 mm" /* FIXME */
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "AROKE"
STRING_WARNING, "ADVERTIXHMINT"
STRING_INFO, "Informcion"
STRING_UNTITLED, "(sin tite)"
STRING_ALL_FILES, "Tos les fitchs (*.*)"
STRING_TEXT_FILES_TXT, "Fitchs tekse (*.txt)"
STRING_TOOLARGE, "Li fitch '%s' est trop gros pol notepad.\n \
Eployoz on te aspougneu di tekse."
#define STRING_NOTEXT "Vos n' avoz rn sicrt. \
STRING_NOTEXT, "Vos n' avoz rn sicrt. \
\nTapez ene sacwe t rasayez"
/* FIXME */
#define STRING_DOESNOTEXIST "File '%s'\ndoes not exist\n\n \
STRING_DOESNOTEXIST, "File '%s'\ndoes not exist\n\n \
Do you want to create a new file ?"
#define STRING_NOTSAVED "Li fitch '%s'\na candj\n\n \
STRING_NOTSAVED, "Li fitch '%s'\na candj\n\n \
El voloz schaper ?"
#define STRING_NOTFOUND "'%s' pout nn esse trov."
#define STRING_OUT_OF_MEMORY "Li memwere est plinne. \n\
STRING_NOTFOUND, "'%s' pout nn esse trov."
STRING_OUT_OF_MEMORY, "Li memwere est plinne. \n\
Cloyoz on programe ou pus po monter li memwere libe."
#include "notepad.rc"
}
programs/notepad/dialog.c
View file @
eaa8df60
...
...
@@ -2,6 +2,7 @@
* Notepad (dialog.c)
*
* Copyright 1998,99 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -54,11 +55,11 @@ void AlertFileNotFound(LPSTR szFileName) {
CHAR
szRessource
[
MAX_STRING_LEN
];
/* Load and format szMessage */
LoadString
(
Globals
.
hInstance
,
IDS
_NOTFOUND
,
szRessource
,
sizeof
(
szRessource
));
LoadString
(
Globals
.
hInstance
,
STRING
_NOTFOUND
,
szRessource
,
sizeof
(
szRessource
));
wsprintf
(
szMessage
,
szRessource
,
szFileName
);
/* Load szCaption */
LoadString
(
Globals
.
hInstance
,
IDS
_ERROR
,
szRessource
,
sizeof
(
szRessource
));
LoadString
(
Globals
.
hInstance
,
STRING
_ERROR
,
szRessource
,
sizeof
(
szRessource
));
/* Display Modal Dialog */
nResult
=
MessageBox
(
Globals
.
hMainWnd
,
szMessage
,
szRessource
,
MB_ICONEXCLAMATION
);
...
...
@@ -73,12 +74,12 @@ int AlertFileNotSaved(LPSTR szFileName) {
/* Load and format Message */
LoadString
(
Globals
.
hInstance
,
IDS
_NOTSAVED
,
szRessource
,
sizeof
(
szRessource
));
LoadString
(
Globals
.
hInstance
,
STRING
_NOTSAVED
,
szRessource
,
sizeof
(
szRessource
));
wsprintf
(
szMessage
,
szRessource
,
szFileName
);
/* Load Caption */
LoadString
(
Globals
.
hInstance
,
IDS
_ERROR
,
szRessource
,
sizeof
(
szRessource
));
LoadString
(
Globals
.
hInstance
,
STRING
_ERROR
,
szRessource
,
sizeof
(
szRessource
));
/* Display modal */
nResult
=
MessageBox
(
Globals
.
hMainWnd
,
szMessage
,
szRessource
,
MB_ICONEXCLAMATION
|
MB_YESNOCANCEL
);
...
...
@@ -89,7 +90,7 @@ int AlertFileNotSaved(LPSTR szFileName) {
VOID
AlertOutOfMemory
(
void
)
{
int
nResult
;
nResult
=
AlertIDS
(
IDS_OUT_OF_MEMORY
,
IDS
_ERROR
,
MB_ICONEXCLAMATION
);
nResult
=
AlertIDS
(
STRING_OUT_OF_MEMORY
,
STRING
_ERROR
,
MB_ICONEXCLAMATION
);
PostQuitMessage
(
1
);
}
...
...
@@ -175,11 +176,11 @@ VOID DIALOG_FileOpen(VOID)
lstrcpy
(
szDefaultExt
,
"txt"
);
LoadString
(
Globals
.
hInstance
,
IDS
_TEXT_FILES_TXT
,
p
,
MAX_STRING_LEN
);
LoadString
(
Globals
.
hInstance
,
STRING
_TEXT_FILES_TXT
,
p
,
MAX_STRING_LEN
);
p
+=
strlen
(
p
)
+
1
;
lstrcpy
(
p
,
"*.txt"
);
p
+=
strlen
(
p
)
+
1
;
LoadString
(
Globals
.
hInstance
,
IDS
_ALL_FILES
,
p
,
MAX_STRING_LEN
);
LoadString
(
Globals
.
hInstance
,
STRING
_ALL_FILES
,
p
,
MAX_STRING_LEN
);
p
+=
strlen
(
p
)
+
1
;
lstrcpy
(
p
,
"*.*"
);
p
+=
strlen
(
p
)
+
1
;
...
...
@@ -238,11 +239,11 @@ VOID DIALOG_FileSaveAs(VOID)
lstrcpy
(
szDefaultExt
,
"txt"
);
LoadString
(
Globals
.
hInstance
,
IDS
_TEXT_FILES_TXT
,
p
,
MAX_STRING_LEN
);
LoadString
(
Globals
.
hInstance
,
STRING
_TEXT_FILES_TXT
,
p
,
MAX_STRING_LEN
);
p
+=
strlen
(
p
)
+
1
;
lstrcpy
(
p
,
"*.txt"
);
p
+=
strlen
(
p
)
+
1
;
LoadString
(
Globals
.
hInstance
,
IDS
_ALL_FILES
,
p
,
MAX_STRING_LEN
);
LoadString
(
Globals
.
hInstance
,
STRING
_ALL_FILES
,
p
,
MAX_STRING_LEN
);
p
+=
strlen
(
p
)
+
1
;
lstrcpy
(
p
,
"*.*"
);
p
+=
strlen
(
p
)
+
1
;
...
...
@@ -547,7 +548,7 @@ VOID DIALOG_EditTimeDate(VOID)
VOID
DIALOG_EditWrap
(
VOID
)
{
Globals
.
bWrapLongLines
=
!
Globals
.
bWrapLongLines
;
CheckMenuItem
(
Globals
.
hEditMenu
,
NP_EDIT_WRAP
,
MF_BYCOMMAND
|
CheckMenuItem
(
Globals
.
hEditMenu
,
0x119
,
MF_BYCOMMAND
|
(
Globals
.
bWrapLongLines
?
MF_CHECKED
:
MF_UNCHECKED
));
}
...
...
@@ -606,7 +607,7 @@ VOID DIALOG_HelpAboutWine(VOID)
{
CHAR
szNotepad
[
MAX_STRING_LEN
];
LoadString
(
Globals
.
hInstance
,
IDS
_NOTEPAD
,
szNotepad
,
sizeof
(
szNotepad
));
LoadString
(
Globals
.
hInstance
,
STRING
_NOTEPAD
,
szNotepad
,
sizeof
(
szNotepad
));
ShellAbout
(
Globals
.
hMainWnd
,
szNotepad
,
"Notepad
\n
"
WINE_RELEASE_INFO
,
0
);
}
...
...
@@ -640,12 +641,12 @@ static LRESULT WINAPI DIALOG_PAGESETUP_DlgProc(HWND hDlg, UINT msg, WPARAM wPara
{
case
IDOK
:
/* save user input and close dialog */
GetDlgItemText
(
hDlg
,
NP_PAGESETUP_HEAD
,
Globals
.
szHeader
,
sizeof
(
Globals
.
szHeader
));
GetDlgItemText
(
hDlg
,
NP_PAGESETUP_TAIL
,
Globals
.
szFooter
,
sizeof
(
Globals
.
szFooter
));
GetDlgItemText
(
hDlg
,
NP_PAGESETUP_TOP
,
Globals
.
szMarginTop
,
sizeof
(
Globals
.
szMarginTop
));
GetDlgItemText
(
hDlg
,
NP_PAGESETUP_BOTTOM
,
Globals
.
szMarginBottom
,
sizeof
(
Globals
.
szMarginBottom
));
GetDlgItemText
(
hDlg
,
NP_PAGESETUP_LEFT
,
Globals
.
szMarginLeft
,
sizeof
(
Globals
.
szMarginLeft
));
GetDlgItemText
(
hDlg
,
NP_PAGESETUP_RIGHT
,
Globals
.
szMarginRight
,
sizeof
(
Globals
.
szMarginRight
));
GetDlgItemText
(
hDlg
,
0x141
,
Globals
.
szHeader
,
sizeof
(
Globals
.
szHeader
));
GetDlgItemText
(
hDlg
,
0x143
,
Globals
.
szFooter
,
sizeof
(
Globals
.
szFooter
));
GetDlgItemText
(
hDlg
,
0x14A
,
Globals
.
szMarginTop
,
sizeof
(
Globals
.
szMarginTop
));
GetDlgItemText
(
hDlg
,
0x150
,
Globals
.
szMarginBottom
,
sizeof
(
Globals
.
szMarginBottom
));
GetDlgItemText
(
hDlg
,
0x147
,
Globals
.
szMarginLeft
,
sizeof
(
Globals
.
szMarginLeft
));
GetDlgItemText
(
hDlg
,
0x14D
,
Globals
.
szMarginRight
,
sizeof
(
Globals
.
szMarginRight
));
EndDialog
(
hDlg
,
IDOK
);
return
TRUE
;
...
...
@@ -663,12 +664,12 @@ static LRESULT WINAPI DIALOG_PAGESETUP_DlgProc(HWND hDlg, UINT msg, WPARAM wPara
case
WM_INITDIALOG
:
/* fetch last user input prior to display dialog */
SetDlgItemText
(
hDlg
,
NP_PAGESETUP_HEAD
,
Globals
.
szHeader
);
SetDlgItemText
(
hDlg
,
NP_PAGESETUP_TAIL
,
Globals
.
szFooter
);
SetDlgItemText
(
hDlg
,
NP_PAGESETUP_TOP
,
Globals
.
szMarginTop
);
SetDlgItemText
(
hDlg
,
NP_PAGESETUP_BOTTOM
,
Globals
.
szMarginBottom
);
SetDlgItemText
(
hDlg
,
NP_PAGESETUP_LEFT
,
Globals
.
szMarginLeft
);
SetDlgItemText
(
hDlg
,
NP_PAGESETUP_RIGHT
,
Globals
.
szMarginRight
);
SetDlgItemText
(
hDlg
,
0x141
,
Globals
.
szHeader
);
SetDlgItemText
(
hDlg
,
0x143
,
Globals
.
szFooter
);
SetDlgItemText
(
hDlg
,
0x14A
,
Globals
.
szMarginTop
);
SetDlgItemText
(
hDlg
,
0x150
,
Globals
.
szMarginBottom
);
SetDlgItemText
(
hDlg
,
0x147
,
Globals
.
szMarginLeft
);
SetDlgItemText
(
hDlg
,
0x14D
,
Globals
.
szMarginRight
);
break
;
}
...
...
programs/notepad/language.c
View file @
eaa8df60
...
...
@@ -2,7 +2,8 @@
* Notepad
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 1998 Karl Backstrm <karl_b@geocities.com>
* Copyright 1998 Karl Backstrm <karl_b@geocities.com>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -36,7 +37,7 @@ void LANGUAGE_UpdateWindowCaption(void) {
CHAR
szCaption
[
MAX_STRING_LEN
];
CHAR
szUntitled
[
MAX_STRING_LEN
];
LoadString
(
Globals
.
hInstance
,
IDS
_NOTEPAD
,
szCaption
,
sizeof
(
szCaption
));
LoadString
(
Globals
.
hInstance
,
STRING
_NOTEPAD
,
szCaption
,
sizeof
(
szCaption
));
if
(
strlen
(
Globals
.
szFileName
)
>
0
)
{
lstrcat
(
szCaption
,
" - ["
);
...
...
@@ -45,7 +46,7 @@ void LANGUAGE_UpdateWindowCaption(void) {
}
else
{
LoadString
(
Globals
.
hInstance
,
IDS
_UNTITLED
,
szUntitled
,
sizeof
(
szUntitled
));
LoadString
(
Globals
.
hInstance
,
STRING
_UNTITLED
,
szUntitled
,
sizeof
(
szUntitled
));
lstrcat
(
szCaption
,
" - "
);
lstrcat
(
szCaption
,
szUntitled
);
}
...
...
@@ -68,69 +69,25 @@ static BOOL LANGUAGE_LoadStringOther(UINT num, UINT ids, LPSTR str, UINT len)
return
(
bOk
);
}
VOID
LANGUAGE_SelectByName
(
LPCSTR
lang
)
{
INT
i
;
CHAR
newlang
[
3
];
for
(
i
=
0
;
i
<=
MAX_LANGUAGE_NUMBER
;
i
++
)
if
(
LANGUAGE_LoadStringOther
(
i
,
IDS_LANGUAGE_ID
,
newlang
,
sizeof
(
newlang
))
&&
!
lstrcmp
(
lang
,
newlang
))
{
LANGUAGE_SelectByNumber
(
i
);
return
;
}
/* Fallback */
for
(
i
=
0
;
i
<=
MAX_LANGUAGE_NUMBER
;
i
++
)
if
(
LANGUAGE_LoadStringOther
(
i
,
IDS_LANGUAGE_ID
,
newlang
,
sizeof
(
newlang
)))
{
LANGUAGE_SelectByNumber
(
i
);
return
;
}
MessageBox
(
Globals
.
hMainWnd
,
"No language found"
,
"FATAL ERROR"
,
MB_OK
);
PostQuitMessage
(
1
);
}
VOID
LANGUAGE_SelectByNumber
(
UINT
num
)
VOID
LANGUAGE_LoadMenus
(
VOID
)
{
INT
i
;
CHAR
lang
[
3
];
CHAR
item
[
MAX_STRING_LEN
];
HMENU
hMainMenu
;
/* Select string table */
Globals
.
wStringTableOffset
=
num
*
0x100
;
/* Get Language id */
LoadString
(
Globals
.
hInstance
,
IDS_LANGUAGE_ID
,
lang
,
sizeof
(
lang
));
/* Set frame caption */
LANGUAGE_UpdateWindowCaption
();
/* Change Resource names */
lstrcpyn
(
STRING_MENU_Xx
+
sizeof
(
STRING_MENU_Xx
)
-
3
,
lang
,
3
);
lstrcpyn
(
STRING_PAGESETUP_Xx
+
sizeof
(
STRING_PAGESETUP_Xx
)
-
3
,
lang
,
3
);
//
lstrcpyn(STRING_MENU_Xx + sizeof(STRING_MENU_Xx) - 3, lang, 3);
//
lstrcpyn(STRING_PAGESETUP_Xx + sizeof(STRING_PAGESETUP_Xx) - 3, lang, 3);
/* Create menu */
hMainMenu
=
LoadMenu
(
Globals
.
hInstance
,
STRING_MENU_Xx
);
hMainMenu
=
LoadMenu
(
Globals
.
hInstance
,
MAIN_MENU
);
Globals
.
hFileMenu
=
GetSubMenu
(
hMainMenu
,
0
);
Globals
.
hEditMenu
=
GetSubMenu
(
hMainMenu
,
1
);
Globals
.
hSearchMenu
=
GetSubMenu
(
hMainMenu
,
2
);
Globals
.
hLanguageMenu
=
GetSubMenu
(
hMainMenu
,
3
);
Globals
.
hHelpMenu
=
GetSubMenu
(
hMainMenu
,
4
);
/* Remove dummy item */
RemoveMenu
(
Globals
.
hLanguageMenu
,
0
,
MF_BYPOSITION
);
/* Add language items */
for
(
i
=
0
;
i
<=
MAX_LANGUAGE_NUMBER
;
i
++
)
if
(
LANGUAGE_LoadStringOther
(
i
,
IDS_LANGUAGE_MENU_ITEM
,
item
,
sizeof
(
item
)))
AppendMenu
(
Globals
.
hLanguageMenu
,
MF_STRING
|
MF_BYCOMMAND
,
NP_FIRST_LANGUAGE
+
i
,
item
);
SetMenu
(
Globals
.
hMainWnd
,
hMainMenu
);
/* Destroy old menu */
...
...
@@ -138,9 +95,9 @@ VOID LANGUAGE_SelectByNumber(UINT num)
Globals
.
hMainMenu
=
hMainMenu
;
}
VOID
LANGUAGE_DefaultHandle
(
WPARAM
wParam
)
{
if
((
wParam
>=
NP_FIRST_LANGUAGE
)
&&
(
wParam
<=
NP_LAST_LANGUAGE
))
LANGUAGE_SelectByNumber
(
wParam
-
NP_FIRST_LANGUAGE
);
else
printf
(
"Unimplemented menu command %i
\n
"
,
wParam
);
}
//
VOID LANGUAGE_DefaultHandle(WPARAM wParam)
//
{
//
if ((wParam >=NP_FIRST_LANGUAGE) && (wParam<=NP_LAST_LANGUAGE))
//
LANGUAGE_SelectByNumber(wParam - NP_FIRST_LANGUAGE);
//
else printf("Unimplemented menu command %i\n", wParam);
//
}
programs/notepad/language.h
View file @
eaa8df60
...
...
@@ -2,7 +2,8 @@
* Notepad
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 1998 Karl Backstr”m <karl_b@geocities.com>
* Copyright 1998 Karl Backstrm <karl_b@geocities.com>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -20,7 +21,5 @@
*/
VOID
LANGUAGE_UpdateWindowCaption
(
VOID
);
VOID
LANGUAGE_SelectByNumber
(
UINT
num
);
VOID
LANGUAGE_SelectByName
(
LPCSTR
lang
);
VOID
LANGUAGE_DefaultHandle
(
WPARAM
wParam
);
VOID
LANGUAGE_LoadMenus
(
VOID
);
//VOID LANGUAGE_DefaultHandle(WPARAM wParam);
programs/notepad/main.c
View file @
eaa8df60
...
...
@@ -3,6 +3,7 @@
*
* Copyright 2000 Mike McCormack <Mike_McCormack@looksmart.com.au>
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -716,37 +717,36 @@ void DoScroll(HWND hWnd, WPARAM wParam, LPARAM lParam)
int
NOTEPAD_MenuCommand
(
WPARAM
wParam
)
{
switch
(
wParam
)
{
case
NP_FILE_NEW
:
DIALOG_FileNew
();
break
;
case
NP_FILE_OPEN
:
DIALOG_FileOpen
();
break
;
case
NP_FILE_SAVE
:
DIALOG_FileSave
();
break
;
case
NP_FILE_SAVEAS
:
DIALOG_FileSaveAs
();
break
;
case
NP_FILE_PRINT
:
DIALOG_FilePrint
();
break
;
case
NP_FILE_PAGESETUP
:
DIALOG_FilePageSetup
();
break
;
case
NP_FILE_PRINTSETUP
:
DIALOG_FilePrinterSetup
();
break
;
case
NP_FILE_EXIT
:
DIALOG_FileExit
();
break
;
case
NP_EDIT_UNDO
:
DIALOG_EditUndo
();
break
;
case
NP_EDIT_CUT
:
DIALOG_EditCut
();
break
;
case
NP_EDIT_COPY
:
DIALOG_EditCopy
();
break
;
case
NP_EDIT_PASTE
:
DIALOG_EditPaste
();
break
;
case
NP_EDIT_DELETE
:
DIALOG_EditDelete
();
break
;
case
NP_EDIT_SELECTALL
:
DIALOG_EditSelectAll
();
break
;
case
NP_EDIT_TIMEDATE
:
DIALOG_EditTimeDate
();
break
;
case
NP_EDIT_WRAP
:
DIALOG_EditWrap
();
break
;
case
NP_SEARCH_SEARCH
:
DIALOG_Search
();
break
;
case
NP_SEARCH_NEXT
:
DIALOG_SearchNext
();
break
;
case
NP_HELP_CONTENTS
:
DIALOG_HelpContents
();
break
;
case
NP_HELP_SEARCH
:
DIALOG_HelpSearch
();
break
;
case
NP_HELP_ON_HELP
:
DIALOG_HelpHelp
();
break
;
case
NP_HELP_LICENSE
:
DIALOG_HelpLicense
();
break
;
case
NP_HELP_NO_WARRANTY
:
DIALOG_HelpNoWarranty
();
break
;
case
NP_HELP_ABOUT_WINE
:
DIALOG_HelpAboutWine
();
break
;
case
0x100
:
DIALOG_FileNew
();
break
;
case
0x101
:
DIALOG_FileOpen
();
break
;
case
0x102
:
DIALOG_FileSave
();
break
;
case
0x103
:
DIALOG_FileSaveAs
();
break
;
case
0x104
:
DIALOG_FilePrint
();
break
;
case
0x105
:
DIALOG_FilePageSetup
();
break
;
case
0x106
:
DIALOG_FilePrinterSetup
();
break
;
case
0x108
:
DIALOG_FileExit
();
break
;
case
0x110
:
DIALOG_EditUndo
();
break
;
case
0x111
:
DIALOG_EditCut
();
break
;
case
0x112
:
DIALOG_EditCopy
();
break
;
case
0x113
:
DIALOG_EditPaste
();
break
;
case
0x114
:
DIALOG_EditDelete
();
break
;
case
0x116
:
DIALOG_EditSelectAll
();
break
;
case
0x117
:
DIALOG_EditTimeDate
();
break
;
case
0x119
:
DIALOG_EditWrap
();
break
;
case
0x120
:
DIALOG_Search
();
break
;
case
0x121
:
DIALOG_SearchNext
();
break
;
case
0x130
:
DIALOG_HelpContents
();
break
;
case
0x131
:
DIALOG_HelpSearch
();
break
;
case
0x132
:
DIALOG_HelpHelp
();
break
;
case
0x135
:
DIALOG_HelpLicense
();
break
;
case
0x136
:
DIALOG_HelpNoWarranty
();
break
;
case
0x137
:
DIALOG_HelpAboutWine
();
break
;
/* Handle languages */
default:
LANGUAGE_DefaultHandle
(
wParam
);
// default:
// LANGUAGE_DefaultHandle(wParam);
}
return
0
;
}
...
...
@@ -862,11 +862,11 @@ int AlertFileDoesNotExist(LPSTR szFileName) {
CHAR
szMessage
[
MAX_STRING_LEN
];
CHAR
szRessource
[
MAX_STRING_LEN
];
LoadString
(
Globals
.
hInstance
,
IDS
_DOESNOTEXIST
,
szRessource
,
LoadString
(
Globals
.
hInstance
,
STRING
_DOESNOTEXIST
,
szRessource
,
sizeof
(
szRessource
));
wsprintf
(
szMessage
,
szRessource
,
szFileName
);
LoadString
(
Globals
.
hInstance
,
IDS
_ERROR
,
szRessource
,
sizeof
(
szRessource
));
LoadString
(
Globals
.
hInstance
,
STRING
_ERROR
,
szRessource
,
sizeof
(
szRessource
));
nResult
=
MessageBox
(
Globals
.
hMainWnd
,
szMessage
,
szRessource
,
MB_ICONEXCLAMATION
|
MB_YESNO
);
...
...
@@ -1012,7 +1012,7 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
Globals
.
hFindReplaceDlg
=
0
;
LANGUAGE_SelectByNumber
(
0
);
LANGUAGE_LoadMenus
(
);
SetMenu
(
Globals
.
hMainWnd
,
Globals
.
hMainMenu
);
...
...
programs/notepad/main.h
View file @
eaa8df60
...
...
@@ -2,6 +2,7 @@
* Notepad (notepad.h)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -18,6 +19,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "notepad_res.h"
#define MAX_STRING_LEN 255
#define MAX_PATHNAME_LEN 1024
#define MAX_LANGUAGE_NUMBER (NP_LAST_LANGUAGE - NP_FIRST_LANGUAGE)
...
...
@@ -83,90 +86,7 @@ void LoadBufferFromFile(LPCSTR lpFileName);
/* Resource names */
extern
CHAR
STRING_MENU_Xx
[];
extern
CHAR
STRING_PAGESETUP_Xx
[];
#define STRINGID(id) (0x##id + Globals.wStringTableOffset)
#else
/* RC_INVOKED */
#define STRINGID(id) id
#endif
/* string table index */
#define IDS_LANGUAGE_ID STRINGID(00)
#define IDS_LANGUAGE_MENU_ITEM STRINGID(01)
#define IDS_NOTEPAD STRINGID(02)
#define IDS_TEXT_FILES_TXT STRINGID(03)
#define IDS_ALL_FILES STRINGID(04)
#define IDS_ERROR STRINGID(05)
#define IDS_WARNING STRINGID(06)
#define IDS_INFO STRINGID(07)
#define IDS_TOOLARGE STRINGID(08)
#define IDS_NOTEXT STRINGID(09)
#define IDS_DOESNOTEXIST STRINGID(0A)
#define IDS_NOTSAVED STRINGID(0B)
#define IDS_NOTFOUND STRINGID(0C)
#define IDS_OUT_OF_MEMORY STRINGID(0D)
#define IDS_UNTITLED STRINGID(0E)
#define IDS_PAGESETUP_HEADERVALUE STRINGID(0F)
#define IDS_PAGESETUP_FOOTERVALUE STRINGID(10)
#define IDS_PAGESETUP_LEFTVALUE STRINGID(11)
#define IDS_PAGESETUP_RIGHTVALUE STRINGID(12)
#define IDS_PAGESETUP_TOPVALUE STRINGID(13)
#define IDS_PAGESETUP_BOTTOMVALUE STRINGID(14)
/* main menu */
#define NP_FILE_NEW 100
#define NP_FILE_OPEN 101
#define NP_FILE_SAVE 102
#define NP_FILE_SAVEAS 103
#define NP_FILE_PRINT 104
#define NP_FILE_PAGESETUP 105
#define NP_FILE_PRINTSETUP 106
#define NP_FILE_EXIT 107
#define NP_EDIT_UNDO 200
#define NP_EDIT_CUT 201
#define NP_EDIT_COPY 202
#define NP_EDIT_PASTE 203
#define NP_EDIT_DELETE 204
#define NP_EDIT_SELECTALL 205
#define NP_EDIT_TIMEDATE 206
#define NP_EDIT_WRAP 207
#define NP_SEARCH_SEARCH 300
#define NP_SEARCH_NEXT 301
#define NP_FIRST_LANGUAGE 400
#define NP_LAST_LANGUAGE 499
#define NP_HELP_CONTENTS 500
#define NP_HELP_SEARCH 501
#define NP_HELP_ON_HELP 502
#define NP_HELP_LICENSE 503
#define NP_HELP_NO_WARRANTY 504
#define NP_HELP_ABOUT_WINE 505
/* Dialog `Page Setup' */
#define NP_PAGESETUP_HEAD 1000
#define NP_PAGESETUP_HEAD_TXT 1001
#define NP_PAGESETUP_TAIL 1002
#define NP_PAGESETUP_TAIL_TXT 1003
#define NP_PAGESETUP_LEFT 1004
#define NP_PAGESETUP_LEFT_TXT 1005
#define NP_PAGESETUP_RIGHT 1006
#define NP_PAGESETUP_RIGHT_TXT 1007
#define NP_PAGESETUP_TOP 1008
#define NP_PAGESETUP_TOP_TXT 1009
#define NP_PAGESETUP_BOTTOM 1010
#define NP_PAGESETUP_BOTTOM_TXT 1011
#define NP_HELP 1012
#define NP_PAGESETUP_MARGIN 1013
/* Local Variables: */
/* c-file-style: "GNU" */
/* End: */
programs/notepad/notepad_res.h
0 → 100644
View file @
eaa8df60
/*
* Notepad (String defines)
*
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define MAIN_MENU 0x10F
#define STRING_PAGESETUP_HEADERVALUE 0x160
#define STRING_PAGESETUP_FOOTERVALUE 0x161
#define STRING_PAGESETUP_LEFTVALUE 0x162
#define STRING_PAGESETUP_RIGHTVALUE 0x163
#define STRING_PAGESETUP_TOPVALUE 0x164
#define STRING_PAGESETUP_BOTTOMVALUE 0x165
#define STRING_NOTEPAD 0x170
#define STRING_ERROR 0x171
#define STRING_WARNING 0x172
#define STRING_INFO 0x173
#define STRING_UNTITLED 0x174
#define STRING_ALL_FILES 0x175
#define STRING_TEXT_FILES_TXT 0x176
#define STRING_TOOLARGE 0x177
#define STRING_NOTEXT 0x178
#define STRING_DOESNOTEXIST 0x179
#define STRING_NOTSAVED 0x17A
#define STRING_NOTFOUND 0x17B
#define STRING_OUT_OF_MEMORY 0x17C
programs/notepad/rsrc.rc
View file @
eaa8df60
/*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Copyright 2002 Sylvain Petreolle <spetreolle@yahoo.fr>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -16,18 +17,12 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "windows.h"
#include "windef.h"
#include "winuser.h"
#include "main.h"
#define CONCAT(a, b) CONCAT1(a, b)
#define CONCAT1(a, b) a##b
#define ADDSTRING(str) ADDSTRING1(LANGUAGE_NUMBER, IDS_ ## str) STRING_ ## str
#define ADDSTRING1(langnum, ids) ADDSTRING2(langnum, ids)
#define ADDSTRING2(langnum, ids) 0x ## langnum ## ids
#define STRINGIFY(str) STRINGIFY1(str)
#define STRINGIFY1(str) #str
#include "winnls.h"
#include "commctrl.h"
#include "notepad_res.h"
#include "Da.rc"
#include "De.rc"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment