TracNavigationバージョン 1バージョン 2 との変更


以下の違いを無視:
日時:
2015/05/27 0:24:03 (11年前)
更新者:
trac
コメント:

--

凡例:

変更なし
追加
削除
更新
  • TracNavigation

    v1 v2  
    1 = Trac Navigation =
     1= ナビゲーション = #TracNavigation
    22
    3 Starting with Trac 0.11, it is now possible to customize the main and meta navigation entries in some basic ways.
     3Trac 0.11 以降では、メインナビゲーションとメタナビゲーションのエントリを簡単な方法でカスタマイズできるようになりました。
    44
    5 The new `[mainnav]` and `[metanav]` configuration sections can now be used to customize the text and link used for the navigation items, or even to disable them.  The `mainnav` and `metanav` options in the `[trac]` configuration section can also be used to change the order.
     5新しく追加されたコンフィグのセクション `[mainnav]` と `[metanav]` を使用すると、ナビゲーション項目に使用されるテキストとリンクをカスタマイズしたり、無効化することができます。コンフィグのセクション `[trac]` に `mainnav` と `metanav` をオプションとして使用すると、並び順を変更することができます。
    66
    77=== `[mainnav]` #mainnav-bar
    8 `[mainnav]` corresponds to the '''main navigation bar''', the one containing entries such as ''Wiki'', ''Timeline'', ''Roadmap'', ''Browse Source'' and so on. This navigation bar is meant to access the default page of the main modules enabled in Trac that are accessible for the current user.
     8`[mainnav]` は '''メインナビゲーションバー (main navigation bar)''' に対応しています。メインナビゲーションは ''Wiki'', ''タイムライン'' (英語版では ''Timeline''), ''ロードマップ'' (英語版では ''Roadmap''), ''リポジトリブラウザ'' (英語版では ''Browse Source'') のようなエントリを含むバーです。このナビゲーションバーは 現在のユーザがアクセス可能な Trac で有効な各メインモジュールのデフォルトページにアクセスします。
    99
    1010
    11 ** [=#Example Example] **
     11** [=#Example 例] **
    1212
    13 In the following example, we rename the link to the Wiki start "Home", and make the "View Tickets" entry link to a specific report.  The second example (below) also hides the "!Help/Guide" link.
     13以下の例では、 Wiki のスタートページへのリンク名を "Home" に変更して、"チケットを見る" (英語版では "View Tickets") エントリを特定のレポートにリンクさせます。2 つめの例では、"ヘルプ/ガイド" (英語版では "!Help/Guide") を非表示にします。
    1414
    15 Relevant excerpt from the TracIni:
     15TracIni からの引用:
    1616{{{
    1717[mainnav]
     
    2121
    2222=== `[metanav]` #metanav-bar
    23 `[metanav]` corresponds to the '''meta navigation bar''', by default positioned above the main navigation bar and below the ''Search'' box. It contains the ''Log in'', ''Logout'', ''!Help/Guide'' etc. entries. This navigation bar is meant to access some global information about the Trac project and the current user.
     23`[metanav]` は '''メタナビゲーションバー (meta navigation bar)''' に対応しています。メタナビゲーションは通常、メインナビゲーションバーの上、 ''検索'' (英語版では ''Search'') ボックスの下に配置されています。 ''ログイン'' (英語版では ''Log in''), ''ログアウト'' (英語版では ''Logout''), ''ヘルプ/ガイド'' (英語版では ''!Help/Guide'') などのエントリが含まれています。このナビゲーションバーは Trac プロジェクト全体の情報や、現在のユーザの情報にアクセスします。
    2424
    25 There is one special entry in the  `[metanav]` section: `logout.redirect` is the page the user sees after hitting the logout button.
    26 [[comment(see also #Trac3808)]]
     25`[metanav]` セクションには特別なエントリを記述できます: `logout.redirect` を設定することで、ログアウト後に表示するページを指定できます。
     26[[comment([trac:#3808 #Trac3808] を参照してください)]]
    2727
    28 ** Example **
     28** 例 **
    2929
    3030{{{
     
    3535
    3636
    37 === Notes
    38 Possible URL formats (for `.href` or `.redirect`):
    39 || '''config''' || '''redirect to''' ||
     37=== Notes === #Notes
     38記述可能な URL のフォーマット (for `.href` or `.redirect`):
     39|| '''設定内容''' || '''リダイレクト先''' ||
    4040|| `wiki/Logout` || `/projects/env/wiki/Logout` ||
    4141|| `http://hostname/` || `http://hostname/` ||
     
    4444
    4545=== `[trac]` #nav-order
    46 The `mainnav` and `metanav` options in the `[trac]` configuration section control the order in which the navigation items are displayed (left to right).  This can be useful with plugins that add navigation items.
     46コンフィグのセクション `[trac]` に `mainnav` と `metanav` をオプションとして使用すると、ナビゲーション項目の表示順を変更することができます。プラグインをインストールしナビゲーション項目が追加されても有効です。
    4747
    48 ** Example **
     48** 例 **
    4949
    50 In the following example, we change the order to prioritise the ticket related items further left.
     50以下の例では、チケットに関連する項目を優先し、左側に移動させています。
    5151
    52 Relevant excerpt from the TracIni:
     52TracIni からの引用:
    5353{{{
    5454[trac]
     
    5656}}}
    5757
    58 The default order and item names can be found in the source, which at the time of writing [source:trunk/trac/web/chrome.py@10883:397,402-403#L396 is here]
     58並び順と項目名の初期値はソースの中に記されています。その記述は [source:trunk/trac/web/chrome.py@10883:397,402-403#L396 ここ] です。
    5959
    60 === Context Navigation #ctxtnav-bar
     60=== コンテキストナビゲーション === #ctxtnav-bar
    6161
    62 Note that it is still not possible to customize the '''contextual navigation bar''', i.e. the one usually placed below the main navigation bar.
     62今のところ、 '''コンテキストナビゲーションバー (contextual navigation bar)''' をカスタマイズすることはできません。コンテキストナビゲーションはメインナビゲーションの下に位置するバーです。
    6363
    6464
    6565----
    66 See also: TracInterfaceCustomization, and the [http://trac-hacks.org/wiki/NavAddPlugin TracHacks:NavAddPlugin] or [http://trac-hacks.org/wiki/MenusPlugin TracHacks:MenusPlugin] (still needed for adding entries)
     66See also: TracInterfaceCustomization, [http://trac-hacks.org/wiki/NavAddPlugin TracHacks:NavAddPlugin] または [http://trac-hacks.org/wiki/MenusPlugin TracHacks:MenusPlugin] (エントリを追加する際に必要になります)