Made notepad uses NLS properly.

This commit is contained in:
Sylvain Petreolle 2002-03-20 22:55:46 +00:00 committed by Alexandre Julliard
parent 716ffc5bef
commit eaa8df60ed
19 changed files with 1111 additions and 1146 deletions

View File

@ -1,3 +1,6 @@
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 Backström <karl_b@geocities.com>
- Fixed some minor features.
Sat Feb 14 17:42:29 1998 Karl Backström <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 Backström <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 Backström <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 Backström <karl_b@geocities.com>
- Fixed some minor features.
Sat Feb 14 17:42:29 1998 Karl Backström <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 Backström <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 Backström <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

View File

@ -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"
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&opsætning...", 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 "Sæt &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 "&Søg" {
MENUITEM "&Søg...", 0x120
MENUITEM "&Find næste\tF3", 0x121
}
POPUP "&Hjælp" {
MENUITEM "&Indhold", 0x130
MENUITEM "&Søg efter hjælp om...", 0x131
MENUITEM "&Brug af Hjælp", 0x132
MENUITEM SEPARATOR
POPUP "&Om Notesblok..." {
MENUITEM "&Licens", 0x135
MENUITEM "&NO WARRANTY", 0x136
MENUITEM "&Om WINE", 0x137
}
}
}
/* Menu */
/* Dialog `Page setup' */
#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&opsætning..."
#define MENU_FILE_PRINTSETUP "&Indstil printer..."
#define MENU_FILE_EXIT "&Afslut"
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_DANISH, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Sideopsætning"
{
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
#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 "Sæt &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"
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 "&Højre:", 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
#define MENU_SEARCH "&Søg"
#define MENU_SEARCH_SEARCH "&Søg..."
#define MENU_SEARCH_NEXT "&Find næste\tF3"
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Annuller", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Hjælp", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
#define MENU_LANGUAGE "S&prog"
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 */
#define MENU_HELP "&Hjælp"
#define MENU_HELP_CONTENTS "&Indhold"
#define MENU_HELP_SEARCH "&Søg efter hjælp om..."
#define MENU_HELP_HELP_ON_HELP "&Brug af Hjælp"
STRING_NOTEPAD, "Notesblok"
STRING_ERROR, "FEJL"
STRING_WARNING, "ADVARSEL"
STRING_INFO, "Information"
#define MENU_INFO "&Om Notesblok..."
#define MENU_INFO_LICENSE "&Licens"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&Om WINE"
STRING_UNTITLED, "(ikke-navngivet)"
STRING_ALL_FILES, "Alle filer (*.*)"
STRING_TEXT_FILES_TXT, "Tekst filer (*.txt)"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Annuller"
#define DIALOG_BROWSE "&Gennemse..."
#define DIALOG_HELP "&Hjælp"
#define DIALOG_PAGESETUP_CAPTION "Sideopsætning"
#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 "&Højre:"
#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. \
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 prøv 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 udføre \
STRING_NOTFOUND, "Kan ikke finde '%s'."
STRING_OUT_OF_MEMORY, "Der er ikke nok hukommelse til at udføre \
denne operation. \nAfslut et eller flere aktive programmer for at frigøre \
hukommelse, og prøv så igen."
#include "notepad.rc"
}

View File

