maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Lundberg (JIRA)" <>
Subject [jira] Commented: (MSITE-41) Add a list of available language in site plugin
Date Sat, 04 Dec 2010 16:58:03 GMT


Dennis Lundberg commented on MSITE-41:

Yevgeny, when you say "locale icons" do you mean images of flags for different countries?
If so, then I would be opposed to adding those.

The best way is to use the Locale objects and extract the information from there. I see two
options for what to put in a drop-down menu.

1. Use the 2-letter language codes as defined in ISO 639-1. "en" for English, "fr" for French,
"de" for German etc.

2. Use the name of the language, written in the current language of the site you are viewing.
If you are looking at an English page the names of the languages would be written in English.
"German", "Spanish" and "French" for example. If the page is in German, you would use values
like "Deutsch", "Spanisch" and "Französisch" instead. It is possible to get this information
using the Locale objects. The [l10n Plugin|] uses
some of those features.

> Add a list of available language in site plugin
> -----------------------------------------------
>                 Key: MSITE-41
>                 URL:
>             Project: Maven 2.x Site Plugin
>          Issue Type: New Feature
>          Components: internationalization
>            Reporter: Vincent Siveton
>         Attachments: language_menu.jpg, language_menu.jpg, language_menu.jpg, language_menu_as_select.jpg
> Please see the attached screenshots
> This preference menu could be a list of links or a <select/> tag. 
> The site descriptor needs to be updated:
> * for <select/>, by adding asSelect attribute in the menu element.
> * for links list, by adding nostrong attribute in the menu element (to not display as
strong the current language and the current page)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message