Minor simplification

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2001-02-25 07:08:27 +00:00
parent 196ab2371d
commit 80bb956109
2 changed files with 4 additions and 17 deletions

View file

@ -1,3 +1,7 @@
2001-02-25 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSLocale.m: Removed YESSTR and NOSTR support for simplicity.
2001-02-24 Nicola Pero <n.pero@mi.flashnet.it>
* Resources/Languages/French: New file (contributed by Frederic De

View file

@ -30,12 +30,6 @@
#include <locale.h>
#ifdef HAVE_LANGINFO_H
/*
* Define _GNU_SOURCE to get YESSTR and NOSTR in glibc-2.2.2
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <langinfo.h>
#endif
#include <Foundation/NSUserDefaults.h>
@ -160,17 +154,6 @@ GSDomainFromDefaultLocale(void)
}
/* FIXME: Get currency format from localeconv */
/* Miscellaneous */
if (nl_langinfo(YESSTR))
{
[dict setObject: GSLanginfo(YESSTR) forKey: @"NSYesStr"];
}
if (nl_langinfo(NOSTR))
{
[dict setObject: GSLanginfo(NOSTR) forKey: @"NSNoStr"];
}
str1 = [NSString stringWithCString: setlocale(LC_ALL, NULL)];
[dict setObject: str1 forKey: NSLocale];
str2 = GSLanguageFromLocale(str1);