Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygab committed Jan 20, 2025
1 parent 5b66558 commit 38b0a02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/translation/editor/translation_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h2>Languages</h2>
// * `is_old` checkbox was cleared by the user
// which indicates they want to keep the translation
// (including when it's an empty string)
if ((as_loaded.EN_US != current_en_us_base) &&is_old !) {
if ((as_loaded.EN_US != current_en_us_base) && is_old) {
should_save = true;
}

Expand Down Expand Up @@ -163,6 +163,12 @@ <h2>Languages</h2>
$('#tab_labels').append($('<li>').append($('<a>').attr('href', "#" + $section).text(value.toUpperCase())));
$('#tabs').append($('<div>').attr('id', $section));
let $tabdata = $(`#${$section}`);
// Add a button to tabdata to export the data
$tabdata.append($('<button>').text('Export').click(function() {
let export_data = get_export_data(value);
console.log('Exporting data for ' + value, export_data);
});

let $table = $('<table>').attr('id', `translation-${value}`);
add_table_structure($table);
$tabdata.append($table);
Expand Down

0 comments on commit 38b0a02

Please sign in to comment.