@ -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"
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 "&Rückgängig\tStrg+Z", 0x110
MENUITEM SEPARATOR
MENUITEM "&Ausschneiden\tStrg+X", 0x111
MENUITEM "&Kopieren\tStrg+C", 0x112
MENUITEM "&Einfügen\tStrg+V", 0x113
MENUITEM "&Löschen\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' */
/* Menu */
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 "&Fußzeile:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
#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"
GROUPBOX "Ränder", 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
#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"
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
}
#define MENU_SEARCH "&Suchen"
#define MENU_SEARCH_SEARCH "Suchen..."
#define MENU_SEARCH_NEXT "&Weitersuchen\tF3"
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 */
#define MENU_LANGUAGE "&Sprache"
STRING_NOTEPAD, "Editor"
STRING_ERROR, "FEHLER"
STRING_WARNING, "ACHTUNG"
STRING_INFO, "Information"
#define MENU_HELP "&Hilfe"
#define MENU_HELP_CONTENTS "&Inhalt"
#define MENU_HELP_SEARCH "&Suchen..."
#define MENU_HELP_HELP_ON_HELP "&Hilfe benutzen"
STRING_UNTITLED, "(unbenannt)"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Lizenz"
#define MENU_INFO_NO_WARRANTY "&KEINE GARANTIE"
#define MENU_INFO_ABOUT_WINE "&Über WINE"
STRING_ALL_FILES, "Alle Dateien (*.*)"
STRING_TEXT_FILES_TXT, "Textdateien (*.txt)"
/* 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 \
STRING_TOOLARGE, "'%s' ist zu gross für 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 könnte. 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 genügend Arbeitsspeicher, \
um diese Funktion \nabzuschließen. Beenden Sie eine oder mehrere \
\nAnwendungen, um den verfügbaren Arbeitsspeicher zu \nerhöhen."
#include "notepad.rc"
}

View File

@ -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"
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' */
/* Menu */
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
#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"
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
#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"
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
}
#define MENU_SEARCH "&Search"
#define MENU_SEARCH_SEARCH "Search..."
#define MENU_SEARCH_NEXT "&Search next\tF3"
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 */
#define MENU_LANGUAGE "&Language"
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERROR"
STRING_WARNING, "WARNING"
STRING_INFO, "Information"
#define MENU_HELP "&Help"
#define MENU_HELP_CONTENTS "&Contents"
#define MENU_HELP_SEARCH "&Search..."
#define MENU_HELP_HELP_ON_HELP "&Help on help"
STRING_UNTITLED, "(untitled)"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&License"
#define MENU_INFO_NO_WARRANTY "&NO WARRANTY"
#define MENU_INFO_ABOUT_WINE "&About Wine"
STRING_ALL_FILES, "All files (*.*)"
STRING_TEXT_FILES_TXT, "Text files (*.txt)"
/* 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 \
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"
}

View File

@ -1,9 +1,10 @@
/*
* Notepad (English resources)
* Notepad (Spanish 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"
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 página...", 0x105
MENUITEM "&Configuración 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 línea automático", 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&ormación..." {
MENUITEM "&Licencia", 0x135
MENUITEM "SIN &GARANTÍA", 0x136
MENUITEM "&Acerca de Wine", 0x137
}
}
}
/* Dialog `Page setup' */
/* Menu */
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 página"
{
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
#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 página..."
#define MENU_FILE_PRINT "&Imprimir"
#define MENU_FILE_PRINTSETUP "&Configuración impresora..."
#define MENU_FILE_EXIT "&Salir"
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
#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 línea automático"
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
}
#define MENU_SEARCH "&Buscar"
#define MENU_SEARCH_SEARCH "&Buscar..."
#define MENU_SEARCH_NEXT "Buscar &siguiente\tF3"
STRINGTABLE DISCARDABLE LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Página &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 */
#define MENU_LANGUAGE "&Idioma"
STRING_NOTEPAD, "Bloc de Notas"
STRING_ERROR, "ERROR"
STRING_WARNING, "CUIDADO"
STRING_INFO, "Información"
#define MENU_HELP "&Ayuda"
#define MENU_HELP_CONTENTS "&Indice"
#define MENU_HELP_SEARCH "&Buscar..."
#define MENU_HELP_HELP_ON_HELP "&Ayuda sobre la ayuda"
STRING_UNTITLED, "(sin título)"
#define MENU_INFO "Inf&ormación..."
#define MENU_INFO_LICENSE "&Licencia"
#define MENU_INFO_NO_WARRANTY "SIN &GARANTÍA"
#define MENU_INFO_ABOUT_WINE "&Acerca de Wine"
STRING_ALL_FILES, "Todos los archivos (*.*)"
STRING_TEXT_FILES_TXT, "Documentos de texto (*.txt)"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Cancelar"
#define DIALOG_BROWSE "&Buscar..."
#define DIALOG_HELP "&Ayuda"
#define DIALOG_PAGESETUP_CAPTION "&Ajuste de página"
#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 "Página &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 "Información"
#define STRING_UNTITLED "(sin título)"
#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 \
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 más aplicaciones para aumentar la cantidad \nde \
memoria libre."
#include "notepad.rc"
}

