From e394f6a2d8ff89ad8d9d68dc3aa62ed2680e84e2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 26 Aug 2008 18:51:27 +0000 Subject: [PATCH] Quick hack to fix the broken hack noted in bug 15301 Use of: $action_desc[0] = strtolower($action_desc[0]); is horrible wrong for a few reasons: 1) The first-byte match fails for all non-ASCII characters -- use lcfirst()! 2) System strtolower() or lcfirst() may not work for UTF-8 or lang-specific issues properly; use $wgLang->lcfirst() 3) You shouldn't be forcing things to lowercase here anyway, you can't know it's correct gramattically. This whole message output should be redone cleanly; either all the rights info messages should be designed to work in an inline list sentence, or they should be formatted as stand-alone text strings using a