rejetto forum

Diff Template (=alternative template) Proposal

~GeeS~ · 26 · 48001

0 Members and 1 Guest are viewing this topic.

Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
Very good idea the %lang% symbol !

I've tried to use java to get the language of the browser/system, but it will produce much overhead having different languages in the same template.

But the %lang% poses some problems. Supose than %lang% can be something like 'de','en','es','fr','it' and so on. Could we then use something like [sym-tblde],[sym-tblit] with %symtbl%lang%% ??
In all case, y think %lang% will need in the hfs.ini a list of our supported languages, and in the case that the language isn't in this list, %lang% should be empty, in order to use our default language.

Many thanks, rejetto, for your great work!
Molte grazie per il tuo lavoro eccellente !
your computer has no brain - use your own !


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i get the idea.
such thing is possible, but i'm not sure it will be done, i have to consider how this will affect the rest of the code.


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
how about you create a new template file for each language and have them called <language>.diff.tpl and then when you first connect to hfs, hfs requests the client lnguage and if a templae matching the language is found it is then used otherwise use the one set in the editor.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile

Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
So now, U all talked about AlOnso's crap comment about %lang%

Back to diff. temp. please  ... rejetto, times are tough ... how are things going for diff. temp ?
Merci
Tcube
Make it idiot-proof and I will make a better idiot


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
how about you create a new template file for each language and have them called <language>.diff.tpl and then when you first connect to hfs, hfs requests the client lnguage and if a templae matching the language is found it is then used otherwise use the one set in the editor.

re-reading your proposal, i misread, it is different than others.
but now that we have macros, i think it is possible to make it by putting this at the end of the template
{{load|%lang%.diff.tpl}}


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Back to diff. temp. please  ... rejetto, times are tough ... how are things going for diff. temp ?

what are you referring to?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Mars, I hope there was nothing I was supposed to answer to in your post, because i didn't get any point.

Anyway, consider that starting with "sym-" is no more mandatory.


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
Not sure which side is getting silly  ;)  anyway, I 'm refering to this 1st post 1 page :

Quote
Proposal:
Is it possible to implement, instead of copy/pasting code to the popup window, entering the file name for the alternative code, like hfs_jpg.tpl, hfs_clean.tpl, hfs_1 ... etc. These alternative tpl files would reside in the same directory as the default hfs.tpl and applied instead of hfs_default. This would increase usability a lot.
Make it idiot-proof and I will make a better idiot


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
sorry, i probably considered implicit:
in the popup dialog just type {{load|hfs_jpg.tpl}}
or any other file name
you could even BUILD the file name (by other commands) instead of typing it ;D


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
No harm done : I moved to built 146 couple of days ago ... don't know shit yet about macros I'll read the wiki  ;D  merci Rejetto
« Last Edit: November 29, 2007, 08:12:05 PM by TCube »
Make it idiot-proof and I will make a better idiot