Skip to content

Commit 2fa1d65

Browse files
committed
Add some missing calls to __()
1 parent 5e91f4e commit 2fa1d65

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

controllers/IndexController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function _getElementTypesInfoOptions() {
126126
$element_types = $this->_getElementTypesInfo();
127127
$options = array('' => '');
128128
foreach ($element_types as $key => $type) {
129-
$options[$key] = $type['label'];
129+
$options[$key] = __($type['label']);
130130
}
131131
return $options;
132132
}

views/admin/index/edit-options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php echo head(array('title' => __('Element Types'))); ?>
22
<?php echo flash(); ?>
33

4-
<h1><?php echo __('Configure type %1$s for element %2$s', $element_types[$element_type['element_type']], $element['name']); ?></h1>
4+
<h1><?php echo __('Configure type %1$s for element %2$s', __($element_types[$element_type['element_type']]), __($element['name'])); ?></h1>
55

66
<form method="post" action="<?php echo url('element-types/index/save-options'); ?>">
77
<div>

views/admin/index/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<td>
1919
<?php
2020
if (isset($element_types_info[$element['element_type']])) {
21-
echo $element_types_info[$element['element_type']]['label'];
21+
echo __($element_types_info[$element['element_type']]['label']);
2222
}
2323
?>
2424
</td>

0 commit comments

Comments
 (0)