View previous topic :: View next topic |
Author |
Message |
Kippen
Joined: 20 Apr 2006 Posts: 8 Location: Stockholm - Sweden
|
Posted: Sun May 14, 2006 2:52 am Post subject: Multi language support with templates |
|
|
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 |
|
|
bhnb
Joined: 28 Nov 2005 Posts: 127
|
Posted: Sun May 14, 2006 3:38 am Post subject: |
|
|
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 |
|
|
Kippen
Joined: 20 Apr 2006 Posts: 8 Location: Stockholm - Sweden
|
Posted: Sun May 14, 2006 6:20 am Post subject: |
|
|
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 |
|
|
Kippen
Joined: 20 Apr 2006 Posts: 8 Location: Stockholm - Sweden
|
Posted: Sun May 14, 2006 9:54 am Post subject: |
|
|
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 |
|
|
|