From abec57c48449cd872e6246bcab64b5448fcfc499 Mon Sep 17 00:00:00 2001 From: Gayan Virajith Date: Sun, 3 Aug 2014 00:21:42 +0530 Subject: [PATCH] Add language support on submit button label --- FormTemplateProcessor.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FormTemplateProcessor.module b/FormTemplateProcessor.module index cdbe4bb..addf2c1 100644 --- a/FormTemplateProcessor.module +++ b/FormTemplateProcessor.module @@ -139,7 +139,8 @@ class FormTemplateProcessor extends WireData implements Module { // any submissions without first receiving a rendered form. This isn't // necessary, but it may help to reduce automated spam to the form. $submit->name = "submit"; - $submit->value = 'Submit'; + // Enable language support on submit button value + $submit->value = $this->_('Submit'); // add the submit button the the form $form->add($submit);