…meie igapäevast IT’d anna meile igapäev…

2014-05-13

How to set the language of the Google Calendar RSS/Atom feed

Filed under: Infotehnoloogia,Nipid — Sander @ 10:55:02
Tags: , , , ,

At home, Google Calendar feed was in Finnish. At work, in English. In InoReader, my current feed reader, Serbian (I think…). In my previous feed reader, Russian.

And no, I didn’t want it that way. Unfortunately, for some reason, instead of using my selected language in Calendar, Google seems to use a badly implemented combination of location sniffing and browser/client accept-language header to specify the language of the feed.

Officially there is no way to set the language of the feed (parameter reference). The “locale” in the same page does not work for feeds, nor does “lan=en” as recommended here. However, non-feed related Google Calendar forum post pointed me to the right direction.

You have to append hl=en (or other google-supported two-letter language code) to your feed URL. So that /calendar/feeds/[email]/private-[key]/basic becomes /calendar/feeds/[email]/private-[key]/basic?hl=en – or, with the other parameters, /calendar/feeds/[email/private-[key]/basic?futureevents=true&max-results=100 to /calendar/feeds/[email/private-[key]/basic?futureevents=true&max-results=100&hl=en.

Lisa kommentaar »

Kommentaare veel pole.

RSS feed for comments on this post. TrackBack URI

Lisa kommentaar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Muuda )

Twitter picture

You are commenting using your Twitter account. Log Out / Muuda )

Facebook photo

You are commenting using your Facebook account. Log Out / Muuda )

Google+ photo

You are commenting using your Google+ account. Log Out / Muuda )

Connecting to %s

Blog at WordPress.com.