mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ca22b33dad
Fri Jul 12 17:43:05 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [controls/scroll.c] Use Win32 heap functions to allocate scroll-bar info structure. * [debugger/dbg.y] [debugger/registers.c] Added support for FS and GS segment registers. Check that segment registers value are OK before returning from the signal handler. * [tools/build.c] [if1632/relay.c] [loader/builtin.c] Changed relay debugging for Win32 function: the relay code now passes the entry point address instead of the function name. * [tools/build.c] [miscemu/*.c] Added support for data entry points in Win32 DLLs. Added 'cdecl' function type for Win32. For 'register' function, the relay code now passes a pointer to the SIGCONTEXT structure. * [include/registers.h] [include/wine.h] Moved SIGCONTEXT structure definition in registers.h. * [loader/pe_image.c] Don't die at once if some Win32 entry points cannot be found, but set them to NULL, just like we do for Win16. This allows some programs to go further before crashing. * [loader/task.c] [loader/main.c] Moved global initializations from InitTask() to MAIN_Init(), as they no longer need a task context with the new SEGPTR heap functions. * [memory/string.c] Added lstrcpynAtoW and lstrcpynWtoA; not real API functions, but very convenient. * [windows/graphics.c] Partially implemented DrawEdge(). * [windows/timer.c] [windows/caret.c] Implemented Win32 timer handling. Updated caret management to use Win32 timers (avoids having to use a Win16 callback). * [windows/win.c] Prevent programs from setting some style bits with SetWindowLong(). This should fix some BadMatch crashes. Link new windows at the end of the linked list. * [windows/winpos.c] Don't try to activate a child window in ShowWindow(). * [windows/winproc.c] Added a 32->32 thunk to support Ansi-Unicode translation. Wed Jul 10 22:11:12 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [files/directory.c] Additional (undocumented) return value for GetTempDrive() added. * [files/dos_fs.c] [files/file.c] [include/windows.h] GetTempFileName32* added. GetShortPathName* added. * [memory/string.c] Win16 lstrcpy() can get NULL ptrs as argument and survive. * [misc/lzexpand.c] LZOpenFile(): also try opening with compressed filename if normal open fails. * [misc/ole2nls.c] [misc/lstr.c] [include/windows.h] Char* added. CompareString* added. Sun Jul 7 01:22:14 1996 Jukka Iivonen <iivonen@cc.helsinki.fi> * [objects/font.c] [if1632/gdi32.spec] CreateFontIndirect32A and CreateFontIndirect32W added. * [misc/ole2nls.c] GetUserDefaultLCID return values updated for new languages. Finnish support added for GetLocaleInfoA. * [object/palette] [gdi32.spec] RealizePalette32 and SelectPalette32 added. Sat Jul 6 17:27:30 1996 Ronan Waide <root@waider.ie> * [misc/shell.c] Fixup for SHELL_FindExecutable so that File->Run from progman works once more. Still needs some more fixups - grep for FIXME in this file.
870 lines
26 KiB
C
870 lines
26 KiB
C
/*
|
||
* OLE2NLS library
|
||
*
|
||
* Copyright 1995 Martin von Loewis
|
||
*/
|
||
|
||
/* At the moment, these are only empty stubs.
|
||
*/
|
||
|
||
#include <string.h>
|
||
#include "windows.h"
|
||
#include "ole.h"
|
||
#include "options.h"
|
||
#include "winnls.h"
|
||
#include "stddebug.h"
|
||
#include "debug.h"
|
||
|
||
/***********************************************************************
|
||
* GetUserDefaultLCID (OLE2NLS.1)
|
||
*/
|
||
DWORD GetUserDefaultLCID()
|
||
{
|
||
/* Default sorting, neutral sublanguage */
|
||
switch(Options.language)
|
||
{
|
||
case LANG_En: return 0x09;
|
||
case LANG_Es: return 0x0a;
|
||
case LANG_De: return 0x07;
|
||
case LANG_No: return 0x14;
|
||
case LANG_Fr: return 0x0c;
|
||
case LANG_Fi: return 0x0b;
|
||
case LANG_Da: return 0x06;
|
||
case LANG_Cz: return 0x05;
|
||
case LANG_Eo: return 0x25; /* not official */
|
||
case LANG_It: return 0x10;
|
||
case LANG_Ko: return 0x12;
|
||
default:
|
||
return 0; /* Neutral language */
|
||
}
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetSystemDefaultLCID (OLE2NLS.2)
|
||
*/
|
||
DWORD GetSystemDefaultLCID()
|
||
{
|
||
return GetUserDefaultLCID();
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetUserDefaultLangID (OLE2NLS.3)
|
||
*/
|
||
WORD GetUserDefaultLangID()
|
||
{
|
||
return (WORD)GetUserDefaultLCID();
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetSystemDefaultLangID (OLE2NLS.4)
|
||
*/
|
||
WORD GetSystemDefaultLangID()
|
||
{
|
||
return GetUserDefaultLangID();
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetLocaleInfoA (OLE2NLS.5)
|
||
* Is the last parameter really WORD for Win16?
|
||
*/
|
||
int GetLocaleInfoA(DWORD lcid,DWORD LCType,LPSTR buf,WORD len)
|
||
{
|
||
char *retString;
|
||
int retLen;
|
||
dprintf_ole(stddeb,"GetLocaleInfoA(%8lX,%8lX,%p,%4X)\n",
|
||
lcid,LCType,buf,len);
|
||
/* Wine is supporting only the default locale */
|
||
if(lcid!=GetUserDefaultLCID())
|
||
{
|
||
dprintf_ole(stdnimp,"GetLocaleInfoA: Unknown locale\n");
|
||
return 0;
|
||
}
|
||
/* As an option, we could obtain the value from win.ini.
|
||
This would not match the Wine compile-time option.
|
||
Also, not all identifiers are available from win.ini */
|
||
retString=0;
|
||
retLen=0;
|
||
/* If we are through all of this, retLen should not be zero anymore.
|
||
If it is, the value is not supported */
|
||
#define LOCVAL(type,value) if(type==LCType) \
|
||
{retLen=strlen(value)+1;\
|
||
retString=value; \
|
||
}
|
||
#define UNSUPPORTED(type) if(type==lcid)retString=#type;
|
||
|
||
/* I really wish I would know a better way to do this */
|
||
UNSUPPORTED(LOCALE_ILANGUAGE)
|
||
UNSUPPORTED(LOCALE_SLANGUAGE)
|
||
UNSUPPORTED(LOCALE_SENGLANGUAGE)
|
||
UNSUPPORTED(LOCALE_SABBREVLANGNAME)
|
||
UNSUPPORTED(LOCALE_SNATIVELANGNAME)
|
||
UNSUPPORTED(LOCALE_ICOUNTRY)
|
||
UNSUPPORTED(LOCALE_SCOUNTRY)
|
||
UNSUPPORTED(LOCALE_SENGCOUNTRY)
|
||
UNSUPPORTED(LOCALE_SABBREVCTRYNAME)
|
||
UNSUPPORTED(LOCALE_SNATIVECTRYNAME)
|
||
UNSUPPORTED(LOCALE_IDEFAULTLANGUAGE)
|
||
UNSUPPORTED(LOCALE_IDEFAULTCOUNTRY)
|
||
UNSUPPORTED(LOCALE_IDEFAULTCODEPAGE)
|
||
UNSUPPORTED(LOCALE_IDEFAULTANSICODEPAGE)
|
||
UNSUPPORTED(LOCALE_SLIST)
|
||
UNSUPPORTED(LOCALE_IMEASURE)
|
||
UNSUPPORTED(LOCALE_SDECIMAL)
|
||
UNSUPPORTED(LOCALE_STHOUSAND)
|
||
UNSUPPORTED(LOCALE_SGROUPING)
|
||
UNSUPPORTED(LOCALE_IDIGITS)
|
||
UNSUPPORTED(LOCALE_ILZERO)
|
||
UNSUPPORTED(LOCALE_INEGNUMBER)
|
||
UNSUPPORTED(LOCALE_SNATIVEDIGITS)
|
||
UNSUPPORTED(LOCALE_SCURRENCY)
|
||
UNSUPPORTED(LOCALE_SINTLSYMBOL)
|
||
UNSUPPORTED(LOCALE_SMONDECIMALSEP)
|
||
UNSUPPORTED(LOCALE_SMONTHOUSANDSEP)
|
||
UNSUPPORTED(LOCALE_SMONGROUPING)
|
||
UNSUPPORTED(LOCALE_ICURRDIGITS)
|
||
UNSUPPORTED(LOCALE_IINTLCURRDIGITS)
|
||
UNSUPPORTED(LOCALE_ICURRENCY)
|
||
UNSUPPORTED(LOCALE_INEGCURR)
|
||
UNSUPPORTED(LOCALE_SDATE)
|
||
UNSUPPORTED(LOCALE_STIME)
|
||
UNSUPPORTED(LOCALE_SSHORTDATE)
|
||
UNSUPPORTED(LOCALE_SLONGDATE)
|
||
UNSUPPORTED(LOCALE_STIMEFORMAT)
|
||
UNSUPPORTED(LOCALE_IDATE)
|
||
UNSUPPORTED(LOCALE_ILDATE)
|
||
UNSUPPORTED(LOCALE_ITIME)
|
||
UNSUPPORTED(LOCALE_ITIMEMARKPOSN)
|
||
UNSUPPORTED(LOCALE_ICENTURY)
|
||
UNSUPPORTED(LOCALE_ITLZERO)
|
||
UNSUPPORTED(LOCALE_IDAYLZERO)
|
||
UNSUPPORTED(LOCALE_IMONLZERO)
|
||
UNSUPPORTED(LOCALE_S1159)
|
||
UNSUPPORTED(LOCALE_S2359)
|
||
UNSUPPORTED(LOCALE_ICALENDARTYPE)
|
||
UNSUPPORTED(LOCALE_IOPTIONALCALENDAR)
|
||
UNSUPPORTED(LOCALE_IFIRSTDAYOFWEEK)
|
||
UNSUPPORTED(LOCALE_IFIRSTWEEKOFYEAR)
|
||
UNSUPPORTED(LOCALE_SDAYNAME1)
|
||
UNSUPPORTED(LOCALE_SDAYNAME2)
|
||
UNSUPPORTED(LOCALE_SDAYNAME3)
|
||
UNSUPPORTED(LOCALE_SDAYNAME4)
|
||
UNSUPPORTED(LOCALE_SDAYNAME5)
|
||
UNSUPPORTED(LOCALE_SDAYNAME6)
|
||
UNSUPPORTED(LOCALE_SDAYNAME7)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME1)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME2)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME3)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME4)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME5)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME6)
|
||
UNSUPPORTED(LOCALE_SABBREVDAYNAME7)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME1)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME2)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME3)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME4)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME5)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME6)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME7)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME8)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME9)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME10)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME11)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME12)
|
||
UNSUPPORTED(LOCALE_SMONTHNAME13)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME1)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME2)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME3)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME4)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME5)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME6)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME7)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME8)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME9)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME10)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME11)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME12)
|
||
UNSUPPORTED(LOCALE_SABBREVMONTHNAME13)
|
||
UNSUPPORTED(LOCALE_SPOSITIVESIGN)
|
||
UNSUPPORTED(LOCALE_SNEGATIVESIGN)
|
||
UNSUPPORTED(LOCALE_IPOSSIGNPOSN)
|
||
UNSUPPORTED(LOCALE_INEGSIGNPOSN)
|
||
UNSUPPORTED(LOCALE_IPOSSYMPRECEDES)
|
||
UNSUPPORTED(LOCALE_IPOSSEPBYSPACE)
|
||
UNSUPPORTED(LOCALE_INEGSYMPRECEDES)
|
||
UNSUPPORTED(LOCALE_INEGSEPBYSPACE)
|
||
|
||
/* Now, the language specific definitions. They don't have to be
|
||
complete */
|
||
switch(Options.language)
|
||
{
|
||
case LANG_De:
|
||
/* This definitions apply to Germany only. Users in Austria
|
||
or Switzerland might want to modify them */
|
||
LOCVAL(LOCALE_ILANGUAGE,"9")
|
||
LOCVAL(LOCALE_SLANGUAGE,"Deutsch")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"German")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"deu")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Deutsch")
|
||
LOCVAL(LOCALE_ICOUNTRY,"49")
|
||
LOCVAL(LOCALE_SCOUNTRY,"Deutschland")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Deutschland")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"De")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Deutschland")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"9")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"49")
|
||
/* Dunno
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE)
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE)
|
||
*/
|
||
LOCVAL(LOCALE_SLIST,";")
|
||
LOCVAL(LOCALE_IMEASURE,"0")
|
||
LOCVAL(LOCALE_SDECIMAL,",")
|
||
LOCVAL(LOCALE_STHOUSAND,".")
|
||
/*
|
||
LOCVAL(LOCALE_SGROUPING)
|
||
*/
|
||
LOCVAL(LOCALE_IDIGITS,"2")
|
||
LOCVAL(LOCALE_ILZERO,"1")
|
||
/*
|
||
LOCVAL(LOCALE_INEGNUMBER)
|
||
Is this "0123456789" ??
|
||
LOCVAL(LOCALE_SNATIVEDIGITS)
|
||
*/
|
||
LOCVAL(LOCALE_SCURRENCY,"DM")
|
||
/*
|
||
LOCVAL(LOCALE_SINTLSYMBOL)
|
||
LOCVAL(LOCALE_SMONDECIMALSEP)
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP)
|
||
LOCVAL(LOCALE_SMONGROUPING)
|
||
*/
|
||
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_STIMEFORMAT)
|
||
*/
|
||
LOCVAL(LOCALE_IDATE,"1")
|
||
/*
|
||
LOCVAL(LOCALE_ILDATE)
|
||
*/
|
||
LOCVAL(LOCALE_ITIME,"1")
|
||
/*
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN)
|
||
LOCVAL(LOCALE_ICENTURY)
|
||
*/
|
||
LOCVAL(LOCALE_ITLZERO,"1")
|
||
/*
|
||
LOCVAL(LOCALE_IDAYLZERO)
|
||
LOCVAL(LOCALE_IMONLZERO)
|
||
LOCVAL(LOCALE_S1159)
|
||
LOCVAL(LOCALE_S2359)
|
||
LOCVAL(LOCALE_ICALENDARTYPE)
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR)
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK)
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR)
|
||
*/
|
||
LOCVAL(LOCALE_SDAYNAME1,"Montag")
|
||
LOCVAL(LOCALE_SDAYNAME2,"Dienstag")
|
||
LOCVAL(LOCALE_SDAYNAME3,"Mittwoch")
|
||
LOCVAL(LOCALE_SDAYNAME4,"Donnerstag")
|
||
LOCVAL(LOCALE_SDAYNAME5,"Freitag")
|
||
LOCVAL(LOCALE_SDAYNAME6,"Sonnabend")
|
||
LOCVAL(LOCALE_SDAYNAME7,"Sonntag")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"Mo")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"Di")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"Mi")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"Do")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"Fr")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"Sa")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"So")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"Januar")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"Februar")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"M<EFBFBD>rz")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"April")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"Mai")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"Juni")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"Juli")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"August")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"September")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"Oktober")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"November")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"Dezember")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"Jan")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"Feb")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"M<EFBFBD>r")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"Apr")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"Mai")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"Jun")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"Jul")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"Aug")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"Sep")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"Okt")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11,"Nov")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12,"Dez")
|
||
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)
|
||
*/
|
||
break; /* LANG(De) */
|
||
|
||
case LANG_Da:
|
||
/* LOCVAL(LOCALE_ILANGUAGE,"9") */
|
||
LOCVAL(LOCALE_SLANGUAGE,"Dansk")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Danish")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"dan")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Dansk")
|
||
LOCVAL(LOCALE_ICOUNTRY,"45")
|
||
LOCVAL(LOCALE_SCOUNTRY,"Danmark")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Denmark")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"Da")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Danmark")
|
||
/* LOCVAL(LOCALE_IDEFAULTLANGUAGE,"9") */
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"45")
|
||
/* LOCVAL(LOCALE_IDEFAULTCODEPAGE) */
|
||
/* LOCVAL(LOCALE_IDEFAULTANSICODEPAGE) */
|
||
LOCVAL(LOCALE_SLIST,";")
|
||
LOCVAL(LOCALE_IMEASURE,"0")
|
||
LOCVAL(LOCALE_SDECIMAL,",")
|
||
LOCVAL(LOCALE_STHOUSAND,".")
|
||
/* LOCVAL(LOCALE_SGROUPING) */
|
||
LOCVAL(LOCALE_IDIGITS,"2")
|
||
LOCVAL(LOCALE_ILZERO,"1")
|
||
/* LOCVAL(LOCALE_INEGNUMBER) */
|
||
/* LOCVAL(LOCALE_SNATIVEDIGITS) */
|
||
LOCVAL(LOCALE_SCURRENCY,"kr")
|
||
/* LOCVAL(LOCALE_SINTLSYMBOL) */
|
||
LOCVAL(LOCALE_SMONDECIMALSEP,",")
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP,".")
|
||
/* LOCVAL(LOCALE_SMONGROUPING) */
|
||
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_STIMEFORMAT) */
|
||
LOCVAL(LOCALE_IDATE,"1")
|
||
/* LOCVAL(LOCALE_ILDATE) */
|
||
LOCVAL(LOCALE_ITIME,"1")
|
||
/* LOCVAL(LOCALE_ITIMEMARKPOSN) */
|
||
/* LOCVAL(LOCALE_ICENTURY) */
|
||
LOCVAL(LOCALE_ITLZERO,"1")
|
||
/* LOCVAL(LOCALE_IDAYLZERO) */
|
||
/* LOCVAL(LOCALE_IMONLZERO) */
|
||
/* LOCVAL(LOCALE_S1159) */
|
||
/* LOCVAL(LOCALE_S2359) */
|
||
/* LOCVAL(LOCALE_ICALENDARTYPE) */
|
||
/* LOCVAL(LOCALE_IOPTIONALCALENDAR) */
|
||
/* LOCVAL(LOCALE_IFIRSTDAYOFWEEK) */
|
||
/* LOCVAL(LOCALE_IFIRSTWEEKOFYEAR) */
|
||
LOCVAL(LOCALE_SDAYNAME1,"Mandag")
|
||
LOCVAL(LOCALE_SDAYNAME2,"Tirsdag")
|
||
LOCVAL(LOCALE_SDAYNAME3,"Onsdag")
|
||
LOCVAL(LOCALE_SDAYNAME4,"Torsdag")
|
||
LOCVAL(LOCALE_SDAYNAME5,"Fredag")
|
||
LOCVAL(LOCALE_SDAYNAME6,"L<EFBFBD>rdag")
|
||
LOCVAL(LOCALE_SDAYNAME7,"S<EFBFBD>ndag")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"Ma")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"Ti")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"On")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"To")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"Fr")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"L<EFBFBD>")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"S<EFBFBD>")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"Januar")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"Februar")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"Marts")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"April")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"Maj")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"Juni")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"Juli")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"August")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"September")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"Oktober")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"November")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"December")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"Jan")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"Feb")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"Mar")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"Apr")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"Maj")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"Jun")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"Jul")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"Aug")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"Sep")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"Okt")
|
||
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) */
|
||
break; /* LANG(Da) */
|
||
|
||
case LANG_Eo:
|
||
/* LOCVAL(LOCALE_ILANGUAGE,"9") ISO numerical ID for language TODO */
|
||
LOCVAL(LOCALE_SLANGUAGE,"Esperanto")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Esperanto")
|
||
/* LOCVAL(LOCALE_SABBREVLANGNAME,"deu") */
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Esperanto")
|
||
/* LOCVAL(LOCALE_ICOUNTRY,"49") not official in any one country */
|
||
/* LOCVAL(LOCALE_SCOUNTRY,"Deutschland") */
|
||
/* LOCVAL(LOCALE_SENGCOUNTRY,"Germany") */
|
||
/* LOCVAL(LOCALE_SABBREVCTRYNAME,"De") */
|
||
/* LOCVAL(LOCALE_SNATIVECTRYNAME,"Deutschland") */
|
||
/* LOCVAL(LOCALE_IDEFAULTLANGUAGE,"9") ISO ID of lang TODO */
|
||
/* LOCVAL(LOCALE_IDEFAULTCOUNTRY,"49") */
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE,3) /* is this right? TODO */
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE,3) /* is this right? TODO */
|
||
LOCVAL(LOCALE_SLIST,";")
|
||
LOCVAL(LOCALE_IMEASURE,"0")
|
||
LOCVAL(LOCALE_SDECIMAL,",")
|
||
LOCVAL(LOCALE_STHOUSAND,".")
|
||
/* LOCVAL(LOCALE_SGROUPING) */
|
||
LOCVAL(LOCALE_IDIGITS,"2")
|
||
LOCVAL(LOCALE_ILZERO,"1")
|
||
/* LOCVAL(LOCALE_INEGNUMBER) */
|
||
/* LOCVAL(LOCALE_SNATIVEDIGITS) */
|
||
LOCVAL(LOCALE_SCURRENCY,"NLG") /* accounting currency of UEA */
|
||
/* LOCVAL(LOCALE_SINTLSYMBOL) */
|
||
/* LOCVAL(LOCALE_SMONDECIMALSEP) */
|
||
/* LOCVAL(LOCALE_SMONTHOUSANDSEP) */
|
||
/* LOCVAL(LOCALE_SMONGROUPING) */
|
||
/* LOCVAL(LOCALE_ICURRDIGITS,"2") */
|
||
/* LOCVAL(LOCALE_IINTLCURRDIGITS) */
|
||
LOCVAL(LOCALE_ICURRENCY,"3")
|
||
LOCVAL(LOCALE_INEGCURR,"8")
|
||
LOCVAL(LOCALE_SDATE,".")
|
||
LOCVAL(LOCALE_STIME,":")
|
||
LOCVAL(LOCALE_SSHORTDATE,"yyyy.mm.dd")
|
||
LOCVAL(LOCALE_SLONGDATE,"ddd, d. MMMM yyyy")
|
||
/* LOCVAL(LOCALE_STIMEFORMAT) */
|
||
LOCVAL(LOCALE_IDATE,"1")
|
||
/* LOCVAL(LOCALE_ILDATE) */
|
||
LOCVAL(LOCALE_ITIME,"1")
|
||
/* LOCVAL(LOCALE_ITIMEMARKPOSN) */
|
||
/* LOCVAL(LOCALE_ICENTURY) */
|
||
LOCVAL(LOCALE_ITLZERO,"1")
|
||
/* LOCVAL(LOCALE_IDAYLZERO) */
|
||
/* LOCVAL(LOCALE_IMONLZERO) */
|
||
/* LOCVAL(LOCALE_S1159) */
|
||
/* LOCVAL(LOCALE_S2359) */
|
||
/* LOCVAL(LOCALE_ICALENDARTYPE) */
|
||
/* LOCVAL(LOCALE_IOPTIONALCALENDAR) */
|
||
/* LOCVAL(LOCALE_IFIRSTDAYOFWEEK) */
|
||
/* LOCVAL(LOCALE_IFIRSTWEEKOFYEAR) */
|
||
LOCVAL(LOCALE_SDAYNAME1,"lundo")
|
||
LOCVAL(LOCALE_SDAYNAME2,"mardo")
|
||
LOCVAL(LOCALE_SDAYNAME3,"merkredo")
|
||
LOCVAL(LOCALE_SDAYNAME4,"<EFBFBD>a<EFBFBD>do")
|
||
LOCVAL(LOCALE_SDAYNAME5,"vendredo")
|
||
LOCVAL(LOCALE_SDAYNAME6,"sabato")
|
||
LOCVAL(LOCALE_SDAYNAME7,"diman<EFBFBD>o")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"lu")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"ma")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"me")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"<EFBFBD>a")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"ve")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"sa")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"di")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"januaro")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"februaro")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"marto")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"aprilo")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"majo")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"junio")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"julio")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"a<EFBFBD>gusto")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"septembro")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"oktobro")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"novembro")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"decembro")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"jan")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"feb")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"mar")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"apr")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"maj")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"jun")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"jul")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"a<EFBFBD>g")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"sep")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"okt")
|
||
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) */
|
||
break; /* LANG(Eo) */
|
||
|
||
case LANG_Fi:
|
||
LOCVAL(LOCALE_ILANGUAGE,"11")
|
||
LOCVAL(LOCALE_SLANGUAGE,"Suomi")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Finnish")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"fin")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"suomi")
|
||
LOCVAL(LOCALE_ICOUNTRY,"49")
|
||
LOCVAL(LOCALE_SCOUNTRY,"Suomi")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Finland")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"Fin")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Suomi")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"11")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"358")
|
||
/*
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE)
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE)
|
||
*/
|
||
LOCVAL(LOCALE_SLIST,";")
|
||
LOCVAL(LOCALE_IMEASURE,"0")
|
||
LOCVAL(LOCALE_SDECIMAL,",")
|
||
LOCVAL(LOCALE_STHOUSAND,".")
|
||
/*
|
||
LOCVAL(LOCALE_SGROUPING)
|
||
*/
|
||
LOCVAL(LOCALE_IDIGITS,"2")
|
||
LOCVAL(LOCALE_ILZERO,"1")
|
||
/*
|
||
LOCVAL(LOCALE_INEGNUMBER)
|
||
Is this "0123456789" ??
|
||
LOCVAL(LOCALE_SNATIVEDIGITS)
|
||
*/
|
||
LOCVAL(LOCALE_SCURRENCY,"mk")
|
||
/*
|
||
LOCVAL(LOCALE_SINTLSYMBOL)
|
||
LOCVAL(LOCALE_SMONDECIMALSEP)
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP)
|
||
LOCVAL(LOCALE_SMONGROUPING)
|
||
*/
|
||
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_STIMEFORMAT)
|
||
*/
|
||
LOCVAL(LOCALE_IDATE,"1")
|
||
/*
|
||
LOCVAL(LOCALE_ILDATE)
|
||
*/
|
||
LOCVAL(LOCALE_ITIME,"1")
|
||
/*
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN)
|
||
LOCVAL(LOCALE_ICENTURY)
|
||
*/
|
||
LOCVAL(LOCALE_ITLZERO,"1")
|
||
/*
|
||
LOCVAL(LOCALE_IDAYLZERO)
|
||
LOCVAL(LOCALE_IMONLZERO)
|
||
LOCVAL(LOCALE_S1159)
|
||
LOCVAL(LOCALE_S2359)
|
||
LOCVAL(LOCALE_ICALENDARTYPE)
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR)
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK)
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR)
|
||
*/
|
||
LOCVAL(LOCALE_SDAYNAME1,"maanantai")
|
||
LOCVAL(LOCALE_SDAYNAME2,"tiistai")
|
||
LOCVAL(LOCALE_SDAYNAME3,"keskiviikko")
|
||
LOCVAL(LOCALE_SDAYNAME4,"torstai")
|
||
LOCVAL(LOCALE_SDAYNAME5,"perjantai")
|
||
LOCVAL(LOCALE_SDAYNAME6,"lauantai")
|
||
LOCVAL(LOCALE_SDAYNAME7,"sunnuntai")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"Ma")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"Ti")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"Ke")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"To")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"Pe")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"La")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"Su")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"tammikuu")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"helmikuu")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"maaliskuu")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"huhtikuu")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"toukokuu")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"kes<EFBFBD>kuu")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"hein<EFBFBD>kuu")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"elokuu")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"syyskuu")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"lokakuu")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"marraskuu")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"joulukuu")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"tammi")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"helmi")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"maalis")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"huhti")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"touko")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"kes<EFBFBD>")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"hein<EFBFBD>")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"elo")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"syys")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"loka")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11,"marras")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12,"joulu")
|
||
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)
|
||
*/
|
||
break; /* LANG(Fi) */
|
||
|
||
case LANG_It:
|
||
LOCVAL(LOCALE_ILANGUAGE,"9")
|
||
LOCVAL(LOCALE_SLANGUAGE,"Italiano")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Italian")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"ita")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Italiano")
|
||
LOCVAL(LOCALE_ICOUNTRY,"39")
|
||
LOCVAL(LOCALE_SCOUNTRY,"Italia")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Italy")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"It")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Italia")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"9")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"39")
|
||
/* Dunno
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE)
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE)
|
||
*/
|
||
LOCVAL(LOCALE_SLIST,";")
|
||
LOCVAL(LOCALE_IMEASURE,"0")
|
||
LOCVAL(LOCALE_SDECIMAL,",")
|
||
LOCVAL(LOCALE_STHOUSAND,".")
|
||
/*
|
||
LOCVAL(LOCALE_SGROUPING)
|
||
*/
|
||
LOCVAL(LOCALE_IDIGITS,"2")
|
||
LOCVAL(LOCALE_ILZERO,"1")
|
||
/*
|
||
LOCVAL(LOCALE_INEGNUMBER)
|
||
Is this "0123456789" ??
|
||
LOCVAL(LOCALE_SNATIVEDIGITS)
|
||
*/
|
||
LOCVAL(LOCALE_SCURRENCY,"Lit.")
|
||
/*
|
||
LOCVAL(LOCALE_SINTLSYMBOL)
|
||
LOCVAL(LOCALE_SMONDECIMALSEP)
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP)
|
||
LOCVAL(LOCALE_SMONGROUPING)
|
||
*/
|
||
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_STIMEFORMAT)
|
||
*/
|
||
LOCVAL(LOCALE_IDATE,"1")
|
||
/*
|
||
LOCVAL(LOCALE_ILDATE)
|
||
*/
|
||
LOCVAL(LOCALE_ITIME,"1")
|
||
/*
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN)
|
||
LOCVAL(LOCALE_ICENTURY)
|
||
*/
|
||
LOCVAL(LOCALE_ITLZERO,"1")
|
||
/*
|
||
LOCVAL(LOCALE_IDAYLZERO)
|
||
LOCVAL(LOCALE_IMONLZERO)
|
||
LOCVAL(LOCALE_S1159)
|
||
LOCVAL(LOCALE_S2359)
|
||
LOCVAL(LOCALE_ICALENDARTYPE)
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR)
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK)
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR)
|
||
*/
|
||
LOCVAL(LOCALE_SDAYNAME1,"Lunedi'")
|
||
LOCVAL(LOCALE_SDAYNAME2,"Martedi'")
|
||
LOCVAL(LOCALE_SDAYNAME3,"Mercoledi'")
|
||
LOCVAL(LOCALE_SDAYNAME4,"Giovedi'")
|
||
LOCVAL(LOCALE_SDAYNAME5,"Venerdi'")
|
||
LOCVAL(LOCALE_SDAYNAME6,"Sabato")
|
||
LOCVAL(LOCALE_SDAYNAME7,"Domenica")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"Lu")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"Ma")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"Me")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"Gi")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"Ve")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"Sa")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"Do")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"Gennaio")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"Febbraio")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"Marzo")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"Aprile")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"Maggio")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"Giugno")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"Luglio")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"Agosto")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"Settembre")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"Ottobre")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"Novembre")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"Dicembre")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"Gen")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"Feb")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"Mar")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"Apr")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"Mag")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"Giu")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"Lug")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"Ago")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"Set")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"Ott")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11,"Nov")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12,"Dic")
|
||
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)
|
||
*/
|
||
break; /* LANG(It) */
|
||
|
||
|
||
/*Insert other languages here*/
|
||
|
||
default:
|
||
break;
|
||
} /* switch */
|
||
|
||
if(!retLen)
|
||
{
|
||
if(!retString)fprintf(stderr,"Unkown LC type %lX\n",LCType);
|
||
else fprintf(stderr,"'%s' not supported for your language.\n",
|
||
retString);
|
||
return 0;
|
||
}
|
||
|
||
if(retLen>len)retLen=len;
|
||
lstrcpyn32A(buf,retString,len);
|
||
return retLen;
|
||
}
|
||
|
||
|
||
/***********************************************************************
|
||
* CompareString16 (OLE2NLS.8)
|
||
*/
|
||
UINT16 CompareString16(DWORD lcid,DWORD fdwStyle,
|
||
LPCSTR s1,DWORD l1,LPCSTR s2,DWORD l2)
|
||
{
|
||
return (UINT16)CompareString32A(lcid,fdwStyle,s1,l1,s2,l2);
|
||
}
|
||
|
||
/***********************************************************************
|
||
* CompareString32A (KERNEL32.29)
|
||
* This implementation ignores the locale
|
||
* FIXME
|
||
*/
|
||
UINT32 CompareString32A(DWORD lcid, DWORD fdwStyle,
|
||
LPCSTR s1, DWORD l1, LPCSTR s2,DWORD l2)
|
||
{
|
||
int len,ret;
|
||
if(fdwStyle & NORM_IGNORENONSPACE)
|
||
{
|
||
fprintf(stdnimp, "CompareStringA: IGNORENONSPACE not supprted\n");
|
||
}
|
||
if(fdwStyle & NORM_IGNORESYMBOLS)
|
||
fprintf(stdnimp, "CompareStringA: IGNORESYMBOLS not supported\n");
|
||
/* Is strcmp defaulting to string sort or to word sort?? */
|
||
/* FIXME: Handle NORM_STRINGSORT */
|
||
l1 = (l1==-1)?strlen(s1):l1;
|
||
l2 = (l2==-1)?strlen(s2):l2;
|
||
len = l1<l2 ? l1:l2;
|
||
ret = (fdwStyle & NORM_IGNORECASE) ?
|
||
lstrncmpi32A(s1,s2,len) : lstrncmp32A(s1,s2,len);
|
||
/* not equal, return 1 or 3 */
|
||
if(ret!=0)return ret+2;
|
||
/* same len, return 2 */
|
||
if(l1==l2)return 2;
|
||
/* the longer one is lexically greater */
|
||
return (l1<l2)? 1 : 3;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* CompareString32W (KERNEL32.30)
|
||
* This implementation ignores the locale
|
||
* FIXME
|
||
*/
|
||
UINT32 CompareString32W(DWORD lcid, DWORD fdwStyle,
|
||
LPCWSTR s1, DWORD l1, LPCWSTR s2,DWORD l2)
|
||
{
|
||
int len,ret;
|
||
if(fdwStyle & NORM_IGNORENONSPACE)
|
||
fprintf(stdnimp,"CompareStringW:IGNORENONSPACE not supprted\n");
|
||
if(fdwStyle & NORM_IGNORESYMBOLS)
|
||
fprintf(stdnimp,"CompareStringW:IGNORESYMBOLS not supported\n");
|
||
|
||
/* Is strcmp defaulting to string sort or to word sort?? */
|
||
/* FIXME: Handle NORM_STRINGSORT */
|
||
l1 = (l1==-1)?lstrlen32W(s1):l1;
|
||
l2 = (l2==-1)?lstrlen32W(s2):l2;
|
||
len = l1<l2 ? l1:l2;
|
||
ret = (fdwStyle & NORM_IGNORECASE) ?
|
||
lstrncmpi32W(s1,s2,len) : lstrncmp32W(s1,s2,len);
|
||
/* not equal, return 1 or 3 */
|
||
if(ret!=0) return ret+2;
|
||
/* same len, return 2 */
|
||
if(l1==l2) return 2;
|
||
/* the longer one is lexically greater */
|
||
return (l1<l2)? 1 : 3;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* SetLocalInfoA (KERNEL32.499)
|
||
*/
|
||
BOOL SetLocaleInfoA(DWORD lcid, DWORD lctype, LPCSTR data) {
|
||
fprintf(stdnimp,"SetLocaleInfoA(%ld,%ld,%s)\n",lcid,lctype,data);
|
||
return TRUE;
|
||
}
|