Please add a language setting to the "Podcast title" plugin

I’m assuming the language tag on the podcast feed is based on the blog language setting. I’d like to suggest adding a language field to the “Podcast title” plugin to allow users to change that. My blog is set to English because most of the content is in English. But my podcast is in Portuguese, and the feed is being automatically set as en.

@manton, I understand this is a very niche request, but based on the posts, comments, and replies I see in the community, I believe there are many users from different parts of the world that also post in English. So, maybe I’m not the only one in this situation.

If you edit your theme, there is a podcast xml file template included in your blog that if you edit should let you set this directly.

Mine currently says:

{{ with .Site.LanguageCode }}
			<language>{{.}}</language>
		{{ end }}

which suggests it is set to the .Site.Languagecode – but you could change that to hard code or to a config command.

1 Like

@jsonbecker, I never noticed this. Thank you so much! I think I’ll do everything from there, including the title, and remove the plugin.

UPDATE: Unfortunately it didn’t work. I changed all the to <language>pt</language> and the .xml file was still displaying <language>en</language>.

The most common explanations for not seeing a change are either that you need to initiate a full rebuild from the logs page, or that another template file, whether in the theme, a plugin, or a higher-priority file in your custom theme, is taking precedence over your changes.

Hey @sod, thank you for the extra information. I did rebuild the site after making the change. As for the other templates, the only two podcast-related files I could find were layouts/list.podcastxml.xml and layouts/list.podcastjson.json. I’m not a developer, so I have no idea if there’s anything else I can do to find out if there’s anything else with a high priority.

@sod, could the “Podcast title” plugin be the high-priority file? I didn’t uninstall it when I made the changes to the layouts/list.podcastxml.xml file.

That’s definitely a possibility. Make sure no other plug-ins provide their own version of the file you’ve modified.

@sod It was the plugin. After removing all the ones related to the podcast, it worked. Thank you so much for your help. And thank you @jsonbecker for suggesting this!