Manual:System message/ja
システムメッセージはMediaWikiの振る舞いとそれぞれの言語とロケールのための外見をカスタマイズするために使用される平文のスニペット、wikiテキスト、CSSもしくは JavaScriptです。
Contents |
Special:AllMessages [edit]
インターフェースとシステムメッセージはSpecial:AllMessages上でリスト表示されるページを編集することでカスタマイズすることが出来ます。インターフェースメッセージを編集することは、通常のwikiページを編集することと同じように、とても簡単です。but it is restricted to users with the editinterface permission, which is assigned to sysops by default.
Special:Allmessagesテーブルは2つのカラムを含みます: リンクされたインターフェース名とテキストです。テキストは上側のデフォルトテキストと、下側のカスタマイズされたテキストを表示するために水平方向に分割されます。カスタムメッセージが存在しない場合、デフォルトのものだけが表示されます。メッセージをカスタマイズするためには、左のカラムにある上側のリンクをクリックします(メッセージの名前)。デフォルトのテキストが使用されている場合、編集ページが空なので、このリンクは赤く表示されます。
左カラムのセルにある下側のリンクはそのメッセージのための議論ページになります。
組み込みのシステムメッセージ [edit]
ドキュメント化されたインターフェースとシステムメッセージの完全なリストに関しては、Category:Interface messagesをご覧頂けるようお願いします。これらのページはMediaWiki、利用可能な変数、使用されるパラメータ、制限などによってそれぞれのメッセージの使い方をドキュメントにしたものです。There is more complete documentation (albeit aimed at translators, not end users) in the qqq pseudo-language.
To find the message responsible for producing a particular piece of interface text in MediaWiki 1.18 and above, change to the special 'language' code qqx by appending &uselang=qqx to the URL (example). All the messages will then be replaced by their message keys, so you can identify which message is responsible. In case a message is only visible whilst performing an action &uselang=qqx&debug=1 (example) needs to be appended.
In version 1.17 and below, you will need to look through Special:Allmessages for the message whose value corresponds to the text you're seeing, or to search for its text on translatewiki.net.
新しいメッセージを作成する [edit]
To add new messages in MediaWiki core, the canonical language file (languages/messages/MessagesEn.php) should be edited to include the new message definition, while message documentation belongs to its file (languages/messages/MessagesQqq.php). The message should also be added to maintenance/language/messages.inc, and if it's not meant to be translated, to maintenance/language/messageTypes.inc too.
Extensions can (and should) define system messages for any text displayed in the user interface. This assists in the localization of those messages. For an example of how to do this, please see Manual:Special pages. If the extension is well written, it will probably be included in translatewiki.net in a few days, after its staff notices it on gerrit; if it's not noticed, contact them; if it's too instable to be translated, note so in the code or commit and contact them if necessary.
When a message change is incompatible with current translations, you should pick a new key (that is, create a new message).
If the new message should not be translated on translatewiki.net (optional or ignored), it would need to be added to the groups/MediaWiki/mediawiki-defines.txt file in the translatewiki Git project, see format documentation and example.
関連項目 [edit]
- meta:Help:System message/ja
- Customization/ja
- Manual:Configuration settings/ja
- Manual:Skins/ja
- Manual:Messages API
- Localisation/ja
- translatewiki:FAQ/ja
| 言語: | English • Bahasa Indonesia • 日本語 • polski |
|---|
