https://bugs.kde.org/show_bug.cgi?id=427640
--- Comment #5 from Alvin Wong <[email protected]> --- (In reply to Tyson Tan from comment #4) > The wordpress plugin Polylang has all the versions linked, I wonder if we > can make use of that. The problem is that they are not listed on the RSS feed, so we need to add custom tags, and actually adding them involves adding a filter/hook in WordPress. The remaining part is obtaining the URLs of the items in other languages, which I'm sure Polylang has a function for. I am not familiar with WordPress, but I found that the `rss2_ns` hook [1] can be used to add the custom namespace and the `rss2_item` hook [2] [3] can be used to write the custom tags. These should be useful if we do need to cross-reference the English feed and the localized feed. [1]: https://developer.wordpress.org/reference/hooks/rss2_ns/ [2]: https://developer.wordpress.org/reference/hooks/rss2_item/ [3]: https://codex.wordpress.org/Plugin_API/Action_Reference/rss2_item > I have an idea of an alternative approach too: How about we add a language > droplist above the news widget, and default it to the current locale? We can > also make the English feed available regardless of the current locale, so > people (especially we translators) can learn about them as soon as possible. A dedicated language selection for news is definitely useful. We probably should still find a way to choose the appropriate default for the best user experience, but this has a lower priority. -- You are receiving this mail because: You are watching all bug changes.
