Page MenuHomePhabricator

Allow localization of TMH namespaces
Open, Stalled, Needs TriagePublic

Description

The extension is missing a TimedMediaHandler.namespaces.php; so its namespace display cannot be localized on local wikis, as opposed to some recent new extensions such as Gadgets, Scribunto, Flow, etc. Thanks.

(namespace translation was requested at T180052: Creation and update of namespaces in Mirandese Wikipedia (mwlwiki) but I cannot honor it given that this extension does not seem to support localized namespaces).

Event Timeline

This is harder due to $wgTimedTextNS

And then in CommonSettings.php

	if ( $wgDBname === 'commonswiki' ) {
		$wgTimedTextNS = 102;
	}
mysql:wikiadmin@db1091 [commonswiki]> select count(*) from page where page_namespace = 102;
+----------+
| count(*) |
+----------+
|     7021 |
+----------+
1 row in set (0.00 sec)

mysql:wikiadmin@db1091 [commonswiki]> select count(*) from page where page_namespace = 103;
+----------+
| count(*) |
+----------+
|      424 |
+----------+
1 row in set (0.00 sec)

mysql:wikiadmin@db1091 [commonswiki]>