[gnome-maps] extractPoiTypesFromID: Adapt to lates iD



commit 799f48ccb26dc759a2f3cde518ad7db86bf5fb17
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Mar 6 23:05:58 2017 +0100

    extractPoiTypesFromID: Adapt to lates iD
    
    iD has changed the format of the locale .json definitions.
    Adapt the script to the new format.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777718

 scripts/extractPoiTypesFromID.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/scripts/extractPoiTypesFromID.js b/scripts/extractPoiTypesFromID.js
index 5cd5d73..10689f0 100755
--- a/scripts/extractPoiTypesFromID.js
+++ b/scripts/extractPoiTypesFromID.js
@@ -89,7 +89,7 @@ function processLocale(dirPath, fileName) {
         let name;
 
         try {
-            name = object.presets.presets[type].name;
+            name = object[lang].presets.presets[type].name;
         } catch (ex) {
             continue;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]