Dzahn has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/344679 )
Change subject: rank.php: display language name in local language
......................................................................
rank.php: display language name in local language
As requested by revi on T111607, display the language
names in the drop down menu of rank.php in the local
language itself, rather than in English.
Bug: T111607
Change-Id: I5124c7a833e88db477f671087fd3e0f857a4e758
---
M var/www/wikistats/rank.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Dzahn: Verified; Looks good to me, approved
diff --git a/var/www/wikistats/rank.php b/var/www/wikistats/rank.php
index 61d6b62..51cd048 100644
--- a/var/www/wikistats/rank.php
+++ b/var/www/wikistats/rank.php
@@ -47,12 +47,12 @@
$lang=htmlspecialchars(mysql_real_escape_string($lang));
}
-$query = "select prefix,lang from wikipedias where prefix is not null order by
prefix asc";
+$query = "select prefix,lang,loclang from wikipedias where prefix is not null
order by prefix asc";
$result = mysql_query("$query") or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
- $languages[$arcount]=$row[prefix]." - ".$row[lang];
+ $languages[$arcount]=$row[prefix]." - ".$row[loclang];
$arcount++;
if ($row[prefix]==$lang) {
$lang_check="OK";
--
To view, visit https://gerrit.wikimedia.org/r/344679
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5124c7a833e88db477f671087fd3e0f857a4e758
Gerrit-PatchSet: 3
Gerrit-Project: operations/debs/wikistats
Gerrit-Branch: master
Gerrit-Owner: Dzahn <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: Revi <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits