Commit 4a8639cc authored by Klaas van Gend's avatar Klaas van Gend Committed by Alexandre Julliard

Added support for the Dutch language.

parent 06664448
......@@ -42,6 +42,7 @@ Chad Fraleigh,
Matthew Francis,
Peter Galbavy,
Ramon Garcia,
Klaas van Gend,
Matthew Ghio,
Jody Goldberg,
Hans de Graaff,
......
ADDING LANGUAGES TO WINE
This file documents the necessary procedure for adding a new language
to the list of languages that Wine can display system menus and forms
in. Currently at least the following languages are still missing:
Bulgarian, Chinese, Greek, Icelandic, Japanese, Dutch, Romanian,
Bulgarian, Chinese, Greek, Icelandic, Japanese, Romanian,
Russian, Croatian, Slovak, Turkish, and Slovanian.
To add a new language you need to be able to translate the relatively
......@@ -9,34 +11,38 @@ few texts, of course. You will need very little knowledge of
programming, so you have almost no excuses for not adding your language,
right? We should easily be able to support 20 languages within a few
months, get going! Apart from re-compilation it'll take you about an
hour.
hour or two.
To add a new language to the list of languages that Wine can handle
you must...
1. Edit ./wine.man (search for -language) to show the new language
abbreviation.
0. Find the language ID in /include/winnls.h .
1. Look in ole/ole2nls.c if your language is already incorporated in
the "static const struct NLS_langlocale". If not: find the
appropriate entries in /include/winnls.h and add them to the list.
2. Edit the parameters defined in /ole/nls/*.nls to fit your local
habits and language.
2. Edit misc/main.c variable "Languages" to contain the new language
3. Edit documentation/wine.man (search for -language) to show the new
language abbreviation.
4. Edit misc/main.c variable "Languages" to contain the new language
abbreviation and language ID. Also edit macro "USAGE" to show the
new abbreviation.
3. Edit include/options.h enum "WINE_LANGUAGE" to have a member called
5. Edit include/options.h enum "WINE_LANGUAGE" to have a member called
LANG_XX where XX is the new abbreviation.
4. Edit ole/ole2nls.c function "GetUserDefaultLCID" to contain a
case for your language by uncommenting the return value of it.
5. Edit resources/sysrec.c to include "sysres_XX.h" where XX is the
abbreviation for your language. (That file will be produced auto-
matically.) Edit variable "SYSRES_Resources" to contain an entry
for your language.
6. Edit resources/sysres.c variable "SYSRES_Resources" to contain an
entry for your language.
6. Create a new file, resources/sysres_XX.rc, where XX is the
abbreviation that you chose. Your best bet is to copy one of the
other *.rc files and start translating. [Warning: the author of
this file does not know the details of the structure of these
files. There seems to be no need to, however.]
7. Create a new file, resources/sysres_XX.rc, where XX is the
abbreviation that you chose. Your best bet is to copy sysres_En.rc
and start translating. [Warning: the author of this file does not
know the details of the structure of these files.
There seems to be no need to, however.]
In menus, the character "&" means that the next character will
be highlighted and that pressing that letter will select the item.
......@@ -44,17 +50,18 @@ you must...
copy the positions from (say) English. In particular, items within
one menu should have different highlighted letters.
7. Edit resources/Makefile.in to add the name of the new file to the
8. Edit resources/Makefile.in to add the name of the new file to the
SYSRES_SRCS variable.
8. Edit ole/ole2nls.c function "GetLocaleInfoA" to contain a case for
your language.
9. Re-configure, re-make dependencies, and re-make Wine.
10. Check your new menus and forms; when they're ok, submit patches
for inclusion in the next Wine release, see file ./ANNOUNCE for
details about where to submit.
10. Check your new menus and forms; when they're not ok,
go back to 7) and adapt the sizes, etc.
11. Edit /resources/TODO if necessary.
12. Submit patches for inclusion in the next Wine release,
see file ./ANNOUNCE for details about where to submit.
January 1996
......@@ -64,3 +71,5 @@ Morten Welinder
place missing from the above list, submit a patch to this file please.
Also note that re-organization of the source code might change the list
of places.]
Therefore revised Februari 1999 by Klaas van Gend
......@@ -40,6 +40,7 @@ static const char * const SHELL_People[] =
"Matthew Francis",
"Peter Galbavy",
"Ramon Garcia",
"Klaas van Gend",
"Matthew Ghio",
"Jody Goldberg",
"Hans de Graaff",
......
......@@ -31,7 +31,8 @@ typedef enum
LANG_Pl, /* Polish */
LANG_Pt, /* Portuguese */
LANG_Sv, /* Swedish */
LANG_Ca /* Catalan */
LANG_Ca, /* Catalan */
LANG_Nl /* Dutch */
} WINE_LANGUAGE;
typedef struct
......
......@@ -62,6 +62,7 @@ const WINE_LANGUAGE_DEF Languages[] =
{"Pt",0x0416}, /* LANG_Pt */
{"Sv",0x041d}, /* LANG_Sv */
{"Ca",0x0403}, /* LANG_Ca */
{"Nl",0x0413}, /* LANG_Nl */
{NULL,0}
};
......@@ -116,7 +117,7 @@ static char szUsage[] =
" -help Show this help message\n"
" -iconic Start as an icon\n"
" -language xx Set the language (one of Ca,Cs,Da,De,En,Eo,Es,Fi,Fr,Hu,It,\n"
" Ko,No,Pl,Pt,Sv)\n"
" Ko,Nl,No,Pl,Pt,Sv)\n"
" -managed Allow the window manager to manage created windows\n"
" -mode mode Start Wine in a particular mode (standard or enhanced)\n"
" -name name Set the application name\n"
......
......@@ -17,28 +17,28 @@ LOCVAL(LOCALE_IDEFAULTLANGUAGE,"0413")
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"31")
LOCVAL(LOCALE_IDEFAULTCODEPAGE,"850")
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE,"1252")
/* LOCVAL(LOCALE_SLIST,"") */
LOCVAL(LOCALE_SLIST,",")
/* LOCVAL(LOCALE_IMEASURE,"") */
/* LOCVAL(LOCALE_SDECIMAL,"") */
/* LOCVAL(LOCALE_STHOUSAND,"") */
/* LOCVAL(LOCALE_SGROUPING) */
/* LOCVAL(LOCALE_IDIGITS,"2") */
/* LOCVAL(LOCALE_ILZERO,"1") */
/* LOCVAL(LOCALE_INEGNUMBER) */
LOCVAL(LOCALE_SDECIMAL,",")
LOCVAL(LOCALE_STHOUSAND,".")
LOCVAL(LOCALE_SGROUPING, "3;0")
LOCVAL(LOCALE_IDIGITS,"2")
LOCVAL(LOCALE_ILZERO,"1")
LOCVAL(LOCALE_INEGNUMBER,"1")
LOCVAL(LOCALE_SNATIVEDIGITS,"0123456789")
LOCVAL(LOCALE_SCURRENCY,"F")
LOCVAL(LOCALE_SINTLSYMBOL,"NLG")
/* LOCVAL(LOCALE_SMONDECIMALSEP,",") */
/* LOCVAL(LOCALE_SMONTHOUSANDSEP,".") */
LOCVAL(LOCALE_SMONGROUPING,"3;0")
/* LOCVAL(LOCALE_ICURRDIGITS,"2") */
LOCVAL(LOCALE_ICURRDIGITS,"2")
/* LOCVAL(LOCALE_IINTLCURRDIGITS) */
/* LOCVAL(LOCALE_ICURRENCY,"3") */
/* LOCVAL(LOCALE_INEGCURR,"8") */
/* LOCVAL(LOCALE_SDATE,".") */
/* LOCVAL(LOCALE_STIME,":") */
/* LOCVAL(LOCALE_SSHORTDATE,"dd/MM-yyyy") */
/* LOCVAL(LOCALE_SLONGDATE,"ddd, d. MMMM yyyy") */
LOCVAL(LOCALE_INEGCURR,"8")
LOCVAL(LOCALE_SDATE,"-")
LOCVAL(LOCALE_STIME,":")
LOCVAL(LOCALE_SSHORTDATE,"dd-mm-yyyy")
LOCVAL(LOCALE_SLONGDATE,"ddd, d MMMM yyyy")
/* LOCVAL(LOCALE_STIMEFORMAT) */
/* LOCVAL(LOCALE_IDATE,"1") */
/* LOCVAL(LOCALE_ILDATE) */
......@@ -48,8 +48,8 @@ LOCVAL(LOCALE_ITIME,"1")
LOCVAL(LOCALE_ITLZERO,"1")
/* LOCVAL(LOCALE_IDAYLZERO) */
/* LOCVAL(LOCALE_IMONLZERO) */
/* LOCVAL(LOCALE_S1159, "") */
/* LOCVAL(LOCALE_S2359, "") */
LOCVAL(LOCALE_S1159, "")
LOCVAL(LOCALE_S2359, "")
LOCVAL(LOCALE_ICALENDARTYPE, "1")
/* LOCVAL(LOCALE_IOPTIONALCALENDAR) */
/* LOCVAL(LOCALE_IFIRSTDAYOFWEEK) */
......@@ -99,16 +99,16 @@ LOCVAL(LOCALE_SABBREVMONTHNAME11,"nov")
LOCVAL(LOCALE_SABBREVMONTHNAME12,"dec")
LOCVAL(LOCALE_SABBREVMONTHNAME13,"")
/* LOCVAL(LOCALE_SPOSITIVESIGN, "") */
/* LOCVAL(LOCALE_SNEGATIVESIGN, "") */
/* LOCVAL(LOCALE_IPOSSIGNPOSN, "") */
/* LOCVAL(LOCALE_INEGSIGNPOSN, "") */
/* LOCVAL(LOCALE_IPOSSYMPRECEDES, "") */
/* LOCVAL(LOCALE_IPOSSEPBYSPACE, "") */
/* LOCVAL(LOCALE_INEGSYMPRECEDES, "") */
/* LOCVAL(LOCALE_INEGSEPBYSPACE, "") */
LOCVAL(LOCALE_SPOSITIVESIGN, "+")
LOCVAL(LOCALE_SNEGATIVESIGN, "-")
LOCVAL(LOCALE_IPOSSIGNPOSN, "3")
LOCVAL(LOCALE_INEGSIGNPOSN, "3")
LOCVAL(LOCALE_IPOSSYMPRECEDES, "1")
LOCVAL(LOCALE_IPOSSEPBYSPACE, "0")
LOCVAL(LOCALE_INEGSYMPRECEDES, "1")
LOCVAL(LOCALE_INEGSEPBYSPACE, "0")
/* LOCVAL(LOCALE_FONTSIGNATURE, "") */
LOCVAL(LOCALE_SISO639LANGNAME,"nl")
LOCVAL(LOCALE_SISO3166CTRYNAME,"NL")
/* Gregorianse kalender */
/* Gregoriaanse kalender */
......@@ -194,6 +194,16 @@ LANG_BEGIN (LANG_KOREAN, SUBLANG_KOREAN) /*0x0412*/
#include "nls/kor.nls"
LANG_END
LANG_BEGIN (LANG_DUTCH, SUBLANG_DUTCH) /*0x0413*/
#include "nls/nld.nls"
LANG_END
LANG_BEGIN (LANG_DUTCH, SUBLANG_DUTCH_BELGIAN) /*0x0813*/
#include "nls/nlb.nls"
LANG_END
LANG_BEGIN (LANG_DUTCH, SUBLANG_DUTCH_SURINAM) /*0x0C13*/
#include "nls/nls.nls"
LANG_END
LANG_BEGIN (LANG_NORWEGIAN, SUBLANG_NORWEGIAN_BOKMAL) /*0x0414*/
#include "nls/nor.nls"
LANG_END
......
......@@ -20,6 +20,7 @@ RC_SRCS = \
sysres_Hu.rc \
sysres_It.rc \
sysres_Ko.rc \
sysres_Nl.rc \
sysres_No.rc \
sysres_Pl.rc \
sysres_Po.rc \
......
......@@ -46,6 +46,7 @@ Today it works well for:
* Korean
* Finnish
* Danish
* Dutch
...to be continued......
Thank you.
......@@ -67,6 +68,7 @@ and translate it to your language. It's okay for:
* Italian
* French
* Danish
* Dutch
.....
Thank you.
......@@ -86,6 +88,7 @@ This has now been done for:
* English
* Danish
* Dutch
.....
Note: I picked the IDs of the menuitems "at random". When someone wants to
......@@ -109,6 +112,7 @@ translations to all supported languages. At present it is only done for
* English
* German
* Dutch
After you implemented it for your language, please add it to the list above.
......
......@@ -26,6 +26,7 @@ extern const wrc_resource32_t * const sysres_Pl_ResTable[];
extern const wrc_resource32_t * const sysres_Po_ResTable[];
extern const wrc_resource32_t * const sysres_Sw_ResTable[];
extern const wrc_resource32_t * const sysres_Ca_ResTable[];
extern const wrc_resource32_t * const sysres_Nl_ResTable[];
static const wrc_resource32_t * const * SYSRES_Resources[] =
{
......@@ -44,7 +45,8 @@ static const wrc_resource32_t * const * SYSRES_Resources[] =
sysres_Pl_ResTable, /* LANG_Pl */
sysres_Po_ResTable, /* LANG_Po */
sysres_Sw_ResTable, /* LANG_Sw */
sysres_Ca_ResTable /* LANG_Ca */
sysres_Ca_ResTable, /* LANG_Ca */
sysres_Nl_ResTable /* LANG_Nl */
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment