Skip to content

Commit

Permalink
Merge pull request #5311 from benjaoming/bug/delete-language-butotn
Browse files Browse the repository at this point in the history
Rename 'Delete Subtitles' to simply 'Delete'
  • Loading branch information
benjaoming authored Oct 3, 2016
2 parents 55c101f + 9dabbbd commit 9254958
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,7 @@ function display_languages() {
}
}

if ( lang_code != 'en') {
lang_description += sprintf("<td class='delete-language-button'> <button class='btn btn-danger' value='%s' type='button'>%s</button></td>", lang_code, gettext('Delete'));
} else if (lang['subtitle_count'] > 0) {
lang_description += sprintf("<td class='delete-language-button'> <button class='btn btn-danger' value='%s' type='button'>%s</button></td>", lang_code, gettext('Delete Subtitles'));
} else {
lang_description += sprintf("<td class='delete-language-button'></td>"); // Ensure the number of <td>s is consistent
}
lang_description += sprintf("<td class='delete-language-button'> <button class='btn btn-danger' value='%s' type='button'>%s</button></td>", lang_code, gettext('Delete'));

lang_description += "<td class='clear'></td></tr>";

Expand Down

0 comments on commit 9254958

Please sign in to comment.