* (bug 2188) Correct template namespace for Greek localization
[lhc/web/wiklou.git] / maintenance / namespace2sql.php
1 <?php
2 # $Header$
3 #
4 # Print SQL to insert namespace names into database.
5 # This source code is in the public domain.
6
7 require_once( "commandLine.inc" );
8
9 for ($i = -2; $i < 16; ++$i) {
10 $nsname = wfStrencode( $wgLang->getNsText( $i ) );
11 $dbname = wfStrencode( $wgDBname );
12 print "INSERT INTO ns_name(ns_db, ns_num, ns_name) VALUES('$dbname', $i, '$nsname');\n";
13 }
14
15 ?>