Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 07-01-2007, 03:45 PM
Hans Offline
forum loafer
 
Join Date: Jun 2007
Location: Netherlands
Posts: 13
<ALTERNATIVE_LANGUAGE> link

I am using the <ALTERNATIVE_LANGUAGE> tag now, with English as main and Dutch as alternative language. It works fine.

However, this tag creates a link that shows the word 'English' or 'Nederlands' (Dutch) as a description on the site. I would like to change this description, for example into an image of the English or Dutch flag.

I managed to do exactly that by *not* using the tag and supplying the link myself. But it would be better to use the tag. Isn't there is a way to use this tag and somehow be able to change the link description into another description or into an image?
__________________
Hans @ http://www.okebaja.com/

Pixelpost version: 1.6.0

Last edited by Hans; 07-01-2007 at 07:42 PM.
Reply With Quote
  #2  
Old 07-02-2007, 02:36 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
There is no harm in using direct links to switch between alternative languages.

A tag is not mandatory in this situation.
Reply With Quote
  #3  
Old 07-02-2007, 06:32 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Dave, you should read your own documentation

Hans: the text for the language are in the corresponding language files. If you open up lang_english.php in an ascii editor you would find the following section:

Code:
// Alternative language
$lang_alt_lang_dutch="Nederlands";
$lang_alt_lang_english="English";
$lang_alt_lang_french="Français";
$lang_alt_lang_german="Deutsch";
.....
There you can change the text displayed like this:

Code:
$lang_alt_lang_english="<img src=\"lang_en.gif\" alt=\"English\" />";
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #4  
Old 07-02-2007, 05:53 PM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
LOL, I knew about this perfectly well but there is no need for it.

It just adds 1 more thing to worry about when upgrading.
Reply With Quote
  #5  
Old 07-02-2007, 06:49 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Don't get me started on upgrading I have to manually update the language files every time you think of something nice

Hans: So yeah, in retrospect you might want to hardcode the url in the template files as suggested by dwilkinsjr. That would save you the hassle when upgrading (like me).
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #6  
Old 07-02-2007, 07:56 PM
Hans Offline
forum loafer
 
Join Date: Jun 2007
Location: Netherlands
Posts: 13
Ok, thanks for your suggestions. Yes, I will rather stay with my current solution, because I know that I forget those things when upgrading :-o

Feature Request for next version (if I may) : Add option in Admin screens to set the text for the link of the main and the alternative language... The text could default to the text as read from the language files.
__________________
Hans @ http://www.okebaja.com/

Pixelpost version: 1.6.0
Reply With Quote
  #7  
Old 07-02-2007, 08:08 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Yeah, problem is that it would add even more fields to the database and we want to make it smaller
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:46 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs