rejetto forum
May 25, 2012, 01:53:50 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: tpl localisation  (Read 6644 times)
0 Members and 1 Guest are viewing this topic.
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #15 on: December 26, 2007, 06:36:17 PM »

basically, be able to load strings for [special:strings] from more then one file.

Edit: Just thought I'd try what I was asking and it worked but because you have to use {{load}} in [special:begin] at the top of the page the contents of the [special:string] sections that were loaded are displayed.

Edit2: Actually it didn't work, the special:strings were cached and a restart of hfs proved this. I'm trying to find the forum post which explains about loading them from external files. Found the post and using Load from special:begin isnt working for me as I said above.
A picture can explain better than i can. PICTURE
« Last Edit: December 27, 2007, 12:11:15 AM by Foggy » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #16 on: December 29, 2007, 08:36:03 PM »

i may create a macro M (we'll decide the name later) that can handle string tables like these.

so you load any table
{{set|mytable|{{load|tablefile.txt}}/set}}

you can even append tables at later time
{{set|mytable|{{^mytable}} {{load|othertable.txt}}/set}}

and when you need a value from the table
{{M|mytable|key}}


opinions?
Logged
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #17 on: December 30, 2007, 02:20:47 AM »

I like it, it will make it easier to use dynamic content becuase we would be able to load certain strings when a certain condition exists.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #18 on: January 04, 2008, 02:41:27 PM »

available from next beta
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1481



View Profile WWW
« Reply #19 on: January 04, 2008, 04:15:51 PM »

Don't forget to add a macro with this possiblity

{{M|mytable| [sectionname] }}wich include all the section [sectionname]

this syntax  [...] is important to make difference with 'key'

{{M|mytable| [sectionname] }} or  {{M section|mytable|sectionname}}

 I know what rejetto will say to me :
"who needs this ?"

Grin Grin Grin
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11829


View Profile
« Reply #20 on: January 05, 2008, 09:29:38 AM »

the M macro has been called "from table".
as you guess, "from table" has nothing to do with the feature you asking.
moreover, it is already available since build #161. it is {{section|name|file}} but i forgot to document it. Smiley
« Last Edit: January 05, 2008, 09:32:37 AM by rejetto » Logged
rejetto forum
« Reply #20 on: January 05, 2008, 09:29:38 AM »

Do you like this software? Consider even $2
 Logged
Foggy
Insane poster
*****
Offline Offline

Australia Australia

Posts: 806


View Profile
« Reply #21 on: January 17, 2008, 07:47:12 AM »

is already available since build #161. it is {{section|name|file}} but i forgot to document it. Smiley

I just tried to use this and couldnt figure out how to. I ended up using set and from table instead.
Logged
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 08, 2012, 03:47:47 PM
anything