• コメント
  • 編集不可のページ
  • Menu
    • Navigation
    • 更新履歴
    • ページ検索
    • ローカルサイトマップ
    • Help
    • ヘルプの目次
    • MoinWiki記法のヘルプ
    • 表示
    • 添付ファイル
    • 情報
    • Wikiテキスト
    • 印刷ビュー
    • 編集
    • ロード
    • 保存
  • ログイン

フロントページ

日本語LGRを統合したルートゾーンLGR(第5版)が公開

日本語生成パネル(Japanese Generation Panel; JGP)とは ~ICANNとJGPの関係~

トピックス

メンバー一覧

チャーター

設立提案書

会合資料

日本語LGR提案書

お問い合わせ先

関連リンク

English

メンバ向けページ

Navigation

  • 更新履歴
  • ページ検索
  • ヘルプの目次

ページのコンテンツをアップロード

下記のページ名のコンテンツをアップロードすることができます。 もしページ名を変更すれば、別のページのコンテンツをアップロードすることもできます。 ページ名が空の場合、ファイル名からページ名を決定します。

ページコンテンツを格納したファイル
ページ名
コメント

JGPWiki:
  • HelpOnLanguages

Languages

目次

  1. Languages
    1. How to specify the page language
    2. Language Macros
    3. Built-in vs. user-specified translations

How to specify the page language

language_default (in wikiconfig) sets the default language of a wiki's content.

The HTML lang attribute of a page's BODY tag is set to this language, except if you specify a different page content language in the page header like this:

#language he

The language name is the iso-639-1 name of the language. Languages that moin does not support are ignored.

This is critical if the wiki contains content in different directions, like Hebrew pages, which should display in right to left direction, and English pages, which should display in left to right direction.

In the past, system pages had a language comment: ##language:en. This comment has no effect, and should be changed to the new #language en format. To repair old pages in your wiki, run scripts.repair_language.py in your wiki data directory. Back up your wiki data directory before doing this!

Language Macros

For each language MoinMoin supports in its user interface, a corresponding <<lang>> macro exists, e.g. <<en>>.

Use this macro to:

  • set HTML lang attributes for paragraphs etc.

  • change the text direction (left-to-right vs. right-to-left)

Built-in vs. user-specified translations

MoinMoin normally uses built-in translation (see MoinMoin/i18n/*) for translating user interface text and system page names in navi_bar.

But there is the possibility to customize navi_bar with your own stuff. Moin has no built-in translation for that usually, so what to do if you want to have them translated the same way as FrontPage usually is?

Simply create some pages like GermanDict, FrenchDict, Simplified_ChineseDict etc. (use the english name of the language) and put a definition list on them which defines the translations for the English terms, e.g. on page GermanDict:

 MyProject:: MeinProjekt
 LatestNews:: NeuesteNachrichten

(!) Note the space before the lines. If you do not put that space, Moin will not consider the entries as dictionnary entries. See WikiDict for details.

Moin then will use those dict pages if it can't find the text in its built-in translation dictionaries.

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01