* Make BCountry::Measurement() actually do something useful.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38007 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e70da3e14c
commit
aed7e5e9ae
@ -16,6 +16,7 @@
|
||||
|
||||
#include <unicode/datefmt.h>
|
||||
#include <unicode/locid.h>
|
||||
#include <unicode/ulocdata.h>
|
||||
#include <ICUWrapper.h>
|
||||
|
||||
#include <iostream>
|
||||
@ -113,7 +114,15 @@ BCountry::GetIcon(BBitmap* result) const
|
||||
int8
|
||||
BCountry::Measurement() const
|
||||
{
|
||||
return B_US;
|
||||
UErrorCode error = U_ZERO_ERROR;
|
||||
switch(ulocdata_getMeasurementSystem(Code(), &error))
|
||||
{
|
||||
case UMS_US:
|
||||
return B_US;
|
||||
case UMS_SI:
|
||||
default:
|
||||
return B_METRIC;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user