• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Improper Title Case

Floren

Well-known member
#1
If you set the Title Case option in XenForo options, words containing the "-" character are malformed.
If I'm not mistaken, all title sentences containing a - should be formatted Upper case.

Example: Off-Topic, not Off-topic.
 

Mike

XenForo developer
Staff member
#2
The title case option is just an option that sets the first character in each word to upper case (using ucwords). There isn't any intention to go to any further detail.
 

Floren

Well-known member
#3
That should do it @Mike:
Code:
$ php -r 'var_dump(mb_convert_case("off-topic TITLE", MB_CASE_TITLE, "UTF-8"));'
string(9) "Off-Topic Title"
Thanks for implementing this.