Jump to content

Changing Japanese namespace names of MediaWiki

Changing Japanese namespace names of MediaWiki

According to discussion at Thread:Portal talk:Ja/名前空間の翻訳、そろそろ再開しましょう, we decided to change Japanese namespace names of MediaWiki.

summary
  • translate Category, Template, Help into Japanese (Katakana)
  • change delimiter of talk namespace, from "‐"(U+0x2010) to "・"(U+0x30FB).
    In Japanese keyborad (JIS Keyborad), it's a little hard to input "‐". And it's confused "-"(U+0x002D).
  • change translation of talk, from "ノート" and "会話" (used at only User talk) to "トーク".
    "ノート" means (is Katakana-ized word of) "note". "トーク" means (is Katakana-ized word of) "talk"
Old New
$namespaceNames = array(
	NS_MEDIA            => 'メディア',
	NS_SPECIAL          => '特別',
	NS_TALK             => 'ノート',
	NS_USER             => '利用者',
	NS_USER_TALK        => '利用者‐会話',
	NS_PROJECT_TALK     => '$1‐ノート',
	NS_FILE             => 'ファイル',
	NS_FILE_TALK        => 'ファイル‐ノート',
	NS_MEDIAWIKI        => 'MediaWiki',
	NS_MEDIAWIKI_TALK   => 'MediaWiki‐ノート',
	NS_TEMPLATE         => 'Template',
	NS_TEMPLATE_TALK    => 'Template‐ノート',
	NS_HELP             => 'Help',
	NS_HELP_TALK        => 'Help‐ノート',
	NS_CATEGORY         => 'Category',
	NS_CATEGORY_TALK    => 'Category‐ノート',
);
$namespaceNames = array(
	NS_MEDIA            => 'メディア',
	NS_SPECIAL          => '特別',
	NS_TALK             => 'トーク',
	NS_USER             => '利用者',
	NS_USER_TALK        => '利用者・トーク',
	NS_PROJECT_TALK     => '$1・トーク',
	NS_FILE             => 'ファイル',
	NS_FILE_TALK        => 'ファイル・トーク',
	NS_MEDIAWIKI        => 'MediaWiki',
	NS_MEDIAWIKI_TALK   => 'MediaWiki・トーク',
	NS_TEMPLATE         => 'テンプレート',
	NS_TEMPLATE_TALK    => 'テンプレート・トーク',
	NS_HELP             => 'ヘルプ',
	NS_HELP_TALK        => 'ヘルプ・トーク',
	NS_CATEGORY         => 'カテゴリ',
	NS_CATEGORY_TALK    => 'カテゴリ・トーク',
);

We need your support:

aokomoriuta14:54, 15 May 2010

Aliases will be taken care of by the committer (me), so just change it. On Wikimedia it may take months, but committing namespace is something I can do this weekend.

Siebrand15:29, 15 May 2010

Thanks for you reply. How about noticing? How/where need we notice?

aokomoriuta15:49, 15 May 2010

Probably the projects that use the Japanese language setting. Also you should check where the namespace names are used hardcoded in your wiki, for example changing {{#ifeq:{{NAMESPACE}}|ノート|...}} to {{#ifeq:{{NAMESPACE}}|{{ns:Talk}}|...}} or {{#ifeq:{{NAMESPACE}}|{{ns:1}}|...}}, which will make the function work with both namespace names.

The Evil IP address16:01, 15 May 2010
 

Changes have been committed in mwr:66490. Strangely enough the Japanese updates are not in there. Niklas, could this be a caching issue?

Siebrand19:37, 15 May 2010

I see they had not been yet. I've committed them in mwr:66497. catrope will update namespaces, special page aliases and magic words in a few hours on Wikimedia wikis.

Siebrand20:17, 15 May 2010

Thank you!

aokomoriuta04:42, 16 May 2010

catrope didn't manage to get around to it today. He said he'd do it Monday.

Siebrand08:19, 16 May 2010

We're changing "ノート" to "トーク" in all MediaWiki translation now, and completed MediaWiki core and Extentions used by Wikimedia .

But on page tab label, "ノート" is still in use. How (What message) should we change?

aokomoriuta17:33, 17 May 2010

Just review all MediaWiki core translations and look them up. That's probably the most elaborate way, as I expect there is more than one occurrence. Btw, the changes have been deployed as far as I know.

Siebrand17:57, 17 May 2010
aokomoriuta18:21, 17 May 2010

You should check all messages containing namespace names as text. Messages like Nstab-category ("Category") and the ones for other namespaces.

Siebrand18:32, 17 May 2010

Now no message contains "ノート" in MediaWiki core, except Exif-makernote ("Manufacturer notes").

But "ノート" is still used on page tab label (c.f. [1]). Why?

aokomoriuta18:56, 17 May 2010

See FAQ, item 1.

Siebrand19:56, 17 May 2010

Thanks, it's corrected!

aokomoriuta04:41, 18 May 2010