Daniel Friesen wrote:
tstarling@svn.wikimedia.org wrote:
[...]
-$linkTrail = '/^(\p{L&}+)(.*)$/usD'; +$linkTrail = '/^([a-z]+)(.*)$/sD';
/**
- List of filenames for some ui images that can be overridden per language
Do you think we could at least use some sort of $wgUseUnicodeLinktrail and default it to false until we find a good way to test if it is supported?
Amendum, this would probably fit in similar to $wgCookieHttpOnly as something like $wg[Support[s|ed]|Use]PcreUnicodeProp[ertie]s and may actually have more use than just the linktrail.
Well, if you want a feature test, you can just use
defined('PCRE_VERSION') && version_compare(PCRE_VERSION, '5.0', '>=')
But I couldn't see the point. It's not like it was a frequently-requested feature. I'd rather keep the syntax consistent across all installations.
-- Tim Starling