Fixed some typos.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31818 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
stefanbidi 2011-01-01 21:41:59 +00:00
parent 1eb0cf5e98
commit d5dcca26d6
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2011-01-01 Stefan Bidigaray <stefanbidi@gmail.com>
* Source/NSLocale.m: Fixed typos found by testsuite.
2010-12-31 Stefan Bidigaray <stefanbidi@gmail.com>
* Source/NSCalendar.m: Implemented -dateByAddingComponents:toDate:options:

View file

@ -181,7 +181,7 @@ static NSArray *_currencyCodesWithType (uint32_t currType)
msystem = ulocdata_getMeasurementSystem (cLocaleId, &err);
if (U_SUCCESS(err))
{
if (msystem == UMS_US)
if (msystem == UMS_SI)
result = @"Metric";
else
result = @"U.S.";
@ -870,6 +870,7 @@ static NSRecursiveLock *classLock = nil;
if (mSys != nil)
{
[_components setValue: mSys forKey: NSLocaleMeasurementSystem];
NSLog (@"%@", mSys);
if ([mSys isEqualToString: @"Metric"])
result = [NSNumber numberWithBool: YES];
else
@ -883,7 +884,7 @@ static NSRecursiveLock *classLock = nil;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
else if ([key isEqualToString: NSLocaleQuotationBeginDelimiterKey])
result = [self _getDelimiterWithType: ULOCDATA_QUOTATION_START];
else if ([key isEqualToString: NSLocaleQuotationBeginDelimiterKey])
else if ([key isEqualToString: NSLocaleQuotationEndDelimiterKey])
result = [self _getDelimiterWithType: ULOCDATA_QUOTATION_END];
else if ([key isEqualToString: NSLocaleAlternateQuotationBeginDelimiterKey])
result = [self _getDelimiterWithType: ULOCDATA_ALT_QUOTATION_START];