View File

@ -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"
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/Päivämäärä\tF5", 0x117
MENUITEM SEPARATOR
MENUITEM "Ka&tkaise pitkä rivi", 0x119
}
POPUP "&Etsi" {
MENUITEM "Etsi...", 0x120
MENUITEM "Etsi &seuraava\tF3", 0x121
}
POPUP "&Apua" {
MENUITEM "&Sisältö", 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' */
/* Menu */
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 "&Yläotsikko:", 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
#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"
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
#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/Päivämäärä\tF5"
#define MENU_EDIT_WRAP "Ka&tkaise pitkä rivi"
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
}
#define MENU_SEARCH "&Etsi"
#define MENU_SEARCH_SEARCH "Etsi..."
#define MENU_SEARCH_NEXT "Etsi &seuraava\tF3"
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 */
#define MENU_LANGUAGE "&Kieli"
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "VIRHE"
STRING_WARNING, "VAROITUS"
STRING_INFO, "Tiedoitus"
#define MENU_HELP "&Apua"
#define MENU_HELP_CONTENTS "&Sisältö"
#define MENU_HELP_SEARCH "&Etsi..."
#define MENU_HELP_HELP_ON_HELP "Apua &Opastuksesta"
STRING_UNTITLED, "(otsikoimaton)"
#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"
STRING_ALL_FILES, "Kaikki tiedostot (*.*)"
STRING_TEXT_FILES_TXT, "Teksti tiedostot (*.txt)"
/* 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 "&Yläotsikko:"
#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 \
STRING_TOOLARGE, "Tiedosto '%s' on liian suuri.\n \
Please use a different editor."
#define STRING_NOTEXT "Et syöttänyt lainkaan tekstiä. \
STRING_NOTEXT, "Et syöttänyt 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 löydy."
#define STRING_OUT_OF_MEMORY "Muistia ei ole riittävästi tämän \
STRING_NOTSAVED, "File '%s'\nhas been modified\n\n \
Would you like to save the changes ?"
STRING_NOTFOUND, "'%s' ei löydy."
STRING_OUT_OF_MEMORY, "Muistia ei ole riittävästi tämän \
\ntehtävän tekemiseksi. Sulje jokin sovellus vapauttaaksesi\n \
muistia."
#include "notepad.rc"
}

View File

@ -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"
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 &sélectionner", 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' */
/* Menu */
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-tête:", 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
#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"
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
#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"
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
}
#define MENU_SEARCH "&Recherche"
#define MENU_SEARCH_SEARCH "&Chercher..."
#define MENU_SEARCH_NEXT "&Suivant\tF3"
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 */
#define MENU_LANGUAGE "&Langue"
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERREUR"
STRING_WARNING, "ATTENTION"
STRING_INFO, "Information"
#define MENU_HELP "&Aide"
#define MENU_HELP_CONTENTS "&Sommaire"
#define MENU_HELP_SEARCH "&Chercher..."
#define MENU_HELP_HELP_ON_HELP "&Aide sur l'aide"
STRING_UNTITLED, "(sans-titre)"
#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"
STRING_ALL_FILES, "Tous fichiers (*.*)"
STRING_TEXT_FILES_TXT, "Fichiers texte (*.txt)"
/* 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 \
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 créer 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 mémoire pour finir cette tâche. \
task. \n Fermez une ou plusier applications pour libérer\n\
de la mémoire."
#include "notepad.rc"
/* Strings */
}

