Page MenuHomePhabricator

Linktrail broken in kk
Closed, ResolvedPublic

Description

Author: alefzet

Description:
Links with non-English characters like '[[сілтеме]]лер' don't work in kk-wiki.


Version: unspecified
Severity: normal
URL: http://kk.wikipedia.org/wiki/MediaWiki_talk:Linktrail

Details

Reference
bz6753

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:18 PM
bzimport set Reference to bz6753.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

The correct regex would appear to be:

/^([a-zА-Яа-яӘәҒғҚқҢңӨөҺһҮүҰұІі]+)(.*)$/sD

That *should* whitelist all the Kazakh-Cyrillic characters for linktrail, if I
have them correct (from [[Kazakh language]] on enwiki). It would be possible to
institute this change locally by just getting an admin to change
[[kk:MediaWiki:Linktrail]]. (Any additional characters you might want go inside
the square brackets with the others; you can use ranges in Unicode order like
[a-i] or just a list of characters like [abcdefghi].)

alefzet wrote:

(In reply to comment #1)

The correct regex would appear to be:/^([a-zА-Яа-яӘәҒғҚқҢңӨөҺһҮүҰұІі]+)(.*)$/sD

Not at all. It isn't work.
Last change is

[[kk:MediaWiki:Linkprefix]]:
/^(.*?)([a-zA-Zа-яА-ЯäçéğıïñöşüÄÇÉĞİÏÑÖŞÜʺʹёәіңғүұқөһЁӘІҢҒҮҰӨҺ«„]+)$/sD

[[kk:MediaWiki:Linktrail]]:
/^([a-zа-яäçéğıïñöşüʺʹёәіңғүұқөһ“»]+)(.*)$/sD

It appears correct? But still don't work...

ayg wrote:

I've been informed that MediaWiki:Linktrail no longer functions. This will have
to be entered into a new language file.

jimmy.collins wrote:

Fixed in r15938.