Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have found 2 bugs related to the page title translation
1. If you change the page title from the settings form or just save that form, so that the variable site_map_page_title gets set, the title of the page it doesn't get translated anymore.
2. If you haven't changed the title or haven't saved the settings form and you access the settings form from a different language, the page title in the form will be shown translated and you might overwrite the page title with its translation.
Comment | File | Size | Author |
---|---|---|---|
#1 | site_map-page_title_translation-2500421-1-D7.patch | 1.13 KB | dragos-dumi |
Comments
Comment #1
dragos-dumi CreditAttribution: dragos-dumi commentedI attached a patch for this issues.
Comment #2
dragos-dumi CreditAttribution: dragos-dumi commentedComment #4
colanThanks for the patch, but t() shouldn't be used to translate variables. See that manual page or Translating user-entered strings in D7 for more information.
For now, I've set it up so that the built-in "Site map" string is translatable, but not if you actually set anything on the configuration screen. As soon as that happens, that title will take over for all languages. This is less than optimal, but it's the best we can do until we get a proper i18n_string() implementation.
If you could provide a patch for that, I'd really appreciate it!
Comment #5
colan