diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-10 09:51:50 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-10 09:51:50 -0700 |
commit | bda482a30a7ee526cb381bb3583f87fe86b7845f (patch) | |
tree | 985b9adfa376f605e0bb03421c83107414733763 /taxonomy.c | |
parent | a0f88e4c9fe5a7881dffb15d8ec4878a81d563b1 (diff) | |
download | subsurface-bda482a30a7ee526cb381bb3583f87fe86b7845f.tar.gz |
Geo taxonomy: add higher level notion of city
This renames the local name for the location as town and adds the concept
of a city as the level 3 admin category. In some regions (e.g. at times in
Italy) the local hamlet name is shown as toponymName but the name of the
actual city is given as adminName3.
With this change "city" will always reflect our best guess: adminName3 if
it exists, otherwise the toponymName. Whereas "town" is always the
toponymName.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'taxonomy.c')
-rw-r--r-- | taxonomy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/taxonomy.c b/taxonomy.c index 2b71648c1..b72616faf 100644 --- a/taxonomy.c +++ b/taxonomy.c @@ -8,6 +8,7 @@ char *taxonomy_category_names[TC_NR_CATEGORIES] = { QT_TRANSLATE_NOOP("getTextFromC", "Country"), QT_TRANSLATE_NOOP("getTextFromC", "State"), QT_TRANSLATE_NOOP("getTextFromC", "County"), + QT_TRANSLATE_NOOP("getTextFromC", "Town"), QT_TRANSLATE_NOOP("getTextFromC", "City") }; @@ -18,7 +19,8 @@ char *taxonomy_api_names[TC_NR_CATEGORIES] = { "countryName", "adminName1", "adminName2", - "toponymName" + "toponymName", + "adminName3" }; struct taxonomy *alloc_taxonomy() |