View File

@ -1,7 +1,8 @@
/*
* 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 "&Português"
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 Página...", 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 Próxima\tF3", 0x121
}
POPUP "&Ajuda" {
MENUITEM "&Conteúdo", 0x130
MENUITEM "&Procurar...", 0x131
MENUITEM "&Ajuda na ajuda", 0x132
MENUITEM SEPARATOR
POPUP "Inf&ormações..." {
MENUITEM "&Licença", 0x135
MENUITEM "&SEM GARANTIA", 0x136
MENUITEM "&Sobre Wine", 0x137
}
}
}
/* Dialog `Page setup' */
/* Menu */
DIALOG_PAGESETUP_ DIALOG 0, 0, 225, 95
LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
FONT 8, "Helv"
CAPTION "Configurar Página"
{
LTEXT "&Cabeçalho:", 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
#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 Página..."
#define MENU_FILE_PRINTSETUP "Configurar I&mpressora..."
#define MENU_FILE_EXIT "&Sair"
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
#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"
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
}
#define MENU_SEARCH "&Pesquisa"
#define MENU_SEARCH_SEARCH "Pesquisar..."
#define MENU_SEARCH_NEXT "&Procurar Próxima\tF3"
STRINGTABLE DISCARDABLE LANGUAGE LANG_PORTUGUESE, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Página &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 */
#define MENU_LANGUAGE "&Linguagem"
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERRO"
STRING_WARNING, "AVISO"
STRING_INFO, "Informação"
#define MENU_HELP "&Ajuda"
#define MENU_HELP_CONTENTS "&Conteúdo"
#define MENU_HELP_SEARCH "&Procurar..."
#define MENU_HELP_HELP_ON_HELP "&Ajuda na ajuda"
STRING_UNTITLED, "(sem nome)"
#define MENU_INFO "Inf&ormações..."
#define MENU_INFO_LICENSE "&Licença"
#define MENU_INFO_NO_WARRANTY "&SEM GARANTIA"
#define MENU_INFO_ABOUT_WINE "&Sobre Wine"
STRING_ALL_FILES, "Todos os arquivos (*.*)"
STRING_TEXT_FILES_TXT, "Arquivos texto (*.txt)"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Cancelar"
#define DIALOG_BROWSE "&Procurar..."
#define DIALOG_HELP "&Ajuda"
#define DIALOG_PAGESETUP_CAPTION "Configurar Página"
#define DIALOG_PAGESETUP_HEAD "&Cabeçalho:"
#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 "Página &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 "Informação"
#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 \
STRING_TOOLARGE, "Arquivo '%s' é muito longo para o notepad.\n \
Por favor use um editor diferente."
#define STRING_NOTEXT "Você não digitou nenhum texto. \
STRING_NOTEXT, "Você não 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 alteraçÕes ?"
#define STRING_NOTFOUND "'%s' não pode ser encontrado."
#define STRING_OUT_OF_MEMORY "Não há memória suficiente para completar essa \
STRING_NOTFOUND, "'%s' não pode ser encontrado."
STRING_OUT_OF_MEMORY, "Não há memória suficiente para completar essa \
tarefa. \nFeche uma ou mais aplicações para aumentar a quantidade de memória \
livre."
#include "notepad.rc"
}

View File

@ -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.

View File

