Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

feature request:(not very important)i18n keywords

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
yarco
Smarty Regular


Joined: 20 Mar 2009
Posts: 39

PostPosted: Tue Mar 24, 2009 9:39 am    Post subject: feature request:(not very important)i18n keywords Reply with quote

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...Smile
Code:

{如果 $apples 等于 5}
  5 个 apples
{/如果}
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5067
Location: Hamburg / Germany

PostPosted: Tue Mar 24, 2009 9:59 am    Post subject: Reply with quote

This will not be implemented
Back to top
View user's profile Send private message
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 321

PostPosted: Tue Mar 24, 2009 12:15 pm    Post subject: Re: feature request:(not very important)i18n keywords Reply with quote

yarco wrote:

when we write templates, we could use our familiar words, it would be very funny...Smile


Why reinvent the wheel a second one Smile?

http://smarty.incutio.com/?page=SmartyGettext
Back to top
View user's profile Send private message
yarco
Smarty Regular


Joined: 20 Mar 2009
Posts: 39

PostPosted: Tue Mar 24, 2009 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
FractalizeR
Smarty Rookie


Joined: 01 Nov 2003
Posts: 16

PostPosted: Thu Jun 11, 2009 6:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP