rejetto forum
May 24, 2012, 07:12:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Diff Template (=alternative template) Proposal  (Read 23186 times)
0 Members and 2 Guests are viewing this topic.
bacter
Operator
Insane poster
*****
Offline Offline

Spain Spain

Posts: 679


View Profile
« Reply #15 on: September 16, 2007, 03:18:13 PM »

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 !
Logged

your computer has no brain - use your own !
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #16 on: September 21, 2007, 03:12:59 PM »

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.
Logged
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #17 on: September 22, 2007, 03:48:03 AM »

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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #18 on: September 22, 2007, 05:48:35 AM »

this was already accepted few posts before
Logged
TCube
Insane poster
*****
Offline Offline

France France

Posts: 431



View Profile
« Reply #19 on: November 29, 2007, 05:41:27 AM »

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
Logged

Make it idiot-proof and I will make a better idiot
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #20 on: November 29, 2007, 06:50:52 AM »

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}}
Logged
rejetto forum
« Reply #20 on: November 29, 2007, 06:50:52 AM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #21 on: November 29, 2007, 06:52:14 AM »

Back to diff. temp. please  ... rejetto, times are tough ... how are things going for diff. temp ?

what are you referring to?
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #22 on: November 29, 2007, 08:57:24 AM »

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.
Logged
TCube
Insane poster
*****
Offline Offline

France France

Posts: 431



View Profile
« Reply #23 on: November 29, 2007, 10:13:24 AM »

Not sure which side is getting silly  Wink  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.
Logged

Make it idiot-proof and I will make a better idiot
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #24 on: November 29, 2007, 10:25:49 AM »

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 Grin
Logged
TCube
Insane poster
*****
Offline Offline

France France

Posts: 431



View Profile
« Reply #25 on: November 29, 2007, 11:19:01 AM »

No harm done : I moved to built 146 couple of days ago ... don't know shit yet about macros I'll read the wiki  Grin  merci Rejetto
« Last Edit: November 29, 2007, 02:12:05 PM by TCube » Logged

Make it idiot-proof and I will make a better idiot
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 23, 2012, 02:37:39 AM
anything