rejetto forum

Software => HTML & templates => HFS ~ HTTP File Server => RAWR-Designs => Topic started by: parade on December 08, 2007, 10:04:32 AM

Title: Localisation
Post by: parade on December 08, 2007, 10:04:32 AM
As I have some friends not so common with English I did some localisation to German, editing you template and change all   menue items and balloon tips.
I shall have to to this again, when you offer a new release.

Therefore I think it a good idea for the next release to change all menue items and balloon tips to symbols and put the items in an ini-file. So everyone who wants can easily edit the ini-file. It would be perfect if the client even could switch between languages.

I don't know enough about bulding templates that I can say if this is possible and how much work it would be to do this.
Just a suggestion.

Grettings
parade
Title: Re: Localisation
Post by: TSG on December 08, 2007, 12:27:20 PM
Not possible with .ini and i'm not going to complicate my templates just for other languages. English FTW

I have fabnos converting ToG and Terayon to Italian for us. Any other translations are welcome, and when i say translation i mean simply translate the text items, leave the template itself alone so we can release it under the same build and name.

@ Foggy, more sections the slower the template is at generating, i am not going to complicate the template just for other languages. People can just post translations.
Title: Re: Localisation
Post by: Foggy on December 08, 2007, 12:36:50 PM
What you ask is possible with javascript but not very practical.

It might be possible in the the actual template if we could create variables and have them in an external file we can call by {{load|file.ini}}(I dont remember the load macro syntax), that way they are easily editable and to just have variables in the template would be very useful.

We could use [sections] and %sections% as variables but is that very practical with a lot of them being used?

But in the end it is up to TSG about implementing such a thing in the TOG. I however am going to try creating a template and am going to try my hardest to make it very customizable for the user, so you've given me a great idea.

TSG beat me replying but I'm still posting everything I wrote.
Title: Re: Localisation
Post by: bacter on December 08, 2007, 01:19:42 PM
As templates use very few text, y use variable arrays in javascript, indexed by a language variable that can be set by the user to select between different languages. Template grows a little compared to pure html,as i have to invoke document.write everywhere, but it's not slow. Template generation time is always short compared to the downloadtime , especially if the template includes images that are not already cached, or if there is some recursive or filter enabled.
Title: Re: Localisation
Post by: TSG on December 08, 2007, 02:13:26 PM
Because not all users use javascript. And javascript is the last thing a browser does on page load so no. It is slower than template generation.
Title: Re: Localisation
Post by: rejetto on December 08, 2007, 03:02:08 PM
moved to www.rejetto.com/forum/?topic=5349