2026-06-24 Language tagging in blog posts ========================================= > It's 35°C outside … and inside, too! Topless computing is the name > of the game, I'm sorry to say. Here's what I wanted to do: The posts on this blog are being posted to fedi via @blog@social.alexschroeder.ch. This is cool. But I noticed that they aren't posted with a particular language. Hm, I thought. This must be a problem of rss-bot. And it is, it doesn't know about language tags. But then I checked my feed, and noticed that it also doesn't have the language tags. The blog runs on Oddμ. I figured it this should be easy to fix. I'll just add the xml:lang attribute to the template for the RSS feed. The software already knows the language used on the blog post and the view template uses it. The HTML pages are tagged appropriately! This is important for hyphenation and screen readers. Sadly, adding the attribute to the feed template didn't fix it, because the code that produces the feed took a shortcut: It loaded each page that would appear in the feed and copied the attributes it needed from the Page structure into the Item structure. And at the time I didn't need the Body attribute. But the Language code operates on the plainText result which uses the Body. Oh no! And so now I'm starting back there, working my way through the layers of the problem. #Oddμ #RSS