Just to complete this thread, here are a couple of examples of the 
simple language bar on a site that's under trial and design right now.

This shows links to 2 translations that exist:
 > http://tec.onghu.com/en/news/t-news-tron-show-2008/

This shows links only to the article itself because there isn't any 
other translation:
 > http://tec.onghu.com/cn/articles/ims_reference/

All this is rendered automatically through a snippet that's part of the 
layout and is based on the convention I'd described earlier.

At this point, I'd also like to express a word of thanks for the person/ 
people who created the copy_move extension.  Getting the content aligned 
like this would have been extremely tenuous if I had to do it myself!

Cheers,
Mohit.
11/1/2007 | 3:02 AM.

Mohit Sindhwani wrote:
> Hello again.  Wisdom comes minutes after you click on 'Send' asking 
> for help.
>
> Silly me!  What I needed to do was learn how to write a 
> <r:teao:if_lang> tag.
> It's been a good day.  I've learnt how to:
> - write an iterator tag <r:teao:each>
> - write a conditional tag <r:teao:if_lang>
> - find the URL of the current page in an extension
>
> And this is what the final snippet now looks like (gee, I like the 3Rs 
> - Radiant, Radius, Ruby):
> This page is available in: <r:teao:each>
> <r:teao:if_lang>
> * <r:teao:nulink /></r:teao:if_lang>
> </r:teao:each>
>
> I know that the names of the tags need to be changed.  If anyone is 
> interested in these tags, just get in touch.
>



_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to