@ -1,8 +1,9 @@
/*
* 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"
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' */
/* Menu */
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
#define MENU_FILE "&Súbor"
#define MENU_FILE_NEW "&Nový..."
#define MENU_FILE_OPEN "&Otvori<72>"
#define MENU_FILE_SAVE "U&loži<C5BE>"
#define MENU_FILE_SAVEAS "Ulož&i<> ako..."
#define MENU_FILE_PRINT "&Tlaèi<C3A8>"
#define MENU_FILE_PAGESETUP "&Nastavenie tlaèe..."
#define MENU_FILE_PRINTSETUP "Nastavenie tlaèiar&ne..."
#define MENU_FILE_EXIT "U&konèi<C3A8>"
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
#define MENU_EDIT "&Upravi<76>"
#define MENU_EDIT_UNDO "&Krok spä<70>\tCtrl+Z"
#define MENU_EDIT_CUT "V&ystrihnú<6E>\tCtrl+X"
#define MENU_EDIT_COPY "&Kopírova<76>\tCtrl+C"
#define MENU_EDIT_PASTE "V&lepi<70>\tCtrl+V"
#define MENU_EDIT_DELETE "&Zmaza<7A>\tDel"
#define MENU_EDIT_SELECTALL "Vybr&a<> všetko"
#define MENU_EDIT_TIMEDATE "Èas&/Dátum\tF5"
#define MENU_EDIT_WRAP "&Zalomi<6D> dlhé riadky"
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
}
#define MENU_SEARCH "&H¾ada<64>"
#define MENU_SEARCH_SEARCH "H¾ada<64>..."
#define MENU_SEARCH_NEXT "&H¾ada<64> ïa¾ší\tF3"
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 */
#define MENU_LANGUAGE "&Jazyk"
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "ERROR"
STRING_WARNING, "WARNING"
STRING_INFO, "Information"
#define MENU_HELP "&Pomoc"
#define MENU_HELP_CONTENTS "&Obsah"
#define MENU_HELP_SEARCH "&H¾ada<64>..."
#define MENU_HELP_HELP_ON_HELP "&Pomoc na pomoci"
STRING_UNTITLED, "(untitled)"
#define MENU_INFO "Inf&o..."
#define MENU_INFO_LICENSE "&Licencia"
#define MENU_INFO_NO_WARRANTY "&BEZ ZÁRUKY"
#define MENU_INFO_ABOUT_WINE "O &Wine"
STRING_ALL_FILES, "All files (*.*)"
STRING_TEXT_FILES_TXT, "Text files (*.txt)"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Zruši<C5A1>"
#define DIALOG_BROWSE "&Listova<76>..."
#define DIALOG_HELP "&Pomoc"
#define DIALOG_PAGESETUP_CAPTION "Nastavenie stránky"
#define DIALOG_PAGESETUP_HEAD "&Hlavièka:"
#define DIALOG_PAGESETUP_TAIL "&Päta:"
#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 "Informácie"
#define STRING_UNTITLED "(nepomenovaný)"
#define STRING_ALL_FILES "Všetky súbory (*.*)"
#define STRING_TEXT_FILES_TXT "Textové súbory (*.txt)"
#define STRING_TOOLARGE "File '%s' is too large for notepad.\n \
STRING_TOOLARGE, "File '%s' is too large for notepad.\n \
Please use a different editor."
#define STRING_NOTEXT "Niè ste nenapísali. \
\nProsím, napíšte nejaký text a pokúste 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 "Súbor '%s'\nbol zmenenýn\n \
Prajete si uloži<C5BE> zmeny ?"
#define STRING_NOTFOUND "'%s' nemôže by<62> nájdený."
#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"
}

View File

@ -2,7 +2,8 @@
* Notepad (Swedish resources)
*
* Copyright 1997,98 Marcel Baur <mbaur@g26.ethz.ch>
* Swedish language by Karl Backström <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"
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 &inställningar...", 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 långa meningar", 0x119
}
POPUP "&Sök" {
MENUITEM "Sök...", 0x120
MENUITEM "&Sök nästa\tF3", 0x121
}
POPUP "&Hjälp" {
MENUITEM "&Innehåll", 0x130
MENUITEM "&Sök...", 0x131
MENUITEM "Användningen &av hjälp", 0x132
MENUITEM SEPARATOR
POPUP "Inf&ormation..." {
MENUITEM "&Licens", 0x135
MENUITEM "&INGEN GARANTI", 0x136
MENUITEM "&Om Wine", 0x137
}
}
}
/* Dialog `Page setup' */
/* Menu */
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
#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 &inställningar..."
#define MENU_FILE_EXIT "&Avsluta"
GROUPBOX "Kanter:", 0x144, 10, 43,160, 45
LTEXT "&Vänster:", 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 "&Höger:", 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
#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 långa meningar"
DEFPUSHBUTTON "OK", 0x151, 180, 3, 40, 15, WS_TABSTOP
PUSHBUTTON "Avbryt", 0x152, 180, 21, 40, 15, WS_TABSTOP
PUSHBUTTON "&Hjälp", 0x153, 180, 39, 40, 15, WS_TABSTOP
}
#define MENU_SEARCH "&Sök"
#define MENU_SEARCH_SEARCH "Sök..."
#define MENU_SEARCH_NEXT "&Sök nästa\tF3"
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 */
#define MENU_LANGUAGE "&Språk"
STRING_NOTEPAD, "Anteckningar"
STRING_ERROR, "FEL"
STRING_WARNING, "WARNING"
STRING_INFO, "Information"
#define MENU_HELP "&Hjälp"
#define MENU_HELP_CONTENTS "&Innehåll"
#define MENU_HELP_SEARCH "&Sök..."
#define MENU_HELP_HELP_ON_HELP "Användningen &av hjälp"
STRING_UNTITLED, "(untitled)"
#define MENU_INFO "Inf&ormation..."
#define MENU_INFO_LICENSE "&Licens"
#define MENU_INFO_NO_WARRANTY "&INGEN GARANTI"
#define MENU_INFO_ABOUT_WINE "&Om Wine"
STRING_ALL_FILES, "Alla filer (*.*)"
STRING_TEXT_FILES_TXT, "Text filer (*.txt)"
/* Dialogs */
#define DIALOG_OK "OK"
#define DIALOG_CANCEL "Avbryt"
#define DIALOG_BROWSE "&Bläddra..."
#define DIALOG_HELP "&Hjälp"
#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 "&Vänster:"
#define DIALOG_PAGESETUP_RIGHT "&Höger:"
#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 för stor för notepad.\n \
STRING_TOOLARGE, "Filen '%s' är för stor för notepad.\n \
Använd en annan editor."
#define STRING_NOTEXT "Du skrev inte in någon text. \
STRING_NOTEXT, "Du skrev inte in någon text. \
\nSkriv något och försök 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 tillräkligt med minne för att slutföra \
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 tillräkligt med minne för att slutföra \
den här uppgiften. \nAvsluta ett eller flera program för att öka mängden \nfritt \
minne."
#include "notepad.rc"
}

View File

