Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing some language errors with some strings and making more strings…

… translatable
  • Loading branch information...
commit a329e6e2ed8e810c9c57b1456e64ac9fbce1a256 1 parent 4fd5a48
@nowotny authored
View
4 MbformsController.php
@@ -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));
@@ -351,4 +351,4 @@ protected function getTpls()
return $scandir;
}
}
-
+
View
2  index.php
@@ -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)
{
View
2  views/admin/form.php
@@ -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>
View
2  views/admin/sidebar.php
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.