mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
196ab2371d
commit
80bb956109
2 changed files with 4 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue