Skip to content

Commit

Permalink
Fixing some language errors with some strings and making more strings…
Browse files Browse the repository at this point in the history
… translatable
  • Loading branch information
nowotny committed Feb 17, 2011
1 parent 4fd5a48 commit a329e6e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions MbformsController.php
Expand Up @@ -64,7 +64,7 @@ public function index()
$forms = mbforms::findAllFrom('mbforms');
if(count($forms) === 0)
{
$forms = "You have not yet created any forms";
$forms = __('You have not yet created any forms');
}

$this->display('mbforms/views/admin/index', array('forms' => $forms));
Expand Down Expand Up @@ -351,4 +351,4 @@ protected function getTpls()
return $scandir;
}
}


2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -101,7 +101,7 @@ function mbForm($name)
// let's email!
// construct the body

$email_body = __("There has been an email submission via ").$name.__(". See below for submission details")."<br /><br />";
$email_body = __("There has been an email submission via :name. See below for submission details",array(':name'=>$name))."<br /><br />";

foreach($form['items'] as $k => $item)
{
Expand Down
2 changes: 1 addition & 1 deletion views/admin/form.php
Expand Up @@ -123,7 +123,7 @@
<div class="row_full no_padd">
<p>* <?php echo __('Denotes required fields'); ?><br />
** <?php echo __('You must add at least one form item.'); ?><br />
*** <?php echo __("For class's, JS events etc..."); ?></p>
*** <?php echo __("For classes, JS events etc..."); ?></p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion views/admin/sidebar.php
Expand Up @@ -23,7 +23,7 @@
<div class='box'>
<h2>".__('Displaying Your Forms')."</h2>
<p>".__("To display your form, place the follow code into the page you wish the form to appear on while substituting FORMNAME for the name of the your form.<br /><br />
<p>".__("To display your form, place the following code into the page you wish the form to appear on while substituting FORMNAME for the name of the your form.<br /><br />
&lt;?php mbForm('FORMNAME'); ?&gt;")."</p>
</div>
Expand Down

0 comments on commit a329e6e

Please sign in to comment.