|
#1
|
|||
|
|||
|
I wanted to add small flag icons in the navigation section to switch between English and German. The template files are named like "about_DE_template.html". (I chose to use uppercase language codes.)
-Add flag icons to the language directory. -In the navigation section of the templates, add: <a href="?lang=DE" title="Deutsch"><img src="language/Deutsch.gif" border=0> </a> <a href="?lang=EN" title="English"><img src="language/English.gif" border=0> </a> -Since I used uppercase language codes, I had to edit line 181 to remove the strtolower() function: $default_language_abr = $PP_supp_lang[$cfgrow['langfile']][0]; Now, by clicking on a flag, the language preference is quickly changed. See it at: http://www.randalcarr.com/rc/photoblog/index.php |
|
#2
|
|||
|
|||
|
Hi MooseReiver, not trying to be pedantic but Durchsuchen or Archiv Durchsuchen is better than brausen as it has nothing to do with browsing.
|
|
#3
|
|||
|
|||
|
Danke
Thank you! It's been 25 years since I studied Deutsch. <blushes>
|
|
#4
|
|||
|
|||
|
WHERE PUT THE IMAGE ( DEUTSCH.GIF and english.gif) ?
|
|
#5
|
||||
|
||||
|
simplest way to show flags is to replace the wording by the image link in the appropriate language file:
$lang_alt_lang_english ="<img src=\"templates/en.gif\" border=\"0\" alt=\"English\" />"; |
| Post Reply |
| Thread Tools | |
|
|