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

フロントページ

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

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

トピックス

メンバー一覧

チャーター

設立提案書

会合資料

日本語LGR提案書

お問い合わせ先

関連リンク

English

メンバ向けページ

Navigation

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

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

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

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

JGPWiki:
  • HelpOnDictionaries

Dictionaries

目次

  1. Dictionaries
    1. Wiki Dicts
      1. Defining them
      2. Using them
        1. Translation
        2. Variables
      3. Protecting them
    2. Other ways to define dicts / access dict definitions
A dictionary is a simple data structure that maps a dictionary name to a set of key/value pairs. It can be used e.g. to provide additional translations.

The dictionary name usually is something like GermanDict (some word ending with Dict). This default pattern can be changed (e.g. for non-english languages etc.), see page_dict_regex on HelpOnConfiguration.

The dict members are key/value pairs (both unicode strings).

Wiki Dicts

Defining them

You can create a dict definition for a dict named GermanDict by creating a page called GermanDict with this content:

#format wiki
This translates some words from English to German:
 dog:: Hund
 cat:: Katze
 mouse: Maus

Important:

  • Dict members have to be on a first-level definition list (see HelpOnLists).

    • /!\ The leading space and the space after '::' are important.

  • Everything else (other text, second-level items, etc.) is ignored.

Using them

Translation

MoinMoin uses <Language>Dict additionally to the builtin gettext based translations. E.g. if it wants to translate cat to German and doesn't find it in the .po file, it will try to look it up on GermanDict (and find Katze there, see the example above).

Variables

See also HelpOnVariables.

Protecting them

You can use ACLs as usual to protect your dict pages.

Other ways to define dicts / access dict definitions

MoinMoin can also use dict definitions from other sources, but this needs to be configured in your wiki config. See dicts on HelpOnConfiguration.

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