Skip to content

Commit

Permalink
Enable translation for gender
Browse files Browse the repository at this point in the history
use built-in __() function
  • Loading branch information
Nolwennig committed Sep 5, 2015
1 parent c59d124 commit c75dea5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<?php $options = $block->getGenderOptions(); ?>
<?php $value = $block->getGender();?>
<?php foreach ($options as $option):?>
<option value="<?php echo $option->getValue() ?>"<?php if ($option->getValue() == $value) echo ' selected="selected"' ?>><?php echo $option->getLabel() ?></option>
<option value="<?php echo $option->getValue() ?>"<?php if ($option->getValue() == $value) echo ' selected="selected"' ?>><?php echo __($option->getLabel()) ?></option>
<?php endforeach;?>
</select>
</div>
Expand Down

0 comments on commit c75dea5

Please sign in to comment.