Posted by mgifford on March 27, 2008 at 9:25pm
Jump to:
| Project: | SiteMenu |
| Version: | master |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Wrapping the output of the sitemenu's title & description in t() will enable it to be used effectively in a multi-lingual site.
Please consider adding the following to your code:
295c295
< $output .= variable_get(SITEMENU_DESCRIPTION, '');
---
> $output .= t(variable_get(SITEMENU_DESCRIPTION, ''));
369c371
< $title = variable_get(SITEMENU_OVERVIEW_TITLE, t('site map'));
---
> $title = t(variable_get(SITEMENU_OVERVIEW_TITLE, t('site map')));
Comments
#1
Mike,
I don't think t() would work like this.
variable_get() retrieves data from the variables table, and I don't think there is multiple languages for those.