Bug 1231862 - [ja] New mapping services for SeaMonkey, r=iann_bugzilla
authorMasahiko Imanaka <chimantaea_mirabilis@yahoo.co.jp>
Sun, 20 Dec 2015 23:52:22 +0900
changeset 1976 ac29c8c89099568ef8aaefe5d0f729dfabad6d8c
parent 1975 d8062a4687b78355de21a6a105ee078b653c6e77
child 1977 f3b854e115779e973dc89f203ffdbea66364bf52
push id1073
push useraxel@mozilla.com
push dateMon, 25 Jan 2016 12:40:21 +0000
reviewersiann_bugzilla
bugs1231862
Bug 1231862 - [ja] New mapping services for SeaMonkey, r=iann_bugzilla
suite/chrome/mailnews/region.properties
--- a/suite/chrome/mailnews/region.properties
+++ b/suite/chrome/mailnews/region.properties
@@ -6,20 +6,31 @@
 # messenger.properties
 # mailnews.js
 mailnews.start_page.url=chrome://messenger/content/start.xhtml
 messenger.throbber.url=http://www.seamonkey.jp/
 compose.throbber.url=http://www.seamonkey.jp/
 addressbook.throbber.url=http://www.seamonkey.jp/
 # To make mapit buttons to disappear in the addressbook, specify empty string.  For example:
 # mail.addr_book.mapit_url.format=
-# The format for "mail.addr_book.mapit_url.format" is:
+# The mail.addr_book.mapit_url.format should start with the URL of the mapping
+# service and then the query part with placeholders to be subsituted from values
+# from the addressbook contact's address.
+# Available placeholders are:
 # @A1 == address, part 1
 # @A2 == address, part 2
 # @CI == city
 # @ST == state
 # @ZI == zip code
 # @CO == country
-mail.addr_book.mapit_url.format=http://maps.google.com/maps?q=@A1%20@A2%20@CI%20@ST%20@ZI%20@CO
+# Default map service:
+#en-US: mail.addr_book.mapit_url.format=http://maps.google.com/maps?q=@A1%20@A2%20@CI%20@ST%20@ZI%20@CO
+mail.addr_book.mapit_url.format=http://maps.google.co.jp/maps?q=@CO%20@ST%20@CI%20@A1%20@A2%20@ZI
+# List of available map services (up to 5 can be defined here):
+mail.addr_book.mapit_url.1.name=Google Maps
+mail.addr_book.mapit_url.1.format=http://maps.google.co.jp/maps?q=@CO%20@ST%20@CI%20@A1%20@A2%20@ZI
+mail.addr_book.mapit_url.2.name=OpenStreetMap
+#en-US: mail.addr_book.mapit_url.2.format=http://nominatim.openstreetmap.org/search.php?polygon=1&q=@A1%2C@A2%2C@CI%2C@ST%2C@ZI%2C@CO
+mail.addr_book.mapit_url.2.format=http://nominatim.openstreetmap.org/search.php?polygon=1&q=@CO%2C@ST%2C@CI%2C@A1%2C@A2%2C@ZI
 mailnews.messageid_browser.url=http://groups.google.com/groups?selm=%mid&rnum=1
 # Recognize non-standard versions of "Re:" in subjects from localized versions of MS Outlook et al.
 # Specify a comma-separated list without spaces. For example: mailnews.localizedRe=AW,SV
 mailnews.localizedRe=