I suggest you look at the helppgaes ... the answers to your questions are posted there. You need to be willing to understand them though ...
1) Language Flags:
Hide the container pages (parents)
To hide the container pages English and German from the navigation menu, one needs to change the variable $start_level of the show_menu call in the index.php file of your template. Changing the variable $start_level from 0 (show menu from root level e.g. English and German) to 1 (start menu from level: root +1) hides the container pages. Change the following line int the index.php file of your template
<?php show_menu(); ?>
into:
<?php show_menu(1, 1); ?>
If you use multiple menus, the first parameter of show_menu may be adapted according your needs. Read the variable description of show_menu() for further information.
Allow language change from any displayed page
To allow your visitors to change the language from any displayed page, one needs to add an additional show_menu() call function to the index.php file of your template. If you have sticked to the page structure shown in Figure 1 above, all container pages are on the root level. To show only the root level pages, one needs to modify the 2nd ($start_level = 0) and 3rd function variable ($recurse = 1) of show_menu.
To add a text link with the menu titles (EN, DE) of the container pages, add another show_menu() function call to the index.php file of your template.
show_menu(1, 0, 1, true, "[a][menu_title][/a]", '', '', '', false, '', 0);
If you want to add a flag symbol for each language instead, use the following code.
show_menu(1, 0, 1, true, "[a]<img src=" .WB_URL .
"/media/flags/[menu_title].gif />[/a]", '', '', '', false, '', 0);
The code above assumes that the flag symbols are uploaded via the WB backend to the folder /media/flags. One needs a symbol flag for each supported language. The flag symbols must be named as the menu titles (e.g. EN.gif, DE.gif). Depending on the server operating system, the flag symbols are case sensitive. This enables the visitor to change the language by clicking on the flag symobl.
2) Language for the Namespace
A bit more difficult, but this:
Meta tag charset
The following meta tag defines the default charset used by the browser. This entry is essential as it provides information about the encoding of the characters contained in the index.html file. If the charset used does not fit to the WB settings, the characters may be displayed wrong.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Replace the line above located in the index.html file with the PHP code shown below.
<meta http-equiv="Content-Type" content="text/html; charset=<?php
if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else
{ echo 'utf-8'; }?>" />
together with a look at the variables and constants:
Other Constants Description:
PAGE_ID page identification number of current displayed page
PAGE_EXTENSION page extension of current displayed page (e.g. .php)
PAGES_DIRECTORY pages directory of current displayed page(e.g. pages)
MEDIA_DIRECTORY name of the media directory (e.g. media)
LANGUAGE language of current displayed page (e.g. EN, DE)
DEFAULT_LANGUAGE default language (e.g. EN)
might give you this result:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo LANGUAGE;?>" lang="<?php echo LANGUAGE;?>">
btw, all the quotes above have been copied from the helppages. I admit, for the code you'd have to dive a bit into WB ... but not unnecessary deep in my opinion.
cheers
Klaus