Change order of theme calls in Drupal 5 to expose translations to i18n_client (DIY patch for Drupal 5)
Benjamin Melançon - November 12, 2007 - 16:32
| Project: | Localization client |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
From Gabor:
l10n_client uses hook_footer() which is the last time we can add output to the theme, but unfortunately Drupal 5 does not fill in this variable last when building the variable list for phptemplate themes. In fact it builds it quite early, as "theme_closure" does the code building and "closure" is early in the alphabet. Heh. We fixed this in Drupal 6 core quite some time ago, but [...] the l10n_client patch for Drupal 5 should probably include a change to move the theme('closure') call in phptemplate.engine down the list.
"In the meantime, you can do it yourself, and move the theme('closure') to be the last list item in the code, you will see."
