Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for Tsubo, a Japanese unit of floorspace for Japan and Taiwan #2101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/CalcViewModel/DataLoaders/UnitConverterDataLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ void UnitConverterDataLoader::GetUnits(_In_ unordered_map<ViewMode, vector<Order

bool useWattInsteadOfKilowatt = m_currentRegionCode == "GB";

// Use Pyeong, a Korean floorspace unit.
// https://en.wikipedia.org/wiki/Korean_units_of_measurement#Area
bool usePyeong = m_currentRegionCode == L"KP" || m_currentRegionCode == L"KR";
// Use 坪(Tsubo), or Pyeong in Korean, a Japanese unit of floorspace.
// https://en.wikipedia.org/wiki/Japanese_units_of_measurement#Area
bool usePyeong = m_currentRegionCode == L"JP" || m_currentRegionCode == L"TW" || m_currentRegionCode == L"KP" || m_currentRegionCode == L"KR";

vector<OrderedUnit> areaUnits;
areaUnits.push_back(
Expand Down