1 #include <proto/locale.h>
2 #include <proto/exec.h>
8 struct LocaleBase
* LocaleBase
= NULL
;
9 struct Locale
* locale
= NULL
;
13 if (locale
) CloseLocale(locale
);
15 if (LocaleBase
) CloseLibrary((struct Library
*)LocaleBase
);
20 LocaleBase
= (struct LocaleBase
*)OpenLibrary("locale.library",0);
26 locale
= OpenLocale("openlocale.prefs");
29 /* Expected: name of the prefs file */
30 result
= strcmp(locale
->loc_LocaleName
, "openlocale.prefs");
33 /* Expected: native language name */
34 result
= strcmp(locale
->loc_LanguageName
, "polski.language");
37 /* Expected: native language name */
38 result
= strcmp(locale
->loc_PrefLanguages
[0], "polski");