Skip to content

Commit

Permalink
add translation option on select
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq1988 committed Oct 10, 2015
1 parent caf02b2 commit 20e5fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion form.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function build_rows( $edit = false ) {
$selected = sprintf( ' <?php selected( $item->%s, \'%s\' ); ?>', $_POST['name'][$key], $option[0] );
}

$rows .= $indent . $tab . $tab . $tab . sprintf( '<option value="%s"%s>%s</option>', $option[0], $selected, trim( $option[1] ) ) . "\n";
$rows .= $indent . $tab . $tab . $tab . sprintf( '<option value="%s"%s><?php echo __( \'%s\', \'%s\' ); ?></option>', $option[0], $selected, trim( $option[1] ), $_POST['textdomain'] ) . "\n";
}
}

Expand Down

0 comments on commit 20e5fba

Please sign in to comment.