Difference between revisions of "Kerbal Space Program Wiki:Translation/ja"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<!--The Kerbal Space Program Wiki is intended to be a useful resource not just to English-speakers, but also to users who speak other languages. Therefore, we've added many d...")
 
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
  
 
<!--KSP wiki supports language subpages in the style of Valve's Official TF2 wiki. This means that, if you wish to translate a language, you simply copy the page over to a new page with /xx at the end (xx being the two-letter language code, such as ru for Russian or es for Spanish).  For example, the Russian-language Main Page is at [[Main Page/ru]].  English-language subpages do not have a suffix, as that is the default language of the wiki.-->
 
<!--KSP wiki supports language subpages in the style of Valve's Official TF2 wiki. This means that, if you wish to translate a language, you simply copy the page over to a new page with /xx at the end (xx being the two-letter language code, such as ru for Russian or es for Spanish).  For example, the Russian-language Main Page is at [[Main Page/ru]].  English-language subpages do not have a suffix, as that is the default language of the wiki.-->
KSP wiki は Valve の TF2 公式 wiki 方式の言語サブページをサポートしています。どういう事かというと、翻訳したい言語があれば、そのページ名の末尾に /xx をつけて中身をコピーするだけということです(xx は二文字の言語コードで、ロシア語なら ru、スペイン語なら es となります)。
+
KSP wiki は Valve の TF2 公式 wiki 方式の言語サブページをサポートしています。どういう事かというと、翻訳したい言語があれば、そのページ名の末尾に /xx をつけて中身をコピーするだけということです(xx は二文字の言語コードで、ロシア語なら ru、日本語なら ja となります)。
例えば、ロシア語の Main Page は [[Main Page/ru]] です。
+
例えば、日本語の Main Page は [[Main Page/ja]] です。
 
英語のサブページは、それがこの wiki のデフォルトの言語であるため接尾辞を持ちません。
 
英語のサブページは、それがこの wiki のデフォルトの言語であるため接尾辞を持ちません。
  
:''If you do not see your language here and you wish to start translating for it, please bug [[User:N3X15|N3X15]] ([[User talk:N3X15|talk]]) so he can add it to the sidebar for you.''
+
<!--:''If you do not see your language here and you wish to start translating for it, please bug [[User:N3X15|N3X15]] ([[User talk:N3X15|talk]]) so he can add it to the sidebar for you.''-->
 +
:''もしあなたが翻訳を始めようとしており、その言語がここで見つからなければ、[[User:N3X15|N3X15]] ([[User talk:N3X15|talk]]) にバグだと知らせれば、彼がその言語をサイドバーに加えます。''
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 62: Line 63:
 
|}
 
|}
  
Once the page is created, other language pages will link to it via the Languages toolbox on the sidebar. Note that some namespaces do not display any languages as a precaution. Always use the same base page name than in English (like [[Terminology/de]] instead of ''Glossar'' or ''Glossar/de''). Don't create new non-English page names redirecting to the correct article and especially don't link to those (except for testing/documentation purposes). Until this topic was discussed the current pages won't get deleted when the naming is the only problem with the page. <!-- and create only redirects from the translated page name to the English name (like [[Glossar]] redirecting to ''Terminology/de''). -->
+
一度そのページが作られたら、他の言語ページもサイドバーの言語ツールボックスを介してリンクを作成します。
 +
幾つかの名前空間では、念のため一切の言語が表示されない事に留意してください。
 +
必ず英語のページ名を元にした(''用語集'' や ''用語集/ja'' ではなく [[Terminology/ja]] という様な)名前を使ってください。
 +
正しい記事へリダイレクトされてしまう様な非英語ページ名は作らないで下さい。特にそのページへのリンクは貼らないで下さい(テストや文書化を目的としたものは別として)。
 +
このトピックが議論されるまで、名前付けだけがページの問題であっても、現在のページは削除されません。<!--訳注:この文、意味がよくわからない-->
 +
<!--Once the page is created, other language pages will link to it via the Languages toolbox on the sidebar. Note that some namespaces do not display any languages as a precaution. Always use the same base page name than in English (like [[Terminology/de]] instead of ''Glossar'' or ''Glossar/de''). Don't create new non-English page names redirecting to the correct article and especially don't link to those (except for testing/documentation purposes).
 +
Until this topic was discussed the current pages won't get deleted when the naming is the only problem with the page. --><!-- and create only redirects from the translated page name to the English name (like [[Glossar]] redirecting to ''Terminology/de''). -->
  
