Better i18n support
mgifford - March 27, 2008 - 21:25
| Project: | SiteMenu |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
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')));

#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.