Skip to content

Improve handling of locale in Help module

Based on feedback in the Hubzilla support forum, I've made the following changes to how the help module will fetch and display help topics. The focus has been to make the module more robust, and for allowing a gradual approach to translations.

  • The separate language selector for help pages has been removed. We now default to using the locale of the channel when displaying help topics.
  • When a help topic is not found in the preferred locale, the default English version is displayed with a notice at the top of the page about it not being available in the preferred language.
  • Removed the nasty JavaScript that rewrote the URL in the browser address bar to include the preferred language in the URL. This was a dirty hack that only caused problems.
  • Removed JavaScript related to the now removed separate language selector.
  • Added translation of the $Projectname macro when loading the toc.html file used in the sidebar of the help module.
  • Cleaned up a bit and fixed some minor issues along the way.

Merge request reports