

<%= link_to 'name', :vals => { 'plain text', _'translated text', _'translated text with %variable' } %>

-----------------------------------

<?php echo $url_helper->link_to('name', array('vals' => array('plain text', $text_helper->translate('translated text'), $text_helper->translate('translated text with %variable', array('%variable' => @$variable))))); ?>


===================================

<%= render :partial => "account", :locals => { :account => @buyer } %>

-----------------------------------

<?php echo $controller->render( array('partial' => "account", 'locals' => array('account' => $buyer))); ?>


===================================

<%= link_to(document.title, :controller => "document", :action => "show", :id => document.id) %>


-----------------------------------

<?php echo $url_helper->link_to($document->title, array('controller' => "document", 'action' => "show", 'id' => $document->id)); ?>



===================================


<%= link_to (translate("Visit Other Site"), "http://www.akelos.org/", :confirm => "Are you sure?" ) %>

-----------------------------------


<?php echo $url_helper->link_to($text_helper->translate("Visit Other Site"), "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?>


===================================

<?php echo $text_helper->translate('I\'m anxious', 'I\'m Testing'); ?>

-----------------------------------

<?php  echo $text_helper->translate('I\'m anxious', 'I\'m Testing'); ?>



===================================


<%= translate 'Write me home' %>

-----------------------------------

<?php echo $text_helper->translate('Write me home'); ?>




===================================


<%= translate 'I\'m anxious', 'I\'m Testing' %>

-----------------------------------

<?php echo $text_helper->translate('I\'m anxious', 'I\'m Testing'); ?>



===================================



<%= translate "Let's \"Jump\"", "D'Akelos Way" %>

-----------------------------------

<?php echo $text_helper->translate("Let's \"Jump\"", "D'Akelos Way"); ?>




===================================


<%= translate "Use helpers like this: 
<%= translate 'This text' %>" %>

-----------------------------------

<?php echo $text_helper->translate("Use helpers like this: 
<%= translate 'This text' %>"); ?>




===================================


<%= translate :page_title %>

-----------------------------------

<?php echo $text_helper->translate('page_title'); ?>



===================================

<%= translate @weekday %>

-----------------------------------

<?php echo $text_helper->translate($weekday); ?>



===================================

<%= translate @date-weekday %>

-----------------------------------

<?php echo $text_helper->translate($date['weekday']); ?>



===================================

<%= link_to ("Visit Other Site", "http://www.akelos.org/", {:confirm => "Are you sure?"} ) %>

-----------------------------------

<?php echo $url_helper->link_to("Visit Other Site", "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?>

===================================

<%=link_to "Delete Image", { :action => "delete", :id => @image.id }, :confirm => "Are you sure?", :method => :delete %>

-----------------------------------

<?php echo $url_helper->link_to("Delete Image", array('action' => "delete", 'id' => $image->id), array('confirm' => "Are you sure?", 'method' => 'delete')); ?>

===================================

<%= link_to "Visit Other Site", "http://www.akelos.org/", :confirm => "Are you sure?" %>

-----------------------------------

<?php echo $url_helper->link_to("Visit Other Site", "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?>

===================================

<%= link_to "Visit Other Site", "http://www.akelos.org/", :confirm => "Are you sure?", :options => ["Yes", 'No'] %>

-----------------------------------

<?php echo $url_helper->link_to("Visit Other Site", "http://www.akelos.org/", array('confirm' => "Are you sure?", 'options' => array("Yes", 'No'))); ?>

===================================

<%=mail_to "me@domain.com", "My email", :encode => "javascript"%>

-----------------------------------

<?php echo $url_helper->mail_to("me@domain.com", "My email", array('encode' => "javascript")); ?>

===================================

<%= link_to ( translate("Visit Other Site"), "http://www.akelos.org/", {:confirm => "Are you sure?"} ) %>

-----------------------------------


<?php echo $url_helper->link_to($text_helper->translate("Visit Other Site"), "http://www.akelos.org/", array('confirm' => "Are you sure?")); ?>





===================================

<%=mail_to: 'bermi@example.com'%>

-----------------------------------

<?php echo $url_helper->mail_to('bermi@example.com'); ?>




===================================

<%=email_link: 'bermi@example.com', 'Click to email'%>

-----------------------------------


<?php echo $url_helper->email_link('bermi@example.com', 'Click to email'); ?>


===================================

<%=distance_of_time_in_words: 300, 100%>

-----------------------------------


<?php echo $date_helper->distance_of_time_in_words(300, 100); ?>


===================================

<%= url_for :action => 'select_database' %>

-----------------------------------


<?php echo $url_helper->url_for( array('action' => 'select_database')); ?>


===================================

<?= "Hola" ?>

-----------------------------------


<?php echo  "Hola" ?>


===================================

<%= url_for true, false, null %>

-----------------------------------


<?php echo $url_helper->url_for(true, false, null); ?>

===================================

<? if (true): ?>
 <td></td>
<? endif; ?>

-----------------------------------

<?php if (true): ?>
 <td></td>
<?php endif; ?>


===================================


<%= _('Write me home') %>

-----------------------------------

<?php echo $text_helper->translate('Write me home'); ?>


===================================


<%= _'Write me home' %>

-----------------------------------

<?php echo $text_helper->translate('Write me home'); ?>




===================================


<%= link_to _('Back to overview'), :action => 'listing' %>

-----------------------------------

<?php echo $url_helper->link_to($text_helper->translate('Back to overview'), array('action' => 'listing')); ?>


===================================


<%= link_to 'Empty string test', '' %>

-----------------------------------

<?php echo $url_helper->link_to('Empty string test', ''); ?>


===================================


<%= link_to 'Empty string test', "" %>

-----------------------------------

<?php echo $url_helper->link_to('Empty string test', ""); ?>

===================================

<%= link_to "Posted by #{Post.author}" %>

-----------------------------------

<?php echo $url_helper->link_to("Posted by ".$Post->author.""); ?>

===================================

<%= link_to "Status: #{translate 'active',{'key'=> Value.text}, :foo => _('Bar')}" %>

-----------------------------------

<?php echo $url_helper->link_to("Status: ".$text_helper->translate('active', array('key' => $Value->text), array('foo' => $text_helper->translate('Bar'))).""); ?>


===================================

<%= link_to "Status: #{translate 'active'}" %>

-----------------------------------

<?php echo $url_helper->link_to("Status: ".$text_helper->translate('active').""); ?>

===================================

<%= translate h('<b>foo</b>') %>

-----------------------------------

<?php echo $text_helper->translate($text_helper->h('<b>foo</b>')); ?>

===================================

<%= link_to _'translated text' %>

-----------------------------------

<?php echo $url_helper->link_to($text_helper->translate('translated text')); ?>

===================================

<%= link_to _'translated text', :action => 'index' %>

-----------------------------------

<?php echo $url_helper->link_to($text_helper->translate('translated text'), array('action' => 'index')); ?>

===================================

<%= link_to _'translator\'s text', :action => 'index' %>

-----------------------------------

<?php echo $url_helper->link_to($text_helper->translate('translator\'s text'), array('action' => 'index')); ?>

===================================

<%= link_to [_'translated text'] %>

-----------------------------------

<?php echo $url_helper->link_to(array($text_helper->translate('translated text'))); ?>

===================================

<%= _'translated text with %variable', '%variable' => variable %>

-----------------------------------

<?php echo $text_helper->translate('translated text with %variable', array('%variable' => $variable)); ?>

===================================

<%= link_to 'name', :vals => { 'plain text', _'translated text', _'translated text' } %>

-----------------------------------

<?php echo $url_helper->link_to('name', array('vals' => array('plain text', $text_helper->translate('translated text'), $text_helper->translate('translated text')))); ?>