@ -1,7 +1,9 @@
/*
* Notepad (Walloon 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 ratoûrnaedje des libes programes è walon,
* vos poloz scrîre a l' adresse emile <linux-wa@chanae.alphanet.ch>
*/
#define LANGUAGE_ID Wa
#define LANGUAGE_NUMBER 90
#define LANGUAGE_MENU_ITEM "&Walon"
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 &Pådje...", 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 "Côper les ro&yes", 0x119
}
POPUP "C&werî" {
MENUITEM "Cwerî...", 0x120
MENUITEM "&Shûvant\tF3", 0x121
}
POPUP "&Aide" {
MENUITEM "Å&dvins", 0x130
MENUITEM "C&werî...", 0x131
MENUITEM "&Aide so l' Aide", 0x132
MENUITEM SEPARATOR
POPUP "&Informåcion..." {
MENUITEM "&Licinse", 0x135
MENUITEM "&NOLE WARANTEYE", 0x136
MENUITEM "Å &dfait di Wine", 0x137
}
}
}
/* Dialog `Page setup' */
/* Menu */
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 Pådje"
{
LTEXT "&Tite:", 0x140, 10, 07, 40, 15
EDITTEXT 0x141, 60, 05,110, 12, WS_BORDER | WS_TABSTOP
LTEXT "&Pînote:", 0x142, 10, 24, 40, 15
EDITTEXT 0x143, 60, 22,110, 12, WS_BORDER | WS_TABSTOP
#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 &Pådje..."
#define MENU_FILE_PRINTSETUP "&Apontiaedje del scrirece..."
#define MENU_FILE_EXIT "Moussî &Foû"
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
#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 "Côper les ro&yes"
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
}
#define MENU_SEARCH "C&werî"
#define MENU_SEARCH_SEARCH "Cwerî..."
#define MENU_SEARCH_NEXT "&Shûvant\tF3"
STRINGTABLE DISCARDABLE LANGUAGE LANG_WALON, SUBLANG_NEUTRAL
{
STRING_PAGESETUP_HEADERVALUE, "&n" /* FIXME */
STRING_PAGESETUP_FOOTERVALUE, "Pådje &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 */
#define MENU_LANGUAGE "&Lingaedje"
STRING_NOTEPAD, "Notepad"
STRING_ERROR, "AROKE"
STRING_WARNING, "ADVERTIXHMINT"
STRING_INFO, "Informåcion"
#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"
STRING_UNTITLED, "(sin tite)"
#define MENU_INFO "&Informåcion..."
#define MENU_INFO_LICENSE "&Licinse"
#define MENU_INFO_NO_WARRANTY "&NOLE WARANTEYE"
#define MENU_INFO_ABOUT_WINE "Å &dfait di Wine"
STRING_ALL_FILES, "Tos les fitchîs (*.*)"
STRING_TEXT_FILES_TXT, "Fitchîs tekse (*.txt)"
/* Dialogs */
#define DIALOG_OK "I Va"
#define DIALOG_CANCEL "Rinoncî"
#define DIALOG_BROWSE "&Foyer..."
#define DIALOG_HELP "&Aide"
#define DIALOG_PAGESETUP_CAPTION "Arindjmint del Pådje"
/* "Tite" ni va nén vraiymint, i fåt ene sacwe d' meyeu [header] */
#define DIALOG_PAGESETUP_HEAD "&Tite:"
#define DIALOG_PAGESETUP_TAIL "&Pînote:"
/* "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 "Pådje &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 "Informåcion"
#define STRING_UNTITLED "(sin tite)"
#define STRING_ALL_FILES "Tos les fitchîs (*.*)"
#define STRING_TEXT_FILES_TXT "Fitchîs tekse (*.txt)"
#define STRING_TOOLARGE "Li fitchî '%s' est trop gros pol notepad.\n \
STRING_TOOLARGE, "Li fitchî '%s' est trop gros pol notepad.\n \
Eployoz on ôte aspougneu di tekse."
#define STRING_NOTEXT "Vos n' avoz rén sicrît. \
STRING_NOTEXT, "Vos n' avoz rén sicrît. \
\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 nén esse trové."
#define STRING_OUT_OF_MEMORY "Li memwere est plinne. \n\
STRING_NOTFOUND, "'%s' pout nén esse trové."
STRING_OUT_OF_MEMORY, "Li memwere est plinne. \n\
Cloyoz on programe ou pus po monter li memwere libe."
#include "notepad.rc"
}

View File

@ -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;
}

View File

@ -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)
VOID LANGUAGE_LoadMenus(VOID)
{
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)
{
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);
//}

View File

@ -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
@ -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);

View File

@ -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 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 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 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 NP_SEARCH_SEARCH: DIALOG_Search(); break;
case NP_SEARCH_NEXT: DIALOG_SearchNext(); break;
case 0x120: DIALOG_Search(); break;
case 0x121: 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 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);

View File

@ -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: */

View File

@ -0,0 +1,42 @@
/*
* 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

View File

@ -1,5 +1,6 @@
/*
* 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"