You are here: Re: [SMARTY] capitalize modifier « Smarty Templates Posts « IT news, forums, messages
Re: [SMARTY] capitalize modifier

Posted by Harrie Verveer on 11/24/05 17:20

If you put it that way, it should say:

DidN't

But the parser does not speak english...

Besides that - I think "didn't" is not correctly written english (I
remember something like that from my english lessons). Aldough you
pronounce it like didn't or whouldn't or couldn't, you write it like
'did not', 'whould not' or 'could not'. In other words: the smarty
capitalize modifier works correctly, but your written english is buggy :).


Daniel Hedrick wrote:

> On Nov 24, 2005, at 6:55 AM, messju mohr wrote:
>
>> count this behaviour as "on purpose"
>
>
> Just because something is "on purpose" doesn't mean it's not a bug.
>
> According to the documentation, "[capitalize] is used to capitalize
> the first letter of all words in a variable."
>
> In the word "didn't", the "T" is not the first letter.
>
> Therefore, it is a bug.
>
> It's either in the code or in the documentation. I don't care which
> you fix, but it most certainly *is* a difference in behavior from the
> expectation. A dependency on pcre doesn't make it any less of a bug.
>
> -daniel
> --
> http://www.hedrick.org/daniel?sig
>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация