David Gero avatar David Gero committed d00f39a Draft

[m] translatable the form

Comments (0)

Files changed (1)

 					}
 				}
 				
-				return '<div class="testimonial-success">Thank You! Your Testimonial is awaiting moderation.</div>';
+				return '<div class="testimonial-success">'.__('Thank You! Your Testimonial is awaiting moderation.').'</div>';
 			}
 	
 		} else {
 		
-			$error = '<strong>Please check that you have filled out the required fields.</strong><br />';  
-			if ($gct_agree != 'yes') { $error .= '- Please agree to your testimonial being published.<br />'; }
-			if ($gct_client_name == '') { $error .= '- Please enter your name.<br />'; }
-			if ($gct_email == '') { $error .= '- Please enter your email address.<br />'; }	
-			if ($gct_text == '') { $error .= '- Please enter your testimonial.<br />'; }
+			$error = '<strong>'.__('Please check that you have filled out the required fields.').'</strong><br />';  
+			if ($gct_agree != 'yes') { $error .= __('- Please agree to your testimonial being published.').'<br />'; }
+			if ($gct_client_name == '') { $error .= __('- Please enter your name.').'<br />'; }
+			if ($gct_email == '') { $error .= __('- Please enter your email address.').'<br />'; }	
+			if ($gct_text == '') { $error .= __('- Please enter your testimonial.').'<br />'; }
 		}
 	
 	}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.