== Categories ==
+
== 分類 ==
All translated pages should be categorised in their translated categories. [[Kerbin]] should be in [[:Category:Planets]] while [[Kerbin/de]] should be in [[:Category:Planets/de]].
+
すべての翻訳ページは、それらが翻訳されたカテゴリに分類されるべきです。[[Kerbin]] は [[:Category:Planets]] にあるべきで、[[Kerbin/ja]] は [[:Category:Planets/ja]] にあるべきです。
 +
<!--All translated pages should be categorised in their translated categories. [[Kerbin]] should be in [[:Category:Planets]] while [[Kerbin/de]] should be in [[:Category:Planets/de]].-->
 +
 
 +
== テンプレート ==
 +
複数言語をサポートしたテンプレートもあり、そのテンプレートコードは他の言語用に重複させる必要はありません。
 +
以下の3つの選択肢があります:
 +
<!--Some templates support multiple languages, so the template code doesn't need to be duplicated for another language. There are following three options available:-->
 +
# 翻訳され得るテキストが、別のパラメタを持つ
 +
<!--# Each text which can be translated has a separate parameter-->
 +
# 別の言語に翻訳されるテキストに {{Tl|lang}} を使う <!-- A text uses {{Tl|lang}} to be translated into another language-->
 +
# [[:Category:Dictionary Templates|dictionary template]] を使い、テキストを翻訳する<!-- A text uses a [[:Category:Dictionary Templates|辞書テンプレート]] to translate a text-->
 +
 
 +
例えば {{Tl|Main Page Layout}} テンプレートは最初のオプションに {{Tl|Infobox/Part}} を使い、そのサブテンプレートは二番目、三番目のオプションの組み合わせを使います。
 +
通常は最初のオプションに組み合わせを利用しません。
  
== Templates ==
 
Some templates support multiple languages, so the template code doesn't need to be duplicated for another language. There are following three options available:
 
# Each text which can be translated has a separate parameter
 
# A text uses {{Tl|lang}} to be translated into another language
 
# A text uses a [[:Category:Dictionary Templates|dictionary template]] to translate a text
 
 
The {{Tl|Main Page Layout}} template for example uses the first option while {{Tl|Infobox/Part}} and their subtemplates uses a combination of the second and third option. Usually there is no combination with the first option.
 
The {{Tl|Main Page Layout}} template for example uses the first option while {{Tl|Infobox/Part}} and their subtemplates uses a combination of the second and third option. Usually there is no combination with the first option.
  
=== Translation via parameters ===
+
=== パラメタを介した翻訳 ===
 +
この戦術は分かりやすいものの欠点があり、変数等の他のパラメタが簡単に再利用できません。ですから、このサイトが静的で有れば、このシステムは上手く動作します。
 
This strategy is easy to understand but has the drawback, that other parameters like values can't be easily reused. So if the site is static this system works fine.
 
This strategy is easy to understand but has the drawback, that other parameters like values can't be easily reused. So if the site is static this system works fine.
  
 +
この方法で記事を翻訳するには、接尾辞に(例えば [[Main Page/de]])言語コードを付けて新しい記事を作成しなければなりません。この新規記事は汎用テンプレートを利用し([[Main Page/de]]だと{{Tl|Main Page Layout}}です)、各パラメタに翻訳テキストを追加します。
 
To translate an article using this method a new created article with the language code as a suffix (e.g. [[Main Page/de]]) must be created. This new article uses the generic template (for [[Main Page/de]] would be {{Tl|Main Page Layout}}) and adds for each parameter the translation the text.
 
To translate an article using this method a new created article with the language code as a suffix (e.g. [[Main Page/de]]) must be created. This new article uses the generic template (for [[Main Page/de]] would be {{Tl|Main Page Layout}}) and adds for each parameter the translation the text.
  
=== Translation via {{Tl|lang}} ===
+
=== {{Tl|lang}} を介した翻訳 ===
 +
他にもテンプレート {{Tl|lang}} を使ってページを翻訳する方法があります。これは他の言語への翻訳を固定します。新たに翻訳を追加するには、言語コードの付いた新たなパラメタを下のように追加するだけです:
 
Another way to translate a page, is by using the template {{Tl|lang}}. This holds the translation for a text into other languages. To add a new translation simply add a new parameter with the language code and translation like:
 
Another way to translate a page, is by using the template {{Tl|lang}}. This holds the translation for a text into other languages. To add a new translation simply add a new parameter with the language code and translation like:
 
{|
 
{|
Line 103: Line 121:
 
}}</pre>
 
}}</pre>
 
|}
 
|}
 +
このテンプレートは英語をデフォルト値に使っており、言語が翻訳されなかったときにそれが使われます。より進んだ仕組みでは、辞書テンプレートを使います。
 +
 
This template uses the default value and at last the English value if there is no translation for the given language. The more advanced system uses dictionary templates.
 
This template uses the default value and at last the English value if there is no translation for the given language. The more advanced system uses dictionary templates.
  
