mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dadf78ffa9
Sun May 17 16:23:56 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> * [file/profile.c] Fix the return value of PROFILE_GetSection * [misc/crtdll.c] Do _getdrive, fix _chdrive. * [misc/commdlg.c] First cut at ChooseColor[WA]. * [misc/network.c] Do something sensible for WNetGetDirectoryType16. Sun May 17 10:21:35 1998 Andreas Mohr <100.30936@germany.net> * [controls/menu.c] Fixed disabled sub menus with MF_BYPOSITION that were not disabled. * [misc/crtdll.c] [relay32/crtdll.spec] [include/winerror.h] Implemented fscanf, fsetpos, _access, _fpreset (thanks to Uwe Bonnes), and _ltoa. * [loader/task.c] MakeProcInstance: must use CURRENT_DS if hInst == NULL. * [misc/shell.c] SHELL_GetResourceTable, InternalExtractIcon: fixed broken .ICO handling * [windows/winpos.c] DeferWindowPos: removed "same parent" requirement. Which doc states that this is required ? Sat May 16 20:08:11 1998 Alexandre Julliard <julliard@lrc.epfl.ch> * [loader/module.c] [loader/ne/module.c] More NE module cleanups. * [loader/task.c] Fixed SwitchStackBack(). Fri May 15 10:04:27 1998 Marcus Meissner <marcus@jet.franken.de> * [configure.in][inlcude/acconfig.h] Fixed broken OSS check, added check for working sigaltstack, fixed broken statfs checks on some linux systems. * [files/directory.c][loader/pe_image.c][relay32/builtin.c] [loader/module.c] Added handling of win32 module pathnames. * [relay32/wnaspi32.spec] New file. * [misc/lzexpand.c] LZCopy auto-decompresses LZ compressed files, even if they are not specially flagged. Fixes some InstallShield problems. * [misc/registry.c] Some fixes for RegQueryInfoKey (reference program monkey.exe from Win32 SDK works now better). Probably still has faults. Fri May 15 08:58:58 1998 Martin Boehme <boehme@informatik.mu-luebeck.de> * [graphics/mapping.c] [include/dc.h] [include/gdi.h] [objects/dc.c] Reworked the way world transformations and mapping modes are handled so that both of these transformations can be computed in a single step. * [graphics/painting.c] [graphics/path.c] [include/path.h] More GDI path support. * [graphics/x11drv/graphics.c] Fixed the return value of GRAPH_DrawArc for the zero height / zero width case to reflect Windows' behaviour. * [include/windows.h] [relay32/gdi32.spec] [objects/dc.c] Implemented ModifyWorldTransform and CombineTransform. Tue May 14 18:03:46 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de> * [controls/commctrl.c][relay32/comctl32.spec] [controls/*.c][include/*.h] Implemented InitCommonControlsEx (dll version 4.72 compatible). InitCommonControls calls ImageCommonControlsEx. Registering code of the common controls had to be changed (see XXXX_Register functions). * [controls/status.c][include/commctrl.h][include/status.h] Implemented most new features and fixed the look and feel. * [contols/commctrl.c][include/commctrl.h][relay32/comctl32.spec] Implemented MenuHelp (incomplete). * [controls/status.c][controls/progress.c] Changed allocation strategy for control specific memory. * [controls/header.c][include/header.h][include/commctrl.h] First implementation of header control. * [windows/defwnd.c][windows/syscolors.c] Fixed default control colors for Win95 look. * [windows/nonclient.c] Fixed off by one error for Win95 look. Top border of child windows should be visible. * [misc/imagelist.h] Improved documentation and fixed some bugs. Thu May 14 15:42:21 1998 Robert Wilhelm <robert@physiol.med.tu-muenchen.de> * [relay32/crtdll.spec] Added hypot,j0,j1,jn and ceil. Wed May 13 19:10:10 1998 Pascal Cuoq <pcuoq@ens-lyon.fr> * [controls/listbox.c] Item height is now exactly font height. Wine listboxes now behave like Windows' when they are created without WS_VSCROLL but the program subsequently calls ShowScrollBar or SetScrollInfo. Wed May 13 18:33:01 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de> * [relay32/relay386.c] Restore ES also in the non-debug case. * [windows/event.c] Bugfix: Blocking TSXNextEvent could deadlock Wine. * [win32/process.c] [windows/message.c] Silly stubs for MsgWaitForMultipleObjects / PostThreadMessage that make some programs run better. * [windows/winproc.c] WINPROC_MapMsg32Ato16/16To32A: added WM_NOTIFY. * [win32/kernel32.c] Added 16->32 thunking and improved 32->16 thunking functions. * [tools/build.c] Added new variant of CallFrom16 stub for use with Win95 thunks. * [if1632/kernel.spec] [if1632/builtin.c] [win32/kernel32.c] Added a few undocumented KERNEL functions. * [loader/ne/module.c] [loader/ne/segment.c] Call DllEntryPoint for 16-bit DLLs with subsystem >= 4.0. * [win32/kernel32.spec] [win32/wow32.spec] [win32/ordinals.c] Use names from the Oct 94 beta release for undoc. functions. Wed May 13 14:18:26 1998 Matthew Becker <mbecker@glasscity.net> * [misc/registry.c] Code cleanup. * [misc/cpu.c] Commented out the registry puts temporarily. * [programs/regtest/*] New registry testing program. Tue May 12 22:54:03 1998 Michael Mess <michael@kawo2.rwth-aachen.de> * [multimedia/audio.c] ioctl's do not commute in /dev/dsp initialization. Tue May 12 20:11:42 1998 Karl Garrison <karlos@eznet.net> * [win32/console.c] Implemented SetConsoleTextAttribute, FillConsoleOutputCharacter. Improved cursor positioning. This allows for text colors in an xterm, rxvt, or console. Tue May 12 17:57:52 1998 Petter Reinholdtsen <pere@td.org.uit.no> * [Makefile.in] Create prefix/{bin|lib} directories if missing during install. Sun May 10 19:37:51 1998 Jan Willamowius <jan@janhh.shnet.org> * [multimedia/mmio.c] Have mmioSetBuffer return success (0), so Corel Draw 4 keeps working. (IO is still unbuffered) Wed May 6 16:57:55 1998 James Juran <jrj120@psu.edu> * [Makefile.in] [Make.rules.in] Changed "make clean" to remove `textedit` backup files (*%) * [controls/menu.c][graphics/x11drv/xfont.c][include/libres.h] [loader/main.c][loader/ne/module.c][scheduler/synchro.c] [win32/time.c][windows/winpos.c][include/windows.h] Fixed miscellaneous compilation warnings. * [misc/main.c][miscemu/main.c][include/main.h] Moved prototypes to new include file main.h, various cleanups. Tue May 5 21:05:06 1998 Morten Welinder <terra@diku.dk> * [misc/winsock.c] Don't refer to __FreeBSD__ when HAVE_STRERROR is meant. * [misc/debugstr.c] For debug_dumpstrSend, send strings to stderr. Tue May 5 21:47:40 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk> * [objects/region.c] Fix for REGION_RegionOp() if newReg is one of the source regions. Tue May 5 18:27:32 1998 Jim Peterson <jspeter@roanoke.infi.net> * [misc/main.c] Add '-h/-help' option and print WINE_RELEASE_INFO with usage message. * [misc/spy.c] Realign trace messages. Tue May 5 15:46:47 1998 Donnie V. Savage <dsavage@cisco.com> * [graphics/ddraw.c] Fixed compile warnings * [misc/winsock.c] Warnings should not be errors. Tue May 5 13:40:42 1998 Jim Peterson <jspeter@roanoke.infi.net> * [*/*] Remove many warnings through explicit casts, added #include's, and corrected printf formats. Tue May 5 05:18:12 1998 Insomnia (Stea Greene) <insomnia@core.binghamton.edu> * [graphics/ddraw.c] Kept unchanged portion of old palette when changing only a few palette entries. Really should only deallocate the changed cells. This make StarCraft work almost perfectly (sound overflows still cause static). Mon May 4 15:04:57 1998 Alexander V. Lukyanov <lav@long.yar.ru> * [misc/lstr.c] FormatMessage: terminate string on %0, undo linefeed strip.
2774 lines
81 KiB
C
2774 lines
81 KiB
C
/*
|
||
* OLE2NLS library
|
||
*
|
||
* Copyright 1995 Martin von Loewis
|
||
* Copyright 1998 David Lee Lambert
|
||
*/
|
||
|
||
#include <string.h>
|
||
#include <ctype.h>
|
||
#include <stdlib.h>
|
||
#include "windows.h"
|
||
#include "heap.h"
|
||
#include "ole.h"
|
||
#include "options.h"
|
||
#include "winnls.h"
|
||
#include "winreg.h"
|
||
#include "winerror.h"
|
||
#include "debug.h"
|
||
|
||
/* Locale name to id map. used by EnumSystemLocales, GetLocalInfoA
|
||
* MUST contain all #defines from winnls.h
|
||
* last entry has NULL name, 0 id.
|
||
*/
|
||
#define LOCALE_ENTRY(x) {#x,LOCALE_##x}
|
||
static struct tagLOCALE_NAME2ID {
|
||
char *name;
|
||
DWORD id;
|
||
} locale_name2id[]= {
|
||
LOCALE_ENTRY(ILANGUAGE),
|
||
LOCALE_ENTRY(SLANGUAGE),
|
||
LOCALE_ENTRY(SENGLANGUAGE),
|
||
LOCALE_ENTRY(SABBREVLANGNAME),
|
||
LOCALE_ENTRY(SNATIVELANGNAME),
|
||
LOCALE_ENTRY(ICOUNTRY),
|
||
LOCALE_ENTRY(SCOUNTRY),
|
||
LOCALE_ENTRY(SENGCOUNTRY),
|
||
LOCALE_ENTRY(SABBREVCTRYNAME),
|
||
LOCALE_ENTRY(SNATIVECTRYNAME),
|
||
LOCALE_ENTRY(IDEFAULTLANGUAGE),
|
||
LOCALE_ENTRY(IDEFAULTCOUNTRY),
|
||
LOCALE_ENTRY(IDEFAULTCODEPAGE),
|
||
LOCALE_ENTRY(IDEFAULTANSICODEPAGE),
|
||
LOCALE_ENTRY(SLIST),
|
||
LOCALE_ENTRY(IMEASURE),
|
||
LOCALE_ENTRY(SDECIMAL),
|
||
LOCALE_ENTRY(STHOUSAND),
|
||
LOCALE_ENTRY(SGROUPING),
|
||
LOCALE_ENTRY(IDIGITS),
|
||
LOCALE_ENTRY(ILZERO),
|
||
LOCALE_ENTRY(INEGNUMBER),
|
||
LOCALE_ENTRY(SNATIVEDIGITS),
|
||
LOCALE_ENTRY(SCURRENCY),
|
||
LOCALE_ENTRY(SINTLSYMBOL),
|
||
LOCALE_ENTRY(SMONDECIMALSEP),
|
||
LOCALE_ENTRY(SMONTHOUSANDSEP),
|
||
LOCALE_ENTRY(SMONGROUPING),
|
||
LOCALE_ENTRY(ICURRDIGITS),
|
||
LOCALE_ENTRY(IINTLCURRDIGITS),
|
||
LOCALE_ENTRY(ICURRENCY),
|
||
LOCALE_ENTRY(INEGCURR),
|
||
LOCALE_ENTRY(SDATE),
|
||
LOCALE_ENTRY(STIME),
|
||
LOCALE_ENTRY(SSHORTDATE),
|
||
LOCALE_ENTRY(SLONGDATE),
|
||
LOCALE_ENTRY(STIMEFORMAT),
|
||
LOCALE_ENTRY(IDATE),
|
||
LOCALE_ENTRY(ILDATE),
|
||
LOCALE_ENTRY(ITIME),
|
||
LOCALE_ENTRY(ITIMEMARKPOSN),
|
||
LOCALE_ENTRY(ICENTURY),
|
||
LOCALE_ENTRY(ITLZERO),
|
||
LOCALE_ENTRY(IDAYLZERO),
|
||
LOCALE_ENTRY(IMONLZERO),
|
||
LOCALE_ENTRY(S1159),
|
||
LOCALE_ENTRY(S2359),
|
||
LOCALE_ENTRY(ICALENDARTYPE),
|
||
LOCALE_ENTRY(IOPTIONALCALENDAR),
|
||
LOCALE_ENTRY(IFIRSTDAYOFWEEK),
|
||
LOCALE_ENTRY(IFIRSTWEEKOFYEAR),
|
||
LOCALE_ENTRY(SDAYNAME1),
|
||
LOCALE_ENTRY(SDAYNAME2),
|
||
LOCALE_ENTRY(SDAYNAME3),
|
||
LOCALE_ENTRY(SDAYNAME4),
|
||
LOCALE_ENTRY(SDAYNAME5),
|
||
LOCALE_ENTRY(SDAYNAME6),
|
||
LOCALE_ENTRY(SDAYNAME7),
|
||
LOCALE_ENTRY(SABBREVDAYNAME1),
|
||
LOCALE_ENTRY(SABBREVDAYNAME2),
|
||
LOCALE_ENTRY(SABBREVDAYNAME3),
|
||
LOCALE_ENTRY(SABBREVDAYNAME4),
|
||
LOCALE_ENTRY(SABBREVDAYNAME5),
|
||
LOCALE_ENTRY(SABBREVDAYNAME6),
|
||
LOCALE_ENTRY(SABBREVDAYNAME7),
|
||
LOCALE_ENTRY(SMONTHNAME1),
|
||
LOCALE_ENTRY(SMONTHNAME2),
|
||
LOCALE_ENTRY(SMONTHNAME3),
|
||
LOCALE_ENTRY(SMONTHNAME4),
|
||
LOCALE_ENTRY(SMONTHNAME5),
|
||
LOCALE_ENTRY(SMONTHNAME6),
|
||
LOCALE_ENTRY(SMONTHNAME7),
|
||
LOCALE_ENTRY(SMONTHNAME8),
|
||
LOCALE_ENTRY(SMONTHNAME9),
|
||
LOCALE_ENTRY(SMONTHNAME10),
|
||
LOCALE_ENTRY(SMONTHNAME11),
|
||
LOCALE_ENTRY(SMONTHNAME12),
|
||
LOCALE_ENTRY(SMONTHNAME13),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME1),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME2),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME3),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME4),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME5),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME6),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME7),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME8),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME9),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME10),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME11),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME12),
|
||
LOCALE_ENTRY(SABBREVMONTHNAME13),
|
||
LOCALE_ENTRY(SPOSITIVESIGN),
|
||
LOCALE_ENTRY(SNEGATIVESIGN),
|
||
LOCALE_ENTRY(IPOSSIGNPOSN),
|
||
LOCALE_ENTRY(INEGSIGNPOSN),
|
||
LOCALE_ENTRY(IPOSSYMPRECEDES),
|
||
LOCALE_ENTRY(IPOSSEPBYSPACE),
|
||
LOCALE_ENTRY(INEGSYMPRECEDES),
|
||
LOCALE_ENTRY(INEGSEPBYSPACE),
|
||
/* LOCALE_ENTRY(FONTSIGNATURE),*/
|
||
{NULL,0},
|
||
};
|
||
|
||
const struct map_lcid2str {
|
||
LCID langid;
|
||
const char *langname;
|
||
} languages[]={
|
||
{0x0401,"Arabisch"},
|
||
{0x0402,"Bulgarisch"},
|
||
{0x0403,"Katalanisch"},
|
||
{0x0404,"Traditionales Chinesisch"},
|
||
{0x0405,"Tschecisch"},
|
||
{0x0406,"Ddnisch"},
|
||
{0x0407,"Deutsch"},
|
||
{0x0408,"Griechisch"},
|
||
{0x0409,"Amerikanisches Englisch"},
|
||
{0x040A,"Kastilisches Spanisch"},
|
||
{0x040B,"Finnisch"},
|
||
{0x040C,"Franzvsisch"},
|
||
{0x040D,"Hebrdisch"},
|
||
{0x040E,"Ungarisch"},
|
||
{0x040F,"Isldndisch"},
|
||
{0x0410,"Italienisch"},
|
||
{0x0411,"Japanisch"},
|
||
{0x0412,"Koreanisch"},
|
||
{0x0413,"Niederldndisch"},
|
||
{0x0414,"Norwegisch-Bokmal"},
|
||
{0x0415,"Polnisch"},
|
||
{0x0416,"Brasilianisches Portugiesisch"},
|
||
{0x0417,"Rdtoromanisch"},
|
||
{0x0418,"Rumdnisch"},
|
||
{0x0419,"Russisch"},
|
||
{0x041A,"Kroatoserbisch (lateinisch)"},
|
||
{0x041B,"Slowenisch"},
|
||
{0x041C,"Albanisch"},
|
||
{0x041D,"Schwedisch"},
|
||
{0x041E,"Thai"},
|
||
{0x041F,"T|rkisch"},
|
||
{0x0420,"Urdu"},
|
||
{0x0421,"Bahasa"},
|
||
{0x0804,"Vereinfachtes Chinesisch"},
|
||
{0x0807,"Schweizerdeutsch"},
|
||
{0x0809,"Britisches Englisch"},
|
||
{0x080A,"Mexikanisches Spanisch"},
|
||
{0x080C,"Belgisches Franzvsisch"},
|
||
{0x0810,"Schweizerisches Italienisch"},
|
||
{0x0813,"Belgisches Niederldndisch"},
|
||
{0x0814,"Norgwegisch-Nynorsk"},
|
||
{0x0816,"Portugiesisch"},
|
||
{0x081A,"Serbokratisch (kyrillisch)"},
|
||
{0x0C1C,"Kanadisches Franzvsisch"},
|
||
{0x100C,"Schweizerisches Franzvsisch"},
|
||
{0x0000,"Unbekannt"},
|
||
};
|
||
|
||
/***********************************************************************
|
||
* GetUserDefaultLCID (OLE2NLS.1)
|
||
*/
|
||
LCID WINAPI GetUserDefaultLCID()
|
||
{
|
||
/* Default sorting, neutral sublanguage */
|
||
switch(Options.language)
|
||
{
|
||
/* case LANG_Bu: return 0x02; */ /* Bulgarian */
|
||
/* case LANG_Ch: return 0x04; */ /* Chinese */
|
||
case LANG_Cz: return 0x05; /* Czech */
|
||
case LANG_Da: return 0x06; /* Danish */
|
||
case LANG_De: return 0x07; /* German */
|
||
/* case LANG_Gr: return 0x08; */ /* Greek */
|
||
case LANG_En: return 0x09; /* English */
|
||
case LANG_Es: return 0x0a; /* Spanish */
|
||
case LANG_Fi: return 0x0b; /* Finnish */
|
||
case LANG_Fr: return 0x0c; /* French */
|
||
case LANG_Hu: return 0x0e; /* Hungarian */
|
||
/* case LANG_Ic: return 0x0f; */ /* Icelandic */
|
||
case LANG_It: return 0x10; /* Italian */
|
||
/* case LANG_Jp: return 0x11; */ /* Japanese */
|
||
case LANG_Ko: return 0x12; /* Korean */
|
||
/* case LANG_Du: return 0x13; */ /* Dutch */
|
||
case LANG_No: return 0x14; /* Norwegian */
|
||
case LANG_Pl: return 0x15; /* Polish */
|
||
case LANG_Po: return 0x16; /* Portuguese */
|
||
/* case LANG_Ro: return 0x18; */ /* Romanian */
|
||
/* case LANG_Ru: return 0x19; */ /* Russian */
|
||
/* case LANG_Cr: return 0x1a; */ /* Croatian */
|
||
/* case LANG_Sl: return 0x1b; */ /* Slovak */
|
||
case LANG_Sw: return 0x1d; /* Swedish */
|
||
/* case LANG_Tu: return 0x1f; */ /* Turkish */
|
||
/* case LANG_Sv: return 0x24; */ /* Slovenian */
|
||
case LANG_Eo: return 0x25; /* Esperanto (not official) */
|
||
case LANG_Ca: return 0x26; /* Catalan */
|
||
|
||
default:
|
||
return 0x00; /* Neutral language */
|
||
}
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetSystemDefaultLCID (OLE2NLS.2)
|
||
*/
|
||
LCID WINAPI GetSystemDefaultLCID()
|
||
{
|
||
return GetUserDefaultLCID();
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetUserDefaultLangID (OLE2NLS.3)
|
||
*/
|
||
LANGID WINAPI GetUserDefaultLangID()
|
||
{
|
||
return (WORD)GetUserDefaultLCID();
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetSystemDefaultLangID (OLE2NLS.4)
|
||
*/
|
||
LANGID WINAPI GetSystemDefaultLangID()
|
||
{
|
||
return GetUserDefaultLangID();
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetLocaleInfoA (OLE2NLS.5)
|
||
* Is the last parameter really WORD for Win16?
|
||
*/
|
||
INT16 WINAPI GetLocaleInfo16(LCID lcid,LCTYPE LCType,LPSTR buf,INT16 len)
|
||
{
|
||
return GetLocaleInfo32A(lcid,LCType,buf,len);
|
||
}
|
||
|
||
INT32 WINAPI GetLocaleInfo32A(LCID lcid,LCTYPE LCType,LPSTR buf,INT32 len)
|
||
{
|
||
char *retString;
|
||
int found,i;
|
||
|
||
TRACE(ole,"(%8lX,%8lX,%p,%4X)\n",
|
||
lcid,LCType,buf,len);
|
||
|
||
LCType &= ~(LOCALE_NOUSEROVERRIDE|LOCALE_USE_CP_ACP);
|
||
|
||
/* 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;
|
||
/* If we are through all of this, retLen should not be zero anymore.
|
||
If it is, the value is not supported */
|
||
i=0;
|
||
while (locale_name2id[i].name!=NULL) {
|
||
if (LCType == locale_name2id[i].id) {
|
||
retString = locale_name2id[i].name;
|
||
break;
|
||
}
|
||
i++;
|
||
}
|
||
if (!retString) {
|
||
WARN(ole,"Unkown LC type %lX\n",LCType);
|
||
return 0;
|
||
}
|
||
|
||
#define LOCVAL(type,value) case type:retString=value;break;
|
||
|
||
/* Now, the language specific definitions. They don't have to be
|
||
complete */
|
||
found=1;
|
||
switch(Options.language)
|
||
{
|
||
case LANG_De:
|
||
switch (LCType) {
|
||
/* 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")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE,"851")
|
||
/* Dunno
|
||
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)
|
||
*/
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(De) */
|
||
|
||
case LANG_Da:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE,"6")
|
||
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,"DK")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Danmark")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"6")
|
||
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, "3")
|
||
LOCVAL(LOCALE_INEGSIGNPOSN, "3")
|
||
LOCVAL(LOCALE_IPOSSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_IPOSSEPBYSPACE, "0")
|
||
LOCVAL(LOCALE_INEGSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_INEGSEPBYSPACE, "0")
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Da) */
|
||
|
||
case LANG_En:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE, "0409")
|
||
LOCVAL(LOCALE_SLANGUAGE, "English (United States)")
|
||
LOCVAL(LOCALE_SENGLANGUAGE, "English")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME, "ENU")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME, "English")
|
||
LOCVAL(LOCALE_ICOUNTRY, "1")
|
||
LOCVAL(LOCALE_SCOUNTRY, "United States")
|
||
LOCVAL(LOCALE_SENGCOUNTRY, "United States")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME, "USA")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME, "United States")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE, "0409")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY, "1")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE, "437")
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE, "1252")
|
||
LOCVAL(LOCALE_SLIST, ",")
|
||
LOCVAL(LOCALE_IMEASURE, "1")
|
||
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, "$")
|
||
LOCVAL(LOCALE_SINTLSYMBOL, "USD")
|
||
LOCVAL(LOCALE_SMONDECIMALSEP, ".")
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP, ",")
|
||
LOCVAL(LOCALE_SMONGROUPING, "3;0")
|
||
LOCVAL(LOCALE_ICURRDIGITS, "2")
|
||
LOCVAL(LOCALE_IINTLCURRDIGITS, "2")
|
||
LOCVAL(LOCALE_ICURRENCY, "0")
|
||
LOCVAL(LOCALE_INEGCURR, "0")
|
||
LOCVAL(LOCALE_SDATE, "/")
|
||
LOCVAL(LOCALE_STIME, ":")
|
||
LOCVAL(LOCALE_SSHORTDATE, "M/d/yy")
|
||
LOCVAL(LOCALE_SLONGDATE, "dddd, MMMM dd, yyyy")
|
||
LOCVAL(LOCALE_STIMEFORMAT, "h:mm:ss tt")
|
||
LOCVAL(LOCALE_IDATE, "0")
|
||
LOCVAL(LOCALE_ILDATE, "0")
|
||
LOCVAL(LOCALE_ITIME, "0")
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN, "0")
|
||
LOCVAL(LOCALE_ICENTURY, "0")
|
||
LOCVAL(LOCALE_ITLZERO, "0")
|
||
LOCVAL(LOCALE_IDAYLZERO, "0")
|
||
LOCVAL(LOCALE_IMONLZERO, "0")
|
||
LOCVAL(LOCALE_S1159, "AM")
|
||
LOCVAL(LOCALE_S2359, "PM")
|
||
LOCVAL(LOCALE_ICALENDARTYPE, "1")
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR, "0")
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK, "6")
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR, "0")
|
||
LOCVAL(LOCALE_SDAYNAME1, "Monday")
|
||
LOCVAL(LOCALE_SDAYNAME2, "Tuesday")
|
||
LOCVAL(LOCALE_SDAYNAME3, "Wednesday")
|
||
LOCVAL(LOCALE_SDAYNAME4, "Thursday")
|
||
LOCVAL(LOCALE_SDAYNAME5, "Friday")
|
||
LOCVAL(LOCALE_SDAYNAME6, "Saturday")
|
||
LOCVAL(LOCALE_SDAYNAME7, "Sunday")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1, "Mon")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2, "Tue")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3, "Wed")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4, "Thu")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5, "Fri")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6, "Sat")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7, "Sun")
|
||
LOCVAL(LOCALE_SMONTHNAME1, "January")
|
||
LOCVAL(LOCALE_SMONTHNAME2, "February")
|
||
LOCVAL(LOCALE_SMONTHNAME3, "March")
|
||
LOCVAL(LOCALE_SMONTHNAME4, "April")
|
||
LOCVAL(LOCALE_SMONTHNAME5, "May")
|
||
LOCVAL(LOCALE_SMONTHNAME6, "June")
|
||
LOCVAL(LOCALE_SMONTHNAME7, "July")
|
||
LOCVAL(LOCALE_SMONTHNAME8, "August")
|
||
LOCVAL(LOCALE_SMONTHNAME9, "September")
|
||
LOCVAL(LOCALE_SMONTHNAME10, "October")
|
||
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, "May")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6, "Jun")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7, "Jul")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8, "Aug")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9, "Sep")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10, "Oct")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11, "Nov")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12, "Dec")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME13, "")
|
||
LOCVAL(LOCALE_SPOSITIVESIGN, "")
|
||
LOCVAL(LOCALE_SNEGATIVESIGN, "-")
|
||
LOCVAL(LOCALE_IPOSSIGNPOSN, "3")
|
||
LOCVAL(LOCALE_INEGSIGNPOSN, "0")
|
||
LOCVAL(LOCALE_IPOSSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_IPOSSEPBYSPACE, "0")
|
||
LOCVAL(LOCALE_INEGSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_INEGSEPBYSPACE, "0")
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(En) */
|
||
|
||
case LANG_Eo:
|
||
switch (LCType) {
|
||
/* 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) */
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Eo) */
|
||
|
||
case LANG_Fi:
|
||
switch (LCType) {
|
||
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, "AM")
|
||
LOCVAL(LOCALE_S2359, "PM")
|
||
/*
|
||
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)
|
||
*/
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Fi) */
|
||
|
||
case LANG_It:
|
||
switch (LCType) {
|
||
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)
|
||
*/
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(It) */
|
||
|
||
case 0x0809:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE, "0809")
|
||
LOCVAL(LOCALE_SLANGUAGE, "English (United Kingdom)")
|
||
LOCVAL(LOCALE_SENGLANGUAGE, "English")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME, "ENG")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME, "English")
|
||
LOCVAL(LOCALE_ICOUNTRY, "44")
|
||
LOCVAL(LOCALE_SCOUNTRY, "United Kingdom")
|
||
LOCVAL(LOCALE_SENGCOUNTRY, "United Kingdom")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME, "GBR")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME, "United Kingdom")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE, "0809")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY, "44")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE, "850")
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE, "1252")
|
||
LOCVAL(LOCALE_SLIST, ",")
|
||
LOCVAL(LOCALE_IMEASURE, "0")
|
||
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, "<EFBFBD>")
|
||
LOCVAL(LOCALE_SINTLSYMBOL, "GBP")
|
||
LOCVAL(LOCALE_SMONDECIMALSEP, ".")
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP, ",")
|
||
LOCVAL(LOCALE_SMONGROUPING, "3;0")
|
||
LOCVAL(LOCALE_ICURRDIGITS, "2")
|
||
LOCVAL(LOCALE_IINTLCURRDIGITS, "2")
|
||
LOCVAL(LOCALE_ICURRENCY, "0")
|
||
LOCVAL(LOCALE_INEGCURR, "1")
|
||
LOCVAL(LOCALE_SDATE, "/")
|
||
LOCVAL(LOCALE_STIME, ":")
|
||
LOCVAL(LOCALE_SSHORTDATE, "dd/MM/yy")
|
||
LOCVAL(LOCALE_SLONGDATE, "dd MMMM yyyy")
|
||
LOCVAL(LOCALE_STIMEFORMAT, "HH:mm:ss")
|
||
LOCVAL(LOCALE_IDATE, "1")
|
||
LOCVAL(LOCALE_ILDATE, "1")
|
||
LOCVAL(LOCALE_ITIME, "1")
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN, "0")
|
||
LOCVAL(LOCALE_ICENTURY, "0")
|
||
LOCVAL(LOCALE_ITLZERO, "1")
|
||
LOCVAL(LOCALE_IDAYLZERO, "1")
|
||
LOCVAL(LOCALE_IMONLZERO, "1")
|
||
LOCVAL(LOCALE_S1159, "AM")
|
||
LOCVAL(LOCALE_S2359, "PM")
|
||
LOCVAL(LOCALE_ICALENDARTYPE, "1")
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR, "0")
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK, "0")
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR, "0")
|
||
LOCVAL(LOCALE_SDAYNAME1, "Monday")
|
||
LOCVAL(LOCALE_SDAYNAME2, "Tuesday")
|
||
LOCVAL(LOCALE_SDAYNAME3, "Wednesday")
|
||
LOCVAL(LOCALE_SDAYNAME4, "Thursday")
|
||
LOCVAL(LOCALE_SDAYNAME5, "Friday")
|
||
LOCVAL(LOCALE_SDAYNAME6, "Saturday")
|
||
LOCVAL(LOCALE_SDAYNAME7, "Sunday")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1, "Mon")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2, "Tue")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3, "Wed")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4, "Thu")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5, "Fri")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6, "Sat")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7, "Sun")
|
||
LOCVAL(LOCALE_SMONTHNAME1, "January")
|
||
LOCVAL(LOCALE_SMONTHNAME2, "February")
|
||
LOCVAL(LOCALE_SMONTHNAME3, "March")
|
||
LOCVAL(LOCALE_SMONTHNAME4, "April")
|
||
LOCVAL(LOCALE_SMONTHNAME5, "May")
|
||
LOCVAL(LOCALE_SMONTHNAME6, "June")
|
||
LOCVAL(LOCALE_SMONTHNAME7, "July")
|
||
LOCVAL(LOCALE_SMONTHNAME8, "August")
|
||
LOCVAL(LOCALE_SMONTHNAME9, "September")
|
||
LOCVAL(LOCALE_SMONTHNAME10, "October")
|
||
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, "May")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6, "Jun")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7, "Jul")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8, "Aug")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9, "Sep")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10, "Oct")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11, "Nov")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12, "Dec")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME13, "")
|
||
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")
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(0x0809) (U.K. English) */
|
||
|
||
case LANG_Ko: /* string using codepage 949 */
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE,"18")
|
||
LOCVAL(LOCALE_SLANGUAGE,"\307\321\261\271\276\356")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Korean")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"KOR")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"\307\321\261\271\276\356")
|
||
LOCVAL(LOCALE_ICOUNTRY,"82")
|
||
LOCVAL(LOCALE_SCOUNTRY,"\264\353\307\321\271\316\261\271")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Korea (South)")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"KOR")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"\264\353\307\321\271\316\261\271")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"18")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"82")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE,"949")
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE,"949")
|
||
LOCVAL(LOCALE_SLIST,",")
|
||
LOCVAL(LOCALE_IMEASURE,"0")
|
||
LOCVAL(LOCALE_SDECIMAL,".")
|
||
LOCVAL(LOCALE_STHOUSAND,",")
|
||
LOCVAL(LOCALE_SGROUPING,"3;0")
|
||
LOCVAL(LOCALE_IDIGITS,"2")
|
||
LOCVAL(LOCALE_ILZERO,"0")
|
||
LOCVAL(LOCALE_INEGNUMBER,"1")
|
||
LOCVAL(LOCALE_SNATIVEDIGITS,"0123456789")
|
||
LOCVAL(LOCALE_SCURRENCY,"\\")
|
||
LOCVAL(LOCALE_SINTLSYMBOL,"Won")
|
||
LOCVAL(LOCALE_SMONDECIMALSEP,".")
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP,",")
|
||
LOCVAL(LOCALE_SMONGROUPING,"3;0")
|
||
LOCVAL(LOCALE_ICURRDIGITS,"2")
|
||
LOCVAL(LOCALE_IINTLCURRDIGITS,"2")
|
||
LOCVAL(LOCALE_ICURRENCY,"3")
|
||
LOCVAL(LOCALE_INEGCURR,"8")
|
||
LOCVAL(LOCALE_SDATE,"/")
|
||
LOCVAL(LOCALE_STIME,":")
|
||
LOCVAL(LOCALE_SSHORTDATE,"yyyy/MM/dd")
|
||
LOCVAL(LOCALE_SLONGDATE,"yyyy/MM/dd")
|
||
LOCVAL(LOCALE_STIMEFORMAT,"h:mm:ss tt")
|
||
LOCVAL(LOCALE_IDATE,"1")
|
||
LOCVAL(LOCALE_ILDATE,"1")
|
||
LOCVAL(LOCALE_ITIME,"1")
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN,"0")
|
||
LOCVAL(LOCALE_ICENTURY,"0")
|
||
LOCVAL(LOCALE_ITLZERO,"0")
|
||
LOCVAL(LOCALE_IDAYLZERO,"0")
|
||
LOCVAL(LOCALE_IMONLZERO,"0")
|
||
LOCVAL(LOCALE_S1159,"\277\300\300\374")
|
||
LOCVAL(LOCALE_S2359,"\277\300\310\304")
|
||
LOCVAL(LOCALE_ICALENDARTYPE,"1")
|
||
/* Korean Tangun Era calendar */
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR,"5")
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK,"6")
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR,"0")
|
||
LOCVAL(LOCALE_SDAYNAME1,"\277\371\277\344\300\317")
|
||
LOCVAL(LOCALE_SDAYNAME2,"\310\255\277\344\300\317")
|
||
LOCVAL(LOCALE_SDAYNAME3,"\274\366\277\344\300\317")
|
||
LOCVAL(LOCALE_SDAYNAME4,"\270\361\277\344\300\317")
|
||
LOCVAL(LOCALE_SDAYNAME5,"\261\335\277\344\300\317")
|
||
LOCVAL(LOCALE_SDAYNAME6,"\305\344\277\344\300\317")
|
||
LOCVAL(LOCALE_SDAYNAME7,"\300\317\277\344\300\317")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"\277\371")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"\310\255")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"\274\366")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"\270\361")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"\261\335")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"\305\344")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"\300\317")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"1\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"2\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"3\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"4\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"5\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"6\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"7\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"8\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"9\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"10\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"11\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"12\277\371")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"1\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"2\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"3\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"4\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"5\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"6\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"7\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"8\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"9\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"10\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11,"11\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12,"12\277\371")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SPOSITIVESIGN,"")
|
||
LOCVAL(LOCALE_SNEGATIVESIGN,"-")
|
||
LOCVAL(LOCALE_IPOSSIGNPOSN,"3")
|
||
LOCVAL(LOCALE_INEGSIGNPOSN,"0")
|
||
LOCVAL(LOCALE_IPOSSYMPRECEDES,"3")
|
||
LOCVAL(LOCALE_IPOSSEPBYSPACE,"0")
|
||
LOCVAL(LOCALE_INEGSYMPRECEDES,"3")
|
||
LOCVAL(LOCALE_INEGSEPBYSPACE,"0")
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Ko) */
|
||
|
||
case LANG_Hu:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE,"9")
|
||
LOCVAL(LOCALE_SLANGUAGE,"Magyar")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Hungarian")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"hun")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Magyar")
|
||
LOCVAL(LOCALE_ICOUNTRY,"36")
|
||
LOCVAL(LOCALE_SCOUNTRY,"Magyarorsz<EFBFBD>g")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Hungary")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"Hu")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Magyarorsz<EFBFBD>g")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"9")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"36")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE,"852")
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE,"852")
|
||
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,"Ft")
|
||
/*
|
||
LOCVAL(LOCALE_SINTLSYMBOL)
|
||
LOCVAL(LOCALE_SMONDECIMALSEP)
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP)
|
||
LOCVAL(LOCALE_SMONGROUPING)
|
||
*/
|
||
LOCVAL(LOCALE_ICURRDIGITS,"0")
|
||
/*
|
||
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, yyyy. MMMM d")
|
||
/*
|
||
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,"H<EFBFBD>tf<EFBFBD>")
|
||
LOCVAL(LOCALE_SDAYNAME2,"Kedd")
|
||
LOCVAL(LOCALE_SDAYNAME3,"Szerda")
|
||
LOCVAL(LOCALE_SDAYNAME4,"Cs<EFBFBD>t<EFBFBD>rt<EFBFBD>k")
|
||
LOCVAL(LOCALE_SDAYNAME5,"P<EFBFBD>ntek")
|
||
LOCVAL(LOCALE_SDAYNAME6,"Szombat")
|
||
LOCVAL(LOCALE_SDAYNAME7,"Vas<EFBFBD>rnap")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"H<EFBFBD>")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"Ke")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"Se")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"Cs")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"P<EFBFBD>")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"So")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"Va")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"Janu<EFBFBD>r")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"Febru<EFBFBD>r")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"M<EFBFBD>rcius")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"<EFBFBD>prilis")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"M<EFBFBD>jus")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"J<EFBFBD>nius")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"J<EFBFBD>lius")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"Augusztus")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"Szeptember")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"Okt<EFBFBD>ber")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"November")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"December")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"Jan")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"Feb")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"M<EFBFBD>r")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"<EFBFBD>pr")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"M<EFBFBD>j")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"J<EFBFBD>n")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"J<EFBFBD>l")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"Aug")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"Sze")
|
||
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)
|
||
*/
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(En) */
|
||
|
||
case LANG_Pl:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE,"9")
|
||
LOCVAL(LOCALE_SLANGUAGE,"Polski")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Polish")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME, "pol")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Polski")
|
||
LOCVAL(LOCALE_ICOUNTRY,"49")
|
||
LOCVAL(LOCALE_SCOUNTRY,"Polska")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Poland")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"Pl")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Polska")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"9")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY,"49")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE,"1252")
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE,"1252")
|
||
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,"z\xB3")
|
||
/*
|
||
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,"Poniedzia\263ek")
|
||
LOCVAL(LOCALE_SDAYNAME2,"Wtorek")
|
||
LOCVAL(LOCALE_SDAYNAME3,"Sroda")
|
||
LOCVAL(LOCALE_SDAYNAME4,"Czwartek")
|
||
LOCVAL(LOCALE_SDAYNAME5,"Pi\xB9tek")
|
||
LOCVAL(LOCALE_SDAYNAME6,"Sobota")
|
||
LOCVAL(LOCALE_SDAYNAME7,"Niedziela")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1,"Po")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2,"Wt")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3,"Sr")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4,"Cz")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5,"Pt")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6,"So")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7,"Ni")
|
||
LOCVAL(LOCALE_SMONTHNAME1,"Stycze\xF1")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"Luty")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"Marzec")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"Kwiecie\xF1")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"Maj")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"Czerwiec")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"Lipiec")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"Sierpie\xF1")
|
||
LOCVAL(LOCALE_SMONTHNAME9,"Wrzesie\xF1")
|
||
LOCVAL(LOCALE_SMONTHNAME10,"Pa\237dziernik")
|
||
LOCVAL(LOCALE_SMONTHNAME11,"Listapad")
|
||
LOCVAL(LOCALE_SMONTHNAME12,"Grudzie\xF1")
|
||
LOCVAL(LOCALE_SMONTHNAME13,"")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1,"Sty")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2,"Lut")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3,"Mar")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4,"Kwi")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5,"Maj")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6,"Cze")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7,"Lip")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8,"Sie")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9,"Wrz")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10,"Pa\x9F")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11,"Lis")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12,"Gru")
|
||
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)
|
||
*/
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Pl) */
|
||
|
||
case LANG_Po:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE, "0416")
|
||
LOCVAL(LOCALE_SLANGUAGE, "Portugu\352s (Brasil)")
|
||
LOCVAL(LOCALE_SENGLANGUAGE, "Protuguese")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME, "POR")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME, "Portugu\352s")
|
||
LOCVAL(LOCALE_ICOUNTRY, "1")
|
||
LOCVAL(LOCALE_SCOUNTRY, "Brasil")
|
||
LOCVAL(LOCALE_SENGCOUNTRY, "Brazil")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME, "BRA")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME, "Brasil")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE, "0409")
|
||
LOCVAL(LOCALE_IDEFAULTCOUNTRY, "1")
|
||
LOCVAL(LOCALE_IDEFAULTCODEPAGE, "437")
|
||
LOCVAL(LOCALE_IDEFAULTANSICODEPAGE, "1252")
|
||
LOCVAL(LOCALE_SLIST, ";")
|
||
LOCVAL(LOCALE_IMEASURE, "1")
|
||
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, "$")
|
||
LOCVAL(LOCALE_SINTLSYMBOL, "USD")
|
||
LOCVAL(LOCALE_SMONDECIMALSEP, ",")
|
||
LOCVAL(LOCALE_SMONTHOUSANDSEP, ".")
|
||
LOCVAL(LOCALE_SMONGROUPING, "3;0")
|
||
LOCVAL(LOCALE_ICURRDIGITS, "2")
|
||
LOCVAL(LOCALE_IINTLCURRDIGITS, "2")
|
||
LOCVAL(LOCALE_ICURRENCY, "0")
|
||
LOCVAL(LOCALE_INEGCURR, "0")
|
||
LOCVAL(LOCALE_SDATE, "/")
|
||
LOCVAL(LOCALE_STIME, ":")
|
||
LOCVAL(LOCALE_SSHORTDATE, "dd/MM/yy")
|
||
LOCVAL(LOCALE_SLONGDATE, "dddd, MMMM dd, yyyy")
|
||
LOCVAL(LOCALE_STIMEFORMAT, "h:mm:ss tt")
|
||
LOCVAL(LOCALE_IDATE, "0")
|
||
LOCVAL(LOCALE_ILDATE, "0")
|
||
LOCVAL(LOCALE_ITIME, "0")
|
||
LOCVAL(LOCALE_ITIMEMARKPOSN, "0")
|
||
LOCVAL(LOCALE_ICENTURY, "0")
|
||
LOCVAL(LOCALE_ITLZERO, "0")
|
||
LOCVAL(LOCALE_IDAYLZERO, "0")
|
||
LOCVAL(LOCALE_IMONLZERO, "0")
|
||
LOCVAL(LOCALE_S1159, "AM")
|
||
LOCVAL(LOCALE_S2359, "PM")
|
||
LOCVAL(LOCALE_ICALENDARTYPE, "1")
|
||
LOCVAL(LOCALE_IOPTIONALCALENDAR, "0")
|
||
LOCVAL(LOCALE_IFIRSTDAYOFWEEK, "6")
|
||
LOCVAL(LOCALE_IFIRSTWEEKOFYEAR, "0")
|
||
LOCVAL(LOCALE_SDAYNAME1, "Segunda")
|
||
LOCVAL(LOCALE_SDAYNAME2, "Ter\347a")
|
||
LOCVAL(LOCALE_SDAYNAME3, "Quarta")
|
||
LOCVAL(LOCALE_SDAYNAME4, "Quinta")
|
||
LOCVAL(LOCALE_SDAYNAME5, "Sexta")
|
||
LOCVAL(LOCALE_SDAYNAME6, "S\341bado")
|
||
LOCVAL(LOCALE_SDAYNAME7, "Domingo")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME1, "Seg")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME2, "Ter")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME3, "Qua")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME4, "Qui")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME5, "Sex")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME6, "S\341b")
|
||
LOCVAL(LOCALE_SABBREVDAYNAME7, "Dom")
|
||
LOCVAL(LOCALE_SMONTHNAME1, "Janeiro")
|
||
LOCVAL(LOCALE_SMONTHNAME2, "Fevereiro")
|
||
LOCVAL(LOCALE_SMONTHNAME3, "Mar\347o")
|
||
LOCVAL(LOCALE_SMONTHNAME4, "Abril")
|
||
LOCVAL(LOCALE_SMONTHNAME5, "Maio")
|
||
LOCVAL(LOCALE_SMONTHNAME6, "Junho")
|
||
LOCVAL(LOCALE_SMONTHNAME7, "Julho")
|
||
LOCVAL(LOCALE_SMONTHNAME8, "Agosto")
|
||
LOCVAL(LOCALE_SMONTHNAME9, "Setembro")
|
||
LOCVAL(LOCALE_SMONTHNAME10, "Outubro")
|
||
LOCVAL(LOCALE_SMONTHNAME11, "Novembro")
|
||
LOCVAL(LOCALE_SMONTHNAME12, "Dezembro")
|
||
LOCVAL(LOCALE_SMONTHNAME13, "")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME1, "Jan")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME2, "Fev")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME3, "Mar")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME4, "Abr")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME5, "Mai")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME6, "Jun")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME7, "Jul")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME8, "Ago")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME9, "Set")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME10, "Out")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME11, "Nov")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME12, "Dez")
|
||
LOCVAL(LOCALE_SABBREVMONTHNAME13, "")
|
||
LOCVAL(LOCALE_SPOSITIVESIGN, "")
|
||
LOCVAL(LOCALE_SNEGATIVESIGN, "-")
|
||
LOCVAL(LOCALE_IPOSSIGNPOSN, "3")
|
||
LOCVAL(LOCALE_INEGSIGNPOSN, "0")
|
||
LOCVAL(LOCALE_IPOSSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_IPOSSEPBYSPACE, "0")
|
||
LOCVAL(LOCALE_INEGSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_INEGSEPBYSPACE, "0")
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Po) */
|
||
|
||
case LANG_Sw:
|
||
switch (LCType) {
|
||
LOCVAL(LOCALE_ILANGUAGE,"1d")
|
||
LOCVAL(LOCALE_SLANGUAGE,"Svenska")
|
||
LOCVAL(LOCALE_SENGLANGUAGE,"Swedish")
|
||
LOCVAL(LOCALE_SABBREVLANGNAME,"SV")
|
||
LOCVAL(LOCALE_SNATIVELANGNAME,"Svenska")
|
||
LOCVAL(LOCALE_ICOUNTRY,"45")
|
||
LOCVAL(LOCALE_SCOUNTRY,"SWE")
|
||
LOCVAL(LOCALE_SENGCOUNTRY,"Sweden")
|
||
LOCVAL(LOCALE_SABBREVCTRYNAME,"SVE")
|
||
LOCVAL(LOCALE_SNATIVECTRYNAME,"Sverige")
|
||
LOCVAL(LOCALE_IDEFAULTLANGUAGE,"1d")
|
||
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,"M<EFBFBD>ndag")
|
||
LOCVAL(LOCALE_SDAYNAME2,"Tisdag")
|
||
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,"M<EFBFBD>")
|
||
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,"Januari")
|
||
LOCVAL(LOCALE_SMONTHNAME2,"Februari")
|
||
LOCVAL(LOCALE_SMONTHNAME3,"Mars")
|
||
LOCVAL(LOCALE_SMONTHNAME4,"April")
|
||
LOCVAL(LOCALE_SMONTHNAME5,"Maj")
|
||
LOCVAL(LOCALE_SMONTHNAME6,"Juni")
|
||
LOCVAL(LOCALE_SMONTHNAME7,"Juli")
|
||
LOCVAL(LOCALE_SMONTHNAME8,"Augusti")
|
||
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, "3")
|
||
LOCVAL(LOCALE_INEGSIGNPOSN, "3")
|
||
LOCVAL(LOCALE_IPOSSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_IPOSSEPBYSPACE, "0")
|
||
LOCVAL(LOCALE_INEGSYMPRECEDES, "1")
|
||
LOCVAL(LOCALE_INEGSEPBYSPACE, "0")
|
||
default: found=0;break;
|
||
}
|
||
break; /* LANG(Sw) */
|
||
|
||
/*Insert other languages here*/
|
||
|
||
default:
|
||
found=0;
|
||
break;
|
||
} /* switch */
|
||
|
||
if(!found) {
|
||
ERR(ole,"'%s' not supported for your language.\n",
|
||
retString);
|
||
retString = "<WINE-NLS-unknown>";
|
||
/*return 0;*/
|
||
}
|
||
if (buf)
|
||
lstrcpyn32A(buf,retString,len);
|
||
return strlen(retString)+1;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetLocaleInfo32W (KERNEL32.230)
|
||
* Is the last parameter really WORD for Win16?
|
||
*/
|
||
INT32 WINAPI GetLocaleInfo32W(LCID lcid,LCTYPE LCType,LPWSTR wbuf,INT32 len)
|
||
{
|
||
LPSTR abuf = (LPSTR)HeapAlloc(GetProcessHeap(),0,len);
|
||
|
||
INT32 n = GetLocaleInfo32A(lcid, LCType, abuf, len);
|
||
if (wbuf)
|
||
lstrcpynAtoW(wbuf,abuf,len);
|
||
HeapFree(GetProcessHeap(),0,abuf);
|
||
return n;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* CompareString16 (OLE2NLS.8)
|
||
*/
|
||
UINT16 WINAPI 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 WINAPI CompareString32A(DWORD lcid, DWORD fdwStyle,
|
||
LPCSTR s1, DWORD l1, LPCSTR s2,DWORD l2)
|
||
{
|
||
int len,ret;
|
||
if(fdwStyle & NORM_IGNORENONSPACE)
|
||
FIXME(ole, "IGNORENONSPACE not supprted\n");
|
||
if(fdwStyle & NORM_IGNORESYMBOLS)
|
||
FIXME(ole, "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 WINAPI CompareString32W(DWORD lcid, DWORD fdwStyle,
|
||
LPCWSTR s1, DWORD l1, LPCWSTR s2,DWORD l2)
|
||
{
|
||
int len,ret;
|
||
if(fdwStyle & NORM_IGNORENONSPACE)
|
||
FIXME(ole,"IGNORENONSPACE not supprted\n");
|
||
if(fdwStyle & NORM_IGNORESYMBOLS)
|
||
FIXME(ole,"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;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* SetLocaleInfoA [KERNEL32.499]
|
||
*/
|
||
BOOL16 WINAPI SetLocaleInfoA(DWORD lcid, DWORD lctype, LPCSTR data)
|
||
{
|
||
FIXME(ole,"(%ld,%ld,%s): stub\n",lcid,lctype,data);
|
||
return TRUE;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* IsValidLocale [KERNEL32.361]
|
||
*/
|
||
BOOL32 WINAPI IsValidLocale(LCID lcid,DWORD flags)
|
||
{
|
||
/* we support ANY language. Well, at least say that...*/
|
||
return TRUE;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* EnumSystemLocales32W [KERNEL32.93]
|
||
*/
|
||
BOOL32 WINAPI EnumSystemLocales32W( LOCALE_ENUMPROC32W lpfnLocaleEnum,
|
||
DWORD flags )
|
||
{
|
||
int i;
|
||
BOOL32 ret;
|
||
WCHAR buffer[200];
|
||
HKEY xhkey;
|
||
|
||
TRACE(win32,"(%p,%08lx)\n",lpfnLocaleEnum,flags );
|
||
/* see if we can reuse the Win95 registry entries.... */
|
||
if (ERROR_SUCCESS==RegOpenKey32A(HKEY_LOCAL_MACHINE,"\\System\\CurrentControlSet\\control\\Nls\\Locale\\",&xhkey)) {
|
||
i=0;
|
||
while (1) {
|
||
if (ERROR_SUCCESS!=RegEnumKey32W(xhkey,i,buffer,sizeof(buffer)))
|
||
break;
|
||
if (!lpfnLocaleEnum(buffer))
|
||
break;
|
||
i++;
|
||
}
|
||
RegCloseKey(xhkey);
|
||
return TRUE;
|
||
}
|
||
|
||
i=0;
|
||
while (languages[i].langname!=NULL)
|
||
{
|
||
LPWSTR cp;
|
||
char xbuffer[10];
|
||
|
||
sprintf(xbuffer,"%08lx",(DWORD)languages[i].langid);
|
||
|
||
cp = HEAP_strdupAtoW( GetProcessHeap(), 0, xbuffer );
|
||
ret = lpfnLocaleEnum(cp);
|
||
HeapFree( GetProcessHeap(), 0, cp );
|
||
if (!ret) break;
|
||
i++;
|
||
}
|
||
return TRUE;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* EnumSystemLocales32A [KERNEL32.92]
|
||
*/
|
||
BOOL32 WINAPI EnumSystemLocales32A(LOCALE_ENUMPROC32A lpfnLocaleEnum,
|
||
DWORD flags)
|
||
{
|
||
int i;
|
||
CHAR buffer[200];
|
||
HKEY xhkey;
|
||
|
||
TRACE(win32,"(%p,%08lx)\n",
|
||
lpfnLocaleEnum,flags
|
||
);
|
||
if (ERROR_SUCCESS==RegOpenKey32A(HKEY_LOCAL_MACHINE,"\\System\\CurrentControlSet\\control\\Nls\\Locale\\",&xhkey)) {
|
||
i=0;
|
||
while (1) {
|
||
if (ERROR_SUCCESS!=RegEnumKey32A(xhkey,i,buffer,sizeof(buffer)))
|
||
break;
|
||
if (!lpfnLocaleEnum(buffer))
|
||
break;
|
||
i++;
|
||
}
|
||
RegCloseKey(xhkey);
|
||
return TRUE;
|
||
}
|
||
i=0;
|
||
while (languages[i].langname!=NULL) {
|
||
sprintf(buffer,"%08lx",(DWORD)languages[i].langid);
|
||
if (!lpfnLocaleEnum(buffer))
|
||
break;
|
||
i++;
|
||
}
|
||
return TRUE;
|
||
}
|
||
|
||
/***********************************************************************
|
||
* GetStringTypeA [OLE2NLS.7]
|
||
*/
|
||
BOOL16 WINAPI GetStringType16(LCID locale,DWORD dwInfoType,LPCSTR src,
|
||
INT16 cchSrc,LPWORD chartype)
|
||
{
|
||
return GetStringTypeEx32A(locale,dwInfoType,src,cchSrc,chartype);
|
||
}
|
||
/***********************************************************************
|
||
* GetStringTypeA [KERNEL32.277]
|
||
*/
|
||
BOOL32 WINAPI GetStringType32A(LCID locale,DWORD dwInfoType,LPCSTR src,
|
||
INT32 cchSrc,LPWORD chartype)
|
||
{
|
||
return GetStringTypeEx32A(locale,dwInfoType,src,cchSrc,chartype);
|
||
}
|
||
/***********************************************************************
|
||
* GetStringTypeExA [KERNEL32.276]
|
||
*/
|
||
BOOL32 WINAPI GetStringTypeEx32A(LCID locale,DWORD dwInfoType,LPCSTR src,
|
||
INT32 cchSrc,LPWORD chartype)
|
||
{
|
||
int i;
|
||
|
||
switch (dwInfoType) {
|
||
case CT_CTYPE2:
|
||
FIXME(ole,"CT_CTYPE2 not supported.\n");
|
||
return FALSE;
|
||
case CT_CTYPE3:
|
||
FIXME(ole,"CT_CTYPE3 not supported.\n");
|
||
return FALSE;
|
||
default:break;
|
||
}
|
||
if (cchSrc==-1)
|
||
cchSrc=lstrlen32A(src);
|
||
for (i=0;i<cchSrc;i++) {
|
||
chartype[i] = 0;
|
||
if (isdigit(src[i])) chartype[i]|=C1_DIGIT;
|
||
if (isalpha(src[i])) chartype[i]|=C1_ALPHA;
|
||
if (islower(src[i])) chartype[i]|=C1_LOWER;
|
||
if (isupper(src[i])) chartype[i]|=C1_UPPER;
|
||
if (isspace(src[i])) chartype[i]|=C1_SPACE;
|
||
if (ispunct(src[i])) chartype[i]|=C1_PUNCT;
|
||
if (iscntrl(src[i])) chartype[i]|=C1_CNTRL;
|
||
/* FIXME: isblank() is a GNU extension */
|
||
/* if (isblank(src[i])) chartype[i]|=C1_BLANK; */
|
||
if ((src[i] == ' ') || (src[i] == '\t')) chartype[i]|=C1_BLANK;
|
||
/* C1_XDIGIT */
|
||
}
|
||
return TRUE;
|
||
}
|
||
|
||
/*********************************************************************
|
||
* GetStringTypeW [KERNEL32.279]
|
||
*
|
||
* NOTES
|
||
* Yes, this is missing LCID locale. MS fault.
|
||
*/
|
||
BOOL32 WINAPI GetStringType32W(DWORD dwInfoType,LPCWSTR src,INT32 cchSrc,
|
||
LPWORD chartype)
|
||
{
|
||
return GetStringTypeEx32W(0/*defaultlocale*/,dwInfoType,src,cchSrc,chartype);
|
||
}
|
||
|
||
/*********************************************************************
|
||
* GetStringTypeW [KERNEL32.278]
|
||
* FIXME: unicode chars are assumed chars
|
||
*/
|
||
BOOL32 WINAPI GetStringTypeEx32W(LCID locale,DWORD dwInfoType,LPCWSTR src,
|
||
INT32 cchSrc,LPWORD chartype)
|
||
{
|
||
int i;
|
||
|
||
switch (dwInfoType) {
|
||
case CT_CTYPE2:
|
||
FIXME(ole,"CT_CTYPE2 not supported.\n");
|
||
return FALSE;
|
||
case CT_CTYPE3:
|
||
FIXME(ole,"CT_CTYPE3 not supported.\n");
|
||
return FALSE;
|
||
default:break;
|
||
}
|
||
if (cchSrc==-1)
|
||
cchSrc=lstrlen32W(src);
|
||
for (i=0;i<cchSrc;i++) {
|
||
chartype[i] = 0;
|
||
if (isdigit(src[i])) chartype[i]|=C1_DIGIT;
|
||
if (isalpha(src[i])) chartype[i]|=C1_ALPHA;
|
||
if (islower(src[i])) chartype[i]|=C1_LOWER;
|
||
if (isupper(src[i])) chartype[i]|=C1_UPPER;
|
||
if (isspace(src[i])) chartype[i]|=C1_SPACE;
|
||
if (ispunct(src[i])) chartype[i]|=C1_PUNCT;
|
||
if (iscntrl(src[i])) chartype[i]|=C1_CNTRL;
|
||
/* FIXME: isblank() is a GNU extension */
|
||
/* if (isblank(src[i])) chartype[i]|=C1_BLANK; */
|
||
if ((src[i] == ' ') || (src[i] == '\t')) chartype[i]|=C1_BLANK;
|
||
/* C1_XDIGIT */
|
||
}
|
||
return TRUE;
|
||
}
|
||
|
||
/*****************************************************************
|
||
* VerLanguageName16 [VER.10]
|
||
*/
|
||
DWORD WINAPI VerLanguageName16(UINT16 langid,LPSTR langname,UINT16 langnamelen)
|
||
{
|
||
int i;
|
||
char *buf;
|
||
|
||
TRACE(ver,"(%d,%p,%d)\n",langid,langname,langnamelen);
|
||
/* First, check \System\CurrentControlSet\control\Nls\Locale\<langid>
|
||
* from the registry.
|
||
*/
|
||
buf=(char*)malloc(strlen("\\System\\CurrentControlSet\\control\\Nls\\Locale\\")+9);
|
||
sprintf(buf,"\\System\\CurrentControlSet\\control\\Nls\\Locale\\%08x",langid);
|
||
if (ERROR_SUCCESS==RegQueryValue16(HKEY_LOCAL_MACHINE,buf,langname,(LPDWORD)&langnamelen)) {
|
||
langname[langnamelen-1]='\0';
|
||
return langnamelen;
|
||
}
|
||
/* if that fails, use the interal table */
|
||
for (i=0;languages[i].langid!=0;i++)
|
||
if (langid==languages[i].langid)
|
||
break;
|
||
strncpy(langname,languages[i].langname,langnamelen);
|
||
langname[langnamelen-1]='\0';
|
||
return strlen(languages[i].langname);
|
||
}
|
||
|
||
/*****************************************************************
|
||
* VerLanguageName32A [VERSION.9]
|
||
*/
|
||
DWORD WINAPI VerLanguageName32A(UINT32 langid,LPSTR langname,
|
||
UINT32 langnamelen)
|
||
{
|
||
return VerLanguageName16(langid,langname,langnamelen);
|
||
}
|
||
|
||
/*****************************************************************
|
||
* VerLanguageName32W [VERSION.10]
|
||
*/
|
||
DWORD WINAPI VerLanguageName32W(UINT32 langid,LPWSTR langname,
|
||
UINT32 langnamelen)
|
||
{
|
||
int i;
|
||
char buffer[80];
|
||
LPWSTR keyname;
|
||
|
||
/* First, check \System\CurrentControlSet\control\Nls\Locale\<langid>
|
||
* from the registry.
|
||
*/
|
||
sprintf(buffer,"\\System\\CurrentControlSet\\control\\Nls\\Locale\\%08x",langid);
|
||
keyname = HEAP_strdupAtoW( GetProcessHeap(), 0, buffer );
|
||
if (ERROR_SUCCESS==RegQueryValue32W(HKEY_LOCAL_MACHINE,keyname,langname,(LPDWORD)&langnamelen)) {
|
||
HeapFree( GetProcessHeap(), 0, keyname );
|
||
return langnamelen;
|
||
}
|
||
HeapFree( GetProcessHeap(), 0, keyname );
|
||
/* if that fails, use the interal table */
|
||
for (i=0;languages[i].langid!=0;i++)
|
||
if (langid==languages[i].langid)
|
||
break;
|
||
lstrcpyAtoW( langname, languages[i].langname );
|
||
return strlen(languages[i].langname); /* same as strlenW(langname); */
|
||
}
|
||
|
||
|
||
INT32 WINAPI LCMapString32A(
|
||
LCID lcid,DWORD mapflags,LPCSTR srcstr,INT32 srclen,LPSTR dststr,
|
||
INT32 dstlen
|
||
) {
|
||
int i,len;
|
||
|
||
TRACE(string,"(0x%04lx,0x%08lx,%s,%d,%p,%d)\n",
|
||
lcid,mapflags,srcstr,srclen,dststr,dstlen);
|
||
if (!dstlen || !dststr) {
|
||
dststr = (LPSTR)srcstr;
|
||
}
|
||
if (!srclen) srclen = strlen(srcstr);
|
||
if (!dstlen) dstlen = strlen(dststr);
|
||
len = dstlen;
|
||
if (srclen < len)
|
||
len = srclen;
|
||
if (mapflags & LCMAP_LOWERCASE) {
|
||
for (i=0;i<len;i++)
|
||
dststr[i]=tolower(srcstr[i]);
|
||
mapflags &= ~LCMAP_LOWERCASE;
|
||
}
|
||
if (mapflags & LCMAP_UPPERCASE) {
|
||
for (i=0;i<len;i++)
|
||
dststr[i]=toupper(srcstr[i]);
|
||
mapflags &= ~LCMAP_UPPERCASE;
|
||
}
|
||
if (mapflags)
|
||
{
|
||
FIXME(ole,"(0x%04lx,0x%08lx,%p,%d,%p,%d): "
|
||
"unimplemented flags: 0x%08lx\n",
|
||
lcid,mapflags,srcstr,srclen,dststr,dstlen,mapflags);
|
||
}
|
||
return len;
|
||
}
|
||
|
||
/* FIXME: implement everyhting & correct */
|
||
|
||
INT32 WINAPI LCMapString32W(
|
||
LCID lcid,DWORD mapflags,LPCWSTR srcstr,INT32 srclen,LPWSTR dststr,
|
||
INT32 dstlen
|
||
) {
|
||
int i,len;
|
||
|
||
TRACE(string,"(0x%04lx,0x%08lx,%p,%d,%p,%d)\n",
|
||
lcid,mapflags,srcstr,srclen,dststr,dstlen
|
||
);
|
||
if (!dstlen || !dststr) {
|
||
dststr = (LPWSTR)srcstr;
|
||
}
|
||
if (!srclen) srclen = lstrlen32W(srcstr);
|
||
if (!dstlen) dstlen = lstrlen32W(dststr);
|
||
len = dstlen;
|
||
if (srclen < len)
|
||
len = srclen;
|
||
if (mapflags & LCMAP_LOWERCASE) {
|
||
for (i=0;i<len;i++)
|
||
dststr[i]=tolower(srcstr[i]);
|
||
mapflags &= ~LCMAP_LOWERCASE;
|
||
}
|
||
if (mapflags & LCMAP_UPPERCASE) {
|
||
for (i=0;i<len;i++)
|
||
dststr[i]=toupper(srcstr[i]);
|
||
mapflags &= ~LCMAP_UPPERCASE;
|
||
}
|
||
if (mapflags)
|
||
{
|
||
FIXME(ole,"(0x%04lx,0x%08lx,%p,%d,%p,%d): "
|
||
"unimplemented flags: 0x%08lx\n",
|
||
lcid,mapflags,srcstr,srclen,dststr,dstlen,mapflags);
|
||
}
|
||
return len;
|
||
}
|
||
|
||
/*****************************************************************
|
||
*
|
||
* OLE_GetFormatA() [internal]
|
||
|
||
|
||
This function implements stuff for GetDateFormat() and
|
||
GetTimeFormat().
|
||
|
||
d single-digit (no leading zero) day (of month)
|
||
dd two-digit day (of month)
|
||
ddd short day-of-week name
|
||
dddd long day-of-week name
|
||
M single-digit month
|
||
MM two-digit month
|
||
MMM short month name
|
||
MMMM full month name
|
||
y two-digit year, no leading 0
|
||
yy two-digit year
|
||
yyyy four-digit year
|
||
gg era string
|
||
h hours with no leading zero (12-hour)
|
||
hh hours with full two digits
|
||
H hours with no leading zero (24-hour)
|
||
HH hours with full two digits
|
||
m minutes with no leading zero
|
||
mm minutes with full two digits
|
||
s seconds with no leading zero
|
||
ss seconds with full two digits
|
||
t time marker (A or P)
|
||
tt time marker (AM, PM)
|
||
'' used to quote literal characters
|
||
'' (within a quoted string) indicates a literal '
|
||
|
||
These functions REQUIRE valid locale, date, and format.
|
||
|
||
*/
|
||
|
||
INT32 WINAPI OLE_GetFormatA(LCID locale,
|
||
DWORD flags,
|
||
LPSYSTEMTIME xtime,
|
||
LPCSTR format,
|
||
LPSTR date, INT32 datelen)
|
||
{
|
||
INT32 inpos, outpos;
|
||
int count, type, inquote, Overflow;
|
||
char buf[40];
|
||
int buflen;
|
||
|
||
const char * _dgfmt[] = { "%d", "%02d" };
|
||
const char ** dgfmt = _dgfmt - 1;
|
||
|
||
/* report, for debugging */
|
||
TRACE(ole, "func(%8lx,%8lx, time(d=%d,h=%d,m=%d,s=%d), fmt:\'%s\' (at %p), %p (%9s), len=%d)\n", locale, flags,
|
||
xtime->wDay, xtime->wHour, xtime->wMinute, xtime->wSecond,
|
||
format, format, date, date, datelen);
|
||
|
||
/* initalize state variables and output buffer */
|
||
inpos = outpos = 0;
|
||
count = 0; inquote = 0; Overflow = 0;
|
||
type = '\0';
|
||
date[0] = buf[0] = '\0';
|
||
|
||
for (inpos = 0;; inpos++) {
|
||
/* TRACE(ole, "STATE inpos=%2d outpos=%2d count=%d inquote=%d type=%c buf,date = %c,%c\n", inpos, outpos, count, inquote, type, buf[inpos], date[outpos]); */
|
||
if (inquote) {
|
||
if (format[inpos] == '\'') {
|
||
if (format[inpos+1] == '\'') {
|
||
inpos += 1;
|
||
date[outpos++] = '\'';
|
||
} else {
|
||
inquote = 0;
|
||
continue; /* we did nothing to the output */
|
||
}
|
||
} else if (format[inpos] == '\0') {
|
||
date[outpos++] = '\0';
|
||
if (outpos > datelen) Overflow = 1;
|
||
break;
|
||
} else {
|
||
date[outpos++] = format[inpos];
|
||
if (outpos > datelen) {
|
||
Overflow = 1;
|
||
date[outpos-1] = '\0'; /* this is the last place where
|
||
it's safe to write */
|
||
break;
|
||
}
|
||
}
|
||
} else if ( (count && (format[inpos] != type))
|
||
|| count == 4
|
||
|| (count == 2 && strchr("ghHmst", type)) )
|
||
{
|
||
if (type == 'd') {
|
||
if (count == 4) {
|
||
GetLocaleInfo32A(locale,
|
||
LOCALE_SDAYNAME1
|
||
+ xtime->wDayOfWeek - 1,
|
||
buf, sizeof(buf));
|
||
} else if (count == 3) {
|
||
GetLocaleInfo32A(locale,
|
||
LOCALE_SABBREVDAYNAME1
|
||
+ xtime->wDayOfWeek - 1,
|
||
buf, sizeof(buf));
|
||
} else {
|
||
sprintf(buf, dgfmt[count], xtime->wDay);
|
||
}
|
||
} else if (type == 'M') {
|
||
if (count == 3) {
|
||
GetLocaleInfo32A(locale,
|
||
LOCALE_SABBREVMONTHNAME1
|
||
+ xtime->wMonth - 1,
|
||
buf, sizeof(buf));
|
||
} else if (count == 4) {
|
||
GetLocaleInfo32A(locale,
|
||
LOCALE_SMONTHNAME1
|
||
+ xtime->wMonth - 1,
|
||
buf, sizeof(buf));
|
||
} else {
|
||
sprintf(buf, dgfmt[count], xtime->wMonth);
|
||
}
|
||
} else if (type == 'y') {
|
||
if (count == 4) {
|
||
sprintf(buf, "%d", xtime->wYear);
|
||
} else if (count == 3) {
|
||
strcpy(buf, "yyy");
|
||
WARN(ole,
|
||
"unknown format,\
|
||
c=%c, n=%d\n", type, count);
|
||
} else {
|
||
sprintf(buf, dgfmt[count], xtime->wYear % 100);
|
||
}
|
||
} else if (type == 'g') {
|
||
if (count == 2) {
|
||
FIXME(ole, "LOCALE_ICALENDARTYPE unimp.\n");
|
||
strcpy(buf, "AD");
|
||
} else {
|
||
strcpy(buf, "g");
|
||
WARN(ole,
|
||
"unknown format, \
|
||
c=%c, n=%d\n", type, count);
|
||
}
|
||
} else if (type == 'h') {
|
||
/* gives us hours 1:00 -- 12:00 */
|
||
sprintf(buf, dgfmt[count], (xtime->wHour-1)%12 +1);
|
||
} else if (type == 'H') {
|
||
/* 24-hour time */
|
||
sprintf(buf, dgfmt[count], xtime->wHour);
|
||
} else if (type == 'm') {
|
||
sprintf(buf, dgfmt[count], xtime->wMinute);
|
||
} else if (type == 's') {
|
||
sprintf(buf, dgfmt[count], xtime->wSecond);
|
||
} else if (type == 't') {
|
||
if (count == 1) {
|
||
sprintf(buf, "%c", (xtime->wHour < 12) ? 'A' : 'P');
|
||
} else if (count == 2) {
|
||
/* sprintf(buf, "%s", (xtime->wHour < 12) ? "AM" : "PM"); */
|
||
GetLocaleInfo32A(locale,
|
||
(xtime->wHour<12)
|
||
? LOCALE_S1159 : LOCALE_S2359,
|
||
buf, sizeof(buf));
|
||
}
|
||
};
|
||
|
||
/* we need to check the next char in the format string
|
||
again, no matter what happened */
|
||
inpos--;
|
||
|
||
/* add the contents of buf to the output */
|
||
buflen = strlen(buf);
|
||
if (outpos + buflen < datelen) {
|
||
date[outpos] = '\0'; /* for strcat to hook onto */
|
||
strcat(date, buf);
|
||
outpos += buflen;
|
||
} else {
|
||
date[outpos] = '\0';
|
||
strncat(date, buf, datelen - outpos);
|
||
date[datelen - 1] = '\0';
|
||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||
WARN(ole, "insufficient buffer\n");
|
||
return 0;
|
||
}
|
||
|
||
/* reset the variables we used to keep track of this item */
|
||
count = 0;
|
||
type = '\0';
|
||
} else if (format[inpos] == '\0') {
|
||
/* we can't check for this at the loop-head, because
|
||
that breaks the printing of the last format-item */
|
||
date[outpos] = '\0';
|
||
break;
|
||
} else if (count) {
|
||
/* continuing a code for an item */
|
||
count +=1;
|
||
continue;
|
||
} else if (strchr("hHmstyMdg", format[inpos])) {
|
||
type = format[inpos];
|
||
count = 1;
|
||
continue;
|
||
} else if (format[inpos] == '\'') {
|
||
inquote = 1;
|
||
continue;
|
||
} else {
|
||
date[outpos++] = format[inpos];
|
||
}
|
||
/* now deal with a possible buffer overflow */
|
||
if (outpos >= datelen) {
|
||
date[datelen - 1] = '\0';
|
||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||
return 0;
|
||
}
|
||
}
|
||
|
||
if (Overflow) {
|
||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||
};
|
||
|
||
/* finish it off with a string terminator */
|
||
outpos++;
|
||
/* sanity check */
|
||
if (outpos > datelen-1) outpos = datelen-1;
|
||
date[outpos] = '\0';
|
||
|
||
TRACE(ole, "OLE_GetFormatA returns string '%s', len %d\n",
|
||
date, outpos);
|
||
return outpos;
|
||
}
|
||
|
||
/**************************************************************
|
||
* OLE_GetFormatW [internal]
|
||
*/
|
||
INT32 WINAPI OLE_GetFormatW(LCID locale, DWORD flags,
|
||
LPSYSTEMTIME xtime,
|
||
LPCWSTR format,
|
||
LPWSTR output, INT32 outlen)
|
||
{
|
||
INT32 inpos, outpos;
|
||
int count, type=0, inquote;
|
||
int Overflow; /* loop check */
|
||
int usedate, usetime;
|
||
WCHAR buf[40];
|
||
int buflen=0;
|
||
char abuf[40];
|
||
WCHAR arg0[] = {0}, arg1[] = {'%','d',0};
|
||
WCHAR arg2[] = {'%','0','2','d',0};
|
||
WCHAR *argarr[] = {arg0, arg1, arg2};
|
||
int datevars=0, timevars=0;
|
||
|
||
/* make a debug report */
|
||
lstrcpynWtoA(abuf, format, sizeof(format));
|
||
TRACE(ole, "args: %8lx, %8lx, time(d=%d,h=%d,m=%d,s=%d), fmt:\'%s\' (at %p), %p with max len %d\n",
|
||
locale, flags,
|
||
xtime->wDay, xtime->wHour, xtime->wMinute, xtime->wSecond,
|
||
abuf, format, output, outlen);
|
||
|
||
|
||
/* initialize state variables */
|
||
inpos = outpos = 0;
|
||
count = 0;
|
||
inquote = Overflow = 0;
|
||
/* this is really just a sanity check */
|
||
output[0] = buf[0] = 0;
|
||
abuf[0] = '\0';
|
||
/* for compatibility with official Windows behavior */
|
||
usedate = flags & DATE_DATEVARSONLY;
|
||
usetime = flags & TIME_TIMEVARSONLY;
|
||
|
||
/* this loop is the core of the function */
|
||
for (inpos = 0; /* we have several break points */ ; inpos++) {
|
||
if (inquote) {
|
||
if (format[inpos] == (WCHAR) '\'') {
|
||
if (format[inpos+1] == '\'') {
|
||
inpos++;
|
||
output[outpos++] = '\'';
|
||
} else {
|
||
inquote = 0;
|
||
continue;
|
||
}
|
||
} else if (format[inpos] == 0) {
|
||
output[outpos++] = 0;
|
||
if (outpos > outlen) Overflow = 1;
|
||
break; /* normal exit (within a quote) */
|
||
} else {
|
||
output[outpos++] = format[inpos]; /* copy input */
|
||
if (outpos > outlen) {
|
||
Overflow = 1;
|
||
output[outpos-1] = 0;
|
||
break;
|
||
}
|
||
}
|
||
} else if ( (count && (format[inpos] != type))
|
||
|| ( (count==4 && type =='y') ||
|
||
(count==4 && type =='M') ||
|
||
(count==4 && type =='d') ||
|
||
(count==2 && type =='g') ||
|
||
(count==2 && type =='h') ||
|
||
(count==2 && type =='H') ||
|
||
(count==2 && type =='m') ||
|
||
(count==2 && type =='s') ||
|
||
(count==2 && type =='t') ) ) {
|
||
if (type == 'd') {
|
||
if (count == 3) {
|
||
GetLocaleInfo32W(locale,
|
||
LOCALE_SDAYNAME1 + xtime->wDayOfWeek -1,
|
||
buf, sizeof(buf)/sizeof(WCHAR) );
|
||
} else if (count == 3) {
|
||
GetLocaleInfo32W(locale,
|
||
LOCALE_SABBREVDAYNAME1 +
|
||
xtime->wDayOfWeek -1,
|
||
buf, sizeof(buf)/sizeof(WCHAR) );
|
||
} else {
|
||
wsnprintf32W(buf, 5, argarr[count], xtime->wDay );
|
||
};
|
||
} else if (type == 'M') {
|
||
if (count == 4) {
|
||
GetLocaleInfo32W(locale, LOCALE_SMONTHNAME1 +
|
||
xtime->wMonth -1, buf,
|
||
sizeof(buf)/sizeof(WCHAR) );
|
||
} else if (count == 3) {
|
||
GetLocaleInfo32W(locale, LOCALE_SABBREVMONTHNAME1 +
|
||
xtime->wMonth -1, buf,
|
||
sizeof(buf)/sizeof(WCHAR) );
|
||
} else {
|
||
wsnprintf32W(buf, 5, argarr[count], xtime->wMonth);
|
||
}
|
||
} else if (type == 'y') {
|
||
if (count == 4) {
|
||
wsnprintf32W(buf, 6, argarr[1] /* "%d" */,
|
||
xtime->wYear);
|
||
} else if (count == 3) {
|
||
lstrcpynAtoW(buf, "yyy", 5);
|
||
} else {
|
||
wsnprintf32W(buf, 6, argarr[count],
|
||
xtime->wYear % 100);
|
||
}
|
||
} else if (type == 'g') {
|
||
if (count == 2) {
|
||
FIXME(ole, "LOCALE_ICALENDARTYPE unimplemented\n");
|
||
lstrcpynAtoW(buf, "AD", 5);
|
||
} else {
|
||
/* Win API sez we copy it verbatim */
|
||
lstrcpynAtoW(buf, "g", 5);
|
||
}
|
||
} else if (type == 'h') {
|
||
/* hours 1:00-12:00 --- is this right? */
|
||
wsnprintf32W(buf, 5, argarr[count],
|
||
(xtime->wHour-1)%12 +1);
|
||
} else if (type == 'H') {
|
||
wsnprintf32W(buf, 5, argarr[count],
|
||
xtime->wHour);
|
||
} else if (type == 'm') {
|
||
wsnprintf32W(buf, 5, argarr[count],
|
||
xtime->wMinute);
|
||
} else if (type == 's') {
|
||
wsnprintf32W(buf, 5, argarr[count],
|
||
xtime->wSecond);
|
||
} else if (type == 't') {
|
||
GetLocaleInfo32W(locale, (xtime->wHour < 12) ?
|
||
LOCALE_S1159 : LOCALE_S2359,
|
||
buf, sizeof(buf) );
|
||
if (count == 1) {
|
||
buf[1] = 0;
|
||
}
|
||
}
|
||
|
||
/* no matter what happened, we need to check this next
|
||
character the next time we loop through */
|
||
inpos--;
|
||
|
||
/* cat buf onto the output */
|
||
outlen = lstrlen32W(buf);
|
||
if (outpos + buflen < outlen) {
|
||
output[outpos] = 0; /* a "hook" for strcat */
|
||
lstrcat32W(output, buf);
|
||
outpos += buflen;
|
||
} else {
|
||
output[outpos] = 0;
|
||
lstrcatn32W(output, buf, outlen - outpos);
|
||
output[outlen - 1] = 0;
|
||
Overflow = 1;
|
||
break; /* Abnormal exit */
|
||
}
|
||
|
||
/* reset the variables we used this time */
|
||
count = 0;
|
||
type = '\0';
|
||
} else if (format[inpos] == 0) {
|
||
/* we can't check for this at the beginning, because that
|
||
would keep us from printing a format spec that ended the
|
||
string */
|
||
output[outpos] = 0;
|
||
break; /* NORMAL EXIT */
|
||
} else if (count) {
|
||
/* how we keep track of the middle of a format spec */
|
||
count++;
|
||
continue;
|
||
} else if ( (datevars && (format[inpos]=='d' ||
|
||
format[inpos]=='M' ||
|
||
format[inpos]=='y' ||
|
||
format[inpos]=='g') ) ||
|
||
(timevars && (format[inpos]=='H' ||
|
||
format[inpos]=='h' ||
|
||
format[inpos]=='m' ||
|
||
format[inpos]=='s' ||
|
||
format[inpos]=='t') ) ) {
|
||
type = format[inpos];
|
||
count = 1;
|
||
continue;
|
||
} else if (format[inpos] == '\'') {
|
||
inquote = 1;
|
||
continue;
|
||
} else {
|
||
/* unquoted literals */
|
||
output[outpos++] = format[inpos];
|
||
}
|
||
}
|
||
|
||
if (Overflow) {
|
||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||
WARN(ole, " buffer overflow\n");
|
||
};
|
||
|
||
/* final string terminator and sanity check */
|
||
outpos++;
|
||
if (outpos > outlen-1) outpos = outlen-1;
|
||
output[outpos] = '0';
|
||
|
||
lstrcpynWtoA(abuf, output, sizeof(abuf) );
|
||
TRACE(ole, " returning string \'%s\'\n", abuf);
|
||
|
||
return (!Overflow) ? outlen : 0;
|
||
|
||
}
|
||
|
||
|
||
/*****************************************************************
|
||
* GetDateFormat32A() [KERNEL32.310] Makes an ASCII string of the date
|
||
*
|
||
* This function uses format to format the date, or, if format
|
||
* is NULL, uses the default for the locale. format is a string
|
||
* of literal fields and characters as follows:
|
||
*
|
||
* - d single-digit (no leading zero) day (of month)
|
||
* - dd two-digit day (of month)
|
||
* - ddd short day-of-week name
|
||
* - dddd long day-of-week name
|
||
* - M single-digit month
|
||
* - MM two-digit month
|
||
* - MMM short month name
|
||
* - MMMM full month name
|
||
* - y two-digit year, no leading 0
|
||
* - yy two-digit year
|
||
* - yyyy four-digit year
|
||
* - gg era string
|
||
*
|
||
*/
|
||
|
||
INT32 WINAPI GetDateFormat32A(LCID locale,DWORD flags,
|
||
LPSYSTEMTIME xtime,
|
||
LPCSTR format, LPSTR date,INT32 datelen)
|
||
{
|
||
|
||
char format_buf[40];
|
||
LPCSTR thisformat;
|
||
SYSTEMTIME t;
|
||
LPSYSTEMTIME thistime;
|
||
LCID thislocale;
|
||
|
||
INT32 ret;
|
||
|
||
TRACE(ole,"(0x%04lx,0x%08lx,%p,%s,%p,%d)\n",
|
||
locale,flags,xtime,format,date,datelen);
|
||
|
||
if (!locale) {
|
||
locale = LOCALE_SYSTEM_DEFAULT;
|
||
};
|
||
|
||
if (locale == LOCALE_SYSTEM_DEFAULT) {
|
||
thislocale = GetSystemDefaultLCID();
|
||
} else if (locale == LOCALE_USER_DEFAULT) {
|
||
thislocale = GetUserDefaultLCID();
|
||
} else {
|
||
thislocale = locale;
|
||
};
|
||
|
||
if (xtime == NULL) {
|
||
GetSystemTime(&t);
|
||
thistime = &t;
|
||
} else {
|
||
thistime = xtime;
|
||
};
|
||
|
||
if (format == NULL) {
|
||
GetLocaleInfo32A(thislocale, ((flags&DATE_LONGDATE)
|
||
? LOCALE_SLONGDATE
|
||
: LOCALE_SSHORTDATE),
|
||
format_buf, sizeof(format_buf));
|
||
thisformat = format_buf;
|
||
} else {
|
||
thisformat = format;
|
||
};
|
||
|
||
|
||
ret = OLE_GetFormatA(thislocale, flags, thistime, thisformat,
|
||
date, datelen);
|
||
|
||
|
||
TRACE(ole,
|
||
"GetDateFormat32A() returning %d, with data=%s\n",
|
||
ret, date);
|
||
return ret;
|
||
}
|
||
|
||
/* ****************************************************************
|
||
* GetDateFormat32W() [KERNEL32.311] Makes a Unicode string of the date
|
||
*
|
||
* Acts the same as GetDateFormat32A(), except that it's Unicode.
|
||
* Accepts & returns sizes as counts of Unicode characters.
|
||
*
|
||
*/
|
||
INT32 WINAPI GetDateFormat32W(LCID locale,DWORD flags,
|
||
LPSYSTEMTIME xtime,
|
||
LPCWSTR format,
|
||
LPWSTR date, INT32 datelen)
|
||
{
|
||
short datearr[] = {'1','9','9','4','-','1','-','1',0};
|
||
|
||
FIXME(ole, "STUB (should call OLE_GetFormatW)\n");
|
||
lstrcpyn32W(date, datearr, datelen);
|
||
return ( datelen < 9) ? datelen : 9;
|
||
|
||
|
||
}
|
||
|
||
|
||
/**************************************************************************
|
||
* GetNumberFormat32A (KERNEL32.355)
|
||
*/
|
||
INT32 WINAPI GetNumberFormat32A(LCID locale, DWORD dwflags,
|
||
LPCSTR lpvalue, char *lpFormat,
|
||
LPSTR lpNumberStr, int cchNumber)
|
||
/* NOTE: type of lpFormat should be CONST NUMBERFORMAT */
|
||
|
||
{
|
||
int n;
|
||
|
||
FIXME(file,"%s: stub, no reformating done\n",lpvalue);
|
||
|
||
n = strlen(lpvalue);
|
||
if (cchNumber) {
|
||
strncpy(lpNumberStr,lpvalue,cchNumber);
|
||
if (cchNumber <= n) {
|
||
lpNumberStr[cchNumber-1] = 0;
|
||
n = cchNumber-1;
|
||
}
|
||
}
|
||
return n;
|
||
}
|
||
|
||
|
||
|
||
/*****************************************************************
|
||
*
|
||
* GetTimeFormat32A() [KERNEL32.422] Makes an ASCII string of the time
|
||
*
|
||
* Formats date according to format, or locale default if format is
|
||
* NULL. The format consists of literal characters and fields as follows:
|
||
*
|
||
* h hours with no leading zero (12-hour)
|
||
* hh hours with full two digits
|
||
* H hours with no leading zero (24-hour)
|
||
* HH hours with full two digits
|
||
* m minutes with no leading zero
|
||
* mm minutes with full two digits
|
||
* s seconds with no leading zero
|
||
* ss seconds with full two digits
|
||
* t time marker (A or P)
|
||
* tt time marker (AM, PM)
|
||
*
|
||
*/
|
||
|
||
INT32 WINAPI
|
||
GetTimeFormat32A(LCID locale, /* in */
|
||
DWORD flags, /* in */
|
||
LPSYSTEMTIME xtime, /* in */
|
||
LPCSTR format, /* in */
|
||
LPSTR timestr, /* out */
|
||
INT32 timelen /* in */)
|
||
{
|
||
LPCSTR realformat;
|
||
char fmt_buf[40];
|
||
|
||
TRACE(ole,"GetTimeFormat(0x%04lx,0x%08lx,%p,%s,%p,%d)\n",
|
||
locale,flags,xtime,format,timestr,timelen);
|
||
|
||
if (format) {
|
||
realformat = format;
|
||
} else if (locale) {
|
||
GetLocaleInfo32A(locale, LOCALE_STIMEFORMAT,
|
||
fmt_buf, sizeof(fmt_buf));
|
||
realformat = fmt_buf;
|
||
} else {
|
||
WARN(ole, "Caller gave no locale and no format\n");
|
||
realformat = "hh:mm:ss";
|
||
};
|
||
if (!locale) {
|
||
locale = GetSystemDefaultLCID();
|
||
}
|
||
return OLE_GetFormatA(locale, flags, xtime, realformat, timestr, timelen);
|
||
}
|
||
|
||
|
||
/* ****************************************************************
|
||
* GetTimeFormat32W() [KERNEL32.423] Makes a Unicode string of the time
|
||
*
|
||
|
||
*
|
||
*/
|
||
|
||
INT32 WINAPI
|
||
GetTimeFormat32W(LCID locale,DWORD flags,
|
||
LPSYSTEMTIME xtime,
|
||
LPCWSTR format,
|
||
LPWSTR timestr,INT32 timelen)
|
||
{
|
||
char debugbuf[40];
|
||
WCHAR buf[20];
|
||
LPCWSTR realformat=0;
|
||
SYSTEMTIME t;
|
||
LPSYSTEMTIME realtime;
|
||
WCHAR * fmt_buf = NULL;
|
||
int fmt_buf_size = 0; /* units of WCHARs */
|
||
INT32 retval;
|
||
|
||
lstrcpynWtoA(debugbuf, format, (sizeof(buf))/2);
|
||
TRACE(ole, "GetTimeFormatW len %d flags 0x%lX format >%s<\n",
|
||
timelen, flags, debugbuf);
|
||
|
||
/* Enforce the Windows behavior */
|
||
flags |= ~LOCALE_TIMEDATEBOTH;
|
||
flags |= TIME_TIMEVARSONLY;
|
||
|
||
/* take care of the format or locale not being given */
|
||
if (format) {
|
||
realformat = format;
|
||
} else if (locale) {
|
||
/* allocate memory */
|
||
fmt_buf = malloc((fmt_buf_size+=7) * sizeof(WCHAR));
|
||
if (!fmt_buf) {
|
||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||
WARN(ole, "could not allocate %d chars of memory\n", fmt_buf_size);
|
||
return 0;
|
||
};
|
||
while(!GetLocaleInfo32W(locale, LOCALE_STIMEFORMAT,
|
||
fmt_buf, fmt_buf_size)) {
|
||
fmt_buf = realloc(fmt_buf,
|
||
(fmt_buf_size += 10) * sizeof(WCHAR));
|
||
if (!fmt_buf) {
|
||
SetLastError(ERROR_OUTOFMEMORY);
|
||
WARN(ole, "could not allocate %d chars of memory\n", fmt_buf_size);
|
||
return 0;
|
||
};
|
||
};
|
||
realformat = fmt_buf;
|
||
} else {
|
||
FIXME(ole, "caller gave no locale, no format; what should we do?\n");
|
||
SetLastError(ERROR_BAD_FORMAT);
|
||
};
|
||
if (!locale) {
|
||
locale = GetSystemDefaultLCID();
|
||
}
|
||
|
||
realtime = xtime;
|
||
if (!realtime) {
|
||
realtime = &t;
|
||
GetSystemTime(realtime);
|
||
};
|
||
|
||
|
||
retval = OLE_GetFormatW(locale, flags, realtime, realformat, timestr, timelen);
|
||
if (fmt_buf) free(fmt_buf);
|
||
return retval;
|
||
}
|