Jump to content

Set Default Country for Calendar Events


KT Walrus

Recommended Posts

When I add a calendar event with a location, the country is not set by default (in my case, it should default to United States). The focus is automatically on the street address, and if I don't select the United States before entering the street address, I don't get Google Maps auto-complete for the address.

Seems to me that this behavior isn't as friendly as it could be, especially since for other forms, the address field sets the default country from the locale for the current user.

Link to comment
Share on other sites

  • 3 months later...
  • 2 years later...
20 hours ago, Sonya* said:

It does not work for me. The country is not defaulted. And I mean the field is not filled with any country. I am in Germany using browser in English. What should be default in this case?

It depends on the Accept-Language header your browser sends, ultimately. If it sends "en-US" we can guess you are probably from the US for instance.

Link to comment
Share on other sites

I see the problem looking at your string there. I'll raise a bug report. Basically, your first option is just "de" and we're looking for "de-DE". Your other options have a quotient applied and we're not handling that in our basic sniffer.

In other words, it just comes down to the formatting of your Accept-Language header not being accounted for.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...