Changeset 13140 for docs

Show
Ignore:
Timestamp:
06/03/08 22:47:53 (5 years ago)
Author:
tokuhirom
Message:

more translation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/cat-ja/Catalyst/Manual/ExtendingCatalyst.pod

    r13137 r13140  
    1 =head1 NAME 
     1=head1 名前(NAME) 
    22 
    33Catalyst::Manual::ExtendingCatalyst - フレームワークを拡張する 
    44 
    5 =head1 DESCRIPTION 
     5=head1 概要(DESCRIPTION) 
    66 
    77This document will provide you with access points, techniques and best 
     
    4141IRC などで話しかけてください。 
    4242 
    43 =head1 BEST PRACTICES 
     43=head1 ベストプラクティス(BEST PRACTICES) 
    4444 
    4545During Catalyst's early days, it was common to write plugins to 
     
    5656forward to L</Namespaces>. 
    5757 
    58 =head2 Quick Checklist 
     58もし君がめっちゃいそいでいるのなら、以下に必須のポイントに関するクイックチェック 
     59リストを容易したからそれだけでもよんでいきたまえ。もし君がまったりとこの文書を全 
     60部読むつもりなら L</Namespaces> に進む。 
     61 
     62=head2 3分間チェックリスト(Quick Checklist) 
    5963 
    6064=over 
    6165 
    62 =item Use the C<CatalystX::*> namespace if you can! 
    63  
    64 C<CatalystX::*> というネームスペースをつかいましょう 
     66=item C<CatalystX::*> というネームスペースをつかいましょう(Use the C<CatalystX::*> namespace if you can!) 
    6567 
    6668If your extension isn't a Model, View, Controller, Plugin, or Engine, 
     
    7274C<CatalystX::> をかわりにつかってください。 
    7375 
    74 =item Don't make it a plugin unless you have to! 
     76=item プラグインはつくらない(どうしてもつくらなきゃいけない場合をのぞいて)!(Don't make it a plugin unless you have to!) 
    7577 
    7678A plugin should be careful since it's overriding Catalyst internals. 
     
    8183が、内部を上書きしたいんでなければ、Controller か Model にしてね! 
    8284 
    83 =item There's a community. Use it! 
    84  
    85 コミュあるから利用しちゃおう! 
     85=item コミュニティがあるから利用しちゃおう!(There's a community. Use it!) 
    8686 
    8787There are many experienced developers in the Catalyst community, 
     
    9090Catalyst には IRC も ML もあるから、どんどん利用しちゃおう! 
    9191 
    92 =item Add tests and documentation! 
    93  
    94 テストとドキュメンテーションはしっかりね! 
     92=item テストとドキュメンテーションはしっかりね!(Add tests and documentation!) 
    9593 
    9694This gives a stable basis for contribution, and even more importantly, 
     
    102100=back 
    103101 
    104 =head2 Namespaces 
    105  
    106 ネームスペース 
     102=head2 ネームスペース(Namespaces) 
    107103 
    108104While some core extensions (engines, plugins, etc.) have to be placed 
     
    112108コアの拡張(engine や plugin とか)は、C<Catalyst::*> におくべきだけど、そういうの 
    113109つくるときは開発者に相談してからにしよう。できることなら C<CatalystX::*> におこう。 
     110 
     111(訳注: CPAN にアップロードする場合、相談してからやらないと mst に痛烈に DIS られます) 
    114112 
    115113When you try to put a base class for a C<Model>, C<View> or 
     
    121119as examples. 
    122120 
    123 =head2 Can it be a simple module? 
    124  
    125 それをシンプルなモジュールにすることはできませんか? 
     121=head2 それをシンプルなモジュールにすることはできませんか?(Can it be a simple module?) 
    126122 
    127123Sometimes you want to use functionality in your application that 
     
    270266L<Catalyst::Component/"ACCEPT_CONTEXT($c, @args)">. 
    271267 
    272 =head1 CONFIGURATION 
    273  
    274 設定 
     268=head1 設定(CONFIGURATION) 
    275269 
    276270The application has to interact with the extension with some 
    277271configuration. There is of course again more than one way to do it. 
    278272 
    279 =head2 Attributes 
    280  
    281 アトリビュート 
     273=head2 アトリビュート(Attributes) 
    282274 
    283275You can specify any valid Perl attribute on Catalyst actions you like. 
     
    301293class|/"Component Base Classes">. 
    302294 
    303 =head2 Creating custom accessors 
    304  
    305 カスタムアクセサをつくる 
     295=head2 カスタムアクセサをつくる(Creating custom accessors) 
    306296 
    307297L<Catalyst::Component> uses L<Class::Accessor::Fast> for accessor 
     
    312302います。 
    313303 
    314 =head2 Component configuration 
    315  
    316 コンポーネントの設定 
     304=head2 コンポーネントの設定(Component configuration) 
    317305 
    318306At creation time, the class configuration of your component (the one 
     
    339327  my $model_name = $controller->model_name; 
    340328 
    341 =head1 IMPLEMENTATION 
    342  
    343 実装 
     329=head1 実装(IMPLEMENTATION) 
    344330 
    345331This part contains the technical details of various implementation 
     
    347333implementation, if you haven't already. 
    348334 
    349 =head2 Action classes 
     335=head2 Actionクラス(Action classes) 
    350336 
    351337Usually, your action objects are of the class L<Catalyst::Action>. 
     
    415401L<Catalyst::Action> and L<Catalyst::Manual::Actions>. 
    416402 
    417 =head2 Component base classes 
     403=head2 コンポーネントなクラス(Component base classes) 
    418404 
    419405Many L<Catalyst::Plugin> that were written in Catalyst's early days 
     
    421407class, you could provide functionality scoped to a single controller, 
    422408not polluting the global namespace in the context object. 
     409 
     410Catalyst がうまれたての頃に多くの L<Catalyst::Plugin> が書かれました。 
    423411 
    424412You can provide regular Perl methods in a base class as well as 
     
    432420already provided via the C<+> prefix for action classes. A simple 
    433421 
     422シンプルな 
     423 
    434424  sub foo : Local ActionClass('+MyApp::Action::Bar') { ... } 
    435425 
    436426will use C<MyApp::Action::Bar> as action class. 
     427 
     428は、C<MyApp::Action::Bar> を Action クラスとしてつかいます。 
    437429 
    438430  package MyApp::Base::Controller::FullClass; use strict; use base 
     
    457449  1; 
    458450 
    459 =head2 Controllers 
     451=head2 コントローラ(Controllers) 
    460452 
    461453Many things can happen in controllers, and it often improves 
     
    546538=back 
    547539 
    548 =head2 Models and Views 
     540=head2 モデルとビュー(Models and Views) 
    549541 
    550542If the functionality you'd like to add is really a data-set that you 
     
    586578  1; 
    587579 
    588 =head2 Plugins 
    589  
    590 プラギン 
     580=head2 プラグイン(Plugins) 
    591581 
    592582The first thing to say about plugins is that if you're not sure if 
     
    641631implementation (excuse the lame class name, it's just an example): 
    642632 
     633プラグインの実装は簡単なようにみえます。あなたのプラグインは Catalyst の継承ツリー 
     634の上にはいります。これによりあなたは、Catalyst のリクエストライフサイクルの挙動を 
     635変えることができます。あなたが定義したりあなたのパッケージに import したメソッド 
     636は、すべてアプリケーションとコンテキストオブジェクトにはえます。例としてあなたが 
     637Catalyst に uri_for の返り値が undef だったとき警告をだすプラグインをつくったとし 
     638ましょう。(中略)(アホみたいなクラス名ですいません。これは例なので勘弁してね) 
     639 
    643640  package Catalyst::Plugin::UriforUndefWarning; 
    644641  use strict; 
     
    658655value. 
    659656 
    660 =head2 Factory components with COMPONENT() 
    661  
    662 COMPONENT() をつかってコンポーネントを生成する 
     657これは Catalyst の C<uri_for> メソッドをうわがきし、undef がかえってきたら警告を 
     658ログに吐きだします。 
     659 
     660=head2 COMPONENT() をつかってコンポーネントを生成する(Factory components with COMPONENT()) 
    663661 
    664662Every component inheriting from L<Catalyst::Component> contains a 
     
    720718 
    721719=cut 
    722