=== Translation via dictionary templates ===
+
=== 辞書テンプレートを介した翻訳 ===
 +
辞書テンプレートでは翻訳の再利用が出来るようになります。
 +
新たな言語を加えるには、あるテンプレートだけを編集するようにしなければなりません。
 +
 
 
A dictionary template allows a template to reuse a translation. To add a new language only one template has to be edited. All dictionary templates should be sorted in the [[:Category:Dictionary Templates]] and named <tt><name of template>/Dict</tt>. As these templates usually use also {{Tl|lang}} adding a language works exactly the same, but instead directly in the template the new translation is added in the dictionary template. Using a dictionary template depends actually depends on how they work, but it should normally be <nowiki>{{<name of template>/Dict|<word to translate>}}</nowiki>.
 
A dictionary template allows a template to reuse a translation. To add a new language only one template has to be edited. All dictionary templates should be sorted in the [[:Category:Dictionary Templates]] and named <tt><name of template>/Dict</tt>. As these templates usually use also {{Tl|lang}} adding a language works exactly the same, but instead directly in the template the new translation is added in the dictionary template. Using a dictionary template depends actually depends on how they work, but it should normally be <nowiki>{{<name of template>/Dict|<word to translate>}}</nowiki>.
  

Latest revision as of 22:37, 19 July 2017

Kerbal Space Program Wiki は英語圏の人々だけでなく、他の言語の方々にも有益なリソースでありたいと考えています。 そこで、翻訳者が望みの言語にページを翻訳できる様にすべく、たくさんの異なる手段を加えました

言語サブページ

KSP wiki は Valve の TF2 公式 wiki 方式の言語サブページをサポートしています。どういう事かというと、翻訳したい言語があれば、そのページ名の末尾に /xx をつけて中身をコピーするだけということです(xx は二文字の言語コードで、ロシア語なら ru、日本語なら ja となります)。 例えば、日本語の Main Page は Main Page/ja です。 英語のサブページは、それがこの wiki のデフォルトの言語であるため接尾辞を持ちません。

もしあなたが翻訳を始めようとしており、その言語がここで見つからなければ、N3X15 (talk) にバグだと知らせれば、彼がその言語をサイドバーに加えます。
言語 ページ名の例 ページ名の接尾辞
English Main Page
Czech (čeština) Main Page/cs cs
Danish (dansk) Main Page/da da
German (Deutsch) Main Page/de de
Spanish (español) Main Page/es es
Finish (suomi) Main Page/fi fi
French (français) Main Page/fr fr
Hebrew (עברית) Main Page/he he
Croatian (hrvatski) Main Page/hr hr
Hungarian (magyar) Main Page/hu hu
Italian (italiano) Main Page/it it
Korean (한국어) Main Page/ko ko
Dutch (Nederlands) Main Page/nl nl
Norwegian (norsk bokmål) Main Page/no no
Polish (polski) Main Page/pl pl
Portuguese (português) Main Page/pt pt
Russian (русский) Main Page/ru ru
Swedish (svenska) Main Page/sv sv
Thai (ไทย) Main Page/th th
Turkish (Türkçe) Main Page/tr tr
Chinese (中文(中国大陆)‎) Main Page/zh-cn zh-cn
Chinese, Taiwan (中文(台灣)‎) Main Page/zh-tw zh-tw
Japanese (日本語) Main Page/ja ja

一度そのページが作られたら、他の言語ページもサイドバーの言語ツールボックスを介してリンクを作成します。 幾つかの名前空間では、念のため一切の言語が表示されない事に留意してください。 必ず英語のページ名を元にした(用語集用語集/ja ではなく Terminology/ja という様な)名前を使ってください。 正しい記事へリダイレクトされてしまう様な非英語ページ名は作らないで下さい。特にそのページへのリンクは貼らないで下さい(テストや文書化を目的としたものは別として)。 このトピックが議論されるまで、名前付けだけがページの問題であっても、現在のページは削除されません。

分類

すべての翻訳ページは、それらが翻訳されたカテゴリに分類されるべきです。KerbinCategory:Planets にあるべきで、Kerbin/jaCategory:Planets/ja にあるべきです。

テンプレート

複数言語をサポートしたテンプレートもあり、そのテンプレートコードは他の言語用に重複させる必要はありません。 以下の3つの選択肢があります:

  1. 翻訳され得るテキストが、別のパラメタを持つ
  2. 別の言語に翻訳されるテキストに {{lang}} を使う 
  3. dictionary template を使い、テキストを翻訳する

例えば {{Main Page Layout}} テンプレートは最初のオプションに {{Infobox/Part}} を使い、そのサブテンプレートは二番目、三番目のオプションの組み合わせを使います。 通常は最初のオプションに組み合わせを利用しません。

