Skip to content

Commit

Permalink
Translate fields from config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Prein committed Oct 19, 2015
1 parent 296fb9e commit 29c3e1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/AmForms_InstallService.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ private function _installFields()
// Create fields
foreach ($fields as $field) {
$newField = new FieldModel();
$newField->name = $field['name'];
$newField->handle = isset($field['handle']) ? $field['handle'] : $this->_camelCase($field['name']);
$newField->name = Craft::t($field['name']);
$newField->handle = isset($field['handle']) ? $field['handle'] : $this->_camelCase(Craft::t($field['name']));
$newField->translatable = isset($field['translatable']) ? $field['translatable'] : true;
$newField->type = $field['type'];
if (isset($field['instructions'])) {
Expand Down

0 comments on commit 29c3e1f

Please sign in to comment.