Changeset 20359 for events

Show
Ignore:
Timestamp:
10/01/08 13:27:51 (7 weeks ago)
Author:
gen
Message:

やくみつる

Location:
events/phpframework/akelos/trunk
Files:
3 added
2 removed
12 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/akelos/trunk/app/controllers/help_controller.php

    r20272 r20359  
    33class HelpController extends ApplicationController 
    44{ 
    5     public $model = null; 
    6     public $models = array('Endoser'); 
     5    public $model = 'Introduction'; 
    76 
    8     //toppage 
    97    public function what() 
    108    { 
  • events/phpframework/akelos/trunk/app/views/help/_what_is_phwittr.tpl

    r20272 r20359  
    44  <li> 
    55    <blockquote> 
    6       <p>{introduction.body}</p> 
     6      <p>{_introduction.body}</p> 
    77    </blockquote> 
    8     <cite class="vcard">{introduction.author}</cite> 
     8    <cite class="vcard">{_introduction.author}</cite> 
    99  </li> 
    1010  {end} 
  • events/phpframework/akelos/trunk/app/views/help/what.tpl

    r20135 r20359  
    66        <input name="authenticity_token" type="hidden" value="e808747513e58ff7ff95fd3037ea6d2dbd6203bf" /> 
    77      </div> 
    8       <!-- 
    98      <select name="lang" onchange="$('lf').submit();"> 
    109        <option value="" selected="selected">Select Language ...&nbsp;</option> 
     
    1211        <option value="ja">日本語</option> 
    1312      </select> 
    14       --> 
    1513    </form> 
    1614  </div> 
     
    2119    <div class="wrapper"> 
    2220      <div class="intro"> 
    23         <h2>Phwittrとは?</h2> 
     21        <h2>_{What is Phwittr?}</h2> 
    2422        <ul id="menu"> 
    25           <li class="act"><a href="/">なに?</a></li> 
    26           <li><a href="/help/why">なぜ?</a></li> 
    27           <li><a href="/help/how">どうやって?</a></li> 
     23          <li class="act"><a href="/">_{What?}</a></li> 
     24          <li><a href="/help/why">_{Why?}</a></li> 
     25          <li><a href="/help/how">_{How?}</a></li> 
    2826        </ul> 
    2927        <%= image_tag 'tour_1.gif', :alt => 'What is Phwittr?', :class => 'tour', :height => 154, :width => 508 %>  
    30         <p class="teaser">Twitterは<strong>「いまなにしてる?」</strong>という質問に短い文章で答えることによって、友だちや家族、職場の同僚とつながり合うサービスです。</p> 
    31         <p><a id='signup_submit' class="join" href="/signup">Phwittrに登録する</a></p> 
     28        _{<p class="teaser">Phwittr is a service for friends, family, and co–workers to communicate and stay connected through the exchange of quick, frequent answers to one simple question: <strong> What are you doing?</strong></p>} 
     29        <p><a id='signup_submit' class="join" href="/signup">_{Get Started-join!}</a></p> 
    3230      </div> 
    3331      <hr /> 
    34       <p><%= link_to "#{image_tag('arrow_on_red.gif')} ビデオを観る!", image_path('nomore.jpg'), :id => 'videobutton' %></p> 
     32      <p><%= link_to "#{image_tag('arrow_on_red.gif')} #{_('Watch a video!')}", image_path('nomore.jpg'), :id => 'videobutton' %></p> 
    3533      <form method="post" id="signin" action="https://twitter.com/sessions"> 
    3634        <fieldset> 
    37           <legend>ここからログイン</legend> 
     35          <legend>_{Please sign in}</legend> 
    3836          <p> 
    39             <label class="inside" tabindex="1" for="username">ユーザー名かメールアドレス</label> 
     37            <label class="inside" tabindex="1" for="username">_{user name or email address:}</label> 
    4038            <input type="text" id="username" name="session[username_or_email]" value="" title="username"  /> 
    4139          </p> 
    4240          <p> 
    43             <label class="inside" tabindex="2" for="password">パスワード</label> 
     41            <label class="inside" tabindex="2" for="password">_{Password}</label> 
    4442            <input type="password" id="password" name="session[password]" value="" title="password" /> 
    4543          </p> 
    4644          <p class="remember"> 
    4745            <input type="checkbox" id="remember" name="remember_me" value="1" /> 
    48             <label for="remember">次回から入力を省略する</label> 
     46            <label for="remember">_{Remember me}</label> 
    4947          </p> 
    5048          <p class="submit"> 
    51             <input type="submit" id="signin_submit" value="ログイン &raquo;" /> 
     49            <input type="submit" id="signin_submit" value="_{Sign In} &raquo;" /> 
    5250          </p> 
    53           <p class="forgot">パスワードを忘れた?<br/> <a id="resend_password_link" href="/account/resend_password">ここをクリック</a>.</p> 
    54           <p class="complete">インスタントメッセンジャー(IM)ですでにTwitterを使っていますか? <a href="/account/complete">ここをクリック</a></p> 
     51          <p class="forgot">_{Forgot password?} <a id="resend_password_link" href="/account/resend_password">_{Click here.}</a>.</p> 
    5552        </fieldset> 
    5653      </form> 
  • events/phpframework/akelos/trunk/app/views/layouts/help.tpl

    r20121 r20359  
    33<head> 
    44  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    5   <meta http-equiv="Content-Language" content="en-us" /> 
     5  <meta http-equiv="Content-Language" content="en" /> 
    66  <meta name="viewport" content="width=780" /> 
    7   <meta name="verify-v1" content="4FTTxY4uvo0RZTMQqIyhh18HsepyJOctQ+XTOu1zsfE=" /> 
    8   <title>Phittr: What are you doing?</title> 
     7  <title>_{Phwittr: What are you doing?}</title> 
    98  <link rel="shortcut icon" href="" type="image/x-icon" /> 
    109  <%= stylesheet_link_tag 'default' %> 
    11   <link href="http://assets2.twitter.com/stylesheets/lightwindow.css?1222396506" media="screen, projection" rel="stylesheet" type="text/css" /> 
    1210  <style type="text/css"> 
    1311    body {background: #9ae4e8 url(<%= image_path 'bg.gif' %>) fixed no-repeat top left; } 
    14     div.content-bubble-arrow { margin-top: 6px; padding-top: 11px; background: url(http://static.twitter.com/images/arr2.gif) no-repeat 25px 0px; } 
     12    div.content-bubble-arrow { margin-top: 6px; padding-top: 11px; background: url(<%= image_path 'arr2.gif' %>) no-repeat 25px 0px; } 
    1513  </style> 
    1614</head> 
  • events/phpframework/akelos/trunk/config/boot.php

    r18146 r20359  
    2323require_once(AK_LIB_DIR.DS.'constants.php'); 
    2424 
     25require_once(AK_LIB_DIR.DS.'Ak.php'); 
     26Ak::db()->Execute('SET NAMES utf8;'); 
     27 
    2528?> 
  • events/phpframework/akelos/trunk/config/config.php

    r20124 r20359  
    4545define('AK_PUBLIC_LOCALES', 'ja,en'); 
    4646 
     47defined('AK_FRAMEWORK_DIR') ? null : define('AK_FRAMEWORK_DIR', dirname(dirname(__FILE__))); 
     48 
    4749// The web configuration wizard could not detect if you have mod_rewrite enabled.  
    4850// If that is the case, you should uncomment the next line line for better performance.  
  • events/phpframework/akelos/trunk/config/locales/en.php

    r20269 r20359  
    311311$dictionary['File %file exists.'] = 'File %file exists.'; 
    312312 
     313// 2008-10-01 12:36:06 
     314 
     315 
     316$dictionary['methods'] = 'methods'; 
     317 
    313318 
    314319?> 
  • events/phpframework/akelos/trunk/config/locales/ja.php

    r20269 r20359  
    309309$dictionary['File %file exists.'] = 'File %file exists.'; 
    310310 
     311// 2008-10-01 12:36:06 
     312 
     313 
     314$dictionary['methods'] = 'methods'; 
     315 
    311316 
    312317?> 
  • events/phpframework/akelos/trunk/script/migrate_reset

    r20269 r20359  
    66    sed -e 's/_installer\.php//g' 
    77) 
    8 resets='' 
    9 construct='' 
    10 destruct='' 
     8 
    119while read line 
    1210do 
    13     if [ "$line" = "database" ] 
    14         $construct <<  
    15     then 
    16     else 
    17         echo $line 
    18     fi 
     11    script/migrate $line uninstall 
     12    script/migrate $line install 
    1913done <<END 
    2014$installers 
  • events/phpframework/akelos/trunk/tmp/views/app/views/help/compiled/_what_is_phwittr.tpl.php

    r20124 r20359  
    22<ul> 
    33  <?php  
    4  empty($endosers) ? null : $endoser_loop_counter = 0; 
    5  empty($endosers) ? null : $endosers_available = count($endosers); 
    6  if(!empty($endosers)) 
    7      foreach ($endosers as $endoser_loop_key=>$endoser){ 
    8          $endoser_loop_counter++; 
    9          $endoser_is_first = $endoser_loop_counter === 1; 
    10          $endoser_is_last = $endoser_loop_counter === $endosers_available; 
    11          $endoser_odd_position = $endoser_loop_counter%2; 
     4 empty($introductions) ? null : $introduction_loop_counter = 0; 
     5 empty($introductions) ? null : $introductions_available = count($introductions); 
     6 if(!empty($introductions)) 
     7     foreach ($introductions as $introduction_loop_key=>$introduction){ 
     8         $introduction_loop_counter++; 
     9         $introduction_is_first = $introduction_loop_counter === 1; 
     10         $introduction_is_last = $introduction_loop_counter === $introductions_available; 
     11         $introduction_odd_position = $introduction_loop_counter%2; 
    1212?> 
    1313  <li> 
    1414    <blockquote> 
    15       <p><?php echo $endoser->body; ?></p> 
     15      <p><?php echo empty($introduction->body) || is_object($introduction->body) ? '' : $text_helper->translate($introduction->body); ?></p> 
    1616    </blockquote> 
    17     <cite class="vcard"><?php echo $endoser->author; ?></cite> 
     17    <cite class="vcard"><?php echo empty($introduction->author) || is_object($introduction->author) ? '' : $text_helper->translate($introduction->author); ?></cite> 
    1818  </li> 
    1919  <?php } ?> 
  • events/phpframework/akelos/trunk/tmp/views/app/views/help/compiled/what.tpl.php

    r20135 r20359  
    66        <input name="authenticity_token" type="hidden" value="e808747513e58ff7ff95fd3037ea6d2dbd6203bf" /> 
    77      </div> 
    8       <!-- 
    98      <select name="lang" onchange="$('lf').submit();"> 
    109        <option value="" selected="selected">Select Language ...&nbsp;</option> 
     
    1211        <option value="ja">日本語</option> 
    1312      </select> 
    14       --> 
    1513    </form> 
    1614  </div> 
     
    2119    <div class="wrapper"> 
    2220      <div class="intro"> 
    23         <h2>Phwittrとは?</h2> 
     21        <h2><?php echo $text_helper->translate('What is Phwittr?', array()); ?></h2> 
    2422        <ul id="menu"> 
    25           <li class="act"><a href="/">なに?</a></li> 
    26           <li><a href="/help/why">なぜ?</a></li> 
    27           <li><a href="/help/how">どうやって?</a></li> 
     23          <li class="act"><a href="/"><?php echo $text_helper->translate('What?', array()); ?></a></li> 
     24          <li><a href="/help/why"><?php echo $text_helper->translate('Why?', array()); ?></a></li> 
     25          <li><a href="/help/how"><?php echo $text_helper->translate('How?', array()); ?></a></li> 
    2826        </ul> 
    2927        <?php echo $asset_tag_helper->image_tag('tour_1.gif', array('alt' => 'What is Phwittr?', 'class' => 'tour', 'height' => 154, 'width' => 508)); ?>  
    30         <p class="teaser">Twitterは<strong>「いまなにしてる?」</strong>という質問に短い文章で答えることによって、友だちや家族、職場の同僚とつながり合うサービスです。</p> 
    31         <p><a id='signup_submit' class="join" href="/signup">Phwittrに登録する</a></p> 
     28        <?php echo $text_helper->translate('<p class="teaser">Phwittr is a service for friends, family, and co–workers to communicate and stay connected through the exchange of quick, frequent answers to one simple question: <strong> What are you doing?</strong></p>', array()); ?> 
     29        <p><a id='signup_submit' class="join" href="/signup"><?php echo $text_helper->translate('Get Started-join!', array()); ?></a></p> 
    3230      </div> 
    3331      <hr /> 
    34       <p><?php echo $url_helper->link_to("".$asset_tag_helper->image_tag('arrow_on_red.gif')." ビデオを観る!", $asset_tag_helper->image_path('nomore.jpg'), array('id' => 'videobutton')); ?></p> 
     32      <p><?php echo $url_helper->link_to("".$asset_tag_helper->image_tag('arrow_on_red.gif')." ".$text_helper->translate('Watch a video!')."", $asset_tag_helper->image_path('nomore.jpg'), array('id' => 'videobutton')); ?></p> 
    3533      <form method="post" id="signin" action="https://twitter.com/sessions"> 
    3634        <fieldset> 
    37           <legend>ここからログイン</legend> 
     35          <legend><?php echo $text_helper->translate('Please sign in', array()); ?></legend> 
    3836          <p> 
    39             <label class="inside" tabindex="1" for="username">ユーザー名かメールアドレス</label> 
     37            <label class="inside" tabindex="1" for="username"><?php echo $text_helper->translate('user name or email address:', array()); ?></label> 
    4038            <input type="text" id="username" name="session[username_or_email]" value="" title="username"  /> 
    4139          </p> 
    4240          <p> 
    43             <label class="inside" tabindex="2" for="password">パスワード</label> 
     41            <label class="inside" tabindex="2" for="password"><?php echo $text_helper->translate('Password', array()); ?></label> 
    4442            <input type="password" id="password" name="session[password]" value="" title="password" /> 
    4543          </p> 
    4644          <p class="remember"> 
    4745            <input type="checkbox" id="remember" name="remember_me" value="1" /> 
    48             <label for="remember">次回から入力を省略する</label> 
     46            <label for="remember"><?php echo $text_helper->translate('Remember me', array()); ?></label> 
    4947          </p> 
    5048          <p class="submit"> 
    51             <input type="submit" id="signin_submit" value="ログイン &raquo;" /> 
     49            <input type="submit" id="signin_submit" value="<?php echo $text_helper->translate('Sign In', array()); ?> &raquo;" /> 
    5250          </p> 
    53           <p class="forgot">パスワードを忘れた?<br/> <a id="resend_password_link" href="/account/resend_password">ここをクリック</a>.</p> 
    54           <p class="complete">インスタントメッセンジャー(IM)ですでにTwitterを使っていますか? <a href="/account/complete">ここをクリック</a></p> 
     51          <p class="forgot"><?php echo $text_helper->translate('Forgot password?', array()); ?> <a id="resend_password_link" href="/account/resend_password"><?php echo $text_helper->translate('Click here.', array()); ?></a>.</p> 
    5552        </fieldset> 
    5653      </form> 
  • events/phpframework/akelos/trunk/tmp/views/app/views/layouts/compiled/help.tpl.php

    r20121 r20359  
    33<head> 
    44  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    5   <meta http-equiv="Content-Language" content="en-us" /> 
     5  <meta http-equiv="Content-Language" content="en" /> 
    66  <meta name="viewport" content="width=780" /> 
    7   <meta name="verify-v1" content="4FTTxY4uvo0RZTMQqIyhh18HsepyJOctQ+XTOu1zsfE=" /> 
    8   <title>Phittr: What are you doing?</title> 
     7  <title><?php echo $text_helper->translate('Phwittr: What are you doing?', array()); ?></title> 
    98  <link rel="shortcut icon" href="" type="image/x-icon" /> 
    109  <?php echo $asset_tag_helper->stylesheet_link_tag('default'); ?> 
    11   <link href="http://assets2.twitter.com/stylesheets/lightwindow.css?1222396506" media="screen, projection" rel="stylesheet" type="text/css" /> 
    1210  <style type="text/css"> 
    1311    body {background: #9ae4e8 url(<?php echo $asset_tag_helper->image_path('bg.gif'); ?>) fixed no-repeat top left; } 
    14     div.content-bubble-arrow { margin-top: 6px; padding-top: 11px; background: url(http://static.twitter.com/images/arr2.gif) no-repeat 25px 0px; } 
     12    div.content-bubble-arrow { margin-top: 6px; padding-top: 11px; background: url(<?php echo $asset_tag_helper->image_path('arr2.gif'); ?>) no-repeat 25px 0px; } 
    1513  </style> 
    1614</head>