The {{Main Page Layout}} template for example uses the first option while {{Infobox/Part}} and their subtemplates uses a combination of the second and third option. Usually there is no combination with the first option.

パラメタを介した翻訳

この戦術は分かりやすいものの欠点があり、変数等の他のパラメタが簡単に再利用できません。ですから、このサイトが静的で有れば、このシステムは上手く動作します。 This strategy is easy to understand but has the drawback, that other parameters like values can't be easily reused. So if the site is static this system works fine.

この方法で記事を翻訳するには、接尾辞に(例えば Main Page/de)言語コードを付けて新しい記事を作成しなければなりません。この新規記事は汎用テンプレートを利用し(Main Page/deだと{{Main Page Layout}}です)、各パラメタに翻訳テキストを追加します。 To translate an article using this method a new created article with the language code as a suffix (e.g. Main Page/de) must be created. This new article uses the generic template (for Main Page/de would be {{Main Page Layout}}) and adds for each parameter the translation the text.

{{lang}} を介した翻訳

他にもテンプレート {{lang}} を使ってページを翻訳する方法があります。これは他の言語への翻訳を固定します。新たに翻訳を追加するには、言語コードの付いた新たなパラメタを下のように追加するだけです: Another way to translate a page, is by using the template {{lang}}. This holds the translation for a text into other languages. To add a new translation simply add a new parameter with the language code and translation like:

Before adding After adding
{{lang
|en=[[w:Mass|Mass]]
|nl=[[w:nl:Massa|Massa]]
|fr=[[w:fr:Masse|Masse]]
|pl=[[w:pl:Masa_(fizyka)|Masa]]
|ru=[[w:ru:Масса|Масса]]
|de=[[w:de:Masse (Physik)|Masse]]
}}
{{lang
|en=[[w:Mass|Mass]]
|nl=[[w:nl:Massa|Massa]]
|fr=[[w:fr:Masse|Masse]]
|pl=[[w:pl:Masa_(fizyka)|Masa]]
|ru=[[w:ru:Масса|Масса]]
|de=[[w:de:Masse (Physik)|Masse]]
|tlh=ngI'
}}

このテンプレートは英語をデフォルト値に使っており、言語が翻訳されなかったときにそれが使われます。より進んだ仕組みでは、辞書テンプレートを使います。

This template uses the default value and at last the English value if there is no translation for the given language. The more advanced system uses dictionary templates.

辞書テンプレートを介した翻訳

辞書テンプレートでは翻訳の再利用が出来るようになります。 新たな言語を加えるには、あるテンプレートだけを編集するようにしなければなりません。

A dictionary template allows a template to reuse a translation. To add a new language only one template has to be edited. All dictionary templates should be sorted in the Category:Dictionary Templates and named <name of template>/Dict. As these templates usually use also {{lang}} adding a language works exactly the same, but instead directly in the template the new translation is added in the dictionary template. Using a dictionary template depends actually depends on how they work, but it should normally be {{<name of template>/Dict|<word to translate>}}.

Using an automatically translating template

If the template automatically translates and the values are language independent like for the {{Infobox/Body}} template it is possible to do some simplifications and the values needs to be set only once but use them in all translations. This is usually done by creating a subpage which only uses the template which all other pages then include. All parts use {{Infobox/Part}} in their <name of part>/Box (e.g. LV-1R Liquid Fuel Engine/Box) page and then add this page into the different translations with {{:<name of part>/Box}} (e.g. LV-1R Liquid Fuel Engine or LV-1R Liquid Fuel Engine/pl).

Linking

To link a page usually [[target page|link text]] is used and target page can be omitted if link text is the target page (e.g. [[Main Page]] produces the same link as [[Main Page|Main Page]]) but this function won't work in translated articles as the target page has the language code. For example [[Main Page/de]] would produce Main Page/de while [[Main Page/de|Main Page]] won't show the language code: Main Page.

There are three templates available which make automatic linking easier:

  • {{if lang}} can be appended to the target page and allows automatically linking to the same language.
  • {{if lang link}} is similar to {{if lang}} but creates a complete link.
  • {{LangFallback}} creates a link to the same language and if the language isn't English also a link to the English page.

Searching

It is currently not possible to search only pages in a specific language. There is currently an index in development at User:BobBot/indexes where User:BobBot is from time to time iterating through all pages. Via the browser's search function it is then possible to search through that page.

It will use the {{DISPLAYTITLE:}} magic word and falls back to the page title without a language code if it is not set. In the future it will be possible to have multiple different names set (like redirects). Unfortunately {{DISPLAYTITLE:}} is not activated so the new title does not appear on the article page.