https://bugzilla.wikimedia.org/show_bug.cgi?id=41786

--- Comment #2 from Ariel T. Glenn <[email protected]> 2012-11-13 18:46:24 
UTC ---
OK, shortcuts are now working.  Did:

0) create interwikicdb on the site itself, rather than using a cdb file from
wmf. To do this:

steal a copy of extensions/WikimediaMaintenance
steal copies of langlist  all.dblist  special.dblist, put them somewhere nice
add wikitech to all.dblist.
edit dumpInterwikis.php to use the path you put the files in instead of
/home/wikipedia/commons
edit WikimediaMaintenance.php to include LocalSettings.php instead of
CommonSettings.pgp (with the right path too)

php extensions/WikimediaMaintenance/dumpInterwiki.php -o
/some-nice-place/testcache.cdb

1) set $wgInterwikiFallbackSite = "wikitech";
in LocalSettings.php; if you don't do this the interwiki code thinks the site
name is "wikitech-mw_ and finds nothing in the interwiki.cdb file with that.
(must be due to db prefix.)

2) dump the interwiki cdb you just created (cdbdump < /path/to/cdb-file >
/path/to/interwiki-text)
for each entry starting with wikitech, add an identical entry (add one to key
length) starting with _

example:
+10,33:wikitech:q->1 http://en.wikiquote.org/wiki/$1
gets an additional line
+11,33:_wikitech:q->1 http://en.wikiquote.org/wiki/$1

(prolly could take out the original lines but whatever.)

make the new cdb file from the text you just edited:
cdbmake new-cdb-fiel temp-cdb-file-you-can-toss-shortly <
/path/to/interwiki-text
copy the new cdb file into place and you are set.

Other notes: 

I had set $site and $lang in WikimediaMaintenance/WikimediaMaintenance.php  but
I think those changes didn't make any difference.

So note that this project thinks it is a wikipedia.  we could change that I
guess, if wanted...

I can't imagine anyone wanting to do this for their own wiki. Need new tools.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to