Jump to content

Obsolete:Updating to r15823

From Wikitech

Some notes on updating to r15823 and beyond, the merge of the localisation-work branch.

  • The deleted language files really need to be deleted. If any of the old language files remain, you will get fatal errors when they are read, mostly because LanguageUtf8.php is gone. I've changed sync-common-all to use rsync --delete, which will delete the files that are not present in the master copy. You should use this to do the update, or patch scap to do the same.
  • Some changes need to be made to InitialiseSettings.php:
'wgNamespaceAliases' => array(
    'brwiki' => array( 'Discussion_Wikipedia' => NS_PROJECT_TALK ),
    'frwiki' => array(
        'Wikipedia' => NS_PROJECT,
        'Discussion_Wikipedia' => NS_PROJECT_TALK,
	),
	'lawiki' => array( 'Disputatio_Wikipedia' => NS_PROJECT_TALK ),
	'yiwiki' => array(
		'וויקיפעדיע' => NS_PROJECT,
		'וויקיפעדיע_רעדן' => NS_PROJECT_TALK,
	),
	'yiwikisource' => array(
		'וויקיביבליאטעק' => NS_PROJECT,
		'וויקיביבליאטעק_רעדן' => NS_PROJECT_TALK
	),
	'yiwiktionary' => array(
		'וויקיווערטערבוך' => NS_PROJECT,
		'וויקיווערטערבוך_רעדן' => NS_PROJECT_TALK
	),
	'yiwikinews' => array(
		'וויקינייעס' => NS_PROJECT,
		'וויקינייעס_רעדן' => NS_PROJECT_TALK
	),
),

'wgExtraNamespaces' => array(
	'plwiki' => array(
		NS_PROJECT_TALK => 'Dyskusja_Wikipedii',
		NS_USER => 'Wikipedysta',
		NS_USER_TALK => 'Dyskusja_Wikipedysty',
	),
	'plwiktionary' = array(
		NS_PROJECT_TALK => 'Wikidyskusja',
		NS_USER => 'Wikipedysta',
		NS_USER_TALK => 'Dyskusja_Wikipedysty',
	),
	'plwikiquote' = array(
		NS_PROJECT_TALK => 'Dyskusja_Wikicytatów',
		NS_USER => 'Wikipedysta',
		NS_USER_TALK => 'Dyskusja_Wikipedysty',
	),
	'plwikisource' = array(
		NS_PROJECT_TALK => 'Dyskusja_Wikiźródeł',
		NS_USER => 'Wikiskryba',
		NS_USER_TALK => 'Dyskusja_Wikiskryby',
	),
	'plwikibooks' = array(
		NS_PROJECT_TALK => 'Dyskusja_Wikibooks',
		NS_USER => 'Wikipedysta',
		NS_USER_TALK => 'Dyskusja_Wikipedysty',
	),
	'plwikinews' = array(
		NS_PROJECT_TALK => 'Dyskusja_Wikinews',
		NS_USER => 'Wikireporter',
		NS_USER_TALK => 'Dyskusja_Wikireportera',
	),
	'cswiki' = array(
		NS_USER => 'Wikipedista',
		NS_USER_TALK => 'Wikipedista_diskuse',
	),

);

Basically a number of Wikimedia-specific special cases were removed from the language files. $wgNamespaceAliases was introduced to support aliases for namespace names, and the interpretation of $wgExtraNamespaces was changed slightly to allow it to override the primary localised named of existing namespaces, to support "Wikipedista" and other such special cases.

  • There were reports of an "unstub loop" exception on save. These need to be logged and fixed.
  • It is possible to upgrade some webservers as a pilot, there are no cache conflicts as far as I know, and there are definitely no schema changes. There should be very few behaviour changes. Upgrade a few and watch them for exceptions or other problems.
  • Serialized data files are a bit tricky, read the README file. My intention was to alter scap to automatically run "make" in the serialized directory. If I'm not around then someone else should probably do it. Basically they're a cache of the Messages*.php files, after merging with the fallback localisation. This means that if someone adds a message, all of the *.ser files need to be rebuilt to incorporate the new message.
  • It'd be nice to have a before and after snapshot of the profiling data.