Adding/updating Persian translations
[mediawiki.git] / maintenance / namespace2sql.php
blob94bd967159690667b03882c4e88680fc57f5a1e4
1 <?php
3 # Print SQL to insert namespace names into database.
4 # This source code is in the public domain.
6 require_once( "commandLine.inc" );
8 for ($i = -2; $i < 16; ++$i) {
9 $nsname = mysql_escape_string( $wgLang->getNsText( $i ) );
10 $dbname = mysql_escape_string( $wgDBname );
11 print "INSERT INTO ns_name(ns_db, ns_num, ns_name) VALUES('$dbname', $i, '$nsname');\n";