2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
10 #include <aros/libcall.h>
11 #include <exec/types.h>
12 #include <libraries/lowlevel.h>
13 #include <libraries/locale.h>
14 #include <proto/locale.h>
16 #include "lowlevel_intern.h"
19 * Put those in the same order as the LANG_* defines in libraries/lowlevel.h
21 static char * langlist
[] =
44 /*****************************************************************************
48 AROS_LH0(ULONG
, GetLanguageSelection
,
53 struct LowLevelBase
*, LowLevelBase
, 11, LowLevel
)
69 *****************************************************************************/
75 * Get the default locale
77 struct Locale
* locale
= OpenLocale("");
82 while (NULL
!= langlist
[index
])
84 if (0 == strcmp(locale
->loc_LanguageName
,(char *)langlist
[index
]))
96 } /* GetLanguageSelection */