[gnome-maps/wip/mlundblad/round-populations] placeView: Show rounded population numbers



commit 9317f9f1cf6b022f6c602fb5af3d3c7c88a581f2
Author: Marcus Lundblad <ml update uu se>
Date:   Mon May 17 22:13:32 2021 +0200

    placeView: Show rounded population numbers
    
    Use the utility function to show abbreviated
    population numbers for large round values.

 src/placeView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/placeView.js b/src/placeView.js
index 41db0119..66e7f5e3 100644
--- a/src/placeView.js
+++ b/src/placeView.js
@@ -448,7 +448,7 @@ var PlaceView = GObject.registerClass({
              */
             content.push({ label: _("Population"),
                            icon: 'system-users-symbolic',
-                           info: parseInt(place.population).toLocaleString() });
+                           info: Utils.prettyPopulation(parseInt(place.population)) });
         }
 
         /* The default value for a place's altitude is -G_MAXDOUBLE, so we can


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