|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
yarco Smarty Regular
Joined: 20 Mar 2009 Posts: 39
|
Posted: Tue Mar 24, 2009 9:39 am Post subject: feature request:(not very important)i18n keywords |
|
|
not very important...but seems very funny...
For example, if there exists such configure file:
Code: |
smarty.keywords.ini
[en-US]
if = if
eq = eq
...
section = section
[zh-CN]
if = "如果"
eq = "等于"
...
section = "段"
|
when we write templates, we could use our familiar words, it would be very funny...
Code: |
{如果 $apples 等于 5}
5 个 apples
{/如果}
|
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Mar 24, 2009 9:59 am Post subject: |
|
|
This will not be implemented |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
Posted: Tue Mar 24, 2009 12:15 pm Post subject: Re: feature request:(not very important)i18n keywords |
|
|
yarco wrote: |
when we write templates, we could use our familiar words, it would be very funny...
|
Why reinvent the wheel a second one ?
http://smarty.incutio.com/?page=SmartyGettext |
|
Back to top |
|
yarco Smarty Regular
Joined: 20 Mar 2009 Posts: 39
|
Posted: Tue Mar 24, 2009 5:08 pm Post subject: |
|
|
No...I mean the keywords of smarty...not the content it contains.
BTW, I think gettext is good for c program but not good for php -- it too complex. |
|
Back to top |
|
FractalizeR Smarty Rookie
Joined: 01 Nov 2003 Posts: 16
|
Posted: Thu Jun 11, 2009 6:36 am Post subject: |
|
|
yarco wrote: | No...I mean the keywords of smarty...not the content it contains.
BTW, I think gettext is good for c program but not good for php -- it too complex. |
However, many famous products are using it. WordPress for example. Why is it complex? To me looks the same as config files. _________________ Things are changing,
But nothing changes,
And still there are changes |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|