Change Location of Language Flags Plone 2.1

by John Gerhardt last modified Dec 30, 2008 03:02 PM
Moving the Language flag or drop down language box selection from the content section to the personal bar. This alleviates some clutter and stops the flags from covering text on smaller screen reolutions.

This is a simple procedure ;) currently only tested with Plone 2.1

Two files need to be edited, so lets go ahead and add them to the "custom" folder...

global_personalbar (plone_templates)
global_languageselector (portal_skins/LanguageTool)

First of all we need to edit the global_languageselector bit so that it doesnt display the flags in the standard content area.

Download "global_languageselector" and copy and paste the code into the custom folder's "global_languageselector".
This code is necessary i.e. you can't leave "global_languageselector" blank to achieve the same result!

Next we need to add the flags to the peronsal bar.

Download "global_personalbar" and copy and paste the code into the custom folder's "global_personalbar".
This code adds the flags after all of the other gubbins that appear on the personal bar.

Thats it!!!