wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multi language support with templates

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Web Sites and HTML Templates
View previous topic :: View next topic  
Author Message
Kippen



Joined: 20 Apr 2006
Posts: 8
Location: Stockholm - Sweden

PostPosted: Sun May 14, 2006 2:52 am    Post subject: Multi language support with templates Reply with quote

I have tried to create multi language support by using the feature in Apache showing the correct language dependent on browser preferences and file names like

index.html.no (Norwegian)
index.html.se (Swedish)

but I cant get the template generator to work with template files named

index.htx.no
index.htx.se

Is there a way to do this in wview, or do I have to generate files like index-no.htx and then rename the file in a cron job to get this working?

/Kippen
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Sun May 14, 2006 3:38 am    Post subject: Reply with quote

Hi Kippen

A way to do this would be to name your template files as apache needs them, but add an 'x' to the end, like this:

index.html.nox
index.html.sex

Cheers

Jon
Back to top
View user's profile Send private message
Kippen



Joined: 20 Apr 2006
Posts: 8
Location: Stockholm - Sweden

PostPosted: Sun May 14, 2006 6:20 am    Post subject: Reply with quote

That works nicely, thanks.

Then I probably have to post to the wishlist to get fuctions to generate multi lingual images-metric.conf and forecast.conf files since these also are different with regards to naming, units and language.

I think it would be nice to have at least local and english pages.

/Kippen
Back to top
View user's profile Send private message Visit poster's website
Kippen



Joined: 20 Apr 2006
Posts: 8
Location: Stockholm - Sweden

PostPosted: Sun May 14, 2006 9:54 am    Post subject: Reply with quote

The images were easy as well...

I only had to add the images I wanted again with different filename and labels/unit names to the end of the images-metric-mm.conf file and adjust accordingly in the template files.

Only thing left is the forecast text. Not sure how to do that though.

/Kippen
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Web Sites and HTML Templates All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group