1
Koeneke
language constants
  • 2008/8/25 19:21

  • Koeneke

  • Just popping in

  • Posts: 19

  • Since: 2008/1/30


Hello all,

Is it really necessary to assign each language constant that you want to use?

Isn't it possible to directly use them as how they are named in the languagefiles?
This because if you have a lot of language constants, it's quite difficult to know if you have assigned all constants or not...

So, instead of doing this:
step 1) in language/english/main.php
define("_MD_YES", "YES");
step 2) then in module/index.php
$xoopsTpl->assign('lang_yes', _MD_YES)
step 3) in module/templates/index.html
<{lang_yes}>

isn't it possible to do only steps 1 and 3 and get rid of step 2?

Thank you for helping a newbie.
Koeneke

2
Koeneke
Re: language constants
  • 2008/8/25 19:36

  • Koeneke

  • Just popping in

  • Posts: 19

  • Since: 2008/1/30


Apparently, I was too quick to post this question...
I already found a sollution, using <$smarty.const._MD_YES}>

Is this the correct and only way to do this?

Thanks,
Koeneke

Login

Who's Online

327 user(s) are online (260 user(s) are browsing Support Forums)


Members: 0


Guests: 327


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits