From 7928acbcd43d0658743aac743d2ae88138896ad6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 28 Sep 2008 08:45:03 +0000 Subject: [PATCH] * (bug 15196) Free external links should be numbered in a localised manner --- RELEASE-NOTES | 1 + includes/parser/Parser.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 495425dd23..89b45281f5 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -230,6 +230,7 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 15642) Blocked sysops can no longer block other users * Http::request() now respects $wgHTTPtimeout when not using cURL * (bug 15158) Userinvalidcssjstitle not shown on preview +* (bug 15196) Free external links should be numbered in a localised manner === API changes in 1.14 === diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 1f560136ad..c5b11acd0c 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1377,7 +1377,8 @@ class Parser if ( $text == '' ) { # Autonumber if allowed. See bug #5918 if ( strpos( wfUrlProtocols(), substr($protocol, 0, strpos($protocol, ':')) ) !== false ) { - $text = '[' . ++$this->mAutonumber . ']'; + $langObj = $this->getFunctionLang(); + $text = '[' . $langObj->formatNum( ++$this->mAutonumber ) . ']'; $linktype = 'autonumber'; } else { # Otherwise just use the URL -- 2.20.1